//////////////////////////////////////////////////////////////////////////
////This is the code implementation for Hanon finger exercise -- memory
////Dartmouth COSC89.25/189.03, GPU Programming and High-Performance Computing
//////////////////////////////////////////////////////////////////////////

#include <cstdio>
#include <vector>
#include <iostream>
#include <fstream>
using namespace std;

namespace name
{
std::string team = "Slim_Shaders";
std::string author_1 = "Andrw_Yang";
std::string author_2 = "Matthew_Kenney";
};

ofstream out;

//////////////////////////////////////////////////////////////////////////
////Hanon finger exercise for memory manipulations
////In this exercise you will practice the use of a set of CUDA memory APIs,
////  including cudaMalloc, cudaFree, cudaMemcpy, cudaMemcpyFrom(To)Symbol, and cudaGetSymbolAddress

const int a_host[8] = {1, 2, 3, 4, 5, 6, 7, 8};								////a_host is an array on host
__device__ const int b_dev[8] = {101, 102, 103, 104, 105, 106, 107, 108};	////b_dev is an array on device

////Hanon Exercise 12: practice cudaMalloc, cudaMemcpy, and cudaFree
////Expected output: copy a_host from host to device, add each of its elements by 1, store the results in result_host
////Hint:
////0) allocate an array on device with the same size as a_host;
////1) copy a_host from host to device;
////2) write a kernel function to carry out the incremental operation on device;
////3) copy the calculated results on device to result_host (on host)
////4) free the array on device

/*TODO: Your kernel function starts*/
__global__ void Hanon_kernel(int* to_increment)
{
    int array_id = blockDim.x * blockIdx.x + threadIdx.x;
    to_increment[array_id] = to_increment[array_id] + 1;
}
/*TODO: Your kernel function ends*/

__host__ void Hanon_Exercise_12()
{

    int result_host[8] = {0};
    int *a_dev = 0;

    /*TODO: Your implementation starts*/
    cudaMalloc((void**)&a_dev, 8 * sizeof(int));
    cudaMemcpy(a_dev, a_host, 8 * sizeof(int), cudaMemcpyHostToDevice);
    Hanon_kernel <<< 1, 8, 8 * sizeof(int)>>>(a_dev);
    cudaMemcpy(result_host, a_dev, 8 * sizeof(int), cudaMemcpyDeviceToHost);
    cudaFree(a_dev);
    /*TODO: Your implementation ends*/

    cout << "Hanon exercise 12:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 12:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}


////Hanon Exercise 13: practice cudaMemcpyFromSymbol
////Expected output: result_host={101,102,103,104,105,106,107,108}
////Process: copy b_dev (the static CUDA device array declared in line 35) to result_host by using cudaMemcpyFromSymbol.
////Hint: b_dev is in static (stack) memory, so you cannot use cudaMemcpy to manipulate it!
__host__ void Hanon_Exercise_13()
{
    vector<int> result_host(8, 0);

    /*TODO: Your implementation starts*/
    cudaMemcpyFromSymbol((void*)&result_host[0], b_dev, 8 * sizeof(int));
    /*TODO: Your implementation ends*/

    cout << "Hanon exercise 13:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 13:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 14: practice manipulating dynamic and static memories together
////Expected output: result_host={101+1,102+2,103+3,104+4,105+5,106+6,107+7,108+8}
////Process: calculate a_host+b_dev (element-wise sum) on device and store the results in result_host
////Hint:
////1) transferring a_host from host to device;
////2) write a kernel function to carry out the element-wise sum for arrays a_host and b_dev
////3) transfer the results from device to result_host (on host)

/*TODO: Your kernel function starts*/
__global__ void Hanon_kernel_14(int* to_increment)
{
    int array_id = blockDim.x * blockIdx.x + threadIdx.x;
    to_increment[array_id] = to_increment[array_id] + b_dev[array_id];
}
/*TODO: Your kernel function ends*/

__host__ void Hanon_Exercise_14()
{
    int result_host[8] = {0};

    int *a_dev = 0;
    /*TODO: Your implementation starts*/
    cudaMalloc((void**)&a_dev, 8 * sizeof(int));
    cudaMemcpy(a_dev, a_host, 8 * sizeof(int), cudaMemcpyHostToDevice);
    Hanon_kernel_14 <<< 1, 8, 8 * sizeof(int)>>>(a_dev);
    cudaMemcpy(result_host, a_dev, 8 * sizeof(int), cudaMemcpyDeviceToHost);
    cudaFree(a_dev);
    /*TODO: Your host function implementation ends*/

    cout << "Hanon exercise 14:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 14:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 15: practice using shared memory
////Expected output: result_host={1*0+101,2*2+102,3*4+103,4*6+104,5*8+105,6*10+106,7*12+107,8*14+108}
////Process: calculate a_host*s+b_dev and store results in result_host. Here s is an array initialized in shared memory of the kernel function (line 111-113)
////Hint: You need to modify the arguments and the implementation of the function Calculate_Array_With_Shared() to pass in your array(s) and perform calculations

__global__ void Calculate_Array_With_Shared(int* array_from_host)	/*TODO: modify the arguments of the kernel function*/
{
    __shared__ int s[8];
    s[threadIdx.x] = 2 * threadIdx.x;
    __syncthreads();

    /*TODO: Your kernel implementation starts*/
    s[threadIdx.x] = s[threadIdx.x] * array_from_host[threadIdx.x] + b_dev[threadIdx.x];
    __syncthreads();

    array_from_host[threadIdx.x] = s[threadIdx.x];


    /*TODO: Your kernel implementation ends*/
}

__host__ void Hanon_Exercise_15()
{
    /*TODO: Your host function implementation starts*/
    int result_host[8] = {0};
    int *a_dev = 0;
    cudaMalloc((void**)&a_dev, 8 * sizeof(int));
    cudaMemcpy(a_dev, a_host, 8 * sizeof(int), cudaMemcpyHostToDevice);

    Calculate_Array_With_Shared <<< 1, 8, 8 * sizeof(int)>>>(a_dev);
    cudaMemcpy(result_host, a_dev, 8 * sizeof(int), cudaMemcpyDeviceToHost);
    cudaFree(a_dev);
    /*TODO: Your host function implementation ends*/


    cout << "Hanon exercise 15:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 15:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 16: practice cudaGetSymbolAddress
////Expected output: result_host={101*16+1,102*16+1,103*16+1,...,108*16+1}
////Process: apply the following kernel function Manipulate_Array() onto b_dev and store the results in result_host
////*WITHOUT* modifying the implementation in Manipulate_Array() (call it as a blackbox)
////Hint: b_dev is a static array on GPU, you need to get its dynamic pointer by calling cudaGetSymbolAddress, and then send this pointer into the kernel function to update its values

////Note: You are not allowed to modify the implementation in this function!
__global__ void Manipulate_Array(int* array)
{
    array[threadIdx.x] *= 16;
    array[threadIdx.x] += 1;
}

__host__ void Hanon_Exercise_16()
{
    int result_host[8] = {0};

    /*TODO: Your host function implementation starts*/
    void* devPtr = 0;
    cudaGetSymbolAddress(&devPtr, b_dev); // get address of b_dev constant
    Manipulate_Array <<< 1, 8, 8 * sizeof(int)>>>((int*)devPtr); // Call Kernel function
    cudaMemcpyFromSymbol(result_host, b_dev, sizeof(int) * 8); // Load the result into result_host
    /*TODO: Your host function implementation ends*/


    cout << "Hanon exercise 16:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 16:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 17: practice using shared memory with multiple array types
////Expected output: array_int={208,206,204,202}, array_float={8.,6.,4.,2.},
//// i.e., reverse the order of the int array, multiply each element by 2, and copy its values to the float array (by type conversion),
//// and reverse the order of the float array, multiply each element by 2, and copy its values to the int array (by type conversion)
//// You need to implement this process by using a piece of shared memory holding both two arrays
////Hint: read the sample code we went through in class on Thursday, and mimic its steps as
////1. Initialize two array pointers with the types of int and float to different addresses of the shared memory
////2. Copy the values from array_int and array_float to the proper elements in shared memory
////3. synchronize threads
////4. Copy the values with the proper order and rescaling factor from each array in shared memory to global memory (array_int and array_float)

__global__ void Reverse_And_Multiply_Two_Arrays_With_Extern_Shared(int* array_int, const size_t array_int_size, float* array_float, const size_t array_float_size)
{
    extern __shared__ int shared_mem[];
    int* ai = (int*)&shared_mem[0];
    float* af = (float*)&shared_mem[array_int_size];

    /*Your implementation*/
    __syncthreads();

    // swap the types as we pass into shared memory
    ai[threadIdx.x] = (int) array_float[array_float_size - 1 - threadIdx.x] * 2;
    af[threadIdx.x] = (float) array_int[array_int_size - 1 - threadIdx.x] * 2.0;
    __syncthreads();

    // Copy manipulated values back to global memory
    array_int[threadIdx.x] = ai[threadIdx.x];
    array_float[threadIdx.x] = af[threadIdx.x];

}

__host__ void Hanon_Exercise_17()
{
    int array_int_host[4] = {1, 2, 3, 4};
    float array_float_host[4] = {101., 102., 103., 104.};

    int* array_int_dev = 0;
    float* array_float_dev = 0;
    cudaMalloc((void**)&array_int_dev, 4 * sizeof(int));
    cudaMalloc((void**)&array_float_dev, 4 * sizeof(float));
    cudaMemcpy(array_int_dev, array_int_host, 4 * sizeof(int), cudaMemcpyHostToDevice);
    cudaMemcpy(array_float_dev, array_float_host, 4 * sizeof(float), cudaMemcpyHostToDevice);

    /*Your implementation: comment back the following code with the correct specification for shared memory size (by replacing the * with a proper number) */
    Reverse_And_Multiply_Two_Arrays_With_Extern_Shared <<< 1, 4, 4 * sizeof(int) +4 * sizeof(float) >>> (array_int_dev, 4, array_float_dev, 4);
	
	// Copy results back to host memory
    cudaMemcpy(array_int_host, array_int_dev, 4 * sizeof(int), cudaMemcpyDeviceToHost);
    cudaMemcpy(array_float_host, array_float_dev, 4 * sizeof(float), cudaMemcpyDeviceToHost);

    cout << "Hanon exercise 17:\n";
    for(int i = 0; i < 4; i++)cout << array_int_host[i] << ", ";
    cout << endl;
    for(int i = 0; i < 4; i++)cout << array_float_host[i] << ", ";
    cout << endl;

    out << "Hanon exercise 17:\n";
    for(int i = 0; i < 4; i++)out << array_int_host[i] << ", ";
    out << endl;
    for(int i = 0; i < 4; i++)out << array_float_host[i] << ", ";
    out << endl;
}

////Congratulations! You have finished all your Hanon exercises today!
//////////////////////////////////////////////////////////////////////////

void Hanon_Exercise_Test_Memory()
{
    Hanon_Exercise_12();
    Hanon_Exercise_13();
    Hanon_Exercise_14();
    Hanon_Exercise_15();
    Hanon_Exercise_16();
    Hanon_Exercise_17();
}

int main()
{
    if(name::team == "Team_X")
        {
            printf("\nPlease specify your team name and team member names in name::team and name::author to start.\n");
            return 0;
        }

    std::string file_name = name::team + "_exercise_memory.dat";
    out.open(file_name);

    if(out.fail())
        {
            printf("\ncannot open file %s to record results\n", file_name.c_str());
            return 0;
        }

    Hanon_Exercise_Test_Memory();
    return 0;
}

	.file	"tmpxft_002bdf5a_00000000-6_hanon_exercise_memory.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4139:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4139:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"basic_string::append"
	.text
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0:
.LFB4949:
	.cfi_startproc
	movabsq	$4611686018427387903, %rax
	subq	8(%rdi), %rax
	cmpq	%rdx, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L3:
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm@PLT
	.cfi_endproc
.LFE4949:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4951:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4951:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.type	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0, @function
_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0:
.LFB4952:
	.cfi_startproc
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	testq	%rsi, %rsi
	jne	.L10
	movq	(%rdi), %rax
	movl	$1, %esi
	addq	-24(%rax), %rbx
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate@PLT
.L10:
	.cfi_restore_state
	movq	%rsi, %rdi
	movq	%rsi, 8(%rsp)
	call	strlen@PLT
	movq	8(%rsp), %rsi
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	movq	%rax, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	.cfi_endproc
.LFE4952:
	.size	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0, .-_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	.globl	_Z32__device_stub__Z12Hanon_kernelPiPi
	.type	_Z32__device_stub__Z12Hanon_kernelPiPi, @function
_Z32__device_stub__Z12Hanon_kernelPiPi:
.LFB4161:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z12Hanon_kernelPi(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L12:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4161:
	.size	_Z32__device_stub__Z12Hanon_kernelPiPi, .-_Z32__device_stub__Z12Hanon_kernelPiPi
	.globl	_Z12Hanon_kernelPi
	.type	_Z12Hanon_kernelPi, @function
_Z12Hanon_kernelPi:
.LFB4162:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z12Hanon_kernelPiPi
	.cfi_endproc
.LFE4162:
	.size	_Z12Hanon_kernelPi, .-_Z12Hanon_kernelPi
	.section	.rodata.str1.1
.LC1:
	.string	"Hanon exercise 12:\n"
.LC2:
	.string	", "
	.text
	.globl	_Z17Hanon_Exercise_12v
	.type	_Z17Hanon_Exercise_12v, @function
_Z17Hanon_Exercise_12v:
.LFB4129:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$8, %ecx
	movl	$32, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdi
	leaq	40(%rsp), %r12
	rep stosl
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	leaq	_ZL6a_host(%rip), %rsi
	call	cudaMemcpy@PLT
	movl	$536870913, %edx
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rdi
	salq	$3, %rdx
	movl	$32, %r8d
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdx, 28(%rsp)
	movl	$1, 36(%rsp)
	movq	%rdi, 16(%rsp)
	movl	$1, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L18
	movq	8(%rsp), %rdi
	call	_Z32__device_stub__Z12Hanon_kernelPiPi
.L18:
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	xorl	%ebx, %ebx
	movl	$32, %edx
	leaq	.LC1(%rip), %r14
	leaq	_ZSt4cout(%rip), %rbp
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	leaq	.LC2(%rip), %r13
	call	cudaFree@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L19:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L19
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%ebx, %ebx
	leaq	out(%rip), %rbp
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L20:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L20
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	addq	$80, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.LFE4129:
	.size	_Z17Hanon_Exercise_12v, .-_Z17Hanon_Exercise_12v
	.globl	_Z35__device_stub__Z15Hanon_kernel_14PiPi
	.type	_Z35__device_stub__Z15Hanon_kernel_14PiPi, @function
_Z35__device_stub__Z15Hanon_kernel_14PiPi:
.LFB4163:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L25
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z15Hanon_kernel_14Pi(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L25:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4163:
	.size	_Z35__device_stub__Z15Hanon_kernel_14PiPi, .-_Z35__device_stub__Z15Hanon_kernel_14PiPi
	.globl	_Z15Hanon_kernel_14Pi
	.type	_Z15Hanon_kernel_14Pi, @function
_Z15Hanon_kernel_14Pi:
.LFB4164:
	.cfi_startproc
	endbr64
	jmp	_Z35__device_stub__Z15Hanon_kernel_14PiPi
	.cfi_endproc
.LFE4164:
	.size	_Z15Hanon_kernel_14Pi, .-_Z15Hanon_kernel_14Pi
	.section	.rodata.str1.1
.LC3:
	.string	"Hanon exercise 14:\n"
	.text
	.globl	_Z17Hanon_Exercise_14v
	.type	_Z17Hanon_Exercise_14v, @function
_Z17Hanon_Exercise_14v:
.LFB4131:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$8, %ecx
	movl	$32, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdi
	leaq	40(%rsp), %r12
	rep stosl
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	leaq	_ZL6a_host(%rip), %rsi
	call	cudaMemcpy@PLT
	movl	$536870913, %edx
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rdi
	salq	$3, %rdx
	movl	$32, %r8d
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdx, 28(%rsp)
	movl	$1, 36(%rsp)
	movq	%rdi, 16(%rsp)
	movl	$1, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L31
	movq	8(%rsp), %rdi
	call	_Z35__device_stub__Z15Hanon_kernel_14PiPi
.L31:
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	xorl	%ebx, %ebx
	movl	$32, %edx
	leaq	.LC3(%rip), %r14
	leaq	_ZSt4cout(%rip), %rbp
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	leaq	.LC2(%rip), %r13
	call	cudaFree@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L32:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L32
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%ebx, %ebx
	leaq	out(%rip), %rbp
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L33:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L33
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	addq	$80, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.LFE4131:
	.size	_Z17Hanon_Exercise_14v, .-_Z17Hanon_Exercise_14v
	.globl	_Z47__device_stub__Z27Calculate_Array_With_SharedPiPi
	.type	_Z47__device_stub__Z27Calculate_Array_With_SharedPiPi, @function
_Z47__device_stub__Z27Calculate_Array_With_SharedPiPi:
.LFB4165:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L38
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z27Calculate_Array_With_SharedPi(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L38:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4165:
	.size	_Z47__device_stub__Z27Calculate_Array_With_SharedPiPi, .-_Z47__device_stub__Z27Calculate_Array_With_SharedPiPi
	.globl	_Z27Calculate_Array_With_SharedPi
	.type	_Z27Calculate_Array_With_SharedPi, @function
_Z27Calculate_Array_With_SharedPi:
.LFB4166:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z27Calculate_Array_With_SharedPiPi
	.cfi_endproc
.LFE4166:
	.size	_Z27Calculate_Array_With_SharedPi, .-_Z27Calculate_Array_With_SharedPi
	.section	.rodata.str1.1
.LC4:
	.string	"Hanon exercise 15:\n"
	.text
	.globl	_Z17Hanon_Exercise_15v
	.type	_Z17Hanon_Exercise_15v, @function
_Z17Hanon_Exercise_15v:
.LFB4132:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$8, %ecx
	movl	$32, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdi
	leaq	40(%rsp), %r12
	rep stosl
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	leaq	_ZL6a_host(%rip), %rsi
	call	cudaMemcpy@PLT
	movl	$536870913, %edx
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rdi
	salq	$3, %rdx
	movl	$32, %r8d
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdx, 28(%rsp)
	movl	$1, 36(%rsp)
	movq	%rdi, 16(%rsp)
	movl	$1, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L44
	movq	8(%rsp), %rdi
	call	_Z47__device_stub__Z27Calculate_Array_With_SharedPiPi
.L44:
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	xorl	%ebx, %ebx
	movl	$32, %edx
	leaq	.LC4(%rip), %r14
	leaq	_ZSt4cout(%rip), %rbp
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	leaq	.LC2(%rip), %r13
	call	cudaFree@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L45:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L45
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%ebx, %ebx
	leaq	out(%rip), %rbp
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L46:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L46
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	addq	$80, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.LFE4132:
	.size	_Z17Hanon_Exercise_15v, .-_Z17Hanon_Exercise_15v
	.globl	_Z36__device_stub__Z16Manipulate_ArrayPiPi
	.type	_Z36__device_stub__Z16Manipulate_ArrayPiPi, @function
_Z36__device_stub__Z16Manipulate_ArrayPiPi:
.LFB4167:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L51
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z16Manipulate_ArrayPi(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L51:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4167:
	.size	_Z36__device_stub__Z16Manipulate_ArrayPiPi, .-_Z36__device_stub__Z16Manipulate_ArrayPiPi
	.globl	_Z16Manipulate_ArrayPi
	.type	_Z16Manipulate_ArrayPi, @function
_Z16Manipulate_ArrayPi:
.LFB4168:
	.cfi_startproc
	endbr64
	jmp	_Z36__device_stub__Z16Manipulate_ArrayPiPi
	.cfi_endproc
.LFE4168:
	.size	_Z16Manipulate_ArrayPi, .-_Z16Manipulate_ArrayPi
	.section	.rodata.str1.1
.LC5:
	.string	"Hanon exercise 16:\n"
	.text
	.globl	_Z17Hanon_Exercise_16v
	.type	_Z17Hanon_Exercise_16v, @function
_Z17Hanon_Exercise_16v:
.LFB4133:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$8, %ecx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	_ZL5b_dev(%rip), %rbx
	movq	%rbx, %rsi
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdi
	leaq	40(%rsp), %r12
	rep stosl
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	movq	%rax, 8(%rsp)
	call	cudaGetSymbolAddress@PLT
	movl	$536870913, %edx
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rdi
	salq	$3, %rdx
	movl	$32, %r8d
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdx, 28(%rsp)
	movl	$1, 36(%rsp)
	movq	%rdi, 16(%rsp)
	movl	$1, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L57
	movq	8(%rsp), %rdi
	call	_Z36__device_stub__Z16Manipulate_ArrayPiPi
.L57:
	movq	%rbx, %rsi
	movl	$2, %r8d
	xorl	%ecx, %ecx
	movl	$32, %edx
	movq	%r12, %rdi
	leaq	.LC5(%rip), %r14
	leaq	_ZSt4cout(%rip), %rbp
	xorl	%ebx, %ebx
	call	cudaMemcpyFromSymbol@PLT
	movq	%r14, %rsi
	movq	%rbp, %rdi
	leaq	.LC2(%rip), %r13
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L58:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L58
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	xorl	%ebx, %ebx
	leaq	out(%rip), %rbp
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L59:
	movl	(%r12,%rbx,4), %esi
	movq	%rbp, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$8, %rbx
	jne	.L59
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	addq	$80, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.LFE4133:
	.size	_Z17Hanon_Exercise_16v, .-_Z17Hanon_Exercise_16v
	.globl	_Z74__device_stub__Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfmPimPfm
	.type	_Z74__device_stub__Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfmPimPfm, @function
_Z74__device_stub__Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfmPimPfm:
.LFB4169:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L64
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L64:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4169:
	.size	_Z74__device_stub__Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfmPimPfm, .-_Z74__device_stub__Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfmPimPfm
	.globl	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.type	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm, @function
_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm:
.LFB4170:
	.cfi_startproc
	endbr64
	jmp	_Z74__device_stub__Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfmPimPfm
	.cfi_endproc
.LFE4170:
	.size	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm, .-_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.section	.rodata.str1.1
.LC6:
	.string	"Hanon exercise 17:\n"
	.text
	.globl	_Z17Hanon_Exercise_17v
	.type	_Z17Hanon_Exercise_17v, @function
_Z17Hanon_Exercise_17v:
.LFB4134:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$16, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movabsq	$8589934593, %rax
	movq	%rsp, %rdi
	leaq	40(%rsp), %r14
	leaq	56(%rsp), %r13
	movq	%rax, 40(%rsp)
	movabsq	$17179869187, %rax
	movq	%rax, 48(%rsp)
	movabsq	$4813222102872752128, %rax
	movq	%rax, 56(%rsp)
	movabsq	$4814348002779856896, %rax
	movq	%rax, 64(%rsp)
	xorl	%eax, %eax
	movq	%rax, (%rsp)
	movq	%rax, 8(%rsp)
	call	cudaMalloc@PLT
	leaq	8(%rsp), %rdi
	movl	$16, %esi
	call	cudaMalloc@PLT
	movq	(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	movl	$16, %edx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movq	%r13, %rsi
	movl	$16, %edx
	call	cudaMemcpy@PLT
	movl	$1073741825, %edx
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rdi
	salq	$2, %rdx
	movl	$32, %r8d
	movl	$1, %ecx
	movl	$1, %esi
	movq	%rdx, 28(%rsp)
	movl	$1, 36(%rsp)
	movq	%rdi, 16(%rsp)
	movl	$1, 24(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L70
	movq	8(%rsp), %rdx
	movq	(%rsp), %rdi
	movl	$4, %ecx
	movl	$4, %esi
	call	_Z74__device_stub__Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfmPimPfm
.L70:
	movq	(%rsp), %rsi
	movl	$2, %ecx
	movl	$16, %edx
	xorl	%ebp, %ebp
	movq	%r14, %rdi
	leaq	.LC6(%rip), %r15
	leaq	_ZSt4cout(%rip), %rbx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%r13, %rdi
	movl	$16, %edx
	leaq	.LC2(%rip), %r12
	call	cudaMemcpy@PLT
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L71:
	movl	(%r14,%rbp,4), %esi
	movq	%rbx, %rdi
	incq	%rbp
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$4, %rbp
	jne	.L71
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ebp, %ebp
	call	_ZNSolsEPFRSoS_E.isra.0
.L72:
	movq	%rbx, %rdi
	cvtss2sd	0(%r13,%rbp,4), %xmm0
	incq	%rbp
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$4, %rbp
	jne	.L72
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ebp, %ebp
	leaq	out(%rip), %rbx
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
.L73:
	movl	(%r14,%rbp,4), %esi
	movq	%rbx, %rdi
	incq	%rbp
	call	_ZNSolsEi@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$4, %rbp
	jne	.L73
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ebp, %ebp
	call	_ZNSolsEPFRSoS_E.isra.0
.L74:
	movq	%rbx, %rdi
	cvtss2sd	0(%r13,%rbp,4), %xmm0
	incq	%rbp
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r12, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	cmpq	$4, %rbp
	jne	.L74
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4134:
	.size	_Z17Hanon_Exercise_17v, .-_Z17Hanon_Exercise_17v
	.section	.rodata.str1.1
.LC7:
	.string	"_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm"
.LC8:
	.string	"_Z16Manipulate_ArrayPi"
.LC9:
	.string	"_Z27Calculate_Array_With_SharedPi"
.LC10:
	.string	"_Z15Hanon_kernel_14Pi"
.LC11:
	.string	"_Z12Hanon_kernelPi"
.LC12:
	.string	"b_dev"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4172:
	.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	.LC7(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm(%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	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16Manipulate_ArrayPi(%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	.LC9(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z27Calculate_Array_With_SharedPi(%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	.LC10(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z15Hanon_kernel_14Pi(%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	.LC11(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z12Hanon_kernelPi(%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	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC12(%rip), %rdx
	movl	$32, %r9d
	leaq	_ZL5b_dev(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.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
.LFE4172:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.str1.1,"aMS",@progbits,1
.LC13:
	.string	"basic_string: construction from null is not valid"
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_,comdat
	.align 2
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_:
.LFB4489:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L84
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L89
	leaq	.LC13(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L84:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L86
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L86:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L87
.L89:
	call	__stack_chk_fail@PLT
.L87:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4489:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	.set	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.section	.text._ZNSt12_Vector_baseIiSaIiEED2Ev,"axG",@progbits,_ZNSt12_Vector_baseIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIiSaIiEED2Ev
	.type	_ZNSt12_Vector_baseIiSaIiEED2Ev, @function
_ZNSt12_Vector_baseIiSaIiEED2Ev:
.LFB4694:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L90
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L90:
	ret
	.cfi_endproc
.LFE4694:
	.size	_ZNSt12_Vector_baseIiSaIiEED2Ev, .-_ZNSt12_Vector_baseIiSaIiEED2Ev
	.weak	_ZNSt12_Vector_baseIiSaIiEED1Ev
	.set	_ZNSt12_Vector_baseIiSaIiEED1Ev,_ZNSt12_Vector_baseIiSaIiEED2Ev
	.section	.rodata.str1.1
.LC14:
	.string	"Hanon exercise 13:\n"
	.text
	.globl	_Z17Hanon_Exercise_13v
	.type	_Z17Hanon_Exercise_13v, @function
_Z17Hanon_Exercise_13v:
.LFB4130:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4130
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$32, %edi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
.LEHB0:
	call	_Znwm@PLT
.LEHE0:
	leaq	32(%rax), %rdx
	movq	%rax, (%rsp)
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rdx, 16(%rsp)
.L93:
	xorl	%ecx, %ecx
	movl	%ecx, (%rbx,%rax)
	addq	$4, %rax
	cmpq	$32, %rax
	jne	.L93
	movq	%rdx, 8(%rsp)
	movl	$2, %r8d
	xorl	%ecx, %ecx
	movq	%rbx, %rdi
	movl	$32, %edx
	leaq	_ZL5b_dev(%rip), %rsi
.LEHB1:
	call	cudaMemcpyFromSymbol@PLT
	leaq	.LC14(%rip), %r14
	leaq	_ZSt4cout(%rip), %r12
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r13
.L94:
	movl	(%rbx,%rbp,4), %esi
	movq	%r12, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	incq	%rbp
	cmpq	$8, %rbp
	jne	.L94
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	out(%rip), %r12
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	xorl	%ebp, %ebp
.L95:
	movl	(%rbx,%rbp,4), %esi
	movq	%r12, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	movq	%r13, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.isra.0
	incq	%rbp
	cmpq	$8, %rbp
	jne	.L95
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE1:
	movq	%rsp, %rdi
	call	_ZNSt12_Vector_baseIiSaIiEED2Ev
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L98
	jmp	.L103
.L99:
	endbr64
	movq	%rax, %rbx
.L96:
	movq	%rsp, %rdi
	call	_ZNSt12_Vector_baseIiSaIiEED2Ev
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L103
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L103:
	call	__stack_chk_fail@PLT
.L98:
	addq	$32, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	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
.LFE4130:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4130:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4130-.LLSDACSB4130
.LLSDACSB4130:
	.uleb128 .LEHB0-.LFB4130
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4130
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L99-.LFB4130
	.uleb128 0
	.uleb128 .LEHB2-.LFB4130
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE4130:
	.text
	.size	_Z17Hanon_Exercise_13v, .-_Z17Hanon_Exercise_13v
	.globl	_Z26Hanon_Exercise_Test_Memoryv
	.type	_Z26Hanon_Exercise_Test_Memoryv, @function
_Z26Hanon_Exercise_Test_Memoryv:
.LFB4135:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	call	_Z17Hanon_Exercise_12v
	call	_Z17Hanon_Exercise_13v
	call	_Z17Hanon_Exercise_14v
	call	_Z17Hanon_Exercise_15v
	call	_Z17Hanon_Exercise_16v
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	_Z17Hanon_Exercise_17v
	.cfi_endproc
.LFE4135:
	.size	_Z26Hanon_Exercise_Test_Memoryv, .-_Z26Hanon_Exercise_Test_Memoryv
	.section	.rodata.str1.1
.LC15:
	.string	"Team_X"
.LC16:
	.string	"\nPlease specify your team name and team member names in name::team and name::author to start.\n"
.LC17:
	.string	"_exercise_memory.dat"
.LC18:
	.string	"\ncannot open file %s to record results\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4136:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4136
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	8+_ZN4name4teamB5cxx11E(%rip), %rbp
	movq	_ZN4name4teamB5cxx11E(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	cmpq	$6, %rbp
	jne	.L108
	movl	$6, %edx
	leaq	.LC15(%rip), %rsi
	movq	%r12, %rdi
	call	memcmp@PLT
	testl	%eax, %eax
	je	.L109
.L108:
	leaq	24(%rsp), %rax
	leaq	8(%rsp), %rbx
	movb	$0, 24(%rsp)
	movq	%rax, 8(%rsp)
	leaq	20(%rbp), %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movq	%rax, 16(%rsp)
.LEHB3:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm@PLT
.LEHE3:
	jmp	.L130
.L109:
	leaq	.LC16(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
.LEHB4:
	call	__printf_chk@PLT
.LEHE4:
	jmp	.L111
.L130:
	movq	%rbp, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
.LEHB5:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
	movl	$20, %edx
	leaq	.LC17(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm.isra.0
.LEHE5:
	jmp	.L131
.L123:
	endbr64
	jmp	.L129
.L131:
	movq	8(%rsp), %rsi
	movl	$16, %edx
	leaq	8+out(%rip), %rdi
.LEHB6:
	call	_ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movq	out(%rip), %rdx
	leaq	out(%rip), %rdi
	addq	-24(%rdx), %rdi
	testq	%rax, %rax
	jne	.L115
	movl	$4, %esi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate@PLT
	jmp	.L116
.L115:
	xorl	%esi, %esi
	call	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT
.L116:
	testb	$5, 280+out(%rip)
	je	.L117
	movq	8(%rsp), %rdx
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L118
.L117:
	call	_Z26Hanon_Exercise_Test_Memoryv
.LEHE6:
.L118:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.L111:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L121
	jmp	.L126
.L122:
	endbr64
.L129:
	movq	%rax, %rbp
.L119:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L126
	movq	%rbp, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
.L126:
	call	__stack_chk_fail@PLT
.L121:
	addq	$48, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4136:
	.section	.gcc_except_table
.LLSDA4136:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4136-.LLSDACSB4136
.LLSDACSB4136:
	.uleb128 .LEHB3-.LFB4136
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L123-.LFB4136
	.uleb128 0
	.uleb128 .LEHB4-.LFB4136
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB5-.LFB4136
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L123-.LFB4136
	.uleb128 0
	.uleb128 .LEHB6-.LFB4136
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L122-.LFB4136
	.uleb128 0
	.uleb128 .LEHB7-.LFB4136
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE4136:
	.section	.text.startup
	.size	main, .-main
	.section	.rodata.str1.1
.LC19:
	.string	"Slim_Shaders"
.LC20:
	.string	"Andrw_Yang"
.LC21:
	.string	"Matthew_Kenney"
	.section	.text.startup
	.type	_GLOBAL__sub_I__ZN4name4teamB5cxx11E, @function
_GLOBAL__sub_I__ZN4name4teamB5cxx11E:
.LFB4941:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	_ZN4name4teamB5cxx11E(%rip), %r12
	leaq	.LC19(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	__dso_handle(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	7(%rsp), %rbp
	movq	%rbp, %rdx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	leaq	_ZN4name8author_1B5cxx11E(%rip), %r12
	call	__cxa_atexit@PLT
	movq	%rbp, %rdx
	leaq	.LC20(%rip), %rsi
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r12, %rsi
	call	__cxa_atexit@PLT
	movq	%rbp, %rdx
	leaq	_ZN4name8author_2B5cxx11E(%rip), %rbp
	leaq	.LC21(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
	movq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GOTPCREL(%rip), %rdi
	movq	%rbp, %rsi
	movq	%rbx, %rdx
	leaq	out(%rip), %rbp
	call	__cxa_atexit@PLT
	movq	%rbp, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L133
	call	__stack_chk_fail@PLT
.L133:
	movq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@GOTPCREL(%rip), %rdi
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit@PLT
	.cfi_endproc
.LFE4941:
	.size	_GLOBAL__sub_I__ZN4name4teamB5cxx11E, .-_GLOBAL__sub_I__ZN4name4teamB5cxx11E
	.section	.init_array
	.align 8
	.quad	_GLOBAL__sub_I__ZN4name4teamB5cxx11E
	.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
	.section	.rodata
	.align 32
	.type	_ZL5b_dev, @object
	.size	_ZL5b_dev, 32
_ZL5b_dev:
	.long	101
	.long	102
	.long	103
	.long	104
	.long	105
	.long	106
	.long	107
	.long	108
	.align 32
	.type	_ZL6a_host, @object
	.size	_ZL6a_host, 32
_ZL6a_host:
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	7
	.long	8
	.globl	out
	.bss
	.align 32
	.type	out, @object
	.size	out, 512
out:
	.zero	512
	.globl	_ZN4name8author_2B5cxx11E
	.align 32
	.type	_ZN4name8author_2B5cxx11E, @object
	.size	_ZN4name8author_2B5cxx11E, 32
_ZN4name8author_2B5cxx11E:
	.zero	32
	.globl	_ZN4name8author_1B5cxx11E
	.align 32
	.type	_ZN4name8author_1B5cxx11E, @object
	.size	_ZN4name8author_1B5cxx11E, 32
_ZN4name8author_1B5cxx11E:
	.zero	32
	.globl	_ZN4name4teamB5cxx11E
	.align 32
	.type	_ZN4name4teamB5cxx11E, @object
	.size	_ZN4name4teamB5cxx11E, 32
_ZN4name4teamB5cxx11E:
	.zero	32
	.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
	.hidden	__dso_handle
	.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:

//////////////////////////////////////////////////////////////////////////
////This is the code implementation for Hanon finger exercise -- memory
////Dartmouth COSC89.25/189.03, GPU Programming and High-Performance Computing
//////////////////////////////////////////////////////////////////////////


#include <hip/hip_runtime.h>
#include <cstdio>
#include <vector>
#include <iostream>
#include <fstream>
using namespace std;

namespace name
{
std::string team = "Slim_Shaders";
std::string author_1 = "Andrw_Yang";
std::string author_2 = "Matthew_Kenney";
};

ofstream out;

//////////////////////////////////////////////////////////////////////////
////Hanon finger exercise for memory manipulations
////In this exercise you will practice the use of a set of CUDA memory APIs,
////  including cudaMalloc, cudaFree, cudaMemcpy, cudaMemcpyFrom(To)Symbol, and cudaGetSymbolAddress

const int a_host[8] = {1, 2, 3, 4, 5, 6, 7, 8};								////a_host is an array on host
__device__ const int b_dev[8] = {101, 102, 103, 104, 105, 106, 107, 108};	////b_dev is an array on device

////Hanon Exercise 12: practice cudaMalloc, cudaMemcpy, and cudaFree
////Expected output: copy a_host from host to device, add each of its elements by 1, store the results in result_host
////Hint:
////0) allocate an array on device with the same size as a_host;
////1) copy a_host from host to device;
////2) write a kernel function to carry out the incremental operation on device;
////3) copy the calculated results on device to result_host (on host)
////4) free the array on device

/*TODO: Your kernel function starts*/
__global__ void Hanon_kernel(int* to_increment)
{
    int array_id = blockDim.x * blockIdx.x + threadIdx.x;
    to_increment[array_id] = to_increment[array_id] + 1;
}
/*TODO: Your kernel function ends*/

__host__ void Hanon_Exercise_12()
{

    int result_host[8] = {0};
    int *a_dev = 0;

    /*TODO: Your implementation starts*/
    hipMalloc((void**)&a_dev, 8 * sizeof(int));
    hipMemcpy(a_dev, a_host, 8 * sizeof(int), hipMemcpyHostToDevice);
    Hanon_kernel <<< 1, 8, 8 * sizeof(int)>>>(a_dev);
    hipMemcpy(result_host, a_dev, 8 * sizeof(int), hipMemcpyDeviceToHost);
    hipFree(a_dev);
    /*TODO: Your implementation ends*/

    cout << "Hanon exercise 12:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 12:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}


////Hanon Exercise 13: practice cudaMemcpyFromSymbol
////Expected output: result_host={101,102,103,104,105,106,107,108}
////Process: copy b_dev (the static CUDA device array declared in line 35) to result_host by using cudaMemcpyFromSymbol.
////Hint: b_dev is in static (stack) memory, so you cannot use cudaMemcpy to manipulate it!
__host__ void Hanon_Exercise_13()
{
    vector<int> result_host(8, 0);

    /*TODO: Your implementation starts*/
    hipMemcpyFromSymbol((void*)&result_host[0], HIP_SYMBOL(b_dev), 8 * sizeof(int));
    /*TODO: Your implementation ends*/

    cout << "Hanon exercise 13:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 13:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 14: practice manipulating dynamic and static memories together
////Expected output: result_host={101+1,102+2,103+3,104+4,105+5,106+6,107+7,108+8}
////Process: calculate a_host+b_dev (element-wise sum) on device and store the results in result_host
////Hint:
////1) transferring a_host from host to device;
////2) write a kernel function to carry out the element-wise sum for arrays a_host and b_dev
////3) transfer the results from device to result_host (on host)

/*TODO: Your kernel function starts*/
__global__ void Hanon_kernel_14(int* to_increment)
{
    int array_id = blockDim.x * blockIdx.x + threadIdx.x;
    to_increment[array_id] = to_increment[array_id] + b_dev[array_id];
}
/*TODO: Your kernel function ends*/

__host__ void Hanon_Exercise_14()
{
    int result_host[8] = {0};

    int *a_dev = 0;
    /*TODO: Your implementation starts*/
    hipMalloc((void**)&a_dev, 8 * sizeof(int));
    hipMemcpy(a_dev, a_host, 8 * sizeof(int), hipMemcpyHostToDevice);
    Hanon_kernel_14 <<< 1, 8, 8 * sizeof(int)>>>(a_dev);
    hipMemcpy(result_host, a_dev, 8 * sizeof(int), hipMemcpyDeviceToHost);
    hipFree(a_dev);
    /*TODO: Your host function implementation ends*/

    cout << "Hanon exercise 14:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 14:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 15: practice using shared memory
////Expected output: result_host={1*0+101,2*2+102,3*4+103,4*6+104,5*8+105,6*10+106,7*12+107,8*14+108}
////Process: calculate a_host*s+b_dev and store results in result_host. Here s is an array initialized in shared memory of the kernel function (line 111-113)
////Hint: You need to modify the arguments and the implementation of the function Calculate_Array_With_Shared() to pass in your array(s) and perform calculations

__global__ void Calculate_Array_With_Shared(int* array_from_host)	/*TODO: modify the arguments of the kernel function*/
{
    __shared__ int s[8];
    s[threadIdx.x] = 2 * threadIdx.x;
    __syncthreads();

    /*TODO: Your kernel implementation starts*/
    s[threadIdx.x] = s[threadIdx.x] * array_from_host[threadIdx.x] + b_dev[threadIdx.x];
    __syncthreads();

    array_from_host[threadIdx.x] = s[threadIdx.x];


    /*TODO: Your kernel implementation ends*/
}

__host__ void Hanon_Exercise_15()
{
    /*TODO: Your host function implementation starts*/
    int result_host[8] = {0};
    int *a_dev = 0;
    hipMalloc((void**)&a_dev, 8 * sizeof(int));
    hipMemcpy(a_dev, a_host, 8 * sizeof(int), hipMemcpyHostToDevice);

    Calculate_Array_With_Shared <<< 1, 8, 8 * sizeof(int)>>>(a_dev);
    hipMemcpy(result_host, a_dev, 8 * sizeof(int), hipMemcpyDeviceToHost);
    hipFree(a_dev);
    /*TODO: Your host function implementation ends*/


    cout << "Hanon exercise 15:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 15:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 16: practice cudaGetSymbolAddress
////Expected output: result_host={101*16+1,102*16+1,103*16+1,...,108*16+1}
////Process: apply the following kernel function Manipulate_Array() onto b_dev and store the results in result_host
////*WITHOUT* modifying the implementation in Manipulate_Array() (call it as a blackbox)
////Hint: b_dev is a static array on GPU, you need to get its dynamic pointer by calling cudaGetSymbolAddress, and then send this pointer into the kernel function to update its values

////Note: You are not allowed to modify the implementation in this function!
__global__ void Manipulate_Array(int* array)
{
    array[threadIdx.x] *= 16;
    array[threadIdx.x] += 1;
}

__host__ void Hanon_Exercise_16()
{
    int result_host[8] = {0};

    /*TODO: Your host function implementation starts*/
    void* devPtr = 0;
    hipGetSymbolAddress(&devPtr, HIP_SYMBOL(b_dev)); // get address of b_dev constant
    Manipulate_Array <<< 1, 8, 8 * sizeof(int)>>>((int*)devPtr); // Call Kernel function
    hipMemcpyFromSymbol(result_host, HIP_SYMBOL(b_dev), sizeof(int) * 8); // Load the result into result_host
    /*TODO: Your host function implementation ends*/


    cout << "Hanon exercise 16:\n";
    for(int i = 0; i < 8; i++)cout << result_host[i] << ", ";
    cout << endl;
    out << "Hanon exercise 16:\n";
    for(int i = 0; i < 8; i++)out << result_host[i] << ", ";
    out << endl;
}

////Hanon Exercise 17: practice using shared memory with multiple array types
////Expected output: array_int={208,206,204,202}, array_float={8.,6.,4.,2.},
//// i.e., reverse the order of the int array, multiply each element by 2, and copy its values to the float array (by type conversion),
//// and reverse the order of the float array, multiply each element by 2, and copy its values to the int array (by type conversion)
//// You need to implement this process by using a piece of shared memory holding both two arrays
////Hint: read the sample code we went through in class on Thursday, and mimic its steps as
////1. Initialize two array pointers with the types of int and float to different addresses of the shared memory
////2. Copy the values from array_int and array_float to the proper elements in shared memory
////3. synchronize threads
////4. Copy the values with the proper order and rescaling factor from each array in shared memory to global memory (array_int and array_float)

__global__ void Reverse_And_Multiply_Two_Arrays_With_Extern_Shared(int* array_int, const size_t array_int_size, float* array_float, const size_t array_float_size)
{
    extern __shared__ int shared_mem[];
    int* ai = (int*)&shared_mem[0];
    float* af = (float*)&shared_mem[array_int_size];

    /*Your implementation*/
    __syncthreads();

    // swap the types as we pass into shared memory
    ai[threadIdx.x] = (int) array_float[array_float_size - 1 - threadIdx.x] * 2;
    af[threadIdx.x] = (float) array_int[array_int_size - 1 - threadIdx.x] * 2.0;
    __syncthreads();

    // Copy manipulated values back to global memory
    array_int[threadIdx.x] = ai[threadIdx.x];
    array_float[threadIdx.x] = af[threadIdx.x];

}

__host__ void Hanon_Exercise_17()
{
    int array_int_host[4] = {1, 2, 3, 4};
    float array_float_host[4] = {101., 102., 103., 104.};

    int* array_int_dev = 0;
    float* array_float_dev = 0;
    hipMalloc((void**)&array_int_dev, 4 * sizeof(int));
    hipMalloc((void**)&array_float_dev, 4 * sizeof(float));
    hipMemcpy(array_int_dev, array_int_host, 4 * sizeof(int), hipMemcpyHostToDevice);
    hipMemcpy(array_float_dev, array_float_host, 4 * sizeof(float), hipMemcpyHostToDevice);

    /*Your implementation: comment back the following code with the correct specification for shared memory size (by replacing the * with a proper number) */
    Reverse_And_Multiply_Two_Arrays_With_Extern_Shared <<< 1, 4, 4 * sizeof(int) +4 * sizeof(float) >>> (array_int_dev, 4, array_float_dev, 4);
	
	// Copy results back to host memory
    hipMemcpy(array_int_host, array_int_dev, 4 * sizeof(int), hipMemcpyDeviceToHost);
    hipMemcpy(array_float_host, array_float_dev, 4 * sizeof(float), hipMemcpyDeviceToHost);

    cout << "Hanon exercise 17:\n";
    for(int i = 0; i < 4; i++)cout << array_int_host[i] << ", ";
    cout << endl;
    for(int i = 0; i < 4; i++)cout << array_float_host[i] << ", ";
    cout << endl;

    out << "Hanon exercise 17:\n";
    for(int i = 0; i < 4; i++)out << array_int_host[i] << ", ";
    out << endl;
    for(int i = 0; i < 4; i++)out << array_float_host[i] << ", ";
    out << endl;
}

////Congratulations! You have finished all your Hanon exercises today!
//////////////////////////////////////////////////////////////////////////

void Hanon_Exercise_Test_Memory()
{
    Hanon_Exercise_12();
    Hanon_Exercise_13();
    Hanon_Exercise_14();
    Hanon_Exercise_15();
    Hanon_Exercise_16();
    Hanon_Exercise_17();
}

int main()
{
    if(name::team == "Team_X")
        {
            printf("\nPlease specify your team name and team member names in name::team and name::author to start.\n");
            return 0;
        }

    std::string file_name = name::team + "_exercise_memory.dat";
    out.open(file_name);

    if(out.fail())
        {
            printf("\ncannot open file %s to record results\n", file_name.c_str());
            return 0;
        }

    Hanon_Exercise_Test_Memory();
    return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z27__device_stub__Hanon_kernelPi # -- Begin function _Z27__device_stub__Hanon_kernelPi
	.type	_Z27__device_stub__Hanon_kernelPi,@function
_Z27__device_stub__Hanon_kernelPi:      # @_Z27__device_stub__Hanon_kernelPi
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z12Hanon_kernelPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	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	_Z27__device_stub__Hanon_kernelPi, .Lfunc_end0-_Z27__device_stub__Hanon_kernelPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z17Hanon_Exercise_12v          # -- Begin function _Z17Hanon_Exercise_12v
	.type	_Z17Hanon_Exercise_12v,@function
_Z17Hanon_Exercise_12v:                 # @_Z17Hanon_Exercise_12v
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -16
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rbx
	movq	$0, (%rbx)
	movl	$32, %esi
	movq	%rbx, %rdi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movl	$_ZL6a_host, %esi
	movl	$32, %edx
	movl	$1, %ecx
	callq	hipMemcpy
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	leaq	7(%rdi), %rdx
	movl	$32, %r8d
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_2
# %bb.1:
	movq	8(%rsp), %rdi
	callq	_Z27__device_stub__Hanon_kernelPi
.LBB1_2:
	movq	8(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$32, %edx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rdi
	callq	hipFree
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB1_3:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB1_3
# %bb.4:
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$out, %edi
	movl	$.L.str.6, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB1_5:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$out, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB1_5
# %bb.6:
	movq	out(%rip), %rax
	movl	$out, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$out, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z17Hanon_Exercise_12v, .Lfunc_end1-_Z17Hanon_Exercise_12v
	.cfi_endproc
                                        # -- End function
	.globl	_Z17Hanon_Exercise_13v          # -- Begin function _Z17Hanon_Exercise_13v
	.type	_Z17Hanon_Exercise_13v,@function
_Z17Hanon_Exercise_13v:                 # @_Z17Hanon_Exercise_13v
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %.noexc
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movl	$32, %edi
	callq	_Znwm
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
.Ltmp0:
	movl	$_ZL5b_dev, %esi
	movl	$32, %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
.Ltmp1:
# %bb.1:                                # %_Z19hipMemcpyFromSymbolIA8_iE10hipError_tPvRKT_mm13hipMemcpyKind.exit
.Ltmp2:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp3:
# %bb.2:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit.preheader.preheader
	xorl	%r14d, %r14d
.LBB2_3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit.preheader
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,4), %esi
.Ltmp4:
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
.Ltmp5:
# %bb.4:                                #   in Loop: Header=BB2_3 Depth=1
.Ltmp6:
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp7:
# %bb.5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit17
                                        #   in Loop: Header=BB2_3 Depth=1
	incq	%r14
	cmpq	$8, %r14
	jne	.LBB2_3
# %bb.6:
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %edi
	addq	-24(%rax), %rdi
.Ltmp9:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp10:
# %bb.7:                                # %.noexc27
.Ltmp11:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp12:
# %bb.8:                                # %.noexc28
.Ltmp13:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp14:
# %bb.9:                                # %_ZNSolsEPFRSoS_E.exit
.Ltmp15:
	movl	$out, %edi
	movl	$.L.str.8, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp16:
# %bb.10:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit19.preheader.preheader
	xorl	%r14d, %r14d
.LBB2_11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit19.preheader
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,4), %esi
.Ltmp17:
	movl	$out, %edi
	callq	_ZNSolsEi
.Ltmp18:
# %bb.12:                               #   in Loop: Header=BB2_11 Depth=1
.Ltmp19:
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp20:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit23
                                        #   in Loop: Header=BB2_11 Depth=1
	incq	%r14
	cmpq	$8, %r14
	jne	.LBB2_11
# %bb.14:
	movq	out(%rip), %rax
	movl	$out, %edi
	addq	-24(%rax), %rdi
.Ltmp22:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp23:
# %bb.15:                               # %.noexc30
.Ltmp24:
	movsbl	%al, %esi
	movl	$out, %edi
	callq	_ZNSo3putEc
.Ltmp25:
# %bb.16:                               # %.noexc31
.Ltmp26:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp27:
# %bb.17:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit
	movq	%rbx, %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB2_18:
	.cfi_def_cfa_offset 32
.Ltmp28:
	jmp	.LBB2_19
.LBB2_21:
.Ltmp21:
	jmp	.LBB2_19
.LBB2_20:
.Ltmp8:
.LBB2_19:                               # %_ZNSt6vectorIiSaIiEED2Ev.exit25
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ZdlPv
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_Z17Hanon_Exercise_13v, .Lfunc_end2-_Z17Hanon_Exercise_13v
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp28-.Lfunc_begin0          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp4-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp7-.Ltmp4                  #   Call between .Ltmp4 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp16-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp16
	.uleb128 .Ltmp28-.Lfunc_begin0          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp17-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp20-.Ltmp17                #   Call between .Ltmp17 and .Ltmp20
	.uleb128 .Ltmp21-.Lfunc_begin0          #     jumps to .Ltmp21
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp27-.Ltmp22                #   Call between .Ltmp22 and .Ltmp27
	.uleb128 .Ltmp28-.Lfunc_begin0          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Lfunc_end2-.Ltmp27            #   Call between .Ltmp27 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z30__device_stub__Hanon_kernel_14Pi # -- Begin function _Z30__device_stub__Hanon_kernel_14Pi
	.type	_Z30__device_stub__Hanon_kernel_14Pi,@function
_Z30__device_stub__Hanon_kernel_14Pi:   # @_Z30__device_stub__Hanon_kernel_14Pi
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z15Hanon_kernel_14Pi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	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	_Z30__device_stub__Hanon_kernel_14Pi, .Lfunc_end3-_Z30__device_stub__Hanon_kernel_14Pi
	.cfi_endproc
                                        # -- End function
	.globl	_Z17Hanon_Exercise_14v          # -- Begin function _Z17Hanon_Exercise_14v
	.type	_Z17Hanon_Exercise_14v,@function
_Z17Hanon_Exercise_14v:                 # @_Z17Hanon_Exercise_14v
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -16
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rbx
	movq	$0, (%rbx)
	movl	$32, %esi
	movq	%rbx, %rdi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movl	$_ZL6a_host, %esi
	movl	$32, %edx
	movl	$1, %ecx
	callq	hipMemcpy
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	leaq	7(%rdi), %rdx
	movl	$32, %r8d
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB4_2
# %bb.1:
	movq	8(%rsp), %rdi
	callq	_Z30__device_stub__Hanon_kernel_14Pi
.LBB4_2:
	movq	8(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$32, %edx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rdi
	callq	hipFree
	movl	$_ZSt4cout, %edi
	movl	$.L.str.9, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB4_3:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB4_3
# %bb.4:
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$out, %edi
	movl	$.L.str.9, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB4_5:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$out, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB4_5
# %bb.6:
	movq	out(%rip), %rax
	movl	$out, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$out, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z17Hanon_Exercise_14v, .Lfunc_end4-_Z17Hanon_Exercise_14v
	.cfi_endproc
                                        # -- End function
	.globl	_Z42__device_stub__Calculate_Array_With_SharedPi # -- Begin function _Z42__device_stub__Calculate_Array_With_SharedPi
	.type	_Z42__device_stub__Calculate_Array_With_SharedPi,@function
_Z42__device_stub__Calculate_Array_With_SharedPi: # @_Z42__device_stub__Calculate_Array_With_SharedPi
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z27Calculate_Array_With_SharedPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	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_end5:
	.size	_Z42__device_stub__Calculate_Array_With_SharedPi, .Lfunc_end5-_Z42__device_stub__Calculate_Array_With_SharedPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z17Hanon_Exercise_15v          # -- Begin function _Z17Hanon_Exercise_15v
	.type	_Z17Hanon_Exercise_15v,@function
_Z17Hanon_Exercise_15v:                 # @_Z17Hanon_Exercise_15v
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -16
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rbx
	movq	$0, (%rbx)
	movl	$32, %esi
	movq	%rbx, %rdi
	callq	hipMalloc
	movq	(%rbx), %rdi
	movl	$_ZL6a_host, %esi
	movl	$32, %edx
	movl	$1, %ecx
	callq	hipMemcpy
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	leaq	7(%rdi), %rdx
	movl	$32, %r8d
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_2
# %bb.1:
	movq	8(%rsp), %rdi
	callq	_Z42__device_stub__Calculate_Array_With_SharedPi
.LBB6_2:
	movq	8(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$32, %edx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rdi
	callq	hipFree
	movl	$_ZSt4cout, %edi
	movl	$.L.str.10, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB6_3:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB6_3
# %bb.4:
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$out, %edi
	movl	$.L.str.10, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB6_5:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$out, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB6_5
# %bb.6:
	movq	out(%rip), %rax
	movl	$out, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$out, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z17Hanon_Exercise_15v, .Lfunc_end6-_Z17Hanon_Exercise_15v
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__Manipulate_ArrayPi # -- Begin function _Z31__device_stub__Manipulate_ArrayPi
	.type	_Z31__device_stub__Manipulate_ArrayPi,@function
_Z31__device_stub__Manipulate_ArrayPi:  # @_Z31__device_stub__Manipulate_ArrayPi
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16Manipulate_ArrayPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	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_end7:
	.size	_Z31__device_stub__Manipulate_ArrayPi, .Lfunc_end7-_Z31__device_stub__Manipulate_ArrayPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z17Hanon_Exercise_16v          # -- Begin function _Z17Hanon_Exercise_16v
	.type	_Z17Hanon_Exercise_16v,@function
_Z17Hanon_Exercise_16v:                 # @_Z17Hanon_Exercise_16v
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -16
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rdi
	movq	$0, (%rdi)
	movl	$_ZL5b_dev, %esi
	callq	hipGetSymbolAddress
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	leaq	7(%rdi), %rdx
	movl	$32, %r8d
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_2
# %bb.1:
	movq	8(%rsp), %rdi
	callq	_Z31__device_stub__Manipulate_ArrayPi
.LBB8_2:
	xorl	%ebx, %ebx
	leaq	16(%rsp), %rdi
	movl	$_ZL5b_dev, %esi
	movl	$32, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	hipMemcpyFromSymbol
	movl	$_ZSt4cout, %edi
	movl	$.L.str.11, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.LBB8_3:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB8_3
# %bb.4:
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$out, %edi
	movl	$.L.str.11, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB8_5:                                # =>This Inner Loop Header: Depth=1
	movl	16(%rsp,%rbx,4), %esi
	movl	$out, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$8, %rbx
	jne	.LBB8_5
# %bb.6:
	movq	out(%rip), %rax
	movl	$out, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$out, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z17Hanon_Exercise_16v, .Lfunc_end8-_Z17Hanon_Exercise_16v
	.cfi_endproc
                                        # -- End function
	.globl	_Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm # -- Begin function _Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.type	_Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm,@function
_Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm: # @_Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.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), %rdi
	movq	%rsi, (%rdi)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm, %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_end9:
	.size	_Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm, .Lfunc_end9-_Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z17Hanon_Exercise_17v
.LCPI10_0:
	.long	1                               # 0x1
	.long	2                               # 0x2
	.long	3                               # 0x3
	.long	4                               # 0x4
.LCPI10_1:
	.long	0x42ca0000                      # float 101
	.long	0x42cc0000                      # float 102
	.long	0x42ce0000                      # float 103
	.long	0x42d00000                      # float 104
	.text
	.globl	_Z17Hanon_Exercise_17v
	.type	_Z17Hanon_Exercise_17v,@function
_Z17Hanon_Exercise_17v:                 # @_Z17Hanon_Exercise_17v
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$56, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movaps	.LCPI10_0(%rip), %xmm0          # xmm0 = [1,2,3,4]
	leaq	32(%rsp), %r14
	movaps	%xmm0, (%r14)
	movaps	.LCPI10_1(%rip), %xmm0          # xmm0 = [1.01E+2,1.02E+2,1.03E+2,1.04E+2]
	leaq	16(%rsp), %rbx
	movaps	%xmm0, (%rbx)
	xorl	%eax, %eax
	leaq	8(%rsp), %r15
	movq	%rax, (%r15)
	movq	%rsp, %r12
	movq	%rax, (%r12)
	movl	$16, %esi
	movq	%r15, %rdi
	callq	hipMalloc
	movl	$16, %esi
	movq	%r12, %rdi
	callq	hipMalloc
	movq	(%r15), %rdi
	movl	$16, %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	(%r12), %rdi
	movl	$16, %edx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movabsq	$4294967297, %rdi               # imm = 0x100000001
	leaq	3(%rdi), %rdx
	movl	$32, %r8d
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB10_2
# %bb.1:
	movq	8(%rsp), %rdi
	movq	(%rsp), %rdx
	movl	$4, %esi
	movl	$4, %ecx
	callq	_Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
.LBB10_2:
	movq	8(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movl	$16, %edx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	$16, %edx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	$_ZSt4cout, %edi
	movl	$.L.str.12, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB10_3:                               # =>This Inner Loop Header: Depth=1
	movl	32(%rsp,%rbx,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$4, %rbx
	jne	.LBB10_3
# %bb.4:
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%ebx, %ebx
.LBB10_5:                               # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	16(%rsp,%rbx,4), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$4, %rbx
	jne	.LBB10_5
# %bb.6:
	movq	_ZSt4cout(%rip), %rax
	movl	$_ZSt4cout, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$out, %edi
	movl	$.L.str.12, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorl	%ebx, %ebx
.LBB10_7:                               # =>This Inner Loop Header: Depth=1
	movl	32(%rsp,%rbx,4), %esi
	movl	$out, %edi
	callq	_ZNSolsEi
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$4, %rbx
	jne	.LBB10_7
# %bb.8:
	movq	out(%rip), %rax
	movl	$out, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$out, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%ebx, %ebx
.LBB10_9:                               # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	16(%rsp,%rbx,4), %xmm0
	movl	$out, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%rbx
	cmpq	$4, %rbx
	jne	.LBB10_9
# %bb.10:
	movq	out(%rip), %rax
	movl	$out, %ecx
	movq	-24(%rax), %rdi
	addq	%rcx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$out, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	addq	$56, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z17Hanon_Exercise_17v, .Lfunc_end10-_Z17Hanon_Exercise_17v
	.cfi_endproc
                                        # -- End function
	.globl	_Z26Hanon_Exercise_Test_Memoryv # -- Begin function _Z26Hanon_Exercise_Test_Memoryv
	.type	_Z26Hanon_Exercise_Test_Memoryv,@function
_Z26Hanon_Exercise_Test_Memoryv:        # @_Z26Hanon_Exercise_Test_Memoryv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	_Z17Hanon_Exercise_12v
	callq	_Z17Hanon_Exercise_13v
	callq	_Z17Hanon_Exercise_14v
	callq	_Z17Hanon_Exercise_15v
	callq	_Z17Hanon_Exercise_16v
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Z17Hanon_Exercise_17v          # TAILCALL
.Lfunc_end11:
	.size	_Z26Hanon_Exercise_Test_Memoryv, .Lfunc_end11-_Z26Hanon_Exercise_Test_Memoryv
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	_ZN4name4teamB5cxx11E+8(%rip), %rbx
	movq	_ZN4name4teamB5cxx11E(%rip), %r14
	cmpq	$6, %rbx
	jne	.LBB12_3
# %bb.1:                                # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit
	movl	$1835099476, %eax               # imm = 0x6D616554
	xorl	(%r14), %eax
	movzwl	4(%r14), %ecx
	xorl	$22623, %ecx                    # imm = 0x585F
	orl	%eax, %ecx
	je	.LBB12_2
.LBB12_3:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread5
	leaq	16(%rsp), %r15
	movq	%r15, -16(%r15)
	movq	$0, -8(%r15)
	movb	$0, (%r15)
	leaq	20(%rbx), %rsi
.Ltmp29:
	movq	%rsp, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm
.Ltmp30:
# %bb.4:
.Ltmp31:
	movq	%rsp, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp32:
# %bb.5:
.Ltmp33:
	movq	%rsp, %rdi
	movl	$.L.str.15, %esi
	movl	$20, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp34:
# %bb.6:                                # %_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_.exit
.Ltmp36:
	movq	%rsp, %rsi
	movl	$out, %edi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode
.Ltmp37:
# %bb.7:
	movq	out(%rip), %rax
	movq	-24(%rax), %rax
	testb	$5, out+32(%rax)
	je	.LBB12_14
# %bb.8:
	movq	(%rsp), %rsi
	movl	$.L.str.16, %edi
	xorl	%eax, %eax
	callq	printf
	jmp	.LBB12_15
.LBB12_14:
.Ltmp38:
	callq	_Z26Hanon_Exercise_Test_Memoryv
.Ltmp39:
.LBB12_15:
	movq	(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB12_17
# %bb.16:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i2
	callq	_ZdlPv
	jmp	.LBB12_17
.LBB12_2:                               # %_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_.exit.thread
	movl	$.Lstr, %edi
	callq	puts@PLT
.LBB12_17:
	xorl	%eax, %eax
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB12_13:
	.cfi_def_cfa_offset 64
.Ltmp40:
	jmp	.LBB12_10
.LBB12_9:
.Ltmp35:
.LBB12_10:
	movq	%rax, %rbx
	movq	(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB12_12
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i.i.i
	callq	_ZdlPv
.LBB12_12:                              # %common.resume
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end12:
	.size	main, .Lfunc_end12-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table12:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp29-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp34-.Ltmp29                #   Call between .Ltmp29 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin1          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp39-.Ltmp36                #   Call between .Ltmp36 and .Ltmp39
	.uleb128 .Ltmp40-.Lfunc_begin1          #     jumps to .Ltmp40
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp39-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Lfunc_end12-.Ltmp39           #   Call between .Ltmp39 and .Lfunc_end12
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text.startup,"ax",@progbits
	.type	_GLOBAL__sub_I_hanon_exercise_memory.hip,@function # -- Begin function _GLOBAL__sub_I_hanon_exercise_memory.hip
_GLOBAL__sub_I_hanon_exercise_memory.hip: # @_GLOBAL__sub_I_hanon_exercise_memory.hip
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	$_ZN4name4teamB5cxx11E+16, _ZN4name4teamB5cxx11E(%rip)
	movabsq	$7018951688579542099, %rax      # imm = 0x6168535F6D696C53
	movq	%rax, _ZN4name4teamB5cxx11E+16(%rip)
	movl	$1936876900, _ZN4name4teamB5cxx11E+24(%rip) # imm = 0x73726564
	movq	$12, _ZN4name4teamB5cxx11E+8(%rip)
	xorl	%ebx, %ebx
	movb	%bl, _ZN4name4teamB5cxx11E+28(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name4teamB5cxx11E, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movq	$_ZN4name8author_1B5cxx11E+16, _ZN4name8author_1B5cxx11E(%rip)
	movabsq	$7014742861231189569, %rax      # imm = 0x61595F7772646E41
	movq	%rax, _ZN4name8author_1B5cxx11E+16(%rip)
	movw	$26478, _ZN4name8author_1B5cxx11E+24(%rip) # imm = 0x676E
	movq	$10, _ZN4name8author_1B5cxx11E+8(%rip)
	movb	%bl, _ZN4name8author_1B5cxx11E+26(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name8author_1B5cxx11E, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movq	$_ZN4name8author_2B5cxx11E+16, _ZN4name8author_2B5cxx11E(%rip)
	movabsq	$6879078455136510285, %rax      # imm = 0x5F7765687474614D
	movq	%rax, _ZN4name8author_2B5cxx11E+16(%rip)
	movabsq	$8747519271661952887, %rax      # imm = 0x79656E6E654B5F77
	movq	%rax, _ZN4name8author_2B5cxx11E+22(%rip)
	movq	$14, _ZN4name8author_2B5cxx11E+8(%rip)
	movb	%bl, _ZN4name8author_2B5cxx11E+30(%rip)
	movl	$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev, %edi
	movl	$_ZN4name8author_2B5cxx11E, %esi
	movl	$__dso_handle, %edx
	callq	__cxa_atexit
	movl	$out, %edi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
	movl	$_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev, %edi
	movl	$out, %esi
	movl	$__dso_handle, %edx
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	__cxa_atexit                    # TAILCALL
.Lfunc_end13:
	.size	_GLOBAL__sub_I_hanon_exercise_memory.hip, .Lfunc_end13-_GLOBAL__sub_I_hanon_exercise_memory.hip
	.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	.LBB14_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB14_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12Hanon_kernelPi, %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	$_Z15Hanon_kernel_14Pi, %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	$_Z27Calculate_Array_With_SharedPi, %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	$_Z16Manipulate_ArrayPi, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$0, 8(%rsp)
	movl	$0, (%rsp)
	movl	$_ZL5b_dev, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movl	$32, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	__hipRegisterVar
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end14:
	.size	__hip_module_ctor, .Lfunc_end14-__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	.LBB15_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
.LBB15_2:
	retq
.Lfunc_end15:
	.size	__hip_module_dtor, .Lfunc_end15-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_ZN4name4teamB5cxx11E,@object   # @_ZN4name4teamB5cxx11E
	.bss
	.globl	_ZN4name4teamB5cxx11E
	.p2align	3, 0x0
_ZN4name4teamB5cxx11E:
	.zero	32
	.size	_ZN4name4teamB5cxx11E, 32

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Slim_Shaders"
	.size	.L.str, 13

	.hidden	__dso_handle
	.type	_ZN4name8author_1B5cxx11E,@object # @_ZN4name8author_1B5cxx11E
	.bss
	.globl	_ZN4name8author_1B5cxx11E
	.p2align	3, 0x0
_ZN4name8author_1B5cxx11E:
	.zero	32
	.size	_ZN4name8author_1B5cxx11E, 32

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

	.type	_ZN4name8author_2B5cxx11E,@object # @_ZN4name8author_2B5cxx11E
	.bss
	.globl	_ZN4name8author_2B5cxx11E
	.p2align	3, 0x0
_ZN4name8author_2B5cxx11E:
	.zero	32
	.size	_ZN4name8author_2B5cxx11E, 32

	.type	.L.str.4,@object                # @.str.4
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.4:
	.asciz	"Matthew_Kenney"
	.size	.L.str.4, 15

	.type	out,@object                     # @out
	.bss
	.globl	out
	.p2align	3, 0x0
out:
	.zero	512
	.size	out, 512

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

	.type	_ZL6a_host,@object              # @_ZL6a_host
	.p2align	4, 0x0
_ZL6a_host:
	.long	1                               # 0x1
	.long	2                               # 0x2
	.long	3                               # 0x3
	.long	4                               # 0x4
	.long	5                               # 0x5
	.long	6                               # 0x6
	.long	7                               # 0x7
	.long	8                               # 0x8
	.size	_ZL6a_host, 32

	.type	.L.str.6,@object                # @.str.6
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.6:
	.asciz	"Hanon exercise 12:\n"
	.size	.L.str.6, 20

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

	.type	_ZL5b_dev,@object               # @_ZL5b_dev
	.section	.rodata,"a",@progbits
	.p2align	4, 0x0
_ZL5b_dev:
	.zero	32
	.size	_ZL5b_dev, 32

	.type	.L.str.8,@object                # @.str.8
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.8:
	.asciz	"Hanon exercise 13:\n"
	.size	.L.str.8, 20

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

	.type	.L.str.9,@object                # @.str.9
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.9:
	.asciz	"Hanon exercise 14:\n"
	.size	.L.str.9, 20

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

	.type	.L.str.10,@object               # @.str.10
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.10:
	.asciz	"Hanon exercise 15:\n"
	.size	.L.str.10, 20

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

	.type	.L.str.11,@object               # @.str.11
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.11:
	.asciz	"Hanon exercise 16:\n"
	.size	.L.str.11, 20

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

	.type	.L.str.12,@object               # @.str.12
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.12:
	.asciz	"Hanon exercise 17:\n"
	.size	.L.str.12, 20

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Team_X"
	.size	.L.str.13, 7

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"_exercise_memory.dat"
	.size	.L.str.15, 21

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"\ncannot open file %s to record results\n"
	.size	.L.str.16, 40

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z12Hanon_kernelPi"
	.size	.L__unnamed_1, 19

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z15Hanon_kernel_14Pi"
	.size	.L__unnamed_2, 22

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z27Calculate_Array_With_SharedPi"
	.size	.L__unnamed_3, 34

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

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm"
	.size	.L__unnamed_5, 61

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_ZL5b_dev"
	.size	.L__unnamed_6, 10

	.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	_GLOBAL__sub_I_hanon_exercise_memory.hip
	.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	"\nPlease specify your team name and team member names in name::team and name::author to start."
	.size	.Lstr, 94

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Z27__device_stub__Hanon_kernelPi
	.addrsig_sym _Z30__device_stub__Hanon_kernel_14Pi
	.addrsig_sym _Z42__device_stub__Calculate_Array_With_SharedPi
	.addrsig_sym _Z31__device_stub__Manipulate_ArrayPi
	.addrsig_sym _Z65__device_stub__Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.addrsig_sym _GLOBAL__sub_I_hanon_exercise_memory.hip
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZN4name4teamB5cxx11E
	.addrsig_sym __dso_handle
	.addrsig_sym _ZN4name8author_1B5cxx11E
	.addrsig_sym _ZN4name8author_2B5cxx11E
	.addrsig_sym out
	.addrsig_sym _Z12Hanon_kernelPi
	.addrsig_sym _ZL6a_host
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZL5b_dev
	.addrsig_sym _Z15Hanon_kernel_14Pi
	.addrsig_sym _Z27Calculate_Array_With_SharedPi
	.addrsig_sym _Z16Manipulate_ArrayPi
	.addrsig_sym _Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z12Hanon_kernelPi      ; -- Begin function _Z12Hanon_kernelPi
	.globl	_Z12Hanon_kernelPi
	.p2align	8
	.type	_Z12Hanon_kernelPi,@function
_Z12Hanon_kernelPi:                     ; @_Z12Hanon_kernelPi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x14
	s_load_b64 s[0:1], s[0:1], 0x0
	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 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v2, 1, 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 _Z12Hanon_kernelPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 264
		.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 3
		.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	_Z12Hanon_kernelPi, .Lfunc_end0-_Z12Hanon_kernelPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 112
; NumSgprs: 18
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 3
; 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	_Z15Hanon_kernel_14Pi   ; -- Begin function _Z15Hanon_kernel_14Pi
	.globl	_Z15Hanon_kernel_14Pi
	.p2align	8
	.type	_Z15Hanon_kernel_14Pi,@function
_Z15Hanon_kernel_14Pi:                  ; @_Z15Hanon_kernel_14Pi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x14
	s_load_b64 s[0:1], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, _ZL5b_dev@rel32@lo+4
	s_addc_u32 s3, s3, _ZL5b_dev@rel32@hi+12
	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, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, v0, s2
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	global_load_b32 v4, v[2:3], off
	global_load_b32 v0, v[0:1], off
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v0, v0, v4
	global_store_b32 v[2:3], v0, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15Hanon_kernel_14Pi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 264
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 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	_Z15Hanon_kernel_14Pi, .Lfunc_end1-_Z15Hanon_kernel_14Pi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 152
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z27Calculate_Array_With_SharedPi ; -- Begin function _Z27Calculate_Array_With_SharedPi
	.globl	_Z27Calculate_Array_With_SharedPi
	.p2align	8
	.type	_Z27Calculate_Array_With_SharedPi,@function
_Z27Calculate_Array_With_SharedPi:      ; @_Z27Calculate_Array_With_SharedPi
; %bb.0:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_lshlrev_b32_e32 v1, 1, v0
	v_lshlrev_b32_e32 v3, 2, v0
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, _ZL5b_dev@rel32@lo+4
	s_addc_u32 s3, s3, _ZL5b_dev@rel32@hi+12
	ds_store_b32 v3, v1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_clause 0x1
	global_load_b32 v4, v3, s[0:1]
	global_load_b32 v0, v3, s[2:3]
	ds_load_b32 v5, v3
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_mad_u64_u32 v[1:2], null, v4, v5, v[0:1]
	ds_store_b32 v3, v1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v0, v3
	s_waitcnt lgkmcnt(0)
	global_store_b32 v3, v0, s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z27Calculate_Array_With_SharedPi
		.amdhsa_group_segment_fixed_size 32
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 8
		.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 4
		.amdhsa_reserve_vcc 0
		.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	_Z27Calculate_Array_With_SharedPi, .Lfunc_end2-_Z27Calculate_Array_With_SharedPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 156
; NumSgprs: 4
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 32 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 4
; 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	_Z16Manipulate_ArrayPi  ; -- Begin function _Z16Manipulate_ArrayPi
	.globl	_Z16Manipulate_ArrayPi
	.p2align	8
	.type	_Z16Manipulate_ArrayPi,@function
_Z16Manipulate_ArrayPi:                 ; @_Z16Manipulate_ArrayPi
; %bb.0:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_lshlrev_b32_e32 v0, 2, v0
	s_waitcnt lgkmcnt(0)
	global_load_b32 v1, v0, s[0:1]
	s_waitcnt vmcnt(0)
	v_lshl_or_b32 v1, v1, 4, 1
	global_store_b32 v0, v1, s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16Manipulate_ArrayPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 8
		.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 2
		.amdhsa_next_free_sgpr 2
		.amdhsa_reserve_vcc 0
		.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	_Z16Manipulate_ArrayPi, .Lfunc_end3-_Z16Manipulate_ArrayPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 56
; NumSgprs: 2
; NumVgprs: 2
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 2
; NumVGPRsForWavesPerEU: 2
; 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	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm ; -- Begin function _Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.globl	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
	.p2align	8
	.type	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm,@function
_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm: ; @_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
; %bb.0:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_not_b32_e32 v1, v0
	v_lshlrev_b32_e32 v0, 2, v0
	v_mov_b32_e32 v2, -1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_lshlrev_b64 v[1:2], 2, v[1:2]
	s_lshl_b64 s[6:7], s[6:7], 2
	s_lshl_b32 s8, s2, 2
	s_add_u32 s6, s6, s4
	s_addc_u32 s7, s7, s5
	s_lshl_b64 s[2:3], s[2:3], 2
	v_add_co_u32 v3, vcc_lo, s6, v1
	s_add_u32 s2, s2, s0
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v2, vcc_lo
	s_addc_u32 s3, s3, s1
	v_add_co_u32 v1, vcc_lo, s2, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s3, v2, vcc_lo
	global_load_b32 v3, v[3:4], off
	global_load_b32 v1, v[1:2], off
	s_waitcnt vmcnt(1)
	v_cvt_i32_f32_e32 v2, v3
	s_waitcnt vmcnt(0)
	v_cvt_f32_i32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_add_f32 v1, v1, v1 :: v_dual_lshlrev_b32 v2, 1, v2
	v_add_nc_u32_e32 v3, 0, v0
	v_add3_u32 v4, 0, s8, v0
	ds_store_b32 v3, v2
	ds_store_b32 v4, v1
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	ds_load_b32 v1, v3
	ds_load_b32 v2, v4
	s_waitcnt lgkmcnt(1)
	global_store_b32 v0, v1, s[0:1]
	s_waitcnt lgkmcnt(0)
	global_store_b32 v0, v2, s[4:5]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 32
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 9
		.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_end4:
	.size	_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm, .Lfunc_end4-_Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 236
; NumSgprs: 11
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 11
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	_ZL5b_dev,@object               ; @_ZL5b_dev
	.section	.rodata.cst32,"aM",@progbits,32
	.p2align	4, 0x0
_ZL5b_dev:
	.long	101                             ; 0x65
	.long	102                             ; 0x66
	.long	103                             ; 0x67
	.long	104                             ; 0x68
	.long	105                             ; 0x69
	.long	106                             ; 0x6a
	.long	107                             ; 0x6b
	.long	108                             ; 0x6c
	.size	_ZL5b_dev, 32

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         12
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         20
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         22
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         24
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         26
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         28
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         30
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         48
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         72
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 264
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12Hanon_kernelPi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12Hanon_kernelPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     3
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         12
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         20
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         22
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         24
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         26
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         28
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         30
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         48
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         72
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 264
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15Hanon_kernel_14Pi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z15Hanon_kernel_14Pi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 32
    .kernarg_segment_align: 8
    .kernarg_segment_size: 8
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z27Calculate_Array_With_SharedPi
    .private_segment_fixed_size: 0
    .sgpr_count:     4
    .sgpr_spill_count: 0
    .symbol:         _Z27Calculate_Array_With_SharedPi.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
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 8
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16Manipulate_ArrayPi
    .private_segment_fixed_size: 0
    .sgpr_count:     2
    .sgpr_spill_count: 0
    .symbol:         _Z16Manipulate_ArrayPi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     2
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           8
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           8
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 32
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm
    .private_segment_fixed_size: 0
    .sgpr_count:     11
    .sgpr_spill_count: 0
    .symbol:         _Z50Reverse_And_Multiply_Two_Arrays_With_Extern_SharedPimPfm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
