//Based on the work of Andrew Krepps
#include <chrono>
#include <fstream>
#include <random>
#include <stdio.h>
#include <string>

// Uses the GPU to add the block + thread index in array_a to array_b to array_results
__global__
void add_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] + array_b[index];
}

// Uses the GPU to subtract the block + thread index in array_b from array_a to array_results
__global__
void sub_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] - array_b[index];
}


// Uses the GPU to multiply the block + thread index in array_a by array_b to array_results
__global__
void mult_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] * array_b[index];
}


// Uses the GPU to mudulot the block + thread index in array_a by array_b to array_results
__global__
void mod_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] % array_b[index];
}

int main(int argc, char** argv)
{
    // read command line arguments
    int totalThreads = 512;
    int blockSize = 256;
    bool outputResults = false;
    std::string outputName;

    if (argc >= 2) 
    {
        totalThreads = atoi(argv[1]);
    }
    if (argc >= 3)
    {
        blockSize = atoi(argv[2]);
    }
    if (argc >= 4)
    {
        outputResults = true;
        outputName = argv[3];
    }
    int numBlocks = totalThreads/blockSize;

    // validate command line arguments
    if (totalThreads % blockSize != 0)
    {
        ++numBlocks;
        totalThreads = numBlocks*blockSize;

        printf("Warning: Total thread count is not evenly divisible by the block size\n");
        printf("The total number of threads will be rounded up to %d\n", totalThreads);
    }
    
    // Used for random number generation
    std::default_random_engine generator;
    std::uniform_int_distribution<int> distribution(0,3);

    // Device variables
    int* d_array_a;
    int* d_array_b;
    int* d_add_results;
    int* d_sub_results;
    int* d_mult_results;
    int* d_mod_results;
    
    // Host Variables
    int array_a[totalThreads];
    int array_b[totalThreads];
    int add_results[totalThreads];
    int sub_results[totalThreads];
    int mult_results[totalThreads];
    int mod_results[totalThreads];
    
    // Generate values for arrays.
    for( int i = 0; i < totalThreads; i++ )
    {
        array_a[i] = i;
        array_b[i] = distribution( generator );
    }

    auto array_size = totalThreads * sizeof(int);

    // Malloc GPU arrays
    cudaMalloc((void **)&d_array_a, array_size);
    cudaMalloc((void **)&d_array_b, array_size);
    cudaMalloc((void **)&d_add_results, array_size);
    cudaMalloc((void **)&d_sub_results, array_size);
    cudaMalloc((void **)&d_mult_results, array_size);
    cudaMalloc((void **)&d_mod_results, array_size);

    // Copy array values to Device
    cudaMemcpy( d_array_a, array_a, array_size, cudaMemcpyHostToDevice );
    cudaMemcpy( d_array_b, array_b, array_size, cudaMemcpyHostToDevice );
 
   
    // Execute assignment operations
    auto start = std::chrono::high_resolution_clock::now();
    add_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_add_results);
    auto stop = std::chrono::high_resolution_clock::now();
    auto add_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();

    start = std::chrono::high_resolution_clock::now();
    sub_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_sub_results);
    stop = std::chrono::high_resolution_clock::now();
    auto sub_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();
    
    start = std::chrono::high_resolution_clock::now();
    mult_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_mult_results);
    stop = std::chrono::high_resolution_clock::now();
    auto mult_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();

    start = std::chrono::high_resolution_clock::now();
    mod_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_mod_results);
    stop = std::chrono::high_resolution_clock::now();
    auto mod_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();
   
    // Copy results to host
    cudaMemcpy( &add_results, d_add_results, array_size, cudaMemcpyDeviceToHost);
    cudaMemcpy( &sub_results, d_sub_results, array_size, cudaMemcpyDeviceToHost);
    cudaMemcpy( &mult_results, d_mult_results, array_size, cudaMemcpyDeviceToHost);
    cudaMemcpy( &mod_results, d_mod_results, array_size, cudaMemcpyDeviceToHost);
    
    // cleanup
    cudaFree(d_array_a);
    cudaFree(d_array_b);
    cudaFree(d_add_results);
    cudaFree(d_sub_results);
    cudaFree(d_mult_results);
    cudaFree(d_mod_results);
    
    printf("Results with Thread Count: %d and Block Size: %d\n", totalThreads, blockSize);
    printf("Add Time nanoseconds:\t %ld\n", add_time);
    printf("Sub Time nanoseconds:\t %ld\n", sub_time);
    printf("Mult Time nanoseconds:\t %ld\n", mult_time);
    printf("Mod Time nanoseconds:\t %ld\n", mod_time);

    if (outputResults)
    {
        std::ofstream stream(outputName);
        if (stream.is_open())
        {
            stream << "Results with Thread Count: " << totalThreads << " and Block Size: " << blockSize << "\n";
            stream << "Add Time nanoseconds:\t" << add_time << "\n";
            stream << "Sub Time nanoseconds:\t" << sub_time << "\n";
            stream << "Mult Time nanoseconds:\t" << mult_time << "\n";
            stream << "Mod Time nanoseconds:\t" << mod_time << "\n";

            stream << "Add Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") + B("  << array_b[i] << ") = " <<  add_results[i] << "\n";
            }
            
            stream << "\n\nSub Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") - B("  << array_b[i] << ") = " <<  sub_results[i] << "\n";
            }
            
            stream << "\n\nMult Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") * B("  << array_b[i] << ") = " <<  mult_results[i] << "\n";
            }
            
            stream << "\n\nMult Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") % B("  << array_b[i] << ") = " <<  mod_results[i] << "\n";
            }
        
        }
        else{
            printf("FILE NOT OPEN?\n");
        }
        stream.close();
    }
    printf("\n");
}

	.file	"tmpxft_0026f089_00000000-6_assignment.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4955:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4955:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE.isra.0, @function
_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE.isra.0:
.LFB5776:
	.cfi_startproc
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movslq	%esi, %rax
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rax, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movslq	%edx, %rbp
	subq	%rax, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmpq	$2147483644, %rbp
	ja	.L3
	incq	%rbp
	movl	$2147483645, %eax
	xorl	%edx, %edx
	movl	$2147483647, %esi
	divq	%rbp
	movq	(%rdi), %rdx
	imulq	%rax, %rbp
	movq	%rax, %rcx
.L4:
	imulq	$16807, %rdx, %rax
	xorl	%edx, %edx
	divq	%rsi
	leaq	-1(%rdx), %rax
	cmpq	%rbp, %rax
	jnb	.L4
	movq	%rdx, 0(%r13)
	xorl	%edx, %edx
	divq	%rcx
	jmp	.L5
.L3:
	cmpq	$2147483645, %rbp
	je	.L6
	movl	$2147483646, %ecx
	movq	%rbp, %rax
	xorl	%edx, %edx
	movl	$2147483647, %ebx
	divq	%rcx
	movq	%rax, %r14
.L11:
	movl	%r14d, %edx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE.isra.0
	xorl	%edx, %edx
	movl	%eax, %ecx
	imulq	$16807, 0(%r13), %rax
	divq	%rbx
	movslq	%ecx, %rax
	imulq	$2147483646, %rax, %rax
	movq	%rdx, 0(%r13)
	decq	%rdx
	addq	%rdx, %rax
	setc	%dl
	movzbl	%dl, %edx
	cmpq	%rax, %rbp
	jb	.L11
	testq	%rdx, %rdx
	jne	.L11
	jmp	.L5
.L6:
	imulq	$16807, (%rdi), %rax
	movl	$2147483647, %ecx
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, (%rdi)
	leaq	-1(%rdx), %rax
.L5:
	popq	%rbx
	.cfi_def_cfa_offset 40
	addl	%r12d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5776:
	.size	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE.isra.0, .-_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE.isra.0
	.globl	_Z36__device_stub__Z10add_arraysPKiS0_PiPKiS0_Pi
	.type	_Z36__device_stub__Z10add_arraysPKiS0_PiPKiS0_Pi, @function
_Z36__device_stub__Z10add_arraysPKiS0_PiPKiS0_Pi:
.LFB4977:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L14
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z10add_arraysPKiS0_Pi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L14:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4977:
	.size	_Z36__device_stub__Z10add_arraysPKiS0_PiPKiS0_Pi, .-_Z36__device_stub__Z10add_arraysPKiS0_PiPKiS0_Pi
	.globl	_Z10add_arraysPKiS0_Pi
	.type	_Z10add_arraysPKiS0_Pi, @function
_Z10add_arraysPKiS0_Pi:
.LFB4978:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z10add_arraysPKiS0_PiPKiS0_Pi
	.cfi_endproc
.LFE4978:
	.size	_Z10add_arraysPKiS0_Pi, .-_Z10add_arraysPKiS0_Pi
	.globl	_Z36__device_stub__Z10sub_arraysPKiS0_PiPKiS0_Pi
	.type	_Z36__device_stub__Z10sub_arraysPKiS0_PiPKiS0_Pi, @function
_Z36__device_stub__Z10sub_arraysPKiS0_PiPKiS0_Pi:
.LFB4979:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L19
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z10sub_arraysPKiS0_Pi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L19:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4979:
	.size	_Z36__device_stub__Z10sub_arraysPKiS0_PiPKiS0_Pi, .-_Z36__device_stub__Z10sub_arraysPKiS0_PiPKiS0_Pi
	.globl	_Z10sub_arraysPKiS0_Pi
	.type	_Z10sub_arraysPKiS0_Pi, @function
_Z10sub_arraysPKiS0_Pi:
.LFB4980:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z10sub_arraysPKiS0_PiPKiS0_Pi
	.cfi_endproc
.LFE4980:
	.size	_Z10sub_arraysPKiS0_Pi, .-_Z10sub_arraysPKiS0_Pi
	.globl	_Z37__device_stub__Z11mult_arraysPKiS0_PiPKiS0_Pi
	.type	_Z37__device_stub__Z11mult_arraysPKiS0_PiPKiS0_Pi, @function
_Z37__device_stub__Z11mult_arraysPKiS0_PiPKiS0_Pi:
.LFB4981:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L24
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z11mult_arraysPKiS0_Pi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L24:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4981:
	.size	_Z37__device_stub__Z11mult_arraysPKiS0_PiPKiS0_Pi, .-_Z37__device_stub__Z11mult_arraysPKiS0_PiPKiS0_Pi
	.globl	_Z11mult_arraysPKiS0_Pi
	.type	_Z11mult_arraysPKiS0_Pi, @function
_Z11mult_arraysPKiS0_Pi:
.LFB4982:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z11mult_arraysPKiS0_PiPKiS0_Pi
	.cfi_endproc
.LFE4982:
	.size	_Z11mult_arraysPKiS0_Pi, .-_Z11mult_arraysPKiS0_Pi
	.globl	_Z36__device_stub__Z10mod_arraysPKiS0_PiPKiS0_Pi
	.type	_Z36__device_stub__Z10mod_arraysPKiS0_PiPKiS0_Pi, @function
_Z36__device_stub__Z10mod_arraysPKiS0_PiPKiS0_Pi:
.LFB4983:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L29
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z10mod_arraysPKiS0_Pi(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L29:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4983:
	.size	_Z36__device_stub__Z10mod_arraysPKiS0_PiPKiS0_Pi, .-_Z36__device_stub__Z10mod_arraysPKiS0_PiPKiS0_Pi
	.globl	_Z10mod_arraysPKiS0_Pi
	.type	_Z10mod_arraysPKiS0_Pi, @function
_Z10mod_arraysPKiS0_Pi:
.LFB4984:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z10mod_arraysPKiS0_PiPKiS0_Pi
	.cfi_endproc
.LFE4984:
	.size	_Z10mod_arraysPKiS0_Pi, .-_Z10mod_arraysPKiS0_Pi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z10mod_arraysPKiS0_Pi"
.LC1:
	.string	"_Z11mult_arraysPKiS0_Pi"
.LC2:
	.string	"_Z10sub_arraysPKiS0_Pi"
.LC3:
	.string	"_Z10add_arraysPKiS0_Pi"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4986:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z10mod_arraysPKiS0_Pi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC1(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11mult_arraysPKiS0_Pi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10sub_arraysPKiS0_Pi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10add_arraysPKiS0_Pi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	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	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4986:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC4:
	.string	"Warning: Total thread count is not evenly divisible by the block size\n"
.LC5:
	.string	"The total number of threads will be rounded up to %d\n"
.LC6:
	.string	"Results with Thread Count: %d and Block Size: %d\n"
.LC7:
	.string	"Add Time nanoseconds:\t %ld\n"
.LC8:
	.string	"Sub Time nanoseconds:\t %ld\n"
.LC9:
	.string	"Mult Time nanoseconds:\t %ld\n"
.LC10:
	.string	"Mod Time nanoseconds:\t %ld\n"
.LC11:
	.string	"Results with Thread Count: "
.LC12:
	.string	" and Block Size: "
.LC13:
	.string	"\n"
.LC14:
	.string	"Add Time nanoseconds:\t"
.LC15:
	.string	"Sub Time nanoseconds:\t"
.LC16:
	.string	"Mult Time nanoseconds:\t"
.LC17:
	.string	"Mod Time nanoseconds:\t"
.LC18:
	.string	"Add Results:\n"
.LC19:
	.string	"A("
.LC20:
	.string	") + B("
.LC21:
	.string	") = "
.LC22:
	.string	"\n\nSub Results:\n"
.LC23:
	.string	") - B("
.LC24:
	.string	"\n\nMult Results:\n"
.LC25:
	.string	") * B("
.LC26:
	.string	") % B("
.LC27:
	.string	"FILE NOT OPEN?\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4949:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4949
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$728, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-584(%rbp), %rax
	movb	$0, -584(%rbp)
	movq	%rax, -600(%rbp)
	xorl	%eax, %eax
	movq	%rax, -592(%rbp)
	cmpl	$1, %edi
	jle	.L87
	movl	%edi, %r13d
	movq	8(%rsi), %rdi
	movq	%rsi, %r12
	call	atoi@PLT
	movl	%eax, -700(%rbp)
	cmpl	$2, %r13d
	je	.L88
	movq	16(%r12), %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	cmpl	$3, %r13d
	je	.L89
	movq	24(%r12), %r12
	leaq	-600(%rbp), %r14
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%r12, %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	%rax, %r8
	movq	%r14, %rdi
.LEHB0:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm@PLT
	movb	$1, -701(%rbp)
	jmp	.L37
.L87:
	movl	$512, -700(%rbp)
	movl	$256, %ebx
	jmp	.L89
.L88:
	movl	$256, %ebx
.L89:
	movb	$0, -701(%rbp)
.L37:
	movl	-700(%rbp), %eax
	cltd
	idivl	%ebx
	movl	%eax, %r12d
	testl	%edx, %edx
	je	.L38
	incl	%r12d
	leaq	.LC4(%rip), %rsi
	movl	$2, %edi
	movl	%r12d, %eax
	imull	%ebx, %eax
	movl	%eax, -700(%rbp)
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	-700(%rbp), %edx
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L38:
	movslq	-700(%rbp), %rax
	movq	%rsp, %rcx
	movq	$1, -680(%rbp)
	salq	$2, %rax
	movq	%rax, -696(%rbp)
	addq	$15, %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L39:
	cmpq	%rcx, %rsp
	je	.L40
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L39
.L40:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L41
	orq	$0, -8(%rsp,%rdx)
.L41:
	movq	%rax, %rsi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r15
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L42:
	cmpq	%rcx, %rsp
	je	.L43
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L42
.L43:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L44
	orq	$0, -8(%rsp,%rdx)
.L44:
	movq	%rax, %rsi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r14
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L45:
	cmpq	%rcx, %rsp
	je	.L46
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L45
.L46:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L47
	orq	$0, -8(%rsp,%rdx)
.L47:
	movq	%rax, %rsi
	movq	%rsp, -736(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L48:
	cmpq	%rcx, %rsp
	je	.L49
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L48
.L49:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L50
	orq	$0, -8(%rsp,%rdx)
.L50:
	movq	%rax, %rsi
	movq	%rsp, -744(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L51:
	cmpq	%rcx, %rsp
	je	.L52
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L51
.L52:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L53
	orq	$0, -8(%rsp,%rdx)
.L53:
	movq	%rsp, -752(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L54:
	cmpq	%rcx, %rsp
	je	.L55
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L54
.L55:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L56
	orq	$0, -8(%rsp,%rax)
.L56:
	movq	%rsp, -760(%rbp)
	xorl	%r8d, %r8d
	leaq	-680(%rbp), %r9
.L57:
	cmpl	%r8d, -700(%rbp)
	jle	.L128
	movl	%r8d, (%r15,%r8,4)
	movl	$3, %edx
	xorl	%esi, %esi
	movq	%r9, %rdi
	call	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE.isra.0
	movl	%eax, (%r14,%r8,4)
	incq	%r8
	jmp	.L57
.L128:
	movq	-696(%rbp), %rsi
	leaq	-672(%rbp), %rdi
	call	cudaMalloc@PLT
	movq	-696(%rbp), %rsi
	leaq	-664(%rbp), %rdi
	call	cudaMalloc@PLT
	movq	-696(%rbp), %rsi
	leaq	-656(%rbp), %rdi
	call	cudaMalloc@PLT
	movq	-696(%rbp), %rsi
	leaq	-648(%rbp), %rdi
	call	cudaMalloc@PLT
	movq	-696(%rbp), %rsi
	leaq	-640(%rbp), %rdi
	call	cudaMalloc@PLT
	movq	-696(%rbp), %rsi
	leaq	-632(%rbp), %rdi
	call	cudaMalloc@PLT
	movq	-696(%rbp), %rdx
	movq	-672(%rbp), %rdi
	movl	$1, %ecx
	movq	%r15, %rsi
	call	cudaMemcpy@PLT
	movq	-696(%rbp), %rdx
	movq	-664(%rbp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	call	cudaMemcpy@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	%ebx, -612(%rbp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, %r13
	movl	%r12d, -624(%rbp)
	movabsq	$4294967297, %rax
	movq	%rax, -608(%rbp)
	movl	-604(%rbp), %ecx
	movq	%rax, -620(%rbp)
	movq	-612(%rbp), %rdx
	movq	-624(%rbp), %rdi
	movl	-616(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L59
.L61:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	subq	%r13, %rax
	movq	%rax, -712(%rbp)
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	%ebx, -612(%rbp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, %r13
	movl	%r12d, -624(%rbp)
	movabsq	$4294967297, %rax
	movq	%rax, -608(%rbp)
	movl	-604(%rbp), %ecx
	movq	%rax, -620(%rbp)
	movq	-612(%rbp), %rdx
	movq	-624(%rbp), %rdi
	movl	-616(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L62
	jmp	.L64
.L59:
	movq	-656(%rbp), %rdx
	movq	-664(%rbp), %rsi
	movq	-672(%rbp), %rdi
	call	_Z36__device_stub__Z10add_arraysPKiS0_PiPKiS0_Pi
	jmp	.L61
.L62:
	movq	-648(%rbp), %rdx
	movq	-664(%rbp), %rsi
	movq	-672(%rbp), %rdi
	call	_Z36__device_stub__Z10sub_arraysPKiS0_PiPKiS0_Pi
.L64:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	subq	%r13, %rax
	movq	%rax, -720(%rbp)
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	%ebx, -612(%rbp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, %r13
	movl	%r12d, -624(%rbp)
	movabsq	$4294967297, %rax
	movq	%rax, -608(%rbp)
	movl	-604(%rbp), %ecx
	movq	%rax, -620(%rbp)
	movq	-612(%rbp), %rdx
	movq	-624(%rbp), %rdi
	movl	-616(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L67
	movq	-640(%rbp), %rdx
	movq	-664(%rbp), %rsi
	movq	-672(%rbp), %rdi
	call	_Z37__device_stub__Z11mult_arraysPKiS0_PiPKiS0_Pi
.L67:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	subq	%r13, %rax
	movq	%rax, -728(%rbp)
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	%ebx, -612(%rbp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, %r13
	movl	%r12d, -624(%rbp)
	movabsq	$4294967297, %rax
	movq	%rax, -608(%rbp)
	movl	-604(%rbp), %ecx
	movq	%rax, -620(%rbp)
	movq	-612(%rbp), %rdx
	movq	-624(%rbp), %rdi
	movl	-616(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L70
	movq	-632(%rbp), %rdx
	movq	-664(%rbp), %rsi
	movq	-672(%rbp), %rdi
	call	_Z36__device_stub__Z10mod_arraysPKiS0_PiPKiS0_Pi
.L70:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movq	-696(%rbp), %rdx
	movl	$2, %ecx
	movq	-656(%rbp), %rsi
	movq	-736(%rbp), %rdi
	subq	%r13, %rax
	movq	%rax, %r13
	call	cudaMemcpy@PLT
	movq	-696(%rbp), %rdx
	movq	-648(%rbp), %rsi
	movl	$2, %ecx
	movq	-744(%rbp), %rdi
	call	cudaMemcpy@PLT
	movq	-696(%rbp), %rdx
	movq	-640(%rbp), %rsi
	movl	$2, %ecx
	movq	-752(%rbp), %rdi
	call	cudaMemcpy@PLT
	movq	-696(%rbp), %rdx
	movq	-632(%rbp), %rsi
	movl	$2, %ecx
	movq	-760(%rbp), %rdi
	call	cudaMemcpy@PLT
	movq	-672(%rbp), %rdi
	call	cudaFree@PLT
	movq	-664(%rbp), %rdi
	call	cudaFree@PLT
	movq	-656(%rbp), %rdi
	call	cudaFree@PLT
	movq	-648(%rbp), %rdi
	call	cudaFree@PLT
	movq	-640(%rbp), %rdi
	call	cudaFree@PLT
	movq	-632(%rbp), %rdi
	call	cudaFree@PLT
	movl	-700(%rbp), %edx
	movl	%ebx, %ecx
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
	movq	-712(%rbp), %rdx
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-720(%rbp), %rdx
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-728(%rbp), %rdx
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r13, %rdx
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-600(%rbp), %rax
	cmpb	$0, -701(%rbp)
	movq	%rax, -696(%rbp)
	je	.L71
	leaq	-568(%rbp), %r12
	movl	$16, %edx
	movq	%rax, %rsi
	movq	%r12, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode@PLT
.LEHE0:
	leaq	-456(%rbp), %rdi
	call	_ZNKSt12__basic_fileIcE7is_openEv@PLT
	testb	%al, %al
	je	.L72
	leaq	.LC11(%rip), %rsi
	movq	%r12, %rdi
.LEHB1:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	-700(%rbp), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC12(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	leaq	.LC13(%rip), %r12
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	-568(%rbp), %rbx
	leaq	.LC14(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-712(%rbp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-720(%rbp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC16(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	-728(%rbp), %rsi
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC17(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZNSo9_M_insertIlEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC18(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	xorl	%r13d, %r13d
.L73:
	cmpl	%r13d, -700(%rbp)
	jle	.L129
	leaq	.LC19(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r15,%r13,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC20(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r14,%r13,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	-736(%rbp), %rax
	movl	(%rax,%r13,4), %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%r13
	jmp	.L73
.L129:
	leaq	.LC22(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	xorl	%r13d, %r13d
.L75:
	cmpl	%r13d, -700(%rbp)
	jle	.L130
	leaq	.LC19(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r15,%r13,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC23(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r14,%r13,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	-744(%rbp), %rax
	movl	(%rax,%r13,4), %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%r13
	jmp	.L75
.L130:
	leaq	.LC24(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	xorl	%r13d, %r13d
.L77:
	cmpl	%r13d, -700(%rbp)
	jle	.L131
	leaq	.LC19(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r15,%r13,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC25(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r14,%r13,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	-752(%rbp), %rax
	movl	(%rax,%r13,4), %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%r13
	jmp	.L77
.L131:
	leaq	.LC24(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	xorl	%r12d, %r12d
	leaq	.LC19(%rip), %r13
.L79:
	cmpl	%r12d, -700(%rbp)
	jle	.L82
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r15,%r12,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC26(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	(%r14,%r12,4), %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC21(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	-760(%rbp), %rax
	movl	(%rax,%r12,4), %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC13(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	incq	%r12
	jmp	.L79
.L72:
	leaq	.LC27(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L82:
	leaq	-568(%rbp), %rbx
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE1:
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
.L71:
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.LEHB2:
	call	__printf_chk@PLT
.LEHE2:
	movq	-696(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L86
	jmp	.L126
.L95:
	endbr64
	movq	%rax, %rbx
.L83:
	leaq	-568(%rbp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L84
.L94:
	endbr64
	movq	%rax, %rbx
.L84:
	leaq	-600(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L126
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L126:
	call	__stack_chk_fail@PLT
.L86:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4949:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4949:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4949-.LLSDACSB4949
.LLSDACSB4949:
	.uleb128 .LEHB0-.LFB4949
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L94-.LFB4949
	.uleb128 0
	.uleb128 .LEHB1-.LFB4949
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L95-.LFB4949
	.uleb128 0
	.uleb128 .LEHB2-.LFB4949
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L94-.LFB4949
	.uleb128 0
	.uleb128 .LEHB3-.LFB4949
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4949:
	.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:

//Based on the work of Andrew Krepps

#include <hip/hip_runtime.h>
#include <chrono>
#include <fstream>
#include <random>
#include <stdio.h>
#include <string>

// Uses the GPU to add the block + thread index in array_a to array_b to array_results
__global__
void add_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] + array_b[index];
}

// Uses the GPU to subtract the block + thread index in array_b from array_a to array_results
__global__
void sub_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] - array_b[index];
}


// Uses the GPU to multiply the block + thread index in array_a by array_b to array_results
__global__
void mult_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] * array_b[index];
}


// Uses the GPU to mudulot the block + thread index in array_a by array_b to array_results
__global__
void mod_arrays( 
    const int* const array_a,
    const int* const array_b,
    int* const array_results)
{
    int index = threadIdx.x + blockIdx.x * blockDim.x;
    array_results[index] = array_a[index] % array_b[index];
}

int main(int argc, char** argv)
{
    // read command line arguments
    int totalThreads = 512;
    int blockSize = 256;
    bool outputResults = false;
    std::string outputName;

    if (argc >= 2) 
    {
        totalThreads = atoi(argv[1]);
    }
    if (argc >= 3)
    {
        blockSize = atoi(argv[2]);
    }
    if (argc >= 4)
    {
        outputResults = true;
        outputName = argv[3];
    }
    int numBlocks = totalThreads/blockSize;

    // validate command line arguments
    if (totalThreads % blockSize != 0)
    {
        ++numBlocks;
        totalThreads = numBlocks*blockSize;

        printf("Warning: Total thread count is not evenly divisible by the block size\n");
        printf("The total number of threads will be rounded up to %d\n", totalThreads);
    }
    
    // Used for random number generation
    std::default_random_engine generator;
    std::uniform_int_distribution<int> distribution(0,3);

    // Device variables
    int* d_array_a;
    int* d_array_b;
    int* d_add_results;
    int* d_sub_results;
    int* d_mult_results;
    int* d_mod_results;
    
    // Host Variables
    int array_a[totalThreads];
    int array_b[totalThreads];
    int add_results[totalThreads];
    int sub_results[totalThreads];
    int mult_results[totalThreads];
    int mod_results[totalThreads];
    
    // Generate values for arrays.
    for( int i = 0; i < totalThreads; i++ )
    {
        array_a[i] = i;
        array_b[i] = distribution( generator );
    }

    auto array_size = totalThreads * sizeof(int);

    // Malloc GPU arrays
    hipMalloc((void **)&d_array_a, array_size);
    hipMalloc((void **)&d_array_b, array_size);
    hipMalloc((void **)&d_add_results, array_size);
    hipMalloc((void **)&d_sub_results, array_size);
    hipMalloc((void **)&d_mult_results, array_size);
    hipMalloc((void **)&d_mod_results, array_size);

    // Copy array values to Device
    hipMemcpy( d_array_a, array_a, array_size, hipMemcpyHostToDevice );
    hipMemcpy( d_array_b, array_b, array_size, hipMemcpyHostToDevice );
 
   
    // Execute assignment operations
    auto start = std::chrono::high_resolution_clock::now();
    add_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_add_results);
    auto stop = std::chrono::high_resolution_clock::now();
    auto add_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();

    start = std::chrono::high_resolution_clock::now();
    sub_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_sub_results);
    stop = std::chrono::high_resolution_clock::now();
    auto sub_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();
    
    start = std::chrono::high_resolution_clock::now();
    mult_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_mult_results);
    stop = std::chrono::high_resolution_clock::now();
    auto mult_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();

    start = std::chrono::high_resolution_clock::now();
    mod_arrays<<<numBlocks, blockSize>>>(d_array_a, d_array_b, d_mod_results);
    stop = std::chrono::high_resolution_clock::now();
    auto mod_time = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start).count();
   
    // Copy results to host
    hipMemcpy( &add_results, d_add_results, array_size, hipMemcpyDeviceToHost);
    hipMemcpy( &sub_results, d_sub_results, array_size, hipMemcpyDeviceToHost);
    hipMemcpy( &mult_results, d_mult_results, array_size, hipMemcpyDeviceToHost);
    hipMemcpy( &mod_results, d_mod_results, array_size, hipMemcpyDeviceToHost);
    
    // cleanup
    hipFree(d_array_a);
    hipFree(d_array_b);
    hipFree(d_add_results);
    hipFree(d_sub_results);
    hipFree(d_mult_results);
    hipFree(d_mod_results);
    
    printf("Results with Thread Count: %d and Block Size: %d\n", totalThreads, blockSize);
    printf("Add Time nanoseconds:\t %ld\n", add_time);
    printf("Sub Time nanoseconds:\t %ld\n", sub_time);
    printf("Mult Time nanoseconds:\t %ld\n", mult_time);
    printf("Mod Time nanoseconds:\t %ld\n", mod_time);

    if (outputResults)
    {
        std::ofstream stream(outputName);
        if (stream.is_open())
        {
            stream << "Results with Thread Count: " << totalThreads << " and Block Size: " << blockSize << "\n";
            stream << "Add Time nanoseconds:\t" << add_time << "\n";
            stream << "Sub Time nanoseconds:\t" << sub_time << "\n";
            stream << "Mult Time nanoseconds:\t" << mult_time << "\n";
            stream << "Mod Time nanoseconds:\t" << mod_time << "\n";

            stream << "Add Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") + B("  << array_b[i] << ") = " <<  add_results[i] << "\n";
            }
            
            stream << "\n\nSub Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") - B("  << array_b[i] << ") = " <<  sub_results[i] << "\n";
            }
            
            stream << "\n\nMult Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") * B("  << array_b[i] << ") = " <<  mult_results[i] << "\n";
            }
            
            stream << "\n\nMult Results:\n";
            for( int i = 0; i < totalThreads; i++ )
            {
                stream << "A(" << array_a[i] << ") % B("  << array_b[i] << ") = " <<  mod_results[i] << "\n";
            }
        
        }
        else{
            printf("FILE NOT OPEN?\n");
        }
        stream.close();
    }
    printf("\n");
}

	.text
	.file	"assignment.hip"
	.globl	_Z25__device_stub__add_arraysPKiS0_Pi # -- Begin function _Z25__device_stub__add_arraysPKiS0_Pi
	.type	_Z25__device_stub__add_arraysPKiS0_Pi,@function
_Z25__device_stub__add_arraysPKiS0_Pi:  # @_Z25__device_stub__add_arraysPKiS0_Pi
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%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	$_Z10add_arraysPKiS0_Pi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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_end0:
	.size	_Z25__device_stub__add_arraysPKiS0_Pi, .Lfunc_end0-_Z25__device_stub__add_arraysPKiS0_Pi
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__sub_arraysPKiS0_Pi # -- Begin function _Z25__device_stub__sub_arraysPKiS0_Pi
	.type	_Z25__device_stub__sub_arraysPKiS0_Pi,@function
_Z25__device_stub__sub_arraysPKiS0_Pi:  # @_Z25__device_stub__sub_arraysPKiS0_Pi
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%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	$_Z10sub_arraysPKiS0_Pi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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_end1:
	.size	_Z25__device_stub__sub_arraysPKiS0_Pi, .Lfunc_end1-_Z25__device_stub__sub_arraysPKiS0_Pi
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__mult_arraysPKiS0_Pi # -- Begin function _Z26__device_stub__mult_arraysPKiS0_Pi
	.type	_Z26__device_stub__mult_arraysPKiS0_Pi,@function
_Z26__device_stub__mult_arraysPKiS0_Pi: # @_Z26__device_stub__mult_arraysPKiS0_Pi
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%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	$_Z11mult_arraysPKiS0_Pi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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	_Z26__device_stub__mult_arraysPKiS0_Pi, .Lfunc_end2-_Z26__device_stub__mult_arraysPKiS0_Pi
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__mod_arraysPKiS0_Pi # -- Begin function _Z25__device_stub__mod_arraysPKiS0_Pi
	.type	_Z25__device_stub__mod_arraysPKiS0_Pi,@function
_Z25__device_stub__mod_arraysPKiS0_Pi:  # @_Z25__device_stub__mod_arraysPKiS0_Pi
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%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	$_Z10mod_arraysPKiS0_Pi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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_end3:
	.size	_Z25__device_stub__mod_arraysPKiS0_Pi, .Lfunc_end3-_Z25__device_stub__mod_arraysPKiS0_Pi
	.cfi_endproc
                                        # -- End function
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$744, %rsp                      # imm = 0x2E8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-248(%rbp), %rax
	movq	%rax, -16(%rax)
	movq	$0, -8(%rax)
	movb	$0, (%rax)
	movl	$256, %r15d                     # imm = 0x100
	cmpl	$2, %edi
	jl	.LBB4_1
# %bb.2:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	8(%rsi), %rdi
	callq	atoi
	movl	%eax, %r12d
	cmpl	$2, %r14d
	je	.LBB4_3
# %bb.4:
	movq	16(%rbx), %rdi
	callq	atoi
	movl	%eax, %r15d
	cmpl	$4, %r14d
	jb	.LBB4_3
# %bb.5:
	movq	24(%rbx), %rbx
	movq	%rbx, %rdi
	callq	strlen
	movb	$1, %r14b
.Ltmp0:
	leaq	-264(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp1:
	jmp	.LBB4_6
.LBB4_1:
	movl	$512, %r12d                     # imm = 0x200
.LBB4_3:
	xorl	%r14d, %r14d
.LBB4_6:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit
	movl	%r12d, %eax
	cltd
	idivl	%r15d
	testl	%edx, %edx
	movl	%r15d, -44(%rbp)                # 4-byte Spill
	movl	%r14d, -132(%rbp)               # 4-byte Spill
	je	.LBB4_7
# %bb.8:
	incl	%eax
	movl	%eax, -56(%rbp)                 # 4-byte Spill
	movl	%eax, %r12d
	imull	%r15d, %r12d
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	$.L.str.1, %edi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	printf
	jmp	.LBB4_9
.LBB4_7:
	movl	%eax, -56(%rbp)                 # 4-byte Spill
.LBB4_9:
	movq	%rsp, -184(%rbp)                # 8-byte Spill
	movq	$1, -232(%rbp)
	movabsq	$12884901888, %rax              # imm = 0x300000000
	movq	%rax, -272(%rbp)
	movl	%r12d, %ebx
	movq	%rsp, %rcx
	leaq	15(,%rbx,4), %rax
	andq	$-16, %rax
	subq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %r15
	subq	%rax, %r15
	movq	%r15, %rsp
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -176(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -168(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -160(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -152(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	testl	%r12d, %r12d
	jle	.LBB4_13
# %bb.10:                               # %.lr.ph.preheader
	xorl	%r13d, %r13d
	leaq	-232(%rbp), %r14
	leaq	-272(%rbp), %r12
.LBB4_11:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movl	%r13d, (%rax,%r13,4)
.Ltmp3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE
.Ltmp4:
# %bb.12:                               # %_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_.exit
                                        #   in Loop: Header=BB4_11 Depth=1
	movl	%eax, (%r15,%r13,4)
	incq	%r13
	cmpq	%r13, %rbx
	jne	.LBB4_11
.LBB4_13:                               # %._crit_edge
	movslq	%ebx, %r12
	shlq	$2, %r12
.Ltmp6:
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp7:
# %bb.14:
.Ltmp8:
	leaq	-72(%rbp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp9:
# %bb.15:
.Ltmp10:
	leaq	-128(%rbp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp11:
# %bb.16:
.Ltmp12:
	leaq	-120(%rbp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp13:
# %bb.17:
.Ltmp14:
	leaq	-112(%rbp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp15:
# %bb.18:
.Ltmp16:
	leaq	-104(%rbp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
.Ltmp17:
# %bb.19:
	movq	-80(%rbp), %rdi
.Ltmp18:
	movq	-64(%rbp), %rsi                 # 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp19:
# %bb.20:
	movq	-72(%rbp), %rdi
.Ltmp20:
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp21:
# %bb.21:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -224(%rbp)                # 8-byte Spill
	movl	-56(%rbp), %r13d                # 4-byte Reload
	btsq	$32, %r13
	movl	-44(%rbp), %r14d                # 4-byte Reload
	btsq	$32, %r14
.Ltmp23:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp24:
# %bb.22:
	testl	%eax, %eax
	jne	.LBB4_24
# %bb.23:
	movq	-80(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	-128(%rbp), %rdx
.Ltmp25:
	callq	_Z25__device_stub__add_arraysPKiS0_Pi
.Ltmp26:
.LBB4_24:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -56(%rbp)                 # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -216(%rbp)                # 8-byte Spill
.Ltmp28:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp29:
# %bb.25:
	testl	%eax, %eax
	jne	.LBB4_27
# %bb.26:
	movq	-80(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	-120(%rbp), %rdx
.Ltmp30:
	callq	_Z25__device_stub__sub_arraysPKiS0_Pi
.Ltmp31:
.LBB4_27:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -96(%rbp)                 # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -208(%rbp)                # 8-byte Spill
.Ltmp33:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp34:
# %bb.28:
	testl	%eax, %eax
	jne	.LBB4_30
# %bb.29:
	movq	-80(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	-112(%rbp), %rdx
.Ltmp35:
	callq	_Z26__device_stub__mult_arraysPKiS0_Pi
.Ltmp36:
.LBB4_30:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -88(%rbp)                 # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -200(%rbp)                # 8-byte Spill
.Ltmp38:
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp39:
# %bb.31:
	testl	%eax, %eax
	jne	.LBB4_33
# %bb.32:
	movq	-80(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	-104(%rbp), %rdx
.Ltmp40:
	callq	_Z25__device_stub__mod_arraysPKiS0_Pi
.Ltmp41:
.LBB4_33:
	movq	%rbx, -144(%rbp)                # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, -192(%rbp)                # 8-byte Spill
	movq	-128(%rbp), %rsi
.Ltmp43:
	movq	-176(%rbp), %rdi                # 8-byte Reload
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp44:
# %bb.34:
	movq	-120(%rbp), %rsi
.Ltmp45:
	movq	-168(%rbp), %rdi                # 8-byte Reload
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp46:
# %bb.35:
	movq	-112(%rbp), %rsi
.Ltmp47:
	movq	-160(%rbp), %rdi                # 8-byte Reload
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp48:
# %bb.36:
	movq	-104(%rbp), %rsi
.Ltmp49:
	movq	-152(%rbp), %rdi                # 8-byte Reload
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp50:
# %bb.37:
	movq	-80(%rbp), %rdi
.Ltmp51:
	callq	hipFree
.Ltmp52:
# %bb.38:
	movq	-72(%rbp), %rdi
.Ltmp53:
	callq	hipFree
.Ltmp54:
# %bb.39:
	movq	-128(%rbp), %rdi
.Ltmp55:
	callq	hipFree
.Ltmp56:
# %bb.40:
	movq	-120(%rbp), %rdi
.Ltmp57:
	callq	hipFree
.Ltmp58:
# %bb.41:
	movq	-112(%rbp), %rdi
.Ltmp59:
	callq	hipFree
.Ltmp60:
# %bb.42:
	movq	-104(%rbp), %rdi
.Ltmp61:
	callq	hipFree
.Ltmp62:
# %bb.43:
	movq	-56(%rbp), %rbx                 # 8-byte Reload
	subq	-224(%rbp), %rbx                # 8-byte Folded Reload
	movq	-96(%rbp), %r14                 # 8-byte Reload
	subq	-216(%rbp), %r14                # 8-byte Folded Reload
	movq	-88(%rbp), %r13                 # 8-byte Reload
	subq	-208(%rbp), %r13                # 8-byte Folded Reload
	movq	-192(%rbp), %r12                # 8-byte Reload
	subq	-200(%rbp), %r12                # 8-byte Folded Reload
	movl	$.L.str.2, %edi
	movq	-144(%rbp), %rsi                # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	movl	-44(%rbp), %edx                 # 4-byte Reload
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.3, %edi
	movq	%rbx, -56(%rbp)                 # 8-byte Spill
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.4, %edi
	movq	%r14, -96(%rbp)                 # 8-byte Spill
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.5, %edi
	movq	%r13, -88(%rbp)                 # 8-byte Spill
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.6, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	printf
	cmpb	$0, -132(%rbp)                  # 1-byte Folded Reload
	je	.LBB4_120
# %bb.44:
.Ltmp64:
	leaq	-784(%rbp), %rdi
	leaq	-264(%rbp), %rsi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
.Ltmp65:
# %bb.45:
	leaq	-672(%rbp), %rdi
	callq	_ZNKSt12__basic_fileIcE7is_openEv
	testb	%al, %al
	movq	-144(%rbp), %rbx                # 8-byte Reload
	je	.LBB4_117
# %bb.46:
.Ltmp67:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.7, %esi
	movl	$27, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp68:
# %bb.47:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp69:
	leaq	-784(%rbp), %rdi
	movl	%ebx, %esi
	callq	_ZNSolsEi
.Ltmp70:
# %bb.48:
.Ltmp71:
	movq	%rax, %r14
	movl	$.L.str.8, %esi
	movl	$17, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp72:
# %bb.49:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit156
.Ltmp73:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 # 4-byte Reload
	callq	_ZNSolsEi
.Ltmp74:
# %bb.50:
.Ltmp75:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp76:
# %bb.51:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit157
.Ltmp77:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.10, %esi
	movl	$22, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp78:
# %bb.52:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit158
.Ltmp79:
	leaq	-784(%rbp), %rdi
	movq	-56(%rbp), %rsi                 # 8-byte Reload
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp80:
# %bb.53:                               # %_ZNSolsEl.exit
.Ltmp81:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp82:
# %bb.54:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit159
.Ltmp83:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.11, %esi
	movl	$22, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp84:
# %bb.55:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit160
.Ltmp85:
	leaq	-784(%rbp), %rdi
	movq	-96(%rbp), %rsi                 # 8-byte Reload
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp86:
# %bb.56:                               # %_ZNSolsEl.exit161
.Ltmp87:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp88:
# %bb.57:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit162
.Ltmp89:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.12, %esi
	movl	$23, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp90:
# %bb.58:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit163
.Ltmp91:
	leaq	-784(%rbp), %rdi
	movq	-88(%rbp), %rsi                 # 8-byte Reload
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp92:
# %bb.59:                               # %_ZNSolsEl.exit164
.Ltmp93:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp94:
# %bb.60:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit165
.Ltmp95:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.13, %esi
	movl	$22, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp96:
# %bb.61:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit166
.Ltmp97:
	leaq	-784(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ZNSo9_M_insertIlEERSoT_
.Ltmp98:
# %bb.62:                               # %_ZNSolsEl.exit167
.Ltmp99:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp100:
# %bb.63:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit168
.Ltmp101:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.14, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp102:
# %bb.64:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit169.preheader
	testl	%ebx, %ebx
	jle	.LBB4_74
# %bb.65:                               # %.lr.ph239.preheader
	xorl	%r13d, %r13d
	leaq	-784(%rbp), %r14
.LBB4_66:                               # %.lr.ph239
                                        # =>This Inner Loop Header: Depth=1
.Ltmp103:
	movl	$.L.str.15, %esi
	movl	$2, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp104:
# %bb.67:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit171
                                        #   in Loop: Header=BB4_66 Depth=1
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp105:
	movq	%r14, %rdi
	callq	_ZNSolsEi
.Ltmp106:
# %bb.68:                               #   in Loop: Header=BB4_66 Depth=1
.Ltmp107:
	movq	%rax, %r12
	movl	$.L.str.16, %esi
	movl	$6, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp108:
# %bb.69:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit172
                                        #   in Loop: Header=BB4_66 Depth=1
	movl	(%r15,%r13,4), %esi
.Ltmp109:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp110:
# %bb.70:                               #   in Loop: Header=BB4_66 Depth=1
.Ltmp111:
	movq	%rax, %r12
	movl	$.L.str.17, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp112:
# %bb.71:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit173
                                        #   in Loop: Header=BB4_66 Depth=1
	movq	-176(%rbp), %rax                # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp113:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp114:
# %bb.72:                               #   in Loop: Header=BB4_66 Depth=1
.Ltmp115:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp116:
# %bb.73:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit174
                                        #   in Loop: Header=BB4_66 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	jne	.LBB4_66
.LBB4_74:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit169._crit_edge
.Ltmp118:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.18, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp119:
# %bb.75:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit170.preheader
	testl	%ebx, %ebx
	jle	.LBB4_85
# %bb.76:                               # %.lr.ph241.preheader
	xorl	%r13d, %r13d
	leaq	-784(%rbp), %r14
.LBB4_77:                               # %.lr.ph241
                                        # =>This Inner Loop Header: Depth=1
.Ltmp120:
	movl	$.L.str.15, %esi
	movl	$2, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp121:
# %bb.78:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit176
                                        #   in Loop: Header=BB4_77 Depth=1
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp122:
	movq	%r14, %rdi
	callq	_ZNSolsEi
.Ltmp123:
# %bb.79:                               #   in Loop: Header=BB4_77 Depth=1
.Ltmp124:
	movq	%rax, %r12
	movl	$.L.str.19, %esi
	movl	$6, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp125:
# %bb.80:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit177
                                        #   in Loop: Header=BB4_77 Depth=1
	movl	(%r15,%r13,4), %esi
.Ltmp126:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp127:
# %bb.81:                               #   in Loop: Header=BB4_77 Depth=1
.Ltmp128:
	movq	%rax, %r12
	movl	$.L.str.17, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp129:
# %bb.82:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit178
                                        #   in Loop: Header=BB4_77 Depth=1
	movq	-168(%rbp), %rax                # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp130:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp131:
# %bb.83:                               #   in Loop: Header=BB4_77 Depth=1
.Ltmp132:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp133:
# %bb.84:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit179
                                        #   in Loop: Header=BB4_77 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	jne	.LBB4_77
.LBB4_85:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit170._crit_edge
.Ltmp135:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.20, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp136:
# %bb.86:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit175.preheader
	testl	%ebx, %ebx
	jle	.LBB4_96
# %bb.87:                               # %.lr.ph243.preheader
	xorl	%r13d, %r13d
	leaq	-784(%rbp), %r14
.LBB4_88:                               # %.lr.ph243
                                        # =>This Inner Loop Header: Depth=1
.Ltmp137:
	movl	$.L.str.15, %esi
	movl	$2, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp138:
# %bb.89:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit181
                                        #   in Loop: Header=BB4_88 Depth=1
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp139:
	movq	%r14, %rdi
	callq	_ZNSolsEi
.Ltmp140:
# %bb.90:                               #   in Loop: Header=BB4_88 Depth=1
.Ltmp141:
	movq	%rax, %r12
	movl	$.L.str.21, %esi
	movl	$6, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp142:
# %bb.91:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit182
                                        #   in Loop: Header=BB4_88 Depth=1
	movl	(%r15,%r13,4), %esi
.Ltmp143:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp144:
# %bb.92:                               #   in Loop: Header=BB4_88 Depth=1
.Ltmp145:
	movq	%rax, %r12
	movl	$.L.str.17, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp146:
# %bb.93:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit183
                                        #   in Loop: Header=BB4_88 Depth=1
	movq	-160(%rbp), %rax                # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp147:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp148:
# %bb.94:                               #   in Loop: Header=BB4_88 Depth=1
.Ltmp149:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp150:
# %bb.95:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit184
                                        #   in Loop: Header=BB4_88 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	jne	.LBB4_88
.LBB4_96:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit175._crit_edge
.Ltmp152:
	leaq	-784(%rbp), %rdi
	movl	$.L.str.20, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp153:
# %bb.97:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit180.preheader
	testl	%ebx, %ebx
	jle	.LBB4_118
# %bb.98:                               # %.lr.ph245.preheader
	xorl	%r13d, %r13d
	leaq	-784(%rbp), %r14
.LBB4_99:                               # %.lr.ph245
                                        # =>This Inner Loop Header: Depth=1
.Ltmp154:
	movl	$.L.str.15, %esi
	movl	$2, %edx
	movq	%r14, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp155:
# %bb.100:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit185
                                        #   in Loop: Header=BB4_99 Depth=1
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp156:
	movq	%r14, %rdi
	callq	_ZNSolsEi
.Ltmp157:
# %bb.101:                              #   in Loop: Header=BB4_99 Depth=1
.Ltmp158:
	movq	%rax, %r12
	movl	$.L.str.22, %esi
	movl	$6, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp159:
# %bb.102:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit186
                                        #   in Loop: Header=BB4_99 Depth=1
	movl	(%r15,%r13,4), %esi
.Ltmp160:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp161:
# %bb.103:                              #   in Loop: Header=BB4_99 Depth=1
.Ltmp162:
	movq	%rax, %r12
	movl	$.L.str.17, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp163:
# %bb.104:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit187
                                        #   in Loop: Header=BB4_99 Depth=1
	movq	-152(%rbp), %rax                # 8-byte Reload
	movl	(%rax,%r13,4), %esi
.Ltmp164:
	movq	%r12, %rdi
	callq	_ZNSolsEi
.Ltmp165:
# %bb.105:                              #   in Loop: Header=BB4_99 Depth=1
.Ltmp166:
	movl	$.L.str.9, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp167:
# %bb.106:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit188
                                        #   in Loop: Header=BB4_99 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	jne	.LBB4_99
	jmp	.LBB4_118
.LBB4_117:
	movl	$.Lstr.1, %edi
	callq	puts@PLT
.LBB4_118:                              # %.loopexit
.Ltmp169:
	leaq	-784(%rbp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp170:
# %bb.119:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	-776(%rbp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, -784(%rbp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	-536(%rbp), %rdi
	callq	_ZNSt8ios_baseD2Ev
.LBB4_120:
	movl	$10, %edi
	callq	putchar@PLT
	movq	-184(%rbp), %rsp                # 8-byte Reload
	movq	-264(%rbp), %rdi
	leaq	-248(%rbp), %rax
	cmpq	%rax, %rdi
	je	.LBB4_122
# %bb.121:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB4_122:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.LBB4_125:
	.cfi_def_cfa %rbp, 16
.Ltmp2:
	jmp	.LBB4_126
.LBB4_113:
.Ltmp66:
	jmp	.LBB4_126
.LBB4_111:
.Ltmp42:
	jmp	.LBB4_126
.LBB4_110:
.Ltmp37:
	jmp	.LBB4_126
.LBB4_109:
.Ltmp32:
	jmp	.LBB4_126
.LBB4_108:
.Ltmp27:
	jmp	.LBB4_126
.LBB4_123:
.Ltmp171:
	jmp	.LBB4_124
.LBB4_107:
.Ltmp22:
	jmp	.LBB4_126
.LBB4_112:
.Ltmp63:
	jmp	.LBB4_126
.LBB4_130:
.Ltmp5:
.LBB4_126:
	movq	%rax, %rbx
	jmp	.LBB4_127
.LBB4_116:
.Ltmp168:
	jmp	.LBB4_124
.LBB4_131:
.Ltmp151:
	jmp	.LBB4_124
.LBB4_115:
.Ltmp134:
	jmp	.LBB4_124
.LBB4_114:
.Ltmp117:
.LBB4_124:
	movq	%rax, %rbx
	leaq	-784(%rbp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
.LBB4_127:
	leaq	-248(%rbp), %rax
	movq	-264(%rbp), %rdi
	cmpq	%rax, %rdi
	je	.LBB4_129
# %bb.128:                              # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i189
	callq	_ZdlPv
.LBB4_129:                              # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit191
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	main, .Lfunc_end4-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table4:
.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 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp21-.Ltmp6                 #   Call between .Ltmp6 and .Ltmp21
	.uleb128 .Ltmp22-.Lfunc_begin0          #     jumps to .Ltmp22
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp23-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp26-.Ltmp23                #   Call between .Ltmp23 and .Ltmp26
	.uleb128 .Ltmp27-.Lfunc_begin0          #     jumps to .Ltmp27
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp28-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp31-.Ltmp28                #   Call between .Ltmp28 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin0          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp36-.Ltmp33                #   Call between .Ltmp33 and .Ltmp36
	.uleb128 .Ltmp37-.Lfunc_begin0          #     jumps to .Ltmp37
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp41-.Ltmp38                #   Call between .Ltmp38 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin0          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp62-.Ltmp43                #   Call between .Ltmp43 and .Ltmp62
	.uleb128 .Ltmp63-.Lfunc_begin0          #     jumps to .Ltmp63
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp64-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp65-.Ltmp64                #   Call between .Ltmp64 and .Ltmp65
	.uleb128 .Ltmp66-.Lfunc_begin0          #     jumps to .Ltmp66
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp102-.Ltmp67               #   Call between .Ltmp67 and .Ltmp102
	.uleb128 .Ltmp171-.Lfunc_begin0         #     jumps to .Ltmp171
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin0         # >> Call Site 11 <<
	.uleb128 .Ltmp116-.Ltmp103              #   Call between .Ltmp103 and .Ltmp116
	.uleb128 .Ltmp117-.Lfunc_begin0         #     jumps to .Ltmp117
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp118-.Lfunc_begin0         # >> Call Site 12 <<
	.uleb128 .Ltmp119-.Ltmp118              #   Call between .Ltmp118 and .Ltmp119
	.uleb128 .Ltmp171-.Lfunc_begin0         #     jumps to .Ltmp171
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp120-.Lfunc_begin0         # >> Call Site 13 <<
	.uleb128 .Ltmp133-.Ltmp120              #   Call between .Ltmp120 and .Ltmp133
	.uleb128 .Ltmp134-.Lfunc_begin0         #     jumps to .Ltmp134
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp135-.Lfunc_begin0         # >> Call Site 14 <<
	.uleb128 .Ltmp136-.Ltmp135              #   Call between .Ltmp135 and .Ltmp136
	.uleb128 .Ltmp171-.Lfunc_begin0         #     jumps to .Ltmp171
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp137-.Lfunc_begin0         # >> Call Site 15 <<
	.uleb128 .Ltmp150-.Ltmp137              #   Call between .Ltmp137 and .Ltmp150
	.uleb128 .Ltmp151-.Lfunc_begin0         #     jumps to .Ltmp151
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp152-.Lfunc_begin0         # >> Call Site 16 <<
	.uleb128 .Ltmp153-.Ltmp152              #   Call between .Ltmp152 and .Ltmp153
	.uleb128 .Ltmp171-.Lfunc_begin0         #     jumps to .Ltmp171
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp154-.Lfunc_begin0         # >> Call Site 17 <<
	.uleb128 .Ltmp167-.Ltmp154              #   Call between .Ltmp154 and .Ltmp167
	.uleb128 .Ltmp168-.Lfunc_begin0         #     jumps to .Ltmp168
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp169-.Lfunc_begin0         # >> Call Site 18 <<
	.uleb128 .Ltmp170-.Ltmp169              #   Call between .Ltmp169 and .Ltmp170
	.uleb128 .Ltmp171-.Lfunc_begin0         #     jumps to .Ltmp171
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp170-.Lfunc_begin0         # >> Call Site 19 <<
	.uleb128 .Lfunc_end4-.Ltmp170           #   Call between .Ltmp170 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE,"axG",@progbits,_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE,comdat
	.weak	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE # -- Begin function _ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE
	.p2align	1, 0x90
	.type	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE,@function
_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE: # @_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movslq	4(%rdx), %rbp
	movslq	(%rdx), %rdi
	subq	%rdi, %rbp
	cmpq	$2147483644, %rbp               # imm = 0x7FFFFFFC
	ja	.LBB5_4
# %bb.1:
	incq	%rbp
	movl	$2147483645, %eax               # imm = 0x7FFFFFFD
	xorl	%edx, %edx
	divl	%ebp
	movl	%eax, %ecx
	imulq	%rcx, %rbp
	movq	(%rbx), %rdx
	movabsq	$8589934597, %r8                # imm = 0x200000005
.LBB5_2:                                # =>This Inner Loop Header: Depth=1
	imulq	$16807, %rdx, %rsi              # imm = 0x41A7
	movq	%rsi, %rax
	mulq	%r8
	movq	%rsi, %rax
	subq	%rdx, %rax
	shrq	%rax
	addq	%rdx, %rax
	shrq	$30, %rax
	movq	%rax, %rdx
	shlq	$31, %rdx
	subq	%rdx, %rax
	leaq	(%rsi,%rax), %rdx
	addq	%rsi, %rax
	decq	%rax
	cmpq	%rbp, %rax
	jae	.LBB5_2
# %bb.3:
	movq	%rdx, (%rbx)
	xorl	%edx, %edx
	divq	%rcx
	jmp	.LBB5_9
.LBB5_4:
	cmpq	$2147483645, %rbp               # imm = 0x7FFFFFFD
	jne	.LBB5_5
# %bb.10:
	imulq	$16807, (%rbx), %rcx            # imm = 0x41A7
	movabsq	$8589934597, %rdx               # imm = 0x200000005
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	shrq	%rax
	addq	%rdx, %rax
	shrq	$30, %rax
	movq	%rax, %rdx
	shlq	$31, %rdx
	subq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	%rdx, (%rbx)
	addq	%rcx, %rax
	decq	%rax
	jmp	.LBB5_9
.LBB5_5:                                # %.preheader
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	movq	%rbp, %rax
	shrq	%rax
	movabsq	$-9223372028264841207, %rcx     # imm = 0x8000000200000009
	mulq	%rcx
	movq	%rdx, %r12
	shrq	$29, %r12
	leaq	8(%rsp), %r13
	movabsq	$8589934597, %r14               # imm = 0x200000005
.LBB5_6:                                # =>This Inner Loop Header: Depth=1
	movl	$0, 8(%rsp)
	movl	%r12d, 12(%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE
	movslq	%eax, %rsi
	leaq	(%rsi,%rsi), %rax
	shlq	$31, %rsi
	subq	%rax, %rsi
	imulq	$16807, (%rbx), %rcx            # imm = 0x41A7
	movq	%rcx, %rax
	mulq	%r14
	movq	%rcx, %rax
	subq	%rdx, %rax
	shrq	%rax
	addq	%rdx, %rax
	shrq	$30, %rax
	movq	%rax, %rdx
	shlq	$31, %rdx
	subq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, (%rbx)
	addq	%rsi, %rax
	decq	%rax
	cmpq	%rbp, %rax
	ja	.LBB5_6
# %bb.7:                                #   in Loop: Header=BB5_6 Depth=1
	cmpq	%rsi, %rax
	jb	.LBB5_6
# %bb.8:                                # %.loopexit.loopexit
	movq	16(%rsp), %rcx                  # 8-byte Reload
	movl	(%rcx), %edi
.LBB5_9:                                # %.loopexit
	addl	%edi, %eax
                                        # kill: def $eax killed $eax killed $rax
	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_end5:
	.size	_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE, .Lfunc_end5-_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_RKNS0_10param_typeE
	.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:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB6_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB6_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z10add_arraysPKiS0_Pi, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z10sub_arraysPKiS0_Pi, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11mult_arraysPKiS0_Pi, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z10mod_arraysPKiS0_Pi, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end6:
	.size	__hip_module_ctor, .Lfunc_end6-__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	.LBB7_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
.LBB7_2:
	retq
.Lfunc_end7:
	.size	__hip_module_dtor, .Lfunc_end7-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z10add_arraysPKiS0_Pi,@object  # @_Z10add_arraysPKiS0_Pi
	.section	.rodata,"a",@progbits
	.globl	_Z10add_arraysPKiS0_Pi
	.p2align	3, 0x0
_Z10add_arraysPKiS0_Pi:
	.quad	_Z25__device_stub__add_arraysPKiS0_Pi
	.size	_Z10add_arraysPKiS0_Pi, 8

	.type	_Z10sub_arraysPKiS0_Pi,@object  # @_Z10sub_arraysPKiS0_Pi
	.globl	_Z10sub_arraysPKiS0_Pi
	.p2align	3, 0x0
_Z10sub_arraysPKiS0_Pi:
	.quad	_Z25__device_stub__sub_arraysPKiS0_Pi
	.size	_Z10sub_arraysPKiS0_Pi, 8

	.type	_Z11mult_arraysPKiS0_Pi,@object # @_Z11mult_arraysPKiS0_Pi
	.globl	_Z11mult_arraysPKiS0_Pi
	.p2align	3, 0x0
_Z11mult_arraysPKiS0_Pi:
	.quad	_Z26__device_stub__mult_arraysPKiS0_Pi
	.size	_Z11mult_arraysPKiS0_Pi, 8

	.type	_Z10mod_arraysPKiS0_Pi,@object  # @_Z10mod_arraysPKiS0_Pi
	.globl	_Z10mod_arraysPKiS0_Pi
	.p2align	3, 0x0
_Z10mod_arraysPKiS0_Pi:
	.quad	_Z25__device_stub__mod_arraysPKiS0_Pi
	.size	_Z10mod_arraysPKiS0_Pi, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"The total number of threads will be rounded up to %d\n"
	.size	.L.str.1, 54

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Results with Thread Count: %d and Block Size: %d\n"
	.size	.L.str.2, 50

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Add Time nanoseconds:\t %ld\n"
	.size	.L.str.3, 28

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Sub Time nanoseconds:\t %ld\n"
	.size	.L.str.4, 28

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Mult Time nanoseconds:\t %ld\n"
	.size	.L.str.5, 29

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Mod Time nanoseconds:\t %ld\n"
	.size	.L.str.6, 28

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Results with Thread Count: "
	.size	.L.str.7, 28

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	" and Block Size: "
	.size	.L.str.8, 18

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"\n"
	.size	.L.str.9, 2

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Add Time nanoseconds:\t"
	.size	.L.str.10, 23

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Sub Time nanoseconds:\t"
	.size	.L.str.11, 23

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"Mult Time nanoseconds:\t"
	.size	.L.str.12, 24

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Mod Time nanoseconds:\t"
	.size	.L.str.13, 23

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"Add Results:\n"
	.size	.L.str.14, 14

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"A("
	.size	.L.str.15, 3

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	") + B("
	.size	.L.str.16, 7

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	") = "
	.size	.L.str.17, 5

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"\n\nSub Results:\n"
	.size	.L.str.18, 16

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	") - B("
	.size	.L.str.19, 7

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"\n\nMult Results:\n"
	.size	.L.str.20, 17

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	") * B("
	.size	.L.str.21, 7

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	") % B("
	.size	.L.str.22, 7

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z10add_arraysPKiS0_Pi"
	.size	.L__unnamed_1, 23

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z10sub_arraysPKiS0_Pi"
	.size	.L__unnamed_2, 23

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z11mult_arraysPKiS0_Pi"
	.size	.L__unnamed_3, 24

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z10mod_arraysPKiS0_Pi"
	.size	.L__unnamed_4, 23

	.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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Warning: Total thread count is not evenly divisible by the block size"
	.size	.Lstr, 70

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"FILE NOT OPEN?"
	.size	.Lstr.1, 15

	.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 _Z25__device_stub__add_arraysPKiS0_Pi
	.addrsig_sym _Z25__device_stub__sub_arraysPKiS0_Pi
	.addrsig_sym _Z26__device_stub__mult_arraysPKiS0_Pi
	.addrsig_sym _Z25__device_stub__mod_arraysPKiS0_Pi
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z10add_arraysPKiS0_Pi
	.addrsig_sym _Z10sub_arraysPKiS0_Pi
	.addrsig_sym _Z11mult_arraysPKiS0_Pi
	.addrsig_sym _Z10mod_arraysPKiS0_Pi
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z10add_arraysPKiS0_Pi  ; -- Begin function _Z10add_arraysPKiS0_Pi
	.globl	_Z10add_arraysPKiS0_Pi
	.p2align	8
	.type	_Z10add_arraysPKiS0_Pi,@function
_Z10add_arraysPKiS0_Pi:                 ; @_Z10add_arraysPKiS0_Pi
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x24
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v2, v3, v2
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10add_arraysPKiS0_Pi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 6
		.amdhsa_next_free_sgpr 16
		.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	_Z10add_arraysPKiS0_Pi, .Lfunc_end0-_Z10add_arraysPKiS0_Pi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 152
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; 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
	.protected	_Z10sub_arraysPKiS0_Pi  ; -- Begin function _Z10sub_arraysPKiS0_Pi
	.globl	_Z10sub_arraysPKiS0_Pi
	.p2align	8
	.type	_Z10sub_arraysPKiS0_Pi,@function
_Z10sub_arraysPKiS0_Pi:                 ; @_Z10sub_arraysPKiS0_Pi
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x24
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_sub_nc_u32_e32 v2, v2, v3
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10sub_arraysPKiS0_Pi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 6
		.amdhsa_next_free_sgpr 16
		.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_end1:
	.size	_Z10sub_arraysPKiS0_Pi, .Lfunc_end1-_Z10sub_arraysPKiS0_Pi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 152
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; 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
	.protected	_Z11mult_arraysPKiS0_Pi ; -- Begin function _Z11mult_arraysPKiS0_Pi
	.globl	_Z11mult_arraysPKiS0_Pi
	.p2align	8
	.type	_Z11mult_arraysPKiS0_Pi,@function
_Z11mult_arraysPKiS0_Pi:                ; @_Z11mult_arraysPKiS0_Pi
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x24
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_mul_lo_u32 v2, v3, v2
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11mult_arraysPKiS0_Pi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 6
		.amdhsa_next_free_sgpr 16
		.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_end2:
	.size	_Z11mult_arraysPKiS0_Pi, .Lfunc_end2-_Z11mult_arraysPKiS0_Pi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 156
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; 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
	.protected	_Z10mod_arraysPKiS0_Pi  ; -- Begin function _Z10mod_arraysPKiS0_Pi
	.globl	_Z10mod_arraysPKiS0_Pi
	.p2align	8
	.type	_Z10mod_arraysPKiS0_Pi,@function
_Z10mod_arraysPKiS0_Pi:                 ; @_Z10mod_arraysPKiS0_Pi
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x24
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v2, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	global_load_b32 v4, v[2:3], off
	v_add_co_u32 v2, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(1)
	v_ashrrev_i32_e32 v3, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, v4, v3
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v6, 31, v2
	v_xor_b32_e32 v3, v4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v2, v2, v6
	v_cvt_f32_u32_e32 v4, v3
	v_sub_nc_u32_e32 v5, 0, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_xor_b32_e32 v2, v2, v6
	v_rcp_iflag_f32_e32 v4, v4
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v4, 0x4f7ffffe, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_u32_f32_e32 v4, v4
	v_mul_lo_u32 v5, v5, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v5, v4, v5
	v_add_nc_u32_e32 v4, v4, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v4, v2, v4
	v_mul_lo_u32 v4, v4, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v2, v4
	v_sub_nc_u32_e32 v4, v2, v3
	v_cmp_ge_u32_e32 vcc_lo, v2, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v4, vcc_lo
	v_sub_nc_u32_e32 v4, v2, v3
	v_cmp_ge_u32_e32 vcc_lo, v2, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v2, v2, v4, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	v_xor_b32_e32 v2, v2, v6
	s_delay_alu instid0(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v2, v6
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10mod_arraysPKiS0_Pi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 7
		.amdhsa_next_free_sgpr 16
		.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_end3:
	.size	_Z10mod_arraysPKiS0_Pi, .Lfunc_end3-_Z10mod_arraysPKiS0_Pi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 316
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; 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
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z10add_arraysPKiS0_Pi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10add_arraysPKiS0_Pi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z10sub_arraysPKiS0_Pi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10sub_arraysPKiS0_Pi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11mult_arraysPKiS0_Pi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11mult_arraysPKiS0_Pi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z10mod_arraysPKiS0_Pi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10mod_arraysPKiS0_Pi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
