#include <fstream>
#include <iostream>
#include <vector>

using namespace std;

struct myNumber {
    long value;
    bool prime;
};

__global__ void kernel(myNumber *numbers, int size);
__device__ bool isPrime(long number);
void printResults(vector<myNumber> numbers);
vector<myNumber> readNumbers(ifstream &inputFile);

int main(int argc, char **argv) {
    if (argc != 2 ) {
        cout << "Invalid number of arguments!" << endl;
        return EXIT_FAILURE;
    }

    ifstream inputFile(argv[1]);
    if (!inputFile.is_open()) {
        cout << "File doesn't exist: " << argv[1] << endl;
        return EXIT_FAILURE;
    }

    vector <myNumber> numbers = readNumbers(inputFile);
    inputFile.close();

    cudaEvent_t start, stop;
    float elapsedTime;
    cudaEventCreate( &start );
    cudaEventCreate( &stop );

    myNumber *dev_numbers;
    // allocating memory on GPU
    cudaMalloc( (void**) &dev_numbers, numbers.size() * sizeof(struct myNumber) );

    // copying data to GPU
    cudaMemcpy( dev_numbers, numbers.data(),  numbers.size() * sizeof(struct myNumber), cudaMemcpyHostToDevice );

    cudaEventRecord( start, 0 );
    // doing calculation on GPU
    kernel<<< numbers.size(), 1>>>(dev_numbers, numbers.size());
    cudaEventRecord( stop, 0 );

    cudaEventSynchronize( stop );
    cudaEventElapsedTime( &elapsedTime, start, stop );

    //copying results from GPU
    cudaMemcpy(numbers.data(), dev_numbers, numbers.size() * sizeof(struct myNumber), cudaMemcpyDeviceToHost );

    // freeing memory from GPU
    cudaFree(dev_numbers);

    cout << "Time: " << elapsedTime << "ms" << endl;
    printResults(numbers);

    return EXIT_SUCCESS;
}

__global__ void kernel(myNumber *numbers, int size) {
    int tid = blockIdx.x;
    if (tid < size) {
        numbers[tid].prime = isPrime(numbers[tid].value);
    }
}

/**
 * Reads numbers from the file.
 *
 * @param  inputFile file to be read from
 * @return list of numbers
 */
vector<myNumber> readNumbers(ifstream &inputFile) {
    long number;
    vector <myNumber> numbers;

    while(inputFile >> number) {
        myNumber n;
        n.value = number;
        numbers.push_back(n);
    }
    return numbers;
}

/**
 * Tests primality (naive approach  with some optimization)
 *
 * @param number number to be tested
 * @return true if the number is pirme, otherwise false
 */
__device__ bool isPrime(long number) {
    if (number == 2 || number == 3) {
        return true;
    } else if (number < 2 || number % 2 == 0 || number % 3 == 0) {
        return false;
    }

    int step = 4;
    for (int i = 5; i*i <= number; i += step) { //NOTICE: sqrt() is not allowed
        if (number % i == 0) {
            return false;
        }
        step = 6 - step; //HACK: if (step == 2) {step = 4;} else {step = 2;}
    }
    return true;
}

/**
 * Prints results of the primality tests.
 *
 * @param numbers list of numbers
 */
void printResults(vector<myNumber> numbers) {
    for(uint i = 0; i < numbers.size(); ++i) {
        if (numbers[i].prime) {
            cout<< numbers[i].value << ": prime" << endl;
        } else {
            cout<< numbers[i].value << ": composite" << endl;
        }
    }
}

	.file	"tmpxft_002b1311_00000000-6_main.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4151:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4151:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4979:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4979:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z7isPrimel
	.type	_Z7isPrimel, @function
_Z7isPrimel:
.LFB4147:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE4147:
	.size	_Z7isPrimel, .-_Z7isPrimel
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	": prime"
.LC1:
	.string	": composite"
	.text
	.globl	_Z12printResultsSt6vectorI8myNumberSaIS0_EE
	.type	_Z12printResultsSt6vectorI8myNumberSaIS0_EE, @function
_Z12printResultsSt6vectorI8myNumberSaIS0_EE:
.LFB4148:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	_ZSt4cout(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
.L6:
	movq	(%r12), %rdx
	movq	8(%r12), %rax
	movl	%ebx, %ecx
	subq	%rdx, %rax
	sarq	$4, %rax
	cmpq	%rax, %rcx
	jnb	.L13
	salq	$4, %rcx
	movq	%rbp, %rdi
	leaq	(%rdx,%rcx), %rax
	cmpb	$0, 8(%rax)
	movq	(%rax), %rsi
	je	.L7
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	jmp	.L11
.L7:
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
.L11:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	incl	%ebx
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L6
.L13:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4148:
	.size	_Z12printResultsSt6vectorI8myNumberSaIS0_EE, .-_Z12printResultsSt6vectorI8myNumberSaIS0_EE
	.globl	_Z34__device_stub__Z6kernelP8myNumberiP8myNumberi
	.type	_Z34__device_stub__Z6kernelP8myNumberiP8myNumberi, @function
_Z34__device_stub__Z6kernelP8myNumberiP8myNumberi:
.LFB4173:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	%esi, 4(%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L14
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z6kernelP8myNumberi(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L14:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4173:
	.size	_Z34__device_stub__Z6kernelP8myNumberiP8myNumberi, .-_Z34__device_stub__Z6kernelP8myNumberiP8myNumberi
	.globl	_Z6kernelP8myNumberi
	.type	_Z6kernelP8myNumberi, @function
_Z6kernelP8myNumberi:
.LFB4174:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z6kernelP8myNumberiP8myNumberi
	.cfi_endproc
.LFE4174:
	.size	_Z6kernelP8myNumberi, .-_Z6kernelP8myNumberi
	.section	.rodata.str1.1
.LC2:
	.string	"_Z6kernelP8myNumberi"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4176:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC2(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z6kernelP8myNumberi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4176:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorI8myNumberSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI8myNumberSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI8myNumberSaIS0_EED2Ev
	.type	_ZNSt6vectorI8myNumberSaIS0_EED2Ev, @function
_ZNSt6vectorI8myNumberSaIS0_EED2Ev:
.LFB4504:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L21
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L21:
	ret
	.cfi_endproc
.LFE4504:
	.size	_ZNSt6vectorI8myNumberSaIS0_EED2Ev, .-_ZNSt6vectorI8myNumberSaIS0_EED2Ev
	.weak	_ZNSt6vectorI8myNumberSaIS0_EED1Ev
	.set	_ZNSt6vectorI8myNumberSaIS0_EED1Ev,_ZNSt6vectorI8myNumberSaIS0_EED2Ev
	.section	.rodata._ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_.str1.1,"aMS",@progbits,1
.LC3:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.type	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, @function
_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_:
.LFB4720:
	.cfi_startproc
	endbr64
	movabsq	$576460752303423487, %rcx
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rax
	movq	(%rdi), %r14
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	subq	%r14, %rbx
	sarq	$4, %rbx
	cmpq	%rcx, %rbx
	jne	.L24
	leaq	.LC3(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L24:
	cmpq	%r14, (%rsp)
	movl	$1, %eax
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmovne	%rbx, %rax
	movq	%rsi, %rbp
	addq	%rax, %rbx
	setc	%al
	subq	%r14, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L34
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	.L29
	movabsq	$576460752303423487, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L28
.L34:
	movq	%rcx, %rbx
.L28:
	movq	%rbx, %rdi
	movq	%rdx, 8(%rsp)
	salq	$4, %rdi
	call	_Znwm@PLT
	movq	8(%rsp), %rdx
	movq	%rax, %r12
.L29:
	movups	(%rdx), %xmm0
	movups	%xmm0, (%r12,%r15)
	testq	%r15, %r15
	jle	.L30
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	memmove@PLT
.L30:
	movq	(%rsp), %rax
	leaq	16(%r12,%r15), %rdx
	subq	%rbp, %rax
	testq	%rax, %rax
	jle	.L31
	movq	%rdx, %rdi
	movq	%rbp, %rsi
	movq	%rax, %rcx
	rep movsb
.L31:
	leaq	(%rdx,%rax), %rbp
	testq	%r14, %r14
	je	.L32
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	subq	%r14, %rsi
	call	_ZdlPvm@PLT
.L32:
	salq	$4, %rbx
	movq	%r12, 0(%r13)
	leaq	(%r12,%rbx), %r8
	movq	%rbp, 8(%r13)
	movq	%r8, 16(%r13)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4720:
	.size	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .-_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.text
	.globl	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE
	.type	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE, @function
_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE:
.LFB4130:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4130
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movq	%rsp, %r12
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
.L42:
	movq	%r12, %rsi
	movq	%rbp, %rdi
.LEHB0:
	call	_ZNSi10_M_extractIlEERSiRT_@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L53
	movq	(%rsp), %rax
	movq	8(%rbx), %rsi
	movq	%rax, 8(%rsp)
	cmpq	16(%rbx), %rsi
	je	.L43
	movups	8(%rsp), %xmm0
	addq	$16, %rsi
	movups	%xmm0, -16(%rsi)
	movq	%rsi, 8(%rbx)
	jmp	.L42
.L43:
	leaq	8(%rsp), %rdx
	movq	%rbx, %rdi
	call	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LEHE0:
	jmp	.L42
.L49:
	endbr64
	movq	%rax, %rbp
.L46:
	movq	%rbx, %rdi
	call	_ZNSt6vectorI8myNumberSaIS0_EED1Ev
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	movq	%rbp, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L53:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L48
.L52:
	call	__stack_chk_fail@PLT
.L48:
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4130:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4130:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4130-.LLSDACSB4130
.LLSDACSB4130:
	.uleb128 .LEHB0-.LFB4130
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L49-.LFB4130
	.uleb128 0
	.uleb128 .LEHB1-.LFB4130
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4130:
	.text
	.size	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE, .-_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE
	.section	.rodata.str1.1
.LC4:
	.string	"Invalid number of arguments!"
.LC5:
	.string	"File doesn't exist: "
.LC6:
	.string	"Time: "
.LC7:
	.string	"ms"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4129:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4129
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	_ZSt4cout(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$632, %rsp
	.cfi_def_cfa_offset 688
	movq	%fs:40, %rax
	movq	%rax, 616(%rsp)
	xorl	%eax, %eax
	cmpl	$2, %edi
	je	.L55
	leaq	.LC4(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %ebx
.LEHB2:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L54
.L55:
	movq	%rsi, %rbx
	leaq	96(%rsp), %rbp
	movq	8(%rsi), %rsi
	movl	$8, %edx
	movq	%rbp, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE2:
	leaq	216(%rsp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	jne	.L57
	leaq	.LC5(%rip), %rsi
	movq	%r15, %rdi
.LEHB3:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	8(%rbx), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %ebx
	jmp	.L58
.L57:
	leaq	48(%rsp), %r12
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE
.LEHE3:
	movq	%rbp, %rdi
.LEHB4:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
	leaq	8(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	16(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	48(%rsp), %r13
	movq	56(%rsp), %rbx
	leaq	24(%rsp), %rdi
	subq	%r13, %rbx
	movq	%rbx, %rsi
	call	cudaMalloc@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbx, %rdx
	movq	%r13, %rsi
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	%rbx, %r14
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$4294967297, %rdx
	sarq	$4, %r14
	movl	$1, 80(%rsp)
	movq	%rdx, 40(%rsp)
	movl	44(%rsp), %esi
	movl	%r14d, 36(%rsp)
	movq	36(%rsp), %rdi
	movq	%rdx, 72(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L59
.L61:
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	jmp	.L82
.L59:
	movq	24(%rsp), %rdi
	movl	%r14d, %esi
	call	_Z34__device_stub__Z6kernelP8myNumberiP8myNumberi
	jmp	.L61
.L82:
	movq	16(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	leaq	36(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movq	24(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdx
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	leaq	.LC6(%rip), %rsi
	movq	%r15, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	36(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC7(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%eax, %eax
	movq	%rax, 72(%rsp)
	movq	%rax, 80(%rsp)
	movq	%rax, 88(%rsp)
	testq	%rbx, %rbx
	je	.L73
	movabsq	$9223372036854775792, %rax
	cmpq	%rbx, %rax
	jnb	.L63
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L81
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L63:
	movq	%rbx, %rdi
	call	_Znwm@PLT
.LEHE4:
	movq	%rax, %rdi
	jmp	.L62
.L73:
	xorl	%edi, %edi
.L62:
	leaq	(%rdi,%rbx), %r14
	movq	%rdi, 72(%rsp)
	movq	%r14, 88(%rsp)
	cmpq	$16, %rbx
	jle	.L65
	movq	%rbx, %rdx
	movq	%r13, %rsi
	call	memmove@PLT
	jmp	.L66
.L65:
	jne	.L66
	movups	0(%r13), %xmm1
	movups	%xmm1, (%rdi)
.L66:
	leaq	72(%rsp), %r13
	movq	%r14, 80(%rsp)
	movq	%r13, %rdi
.LEHB5:
	call	_Z12printResultsSt6vectorI8myNumberSaIS0_EE
.LEHE5:
	movq	%r13, %rdi
	xorl	%ebx, %ebx
	call	_ZNSt6vectorI8myNumberSaIS0_EED1Ev
	movq	%r12, %rdi
	call	_ZNSt6vectorI8myNumberSaIS0_EED1Ev
.L58:
	movq	%rbp, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L54
.L76:
	endbr64
	movq	%rax, %rbx
.L67:
	movq	%r13, %rdi
	call	_ZNSt6vectorI8myNumberSaIS0_EED1Ev
	jmp	.L68
.L75:
	endbr64
	movq	%rax, %rbx
.L68:
	movq	%r12, %rdi
	call	_ZNSt6vectorI8myNumberSaIS0_EED1Ev
	jmp	.L69
.L74:
	endbr64
	movq	%rax, %rbx
.L69:
	movq	%rbp, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L81
	movq	%rbx, %rdi
.LEHB6:
	call	_Unwind_Resume@PLT
.LEHE6:
.L54:
	movq	616(%rsp), %rax
	subq	%fs:40, %rax
	je	.L71
.L81:
	call	__stack_chk_fail@PLT
.L71:
	addq	$632, %rsp
	.cfi_def_cfa_offset 56
	movl	%ebx, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4129:
	.section	.gcc_except_table
.LLSDA4129:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4129-.LLSDACSB4129
.LLSDACSB4129:
	.uleb128 .LEHB2-.LFB4129
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB4129
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L74-.LFB4129
	.uleb128 0
	.uleb128 .LEHB4-.LFB4129
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L75-.LFB4129
	.uleb128 0
	.uleb128 .LEHB5-.LFB4129
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L76-.LFB4129
	.uleb128 0
	.uleb128 .LEHB6-.LFB4129
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
.LLSDACSE4129:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <fstream>
#include <iostream>
#include <vector>

using namespace std;

struct myNumber {
    long value;
    bool prime;
};

__global__ void kernel(myNumber *numbers, int size);
__device__ bool isPrime(long number);
void printResults(vector<myNumber> numbers);
vector<myNumber> readNumbers(ifstream &inputFile);

int main(int argc, char **argv) {
    if (argc != 2 ) {
        cout << "Invalid number of arguments!" << endl;
        return EXIT_FAILURE;
    }

    ifstream inputFile(argv[1]);
    if (!inputFile.is_open()) {
        cout << "File doesn't exist: " << argv[1] << endl;
        return EXIT_FAILURE;
    }

    vector <myNumber> numbers = readNumbers(inputFile);
    inputFile.close();

    hipEvent_t start, stop;
    float elapsedTime;
    hipEventCreate( &start );
    hipEventCreate( &stop );

    myNumber *dev_numbers;
    // allocating memory on GPU
    hipMalloc( (void**) &dev_numbers, numbers.size() * sizeof(struct myNumber) );

    // copying data to GPU
    hipMemcpy( dev_numbers, numbers.data(),  numbers.size() * sizeof(struct myNumber), hipMemcpyHostToDevice );

    hipEventRecord( start, 0 );
    // doing calculation on GPU
    kernel<<< numbers.size(), 1>>>(dev_numbers, numbers.size());
    hipEventRecord( stop, 0 );

    hipEventSynchronize( stop );
    hipEventElapsedTime( &elapsedTime, start, stop );

    //copying results from GPU
    hipMemcpy(numbers.data(), dev_numbers, numbers.size() * sizeof(struct myNumber), hipMemcpyDeviceToHost );

    // freeing memory from GPU
    hipFree(dev_numbers);

    cout << "Time: " << elapsedTime << "ms" << endl;
    printResults(numbers);

    return EXIT_SUCCESS;
}

__global__ void kernel(myNumber *numbers, int size) {
    int tid = blockIdx.x;
    if (tid < size) {
        numbers[tid].prime = isPrime(numbers[tid].value);
    }
}

/**
 * Reads numbers from the file.
 *
 * @param  inputFile file to be read from
 * @return list of numbers
 */
vector<myNumber> readNumbers(ifstream &inputFile) {
    long number;
    vector <myNumber> numbers;

    while(inputFile >> number) {
        myNumber n;
        n.value = number;
        numbers.push_back(n);
    }
    return numbers;
}

/**
 * Tests primality (naive approach  with some optimization)
 *
 * @param number number to be tested
 * @return true if the number is pirme, otherwise false
 */
__device__ bool isPrime(long number) {
    if (number == 2 || number == 3) {
        return true;
    } else if (number < 2 || number % 2 == 0 || number % 3 == 0) {
        return false;
    }

    int step = 4;
    for (int i = 5; i*i <= number; i += step) { //NOTICE: sqrt() is not allowed
        if (number % i == 0) {
            return false;
        }
        step = 6 - step; //HACK: if (step == 2) {step = 4;} else {step = 2;}
    }
    return true;
}

/**
 * Prints results of the primality tests.
 *
 * @param numbers list of numbers
 */
void printResults(vector<myNumber> numbers) {
    for(uint i = 0; i < numbers.size(); ++i) {
        if (numbers[i].prime) {
            cout<< numbers[i].value << ": prime" << endl;
        } else {
            cout<< numbers[i].value << ": composite" << endl;
        }
    }
}

	.text
	.file	"main.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$608, %rsp                      # imm = 0x260
	.cfi_def_cfa_offset 624
	.cfi_offset %rbx, -16
	cmpl	$2, %edi
	jne	.LBB0_30
# %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rsi
	leaq	88(%rsp), %rdi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	leaq	208(%rsp), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	testb	%al, %al
	je	.LBB0_31
# %bb.2:
.Ltmp13:
	leaq	16(%rsp), %rdi
	leaq	88(%rsp), %rsi
	callq	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE
.Ltmp14:
# %bb.3:
.Ltmp16:
	leaq	88(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp17:
# %bb.4:
.Ltmp19:
	leaq	56(%rsp), %rdi
	callq	hipEventCreate
.Ltmp20:
# %bb.5:
.Ltmp21:
	leaq	40(%rsp), %rdi
	callq	hipEventCreate
.Ltmp22:
# %bb.6:
	movq	24(%rsp), %rsi
	subq	16(%rsp), %rsi
.Ltmp24:
	leaq	8(%rsp), %rdi
	callq	hipMalloc
.Ltmp25:
# %bb.7:
	movq	8(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	24(%rsp), %rdx
	subq	%rsi, %rdx
.Ltmp26:
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp27:
# %bb.8:
	movq	56(%rsp), %rdi
.Ltmp28:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp29:
# %bb.9:
	movq	24(%rsp), %rax
	subq	16(%rsp), %rax
	shrq	$4, %rax
	movl	%eax, %edi
	btsq	$32, %rdi
.Ltmp30:
	movabsq	$4294967297, %rdx               # imm = 0x100000001
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp31:
# %bb.10:
	testl	%eax, %eax
	jne	.LBB0_12
# %bb.11:
	movq	8(%rsp), %rdi
	movq	24(%rsp), %rsi
	subq	16(%rsp), %rsi
	shrq	$4, %rsi
.Ltmp32:
                                        # kill: def $esi killed $esi killed $rsi
	callq	_Z21__device_stub__kernelP8myNumberi
.Ltmp33:
.LBB0_12:
	movq	40(%rsp), %rdi
.Ltmp34:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp35:
# %bb.13:
	movq	40(%rsp), %rdi
.Ltmp36:
	callq	hipEventSynchronize
.Ltmp37:
# %bb.14:
	movq	56(%rsp), %rsi
	movq	40(%rsp), %rdx
.Ltmp38:
	leaq	52(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp39:
# %bb.15:
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdi
	movq	24(%rsp), %rdx
	subq	%rdi, %rdx
.Ltmp40:
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp41:
# %bb.16:
	movq	8(%rsp), %rdi
.Ltmp42:
	callq	hipFree
.Ltmp43:
# %bb.17:
.Ltmp44:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp45:
# %bb.18:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit24
	cvtss2sd	52(%rsp), %xmm0
.Ltmp46:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp47:
# %bb.19:                               # %_ZNSolsEf.exit
.Ltmp48:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp49:
# %bb.20:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit27
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp50:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp51:
# %bb.21:                               # %.noexc39
.Ltmp52:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp53:
# %bb.22:                               # %.noexc40
.Ltmp54:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp55:
# %bb.23:                               # %_ZNSolsEPFRSoS_E.exit29
.Ltmp56:
	leaq	64(%rsp), %rdi
	leaq	16(%rsp), %rsi
	callq	_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_
.Ltmp57:
# %bb.24:
.Ltmp59:
	leaq	64(%rsp), %rdi
	callq	_Z12printResultsSt6vectorI8myNumberSaIS0_EE
.Ltmp60:
# %bb.25:
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_27
# %bb.26:
	callq	_ZdlPv
.LBB0_27:                               # %_ZNSt6vectorI8myNumberSaIS0_EED2Ev.exit
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_29
# %bb.28:
	callq	_ZdlPv
.LBB0_29:                               # %_ZNSt6vectorI8myNumberSaIS0_EED2Ev.exit31
	xorl	%ebx, %ebx
	jmp	.LBB0_38
.LBB0_30:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$28, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$1, %ebx
	jmp	.LBB0_39
.LBB0_31:
.Ltmp0:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp1:
# %bb.32:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	.LBB0_34
# %bb.33:
	movq	%rbx, %rdi
	callq	strlen
.Ltmp2:
	movl	$_ZSt4cout, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp3:
	jmp	.LBB0_35
.LBB0_34:
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cout(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
.Ltmp4:
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.Ltmp5:
.LBB0_35:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit21
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %edi
	addq	-24(%rax), %rdi
.Ltmp6:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp7:
# %bb.36:                               # %.noexc36
.Ltmp8:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp9:
# %bb.37:                               # %.noexc37
	movl	$1, %ebx
.Ltmp10:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp11:
.LBB0_38:                               # %_ZNSolsEPFRSoS_E.exit
	leaq	88(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB0_39:
	movl	%ebx, %eax
	addq	$608, %rsp                      # imm = 0x260
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.LBB0_40:
	.cfi_def_cfa_offset 624
.Ltmp61:
	movq	%rax, %rbx
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_49
# %bb.41:
	callq	_ZdlPv
	jmp	.LBB0_49
.LBB0_42:
.Ltmp18:
	jmp	.LBB0_48
.LBB0_43:
.Ltmp15:
	jmp	.LBB0_46
.LBB0_44:
.Ltmp23:
	jmp	.LBB0_48
.LBB0_45:
.Ltmp12:
.LBB0_46:
	movq	%rax, %rbx
	jmp	.LBB0_51
.LBB0_47:
.Ltmp58:
.LBB0_48:
	movq	%rax, %rbx
.LBB0_49:
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_51
# %bb.50:
	callq	_ZdlPv
.LBB0_51:
	leaq	88(%rsp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp13-.Lfunc_begin0          #   Call between .Lfunc_begin0 and .Ltmp13
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 2 <<
	.uleb128 .Ltmp14-.Ltmp13                #   Call between .Ltmp13 and .Ltmp14
	.uleb128 .Ltmp15-.Lfunc_begin0          #     jumps to .Ltmp15
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp17-.Ltmp16                #   Call between .Ltmp16 and .Ltmp17
	.uleb128 .Ltmp18-.Lfunc_begin0          #     jumps to .Ltmp18
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp22-.Ltmp19                #   Call between .Ltmp19 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin0          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp57-.Ltmp24                #   Call between .Ltmp24 and .Ltmp57
	.uleb128 .Ltmp58-.Lfunc_begin0          #     jumps to .Ltmp58
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp59-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp60-.Ltmp59                #   Call between .Ltmp59 and .Ltmp60
	.uleb128 .Ltmp61-.Lfunc_begin0          #     jumps to .Ltmp61
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp0-.Ltmp60                 #   Call between .Ltmp60 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 8 <<
	.uleb128 .Ltmp11-.Ltmp0                 #   Call between .Ltmp0 and .Ltmp11
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Lfunc_end0-.Ltmp11            #   Call between .Ltmp11 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE # -- Begin function _Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE
	.type	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE,@function
_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE: # @_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	movq	%rsp, %r15
	leaq	8(%rsp), %r12
.LBB1_1:                                # =>This Inner Loop Header: Depth=1
.Ltmp62:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ZNSi10_M_extractIlEERSiRT_
.Ltmp63:
# %bb.2:                                #   in Loop: Header=BB1_1 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB1_7
# %bb.3:                                #   in Loop: Header=BB1_1 Depth=1
	movq	(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	8(%rbx), %rsi
	cmpq	16(%rbx), %rsi
	je	.LBB1_5
# %bb.4:                                #   in Loop: Header=BB1_1 Depth=1
	movups	8(%rsp), %xmm0
	movups	%xmm0, (%rsi)
	addq	$16, 8(%rbx)
	jmp	.LBB1_1
.LBB1_5:                                #   in Loop: Header=BB1_1 Depth=1
.Ltmp65:
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp66:
	jmp	.LBB1_1
.LBB1_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB1_6:
	.cfi_def_cfa_offset 64
.Ltmp67:
	jmp	.LBB1_9
.LBB1_8:
.Ltmp64:
.LBB1_9:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB1_11
# %bb.10:
	callq	_ZdlPv
.LBB1_11:                               # %_ZNSt6vectorI8myNumberSaIS0_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE, .Lfunc_end1-_Z11readNumbersRSt14basic_ifstreamIcSt11char_traitsIcEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp62-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp63-.Ltmp62                #   Call between .Ltmp62 and .Ltmp63
	.uleb128 .Ltmp64-.Lfunc_begin1          #     jumps to .Ltmp64
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp65-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp66-.Ltmp65                #   Call between .Ltmp65 and .Ltmp66
	.uleb128 .Ltmp67-.Lfunc_begin1          #     jumps to .Ltmp67
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp66-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Lfunc_end1-.Ltmp66            #   Call between .Ltmp66 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z21__device_stub__kernelP8myNumberi # -- Begin function _Z21__device_stub__kernelP8myNumberi
	.type	_Z21__device_stub__kernelP8myNumberi,@function
_Z21__device_stub__kernelP8myNumberi:   # @_Z21__device_stub__kernelP8myNumberi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6kernelP8myNumberi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z21__device_stub__kernelP8myNumberi, .Lfunc_end2-_Z21__device_stub__kernelP8myNumberi
	.cfi_endproc
                                        # -- End function
	.globl	_Z12printResultsSt6vectorI8myNumberSaIS0_EE # -- Begin function _Z12printResultsSt6vectorI8myNumberSaIS0_EE
	.type	_Z12printResultsSt6vectorI8myNumberSaIS0_EE,@function
_Z12printResultsSt6vectorI8myNumberSaIS0_EE: # @_Z12printResultsSt6vectorI8myNumberSaIS0_EE
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rax
	cmpq	%rax, 8(%rdi)
	je	.LBB3_7
# %bb.1:                                # %.lr.ph.preheader
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	movl	$1, %ebp
	xorl	%ecx, %ecx
.LBB3_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	shlq	$4, %rcx
	movb	8(%rax,%rcx), %r15b
	movq	(%rax,%rcx), %rsi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIlEERSoT_
	movq	%rax, %r14
	testb	%r15b, %r15b
	je	.LBB3_4
# %bb.3:                                #   in Loop: Header=BB3_2 Depth=1
	movl	$.L.str.4, %esi
	movl	$7, %edx
	jmp	.LBB3_5
.LBB3_4:                                #   in Loop: Header=BB3_2 Depth=1
	movl	$.L.str.5, %esi
	movl	$11, %edx
.LBB3_5:                                #   in Loop: Header=BB3_2 Depth=1
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	%ebp, %ecx
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	subq	%rax, %rdx
	sarq	$4, %rdx
	incl	%ebp
	cmpq	%rcx, %rdx
	ja	.LBB3_2
# %bb.6:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB3_7:                                # %._crit_edge
	retq
.Lfunc_end3:
	.size	_Z12printResultsSt6vectorI8myNumberSaIS0_EE, .Lfunc_end3-_Z12printResultsSt6vectorI8myNumberSaIS0_EE
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_,"axG",@progbits,_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_,comdat
	.weak	_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_ # -- Begin function _ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_,@function
_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_: # @_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$4, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB4_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB4_3
.LBB4_1:
	xorl	%r15d, %r15d
.LBB4_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	shlq	$4, %r12
	addq	%r15, %r12
	movq	%r12, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$17, %r14
	jl	.LBB4_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB4_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB4_5:
	.cfi_def_cfa_offset 48
	cmpq	$16, %r14
	jne	.LBB4_7
# %bb.6:
	movups	(%rsi), %xmm0
	movups	%xmm0, (%r15)
	jmp	.LBB4_7
.Lfunc_end4:
	.size	_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_, .Lfunc_end4-_ZNSt6vectorI8myNumberSaIS0_EEC2ERKS2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI8myNumberE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI8myNumberE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv,@function
_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv: # @_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$59, %rax
	jne	.LBB5_1
# %bb.3:
	shlq	$4, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB5_1:
	.cfi_def_cfa_offset 16
	shrq	$60, %rsi
	je	.LBB5_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB5_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end5:
	.size	_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv, .Lfunc_end5-_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.weak	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_ # -- Begin function _ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,@function
_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_: # @_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.6, %edx
	callq	_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %r15
	movq	%r13, 16(%rsp)                  # 8-byte Spill
	movq	%rax, (%rsp)                    # 8-byte Spill
	subq	%rax, %r13
	movq	%r13, %r12
	sarq	$4, %r12
	testq	%r14, %r14
	je	.LBB6_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI8myNumberE8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB6_3
.LBB6_1:
	xorl	%ebp, %ebp
.LBB6_3:                                # %_ZNSt12_Vector_baseI8myNumberSaIS0_EE11_M_allocateEm.exit
	shlq	$4, %r12
	movq	8(%rsp), %rax                   # 8-byte Reload
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbp,%r12)
	testq	%r13, %r13
	jle	.LBB6_5
# %bb.4:
	movq	%rbp, %rdi
	movq	(%rsp), %rsi                    # 8-byte Reload
	movq	%r13, %rdx
	callq	memmove@PLT
.LBB6_5:                                # %_ZNSt6vectorI8myNumberSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit
	leaq	16(,%r13), %r12
	addq	%rbp, %r12
	movq	16(%rsp), %rsi                  # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB6_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB6_7:                                # %_ZNSt6vectorI8myNumberSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit16
	movq	(%rsp), %rdi                    # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB6_9
# %bb.8:
	callq	_ZdlPv
.LBB6_9:                                # %_ZNSt12_Vector_baseI8myNumberSaIS0_EE13_M_deallocateEPS0_m.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	shlq	$4, %r14
	addq	%rbp, %r14
	movq	%r14, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .Lfunc_end6-_ZNSt6vectorI8myNumberSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$576460752303423487, %rcx       # imm = 0x7FFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$4, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB7_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB7_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end7:
	.size	_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc, .Lfunc_end7-_ZNKSt6vectorI8myNumberSaIS0_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB8_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB8_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6kernelP8myNumberi, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end8:
	.size	__hip_module_ctor, .Lfunc_end8-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB9_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB9_2:
	retq
.Lfunc_end9:
	.size	__hip_module_dtor, .Lfunc_end9-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Invalid number of arguments!"
	.size	.L.str, 29

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"File doesn't exist: "
	.size	.L.str.1, 21

	.type	_Z6kernelP8myNumberi,@object    # @_Z6kernelP8myNumberi
	.section	.rodata,"a",@progbits
	.globl	_Z6kernelP8myNumberi
	.p2align	3, 0x0
_Z6kernelP8myNumberi:
	.quad	_Z21__device_stub__kernelP8myNumberi
	.size	_Z6kernelP8myNumberi, 8

	.type	.L.str.2,@object                # @.str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.2:
	.asciz	"Time: "
	.size	.L.str.2, 7

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"ms"
	.size	.L.str.3, 3

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	": prime"
	.size	.L.str.4, 8

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	": composite"
	.size	.L.str.5, 12

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.6, 26

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z6kernelP8myNumberi"
	.size	.L__unnamed_1, 21

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Z21__device_stub__kernelP8myNumberi
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z6kernelP8myNumberi
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z6kernelP8myNumberi    ; -- Begin function _Z6kernelP8myNumberi
	.globl	_Z6kernelP8myNumberi
	.p2align	8
	.type	_Z6kernelP8myNumberi,@function
_Z6kernelP8myNumberi:                   ; @_Z6kernelP8myNumberi
; %bb.0:
	s_load_b32 s2, s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_cmp_ge_i32 s15, s2
	s_cbranch_scc1 .LBB0_10
; %bb.1:
	s_load_b64 s[2:3], s[0:1], 0x0
	s_mov_b32 s4, s15
	s_ashr_i32 s5, s15, 31
	s_mov_b32 s9, -1
	s_lshl_b64 s[4:5], s[4:5], 4
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s2, s4
	s_addc_u32 s1, s3, s5
	s_load_b64 s[6:7], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s0, s6, -2
	s_mov_b32 s1, s7
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[0:1], 2
	s_cbranch_scc1 .LBB0_9
; %bb.2:
	s_and_b32 s8, s6, 1
	s_mov_b32 s9, 0
	s_mul_i32 s0, s6, 0xaaaaaaaa
	s_cmp_eq_u64 s[8:9], 0
	s_mul_hi_u32 s1, s6, 0xaaaaaaab
	s_cselect_b32 s8, -1, 0
	s_add_i32 s0, s1, s0
	s_mul_i32 s1, s7, 0xaaaaaaab
	s_mov_b32 s10, 0x55555556
	s_add_i32 s1, s0, s1
	s_mul_i32 s0, s6, 0xaaaaaaab
	s_mov_b32 s11, 0x55555555
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_lt_u64_e64 s0, s[0:1], s[10:11]
	v_cmp_lt_i64_e64 s1, s[6:7], 2
	s_or_b32 s0, s8, s0
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_or_b32 s0, s0, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB0_9
; %bb.3:                                ; %.preheader.i
	v_cmp_lt_u64_e64 s0, s[6:7], 25
	s_mov_b32 s9, -1
	s_delay_alu instid0(VALU_DEP_1)
	s_and_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB0_9
; %bb.4:                                ; %.lr.ph.i.preheader
	s_mov_b32 s12, 4
	s_mov_b32 s13, 5
	s_mov_b32 s1, 0
	s_ashr_i32 s8, s7, 31
.LBB0_5:                                ; %.lr.ph.i
                                        ; =>This Inner Loop Header: Depth=1
	s_ashr_i32 s10, s13, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_add_u32 s14, s13, s10
	s_mov_b32 s11, s10
	s_addc_u32 s15, s10, s10
	s_xor_b64 s[10:11], s[14:15], s[10:11]
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cvt_f32_u32_e32 v0, s10
	v_cvt_f32_u32_e32 v1, s11
	s_sub_u32 s14, 0, s10
	s_subb_u32 s15, 0, s11
	v_fmac_f32_e32 v0, 0x4f800000, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v0, v0
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x5f7ffffc, v0
	v_mul_f32_e32 v1, 0x2f800000, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_trunc_f32_e32 v1, v1
	v_fmac_f32_e32 v0, 0xcf800000, v1
	v_cvt_u32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v0, v0
	v_readfirstlane_b32 s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_readfirstlane_b32 s9, v0
	s_mul_i32 s16, s14, s0
	s_delay_alu instid0(VALU_DEP_1)
	s_mul_hi_u32 s18, s14, s9
	s_mul_i32 s17, s15, s9
	s_add_i32 s16, s18, s16
	s_mul_i32 s19, s14, s9
	s_add_i32 s16, s16, s17
	s_mul_hi_u32 s18, s9, s19
	s_mul_hi_u32 s20, s0, s19
	s_mul_i32 s17, s0, s19
	s_mul_hi_u32 s19, s9, s16
	s_mul_i32 s9, s9, s16
	s_mul_hi_u32 s21, s0, s16
	s_add_u32 s9, s18, s9
	s_addc_u32 s18, 0, s19
	s_add_u32 s9, s9, s17
	s_mul_i32 s16, s0, s16
	s_addc_u32 s9, s18, s20
	s_addc_u32 s17, s21, 0
	s_add_u32 s9, s9, s16
	s_addc_u32 s16, 0, s17
	v_add_co_u32 v0, s9, v0, s9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_cmp_lg_u32 s9, 0
	s_addc_u32 s0, s0, s16
	v_readfirstlane_b32 s9, v0
	s_mul_i32 s16, s14, s0
	s_delay_alu instid0(VALU_DEP_1)
	s_mul_hi_u32 s17, s14, s9
	s_mul_i32 s15, s15, s9
	s_add_i32 s16, s17, s16
	s_mul_i32 s14, s14, s9
	s_add_i32 s16, s16, s15
	s_mul_hi_u32 s17, s0, s14
	s_mul_i32 s18, s0, s14
	s_mul_hi_u32 s14, s9, s14
	s_mul_hi_u32 s19, s9, s16
	s_mul_i32 s9, s9, s16
	s_mul_hi_u32 s15, s0, s16
	s_add_u32 s9, s14, s9
	s_addc_u32 s14, 0, s19
	s_add_u32 s9, s9, s18
	s_mul_i32 s16, s0, s16
	s_addc_u32 s9, s14, s17
	s_addc_u32 s14, s15, 0
	s_add_u32 s9, s9, s16
	s_addc_u32 s14, 0, s14
	v_add_co_u32 v0, s9, v0, s9
	s_delay_alu instid0(VALU_DEP_1)
	s_cmp_lg_u32 s9, 0
	s_mov_b32 s9, s8
	s_addc_u32 s0, s0, s14
	s_add_u32 s14, s6, s8
	v_readfirstlane_b32 s16, v0
	s_addc_u32 s15, s7, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_xor_b64 s[14:15], s[14:15], s[8:9]
	s_mul_i32 s17, s14, s0
	s_delay_alu instid0(VALU_DEP_1)
	s_mul_hi_u32 s18, s14, s16
	s_mul_hi_u32 s9, s14, s0
	s_mul_hi_u32 s20, s15, s16
	s_mul_i32 s16, s15, s16
	s_add_u32 s17, s18, s17
	s_addc_u32 s9, 0, s9
	s_mul_hi_u32 s19, s15, s0
	s_add_u32 s16, s17, s16
	s_mul_i32 s0, s15, s0
	s_addc_u32 s9, s9, s20
	s_addc_u32 s16, s19, 0
	s_add_u32 s0, s9, s0
	s_addc_u32 s9, 0, s16
	s_mul_hi_u32 s16, s10, s0
	s_mul_i32 s9, s10, s9
	s_mul_i32 s17, s11, s0
	s_mul_i32 s0, s10, s0
	s_add_i32 s9, s16, s9
	v_sub_co_u32 v0, s0, s14, s0
	s_add_i32 s9, s9, s17
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_sub_i32 s14, s15, s9
	s_cmp_lg_u32 s0, 0
	v_sub_co_u32 v1, s16, v0, s10
	s_subb_u32 s14, s14, s11
	s_cmp_lg_u32 s16, 0
	s_subb_u32 s17, s14, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_le_u32_e32 vcc_lo, s10, v1
	s_cmp_ge_u32 s17, s11
	s_cselect_b32 s18, -1, 0
	s_cmp_eq_u32 s17, s11
	v_cndmask_b32_e64 v2, 0, -1, vcc_lo
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_lg_u32 s16, 0
	v_sub_co_u32 v3, s16, v1, s10
	s_subb_u32 s14, s14, s11
	s_cmp_lg_u32 s16, 0
	v_cndmask_b32_e32 v2, s18, v2, vcc_lo
	s_subb_u32 s14, s14, 0
	s_cmp_lg_u32 s0, 0
	v_cmp_le_u32_e32 vcc_lo, s10, v0
	s_subb_u32 s9, s15, s9
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_ge_u32 s9, s11
	v_cndmask_b32_e64 v4, 0, -1, vcc_lo
	s_cselect_b32 s10, -1, 0
	s_cmp_eq_u32 s9, s11
	v_cmp_ne_u32_e32 vcc_lo, 0, v2
	v_mov_b32_e32 v2, s14
	s_cselect_b32 s0, -1, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v4, s10, v4, s0
	v_cndmask_b32_e32 v1, v1, v3, vcc_lo
	v_cndmask_b32_e32 v2, s17, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_ne_u32_e32 vcc_lo, 0, v4
	v_cndmask_b32_e32 v0, v0, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v2, s9, v2, vcc_lo
	v_xor_b32_e32 v0, s8, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v1, s8, v2
	v_sub_co_u32 v0, vcc_lo, v0, s8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_subrev_co_ci_u32_e32 v1, vcc_lo, s8, v1, vcc_lo
	v_cmp_eq_u64_e32 vcc_lo, 0, v[0:1]
	s_cbranch_vccnz .LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	s_sub_i32 s12, 6, s12
	s_mov_b32 s9, -1
	s_add_i32 s13, s12, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s0, s13, s13
	v_cmp_lt_u64_e64 s0, s[6:7], s[0:1]
	s_branch .LBB0_8
.LBB0_7:                                ;   in Loop: Header=BB0_5 Depth=1
	v_cmp_ne_u64_e64 s9, 0, v[0:1]
	s_mov_b32 s0, -1
                                        ; implicit-def: $sgpr12
                                        ; implicit-def: $sgpr13
.LBB0_8:                                ; %Flow
                                        ;   in Loop: Header=BB0_5 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s0
	s_cbranch_vccnz .LBB0_5
.LBB0_9:                                ; %_Z7isPrimel.exit
	v_mov_b32_e32 v0, 0
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v1, 0, 1, s9
	s_add_u32 s0, s2, s4
	s_addc_u32 s1, s3, s5
	global_store_b8 v0, v1, s[0:1] offset:8
.LBB0_10:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6kernelP8myNumberi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 12
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 22
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z6kernelP8myNumberi, .Lfunc_end0-_Z6kernelP8myNumberi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1008
; NumSgprs: 24
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 24
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 12
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6kernelP8myNumberi
    .private_segment_fixed_size: 0
    .sgpr_count:     24
    .sgpr_spill_count: 0
    .symbol:         _Z6kernelP8myNumberi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
