#include <iostream>
#include <chrono>

using test_t = uint64_t;
constexpr std::size_t N = 5000;
constexpr std::size_t block_size = 1 << 7;
constexpr std::size_t num_threads = 240 * block_size;
constexpr std::size_t test_count = 1 << 16;

__constant__ test_t const_mem[N];

template <std::size_t test_count>
__global__ void read_dummy(test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += static_cast<test_t>(1.9);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void constant_read(test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += const_mem[n];
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_read(const test_t* const mem, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += mem[n];
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_ldg_read(const test_t* const mem, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += __ldg(mem + n);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_ldg_dist_read(const test_t* const mem_head, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	const auto mem = mem_head + blockIdx.x * N;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += __ldg(mem + n);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void constant_shared_read(test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	__shared__ test_t smem[N];
	for(std::size_t i = 0; i < test_count; i++){
		// はじめにgmem -> smem 
		for(std::size_t i = 0, index; (index = i + tid) < N; i+= block_size){
			smem[index] = const_mem[index];
		}
		for(std::size_t n = 0; n < N; n++){
			sum += *(smem + n);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_shared_read(const test_t* const mem, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	__shared__ test_t smem[N];
	for(std::size_t i = 0; i < test_count; i++){
		// はじめにgmem -> smem 
		for(std::size_t i = 0, index; (index = i + tid) < N; i+= block_size){
			smem[index] = mem[index];
		}
		for(std::size_t n = 0; n < N; n++){
			sum += *(smem + n);
		}
	}
	result[tid] = sum;
}

template <class Func>
double get_elapsed_time(Func func){
	const auto start_clock = std::chrono::system_clock::now();
	func();
	const auto end_clock = std::chrono::system_clock::now();
	return std::chrono::duration_cast<std::chrono::microseconds>(end_clock - start_clock).count() / 1.e6;
}


int main(){
	auto get_speed = [](double dt){return (num_threads * N * test_count * sizeof(test_t) / dt / (1lu<<30));};

	{
		test_t *d_result;
		cudaMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result](){
				constant_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		std::cout<<"constant   : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		cudaFree(d_result);
	}
	{
		test_t *d_result;
		test_t *d_global;
		cudaMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		cudaMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_global, d_result);
				cudaDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		std::cout<<"global     : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		cudaFree(d_result);
		cudaFree(d_global);
	}
	{
		test_t *d_result;
		test_t *d_global;
		cudaMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		cudaMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_ldg_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_global, d_result);
				cudaDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		std::cout<<"global ldg : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		cudaFree(d_result);
		cudaFree(d_global);
	}
	{
		constexpr auto grid_size = (num_threads + block_size - 1)/block_size;
		test_t *d_result;
		test_t *d_global;
		cudaMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		cudaMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t) * grid_size);
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_ldg_dist_read<test_count><<<grid_size, block_size>>>(d_global, d_result);
				cudaDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<grid_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		std::cout<<"dist ldg   : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		cudaFree(d_result);
		cudaFree(d_global);
	}
	{
		test_t *d_result;
		cudaMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result](){
				constant_shared_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		std::cout<<"s constant : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		cudaFree(d_result);
	}
	{
		constexpr auto grid_size = (num_threads + block_size - 1)/block_size;
		test_t *d_result;
		test_t *d_global;
		cudaMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		cudaMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_shared_read<test_count><<<grid_size, block_size>>>(d_global, d_result);
				cudaDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<grid_size, block_size>>>(d_result);
				cudaDeviceSynchronize();
				});
		std::cout<<"shared     : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		cudaFree(d_result);
		cudaFree(d_global);
	}
}

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

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3767:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3767:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZL52__device_stub__Z18global_shared_readILm65536EEvPKmPmPKmPm, @function
_ZL52__device_stub__Z18global_shared_readILm65536EEvPKmPmPKmPm:
.LFB3801:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z18global_shared_readILm65536EEvPKmPm(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3801:
	.size	_ZL52__device_stub__Z18global_shared_readILm65536EEvPKmPmPKmPm, .-_ZL52__device_stub__Z18global_shared_readILm65536EEvPKmPmPKmPm
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4508:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4508:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.text._Z18global_shared_readILm65536EEvPKmPm,"axG",@progbits,_Z18global_shared_readILm65536EEvPKmPm,comdat
	.weak	_Z18global_shared_readILm65536EEvPKmPm
	.type	_Z18global_shared_readILm65536EEvPKmPm, @function
_Z18global_shared_readILm65536EEvPKmPm:
.LFB4153:
	.cfi_startproc
	endbr64
	jmp	_ZL52__device_stub__Z18global_shared_readILm65536EEvPKmPmPKmPm
	.cfi_endproc
.LFE4153:
	.size	_Z18global_shared_readILm65536EEvPKmPm, .-_Z18global_shared_readILm65536EEvPKmPm
	.text
	.type	_ZL44__device_stub__Z13constant_readILm65536EEvPmPm, @function
_ZL44__device_stub__Z13constant_readILm65536EEvPmPm:
.LFB3789:
	.cfi_startproc
	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	.L9
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z13constant_readILm65536EEvPm(%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
.L9:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3789:
	.size	_ZL44__device_stub__Z13constant_readILm65536EEvPmPm, .-_ZL44__device_stub__Z13constant_readILm65536EEvPmPm
	.section	.text._Z13constant_readILm65536EEvPm,"axG",@progbits,_Z13constant_readILm65536EEvPm,comdat
	.weak	_Z13constant_readILm65536EEvPm
	.type	_Z13constant_readILm65536EEvPm, @function
_Z13constant_readILm65536EEvPm:
.LFB4132:
	.cfi_startproc
	endbr64
	jmp	_ZL44__device_stub__Z13constant_readILm65536EEvPmPm
	.cfi_endproc
.LFE4132:
	.size	_Z13constant_readILm65536EEvPm, .-_Z13constant_readILm65536EEvPm
	.text
	.type	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0, @function
_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0:
.LFB4511:
	.cfi_startproc
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	movabsq	$4294967297, %rax
	leaq	32(%rsp), %rdi
	movq	%rax, 32(%rsp)
	movl	$1, 40(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L14
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z10read_dummyILm65536EEvPm(%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
.L14:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4511:
	.size	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0, .-_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
	.section	.text._Z10read_dummyILm65536EEvPm,"axG",@progbits,_Z10read_dummyILm65536EEvPm,comdat
	.weak	_Z10read_dummyILm65536EEvPm
	.type	_Z10read_dummyILm65536EEvPm, @function
_Z10read_dummyILm65536EEvPm:
.LFB4135:
	.cfi_startproc
	endbr64
	jmp	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
	.cfi_endproc
.LFE4135:
	.size	_Z10read_dummyILm65536EEvPm, .-_Z10read_dummyILm65536EEvPm
	.text
	.type	_ZL45__device_stub__Z11global_readILm65536EEvPKmPmPKmPm, @function
_ZL45__device_stub__Z11global_readILm65536EEvPKmPmPKmPm:
.LFB3793:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L19
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z11global_readILm65536EEvPKmPm(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L19:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3793:
	.size	_ZL45__device_stub__Z11global_readILm65536EEvPKmPmPKmPm, .-_ZL45__device_stub__Z11global_readILm65536EEvPKmPmPKmPm
	.section	.text._Z11global_readILm65536EEvPKmPm,"axG",@progbits,_Z11global_readILm65536EEvPKmPm,comdat
	.weak	_Z11global_readILm65536EEvPKmPm
	.type	_Z11global_readILm65536EEvPKmPm, @function
_Z11global_readILm65536EEvPKmPm:
.LFB4141:
	.cfi_startproc
	endbr64
	jmp	_ZL45__device_stub__Z11global_readILm65536EEvPKmPmPKmPm
	.cfi_endproc
.LFE4141:
	.size	_Z11global_readILm65536EEvPKmPm, .-_Z11global_readILm65536EEvPKmPm
	.text
	.type	_ZL49__device_stub__Z15global_ldg_readILm65536EEvPKmPmPKmPm, @function
_ZL49__device_stub__Z15global_ldg_readILm65536EEvPKmPmPKmPm:
.LFB3795:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L24
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z15global_ldg_readILm65536EEvPKmPm(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L24:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3795:
	.size	_ZL49__device_stub__Z15global_ldg_readILm65536EEvPKmPmPKmPm, .-_ZL49__device_stub__Z15global_ldg_readILm65536EEvPKmPmPKmPm
	.section	.text._Z15global_ldg_readILm65536EEvPKmPm,"axG",@progbits,_Z15global_ldg_readILm65536EEvPKmPm,comdat
	.weak	_Z15global_ldg_readILm65536EEvPKmPm
	.type	_Z15global_ldg_readILm65536EEvPKmPm, @function
_Z15global_ldg_readILm65536EEvPKmPm:
.LFB4144:
	.cfi_startproc
	endbr64
	jmp	_ZL49__device_stub__Z15global_ldg_readILm65536EEvPKmPmPKmPm
	.cfi_endproc
.LFE4144:
	.size	_Z15global_ldg_readILm65536EEvPKmPm, .-_Z15global_ldg_readILm65536EEvPKmPm
	.text
	.type	_ZL54__device_stub__Z20global_ldg_dist_readILm65536EEvPKmPmPKmPm, @function
_ZL54__device_stub__Z20global_ldg_dist_readILm65536EEvPKmPmPKmPm:
.LFB3797:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movq	%rsi, (%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L29
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z20global_ldg_dist_readILm65536EEvPKmPm(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L29:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3797:
	.size	_ZL54__device_stub__Z20global_ldg_dist_readILm65536EEvPKmPmPKmPm, .-_ZL54__device_stub__Z20global_ldg_dist_readILm65536EEvPKmPmPKmPm
	.section	.text._Z20global_ldg_dist_readILm65536EEvPKmPm,"axG",@progbits,_Z20global_ldg_dist_readILm65536EEvPKmPm,comdat
	.weak	_Z20global_ldg_dist_readILm65536EEvPKmPm
	.type	_Z20global_ldg_dist_readILm65536EEvPKmPm, @function
_Z20global_ldg_dist_readILm65536EEvPKmPm:
.LFB4147:
	.cfi_startproc
	endbr64
	jmp	_ZL54__device_stub__Z20global_ldg_dist_readILm65536EEvPKmPmPKmPm
	.cfi_endproc
.LFE4147:
	.size	_Z20global_ldg_dist_readILm65536EEvPKmPm, .-_Z20global_ldg_dist_readILm65536EEvPKmPm
	.text
	.type	_ZL51__device_stub__Z20constant_shared_readILm65536EEvPmPm, @function
_ZL51__device_stub__Z20constant_shared_readILm65536EEvPmPm:
.LFB3799:
	.cfi_startproc
	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	.L34
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z20constant_shared_readILm65536EEvPm(%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
.L34:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3799:
	.size	_ZL51__device_stub__Z20constant_shared_readILm65536EEvPmPm, .-_ZL51__device_stub__Z20constant_shared_readILm65536EEvPmPm
	.section	.text._Z20constant_shared_readILm65536EEvPm,"axG",@progbits,_Z20constant_shared_readILm65536EEvPm,comdat
	.weak	_Z20constant_shared_readILm65536EEvPm
	.type	_Z20constant_shared_readILm65536EEvPm, @function
_Z20constant_shared_readILm65536EEvPm:
.LFB4150:
	.cfi_startproc
	endbr64
	jmp	_ZL51__device_stub__Z20constant_shared_readILm65536EEvPmPm
	.cfi_endproc
.LFE4150:
	.size	_Z20constant_shared_readILm65536EEvPm, .-_Z20constant_shared_readILm65536EEvPm
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"constant   : "
.LC4:
	.string	" GB/s"
.LC5:
	.string	"global     : "
.LC6:
	.string	"global ldg : "
.LC7:
	.string	"dist ldg   : "
.LC8:
	.string	"s constant : "
.LC9:
	.string	"shared     : "
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3749:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3749
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$245760, %esi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$136, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rdi
.LEHB0:
	call	cudaMalloc@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %rbx
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L40
	movq	88(%rsp), %rdi
	call	_ZL44__device_stub__Z13constant_readILm65536EEvPmPm
.L40:
	call	cudaDeviceSynchronize@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	subq	%rbx, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movq	%xmm0, %rbx
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$536870917, %edi
	salq	$7, %rdx
	movq	%rax, %rbp
	movl	$1, %ecx
	salq	$3, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	movq	88(%rsp), %rdi
	call	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
.L41:
	call	cudaDeviceSynchronize@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	leaq	.LC1(%rip), %rsi
	subq	%rbp, %rax
	leaq	_ZSt4cout(%rip), %rbp
	cqto
	movq	%rbp, %rdi
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbx, %xmm1
	subsd	8(%rsp), %xmm1
	movsd	.LC2(%rip), %xmm0
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rbx
	divsd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
.LEHE0:
	leaq	24(%rsp), %rdi
	movl	$245760, %esi
.LEHB1:
	call	cudaMalloc@PLT
	leaq	32(%rsp), %rdi
	movl	$40000, %esi
	call	cudaMalloc@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L42
.L44:
	call	cudaDeviceSynchronize@PLT
	jmp	.L97
.L42:
	movq	24(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_ZL45__device_stub__Z11global_readILm65536EEvPKmPmPKmPm
	jmp	.L44
.L97:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movq	%xmm0, %r14
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$536870917, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$3, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L45
.L47:
	call	cudaDeviceSynchronize@PLT
	jmp	.L98
.L45:
	movq	24(%rsp), %rdi
	call	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
	jmp	.L47
.L98:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	leaq	.LC5(%rip), %rsi
	movq	%rbp, %rdi
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %xmm1
	subsd	8(%rsp), %xmm1
	movsd	.LC2(%rip), %xmm0
	movq	%rax, %rdi
	divsd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
.LEHE1:
	leaq	40(%rsp), %rdi
	movl	$245760, %esi
.LEHB2:
	call	cudaMalloc@PLT
	leaq	48(%rsp), %rdi
	movl	$40000, %esi
	call	cudaMalloc@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L48
.L50:
	call	cudaDeviceSynchronize@PLT
	jmp	.L99
.L48:
	movq	40(%rsp), %rsi
	movq	48(%rsp), %rdi
	call	_ZL49__device_stub__Z15global_ldg_readILm65536EEvPKmPmPKmPm
	jmp	.L50
.L99:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movq	%xmm0, %r14
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$536870917, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$3, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L51
.L53:
	call	cudaDeviceSynchronize@PLT
	jmp	.L100
.L51:
	movq	40(%rsp), %rdi
	call	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
	jmp	.L53
.L100:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	leaq	.LC6(%rip), %rsi
	movq	%rbp, %rdi
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %xmm1
	subsd	8(%rsp), %xmm1
	movsd	.LC2(%rip), %xmm0
	movq	%rax, %rdi
	divsd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
.LEHE2:
	leaq	56(%rsp), %rdi
	movl	$245760, %esi
.LEHB3:
	call	cudaMalloc@PLT
	leaq	64(%rsp), %rdi
	movl	$9600000, %esi
	call	cudaMalloc@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %rbx
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L54
.L56:
	call	cudaDeviceSynchronize@PLT
	jmp	.L101
.L54:
	movq	56(%rsp), %rsi
	movq	64(%rsp), %rdi
	call	_ZL54__device_stub__Z20global_ldg_dist_readILm65536EEvPKmPmPKmPm
	jmp	.L56
.L101:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	subq	%rbx, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movq	%xmm0, %rbx
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %rbp
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L57
.L59:
	call	cudaDeviceSynchronize@PLT
	jmp	.L102
.L57:
	movq	56(%rsp), %rdi
	call	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
	jmp	.L59
.L102:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	leaq	.LC7(%rip), %rsi
	subq	%rbp, %rax
	leaq	_ZSt4cout(%rip), %rbp
	cqto
	movq	%rbp, %rdi
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbx, %xmm1
	subsd	8(%rsp), %xmm1
	movsd	.LC2(%rip), %xmm0
	movq	%rax, %rdi
	divsd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC4(%rip), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
.LEHE3:
	leaq	72(%rsp), %rdi
	movl	$245760, %esi
.LEHB4:
	call	cudaMalloc@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L60
.L62:
	call	cudaDeviceSynchronize@PLT
	jmp	.L103
.L60:
	movq	72(%rsp), %rdi
	call	_ZL51__device_stub__Z20constant_shared_readILm65536EEvPmPm
	jmp	.L62
.L103:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movq	%xmm0, %r14
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$536870917, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$3, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L63
.L65:
	call	cudaDeviceSynchronize@PLT
	jmp	.L104
.L63:
	movq	72(%rsp), %rdi
	call	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
	jmp	.L65
.L104:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	leaq	.LC8(%rip), %rsi
	movq	%rbp, %rdi
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %xmm1
	subsd	8(%rsp), %xmm1
	movsd	.LC2(%rip), %xmm0
	movq	%rax, %rdi
	divsd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
.LEHE4:
	leaq	80(%rsp), %rdi
	movl	$245760, %esi
.LEHB5:
	call	cudaMalloc@PLT
	leaq	88(%rsp), %rdi
	movl	$40000, %esi
	call	cudaMalloc@PLT
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L66
.L68:
	call	cudaDeviceSynchronize@PLT
	jmp	.L105
.L66:
	movq	80(%rsp), %rsi
	movq	88(%rsp), %rdi
	call	_ZL52__device_stub__Z18global_shared_readILm65536EEvPKmPmPKmPm
	jmp	.L68
.L105:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movq	%xmm0, %r14
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$33554433, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$268435471, %edi
	salq	$7, %rdx
	movq	%rax, %r12
	movl	$1, %ecx
	salq	$4, %rdi
	movl	$1, %esi
	movq	%rdx, 108(%rsp)
	movl	$1, 116(%rsp)
	movq	%rdi, 96(%rsp)
	movl	$1, 104(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L69
.L71:
	call	cudaDeviceSynchronize@PLT
	jmp	.L106
.L69:
	movq	80(%rsp), %rdi
	call	_Z33__wrapper__device_stub_read_dummyILm65536EEvRKPm.isra.0
	jmp	.L71
.L106:
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000, %ecx
	leaq	.LC9(%rip), %rsi
	movq	%rbp, %rdi
	subq	%r12, %rax
	cqto
	idivq	%rcx
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %xmm1
	subsd	8(%rsp), %xmm1
	movsd	.LC2(%rip), %xmm0
	movq	%rax, %rdi
	divsd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%rbx, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
.LEHE5:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L79
	jmp	.L95
.L80:
	endbr64
.L72:
	jmp	.L73
.L81:
	endbr64
.L74:
	jmp	.L73
.L82:
	endbr64
.L75:
	jmp	.L73
.L83:
	endbr64
.L76:
	jmp	.L73
.L84:
	endbr64
.L77:
.L73:
	movq	120(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L95
	movq	%rax, %rdi
.LEHB6:
	call	_Unwind_Resume@PLT
.LEHE6:
.L95:
	call	__stack_chk_fail@PLT
.L79:
	addq	$136, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3749:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3749:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3749-.LLSDACSB3749
.LLSDACSB3749:
	.uleb128 .LEHB0-.LFB3749
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3749
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L80-.LFB3749
	.uleb128 0
	.uleb128 .LEHB2-.LFB3749
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L81-.LFB3749
	.uleb128 0
	.uleb128 .LEHB3-.LFB3749
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L82-.LFB3749
	.uleb128 0
	.uleb128 .LEHB4-.LFB3749
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L83-.LFB3749
	.uleb128 0
	.uleb128 .LEHB5-.LFB3749
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L84-.LFB3749
	.uleb128 0
	.uleb128 .LEHB6-.LFB3749
	.uleb128 .LEHE6-.LEHB6
	.uleb128 0
	.uleb128 0
.LLSDACSE3749:
	.section	.text.startup
	.size	main, .-main
	.section	.rodata.str1.1
.LC10:
	.string	"_Z18global_shared_readILm65536EEvPKmPm"
.LC11:
	.string	"_Z20constant_shared_readILm65536EEvPm"
.LC12:
	.string	"_Z20global_ldg_dist_readILm65536EEvPKmPm"
.LC13:
	.string	"_Z15global_ldg_readILm65536EEvPKmPm"
.LC14:
	.string	"_Z11global_readILm65536EEvPKmPm"
.LC15:
	.string	"_Z10read_dummyILm65536EEvPm"
.LC16:
	.string	"_Z13constant_readILm65536EEvPm"
.LC17:
	.string	"const_mem"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3804:
	.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	.LC10(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z18global_shared_readILm65536EEvPKmPm(%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	.LC11(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z20constant_shared_readILm65536EEvPm(%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	.LC12(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z20global_ldg_dist_readILm65536EEvPKmPm(%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	.LC13(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z15global_ldg_readILm65536EEvPKmPm(%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	.LC14(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11global_readILm65536EEvPKmPm(%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	.LC15(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10read_dummyILm65536EEvPm(%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	.LC16(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z13constant_readILm65536EEvPm(%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	.LC17(%rip), %rdx
	movl	$40000, %r9d
	leaq	_ZL9const_mem(%rip), %rsi
	pushq	$1
	.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
.LFE3804:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.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
	.local	_ZL9const_mem
	.comm	_ZL9const_mem,40000,32
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.align 8
.LC2:
	.long	0
	.long	1121079168
	.align 8
.LC3:
	.long	0
	.long	1041235968
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <iostream>
#include <chrono>

using test_t = uint64_t;
constexpr std::size_t N = 5000;
constexpr std::size_t block_size = 1 << 7;
constexpr std::size_t num_threads = 240 * block_size;
constexpr std::size_t test_count = 1 << 16;

__constant__ test_t const_mem[N];

template <std::size_t test_count>
__global__ void read_dummy(test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += static_cast<test_t>(1.9);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void constant_read(test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += const_mem[n];
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_read(const test_t* const mem, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += mem[n];
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_ldg_read(const test_t* const mem, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += __ldg(mem + n);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_ldg_dist_read(const test_t* const mem_head, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	const auto mem = mem_head + blockIdx.x * N;
	test_t sum = static_cast<test_t>(0);
	for(std::size_t i = 0; i < test_count; i++){
		for(std::size_t n = 0; n < N; n++){
			sum += __ldg(mem + n);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void constant_shared_read(test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	__shared__ test_t smem[N];
	for(std::size_t i = 0; i < test_count; i++){
		// はじめにgmem -> smem 
		for(std::size_t i = 0, index; (index = i + tid) < N; i+= block_size){
			smem[index] = const_mem[index];
		}
		for(std::size_t n = 0; n < N; n++){
			sum += *(smem + n);
		}
	}
	result[tid] = sum;
}
template <std::size_t test_count>
__global__ void global_shared_read(const test_t* const mem, test_t* const result){
	const auto tid = threadIdx.x + blockIdx.x * blockDim.x;
	test_t sum = static_cast<test_t>(0);
	__shared__ test_t smem[N];
	for(std::size_t i = 0; i < test_count; i++){
		// はじめにgmem -> smem 
		for(std::size_t i = 0, index; (index = i + tid) < N; i+= block_size){
			smem[index] = mem[index];
		}
		for(std::size_t n = 0; n < N; n++){
			sum += *(smem + n);
		}
	}
	result[tid] = sum;
}

template <class Func>
double get_elapsed_time(Func func){
	const auto start_clock = std::chrono::system_clock::now();
	func();
	const auto end_clock = std::chrono::system_clock::now();
	return std::chrono::duration_cast<std::chrono::microseconds>(end_clock - start_clock).count() / 1.e6;
}


int main(){
	auto get_speed = [](double dt){return (num_threads * N * test_count * sizeof(test_t) / dt / (1lu<<30));};

	{
		test_t *d_result;
		hipMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result](){
				constant_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		std::cout<<"constant   : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		hipFree(d_result);
	}
	{
		test_t *d_result;
		test_t *d_global;
		hipMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		hipMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_global, d_result);
				hipDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		std::cout<<"global     : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		hipFree(d_result);
		hipFree(d_global);
	}
	{
		test_t *d_result;
		test_t *d_global;
		hipMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		hipMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_ldg_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_global, d_result);
				hipDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		std::cout<<"global ldg : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		hipFree(d_result);
		hipFree(d_global);
	}
	{
		constexpr auto grid_size = (num_threads + block_size - 1)/block_size;
		test_t *d_result;
		test_t *d_global;
		hipMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		hipMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t) * grid_size);
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_ldg_dist_read<test_count><<<grid_size, block_size>>>(d_global, d_result);
				hipDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<grid_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		std::cout<<"dist ldg   : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		hipFree(d_result);
		hipFree(d_global);
	}
	{
		test_t *d_result;
		hipMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result](){
				constant_shared_read<test_count><<<(num_threads + block_size - 1)/block_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result](){
				read_dummy<test_count><<<(N + block_size - 1)/block_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		std::cout<<"s constant : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		hipFree(d_result);
	}
	{
		constexpr auto grid_size = (num_threads + block_size - 1)/block_size;
		test_t *d_result;
		test_t *d_global;
		hipMalloc(reinterpret_cast<void**>(&d_result), num_threads * sizeof(test_t));
		hipMalloc(reinterpret_cast<void**>(&d_global), N * sizeof(test_t));
		const auto t0 = get_elapsed_time(
				[&d_result, &d_global](){
				global_shared_read<test_count><<<grid_size, block_size>>>(d_global, d_result);
				hipDeviceSynchronize();
				});
		const auto t1 = get_elapsed_time(
				[&d_result, &d_global](){
				read_dummy<test_count><<<grid_size, block_size>>>(d_result);
				hipDeviceSynchronize();
				});
		std::cout<<"shared     : "<<get_speed(t0 - t1)<<" GB/s"<<std::endl;
		hipFree(d_result);
		hipFree(d_global);
	}
}

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

                                        # End of file scope inline assembly
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI0_0:
	.quad	0x412e848000000000              # double 1.0E+6
.LCPI0_1:
	.quad	0xc12e848000000000              # double -1.0E+6
.LCPI0_2:
	.quad	0x42d24f8000000000              # double 8.05306368E+13
.LCPI0_3:
	.quad	0x3e10000000000000              # double 9.3132257461547852E-10
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movabsq	$4294967424, %rbx               # imm = 0x100000080
	leaq	8(%rsp), %rdi
	movl	$245760, %esi                   # imm = 0x3C000
	callq	hipMalloc
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r14
	leaq	112(%rbx), %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_2
# %bb.1:
	movq	8(%rsp), %rdi
	callq	_Z28__device_stub__constant_readILm65536EEvPm
.LBB0_2:                                # %_Z16get_elapsed_timeIZ4mainEUlvE_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r14, %rax
	movabsq	$2361183241434822607, %rbp      # imm = 0x20C49BA5E353F7CF
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r14
	leaq	-88(%rbx), %r15
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_4
# %bb.3:
	movq	8(%rsp), %rdi
	callq	_Z25__device_stub__read_dummyILm65536EEvPm
.LBB0_4:                                # %_Z16get_elapsed_timeIZ4mainEUlvE0_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r14, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_1(%rip), %xmm0
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	.LCPI0_2(%rip), %xmm0           # xmm0 = mem[0],zero
	divsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	mulsd	.LCPI0_3(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r14
	movl	$.L.str.1, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r14), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	8(%rsp), %r14
	movq	(%r14), %rdi
	callq	hipFree
	movl	$245760, %esi                   # imm = 0x3C000
	movq	%r14, %rdi
	callq	hipMalloc
	leaq	16(%rsp), %rdi
	movl	$40000, %esi                    # imm = 0x9C40
	callq	hipMalloc
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	leaq	112(%rbx), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_6
# %bb.5:
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
	callq	_Z26__device_stub__global_readILm65536EEvPKmPm
.LBB0_6:                                # %_Z16get_elapsed_timeIZ4mainEUlvE1_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_8
# %bb.7:
	movq	8(%rsp), %rdi
	callq	_Z25__device_stub__read_dummyILm65536EEvPm
.LBB0_8:                                # %_Z16get_elapsed_timeIZ4mainEUlvE2_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_1(%rip), %xmm0
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	.LCPI0_2(%rip), %xmm0           # xmm0 = mem[0],zero
	divsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	mulsd	.LCPI0_3(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movl	$.L.str.1, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r12), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	8(%rsp), %r12
	movq	(%r12), %rdi
	callq	hipFree
	leaq	16(%rsp), %r13
	movq	(%r13), %rdi
	callq	hipFree
	movl	$245760, %esi                   # imm = 0x3C000
	movq	%r12, %rdi
	callq	hipMalloc
	movl	$40000, %esi                    # imm = 0x9C40
	movq	%r13, %rdi
	callq	hipMalloc
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_10
# %bb.9:
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
	callq	_Z30__device_stub__global_ldg_readILm65536EEvPKmPm
.LBB0_10:                               # %_Z16get_elapsed_timeIZ4mainEUlvE3_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_12
# %bb.11:
	movq	8(%rsp), %rdi
	callq	_Z25__device_stub__read_dummyILm65536EEvPm
.LBB0_12:                               # %_Z16get_elapsed_timeIZ4mainEUlvE4_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_1(%rip), %xmm0
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	.LCPI0_2(%rip), %xmm0           # xmm0 = mem[0],zero
	divsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	mulsd	.LCPI0_3(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movl	$.L.str.1, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r12), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	8(%rsp), %r12
	movq	(%r12), %rdi
	callq	hipFree
	leaq	16(%rsp), %r13
	movq	(%r13), %rdi
	callq	hipFree
	movl	$245760, %esi                   # imm = 0x3C000
	movq	%r12, %rdi
	callq	hipMalloc
	movl	$9600000, %esi                  # imm = 0x927C00
	movq	%r13, %rdi
	callq	hipMalloc
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_14
# %bb.13:
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
	callq	_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm
.LBB0_14:                               # %_Z16get_elapsed_timeIZ4mainEUlvE5_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_16
# %bb.15:
	movq	8(%rsp), %rdi
	callq	_Z25__device_stub__read_dummyILm65536EEvPm
.LBB0_16:                               # %_Z16get_elapsed_timeIZ4mainEUlvE6_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_1(%rip), %xmm0
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	.LCPI0_2(%rip), %xmm0           # xmm0 = mem[0],zero
	divsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	mulsd	.LCPI0_3(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movl	$.L.str.1, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r12), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	8(%rsp), %r12
	movq	(%r12), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movl	$245760, %esi                   # imm = 0x3C000
	movq	%r12, %rdi
	callq	hipMalloc
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_18
# %bb.17:
	movq	8(%rsp), %rdi
	callq	_Z35__device_stub__constant_shared_readILm65536EEvPm
.LBB0_18:                               # %_Z16get_elapsed_timeIZ4mainEUlvE7_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_20
# %bb.19:
	movq	8(%rsp), %rdi
	callq	_Z25__device_stub__read_dummyILm65536EEvPm
.LBB0_20:                               # %_Z16get_elapsed_timeIZ4mainEUlvE8_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_1(%rip), %xmm0
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	.LCPI0_2(%rip), %xmm0           # xmm0 = mem[0],zero
	divsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	mulsd	.LCPI0_3(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r15
	movl	$.L.str.1, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%r15), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	8(%rsp), %r15
	movq	(%r15), %rdi
	callq	hipFree
	movl	$245760, %esi                   # imm = 0x3C000
	movq	%r15, %rdi
	callq	hipMalloc
	leaq	16(%rsp), %rdi
	movl	$40000, %esi                    # imm = 0x9C40
	callq	hipMalloc
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_22
# %bb.21:
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
	callq	_Z33__device_stub__global_shared_readILm65536EEvPKmPm
.LBB0_22:                               # %_Z16get_elapsed_timeIZ4mainEUlvE9_EdT_.exit
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r13
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_24
# %bb.23:
	movq	8(%rsp), %rdi
	callq	_Z25__device_stub__read_dummyILm65536EEvPm
.LBB0_24:                               # %_Z16get_elapsed_timeIZ4mainEUlvE10_EdT_.exit
	subq	%r15, %r13
	movq	%r13, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	hipDeviceSynchronize
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	%r12, %rax
	imulq	%rbp
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$13, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movsd	.LCPI0_2(%rip), %xmm0           # xmm0 = mem[0],zero
	divsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	mulsd	.LCPI0_3(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movl	$.L.str.1, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	8(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.section	.text._Z28__device_stub__constant_readILm65536EEvPm,"axG",@progbits,_Z28__device_stub__constant_readILm65536EEvPm,comdat
	.weak	_Z28__device_stub__constant_readILm65536EEvPm # -- Begin function _Z28__device_stub__constant_readILm65536EEvPm
	.type	_Z28__device_stub__constant_readILm65536EEvPm,@function
_Z28__device_stub__constant_readILm65536EEvPm: # @_Z28__device_stub__constant_readILm65536EEvPm
	.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	$_Z13constant_readILm65536EEvPm, %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_end1:
	.size	_Z28__device_stub__constant_readILm65536EEvPm, .Lfunc_end1-_Z28__device_stub__constant_readILm65536EEvPm
	.cfi_endproc
                                        # -- End function
	.section	.text._Z25__device_stub__read_dummyILm65536EEvPm,"axG",@progbits,_Z25__device_stub__read_dummyILm65536EEvPm,comdat
	.weak	_Z25__device_stub__read_dummyILm65536EEvPm # -- Begin function _Z25__device_stub__read_dummyILm65536EEvPm
	.type	_Z25__device_stub__read_dummyILm65536EEvPm,@function
_Z25__device_stub__read_dummyILm65536EEvPm: # @_Z25__device_stub__read_dummyILm65536EEvPm
	.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	$_Z10read_dummyILm65536EEvPm, %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_end2:
	.size	_Z25__device_stub__read_dummyILm65536EEvPm, .Lfunc_end2-_Z25__device_stub__read_dummyILm65536EEvPm
	.cfi_endproc
                                        # -- End function
	.section	.text._Z26__device_stub__global_readILm65536EEvPKmPm,"axG",@progbits,_Z26__device_stub__global_readILm65536EEvPKmPm,comdat
	.weak	_Z26__device_stub__global_readILm65536EEvPKmPm # -- Begin function _Z26__device_stub__global_readILm65536EEvPKmPm
	.type	_Z26__device_stub__global_readILm65536EEvPKmPm,@function
_Z26__device_stub__global_readILm65536EEvPKmPm: # @_Z26__device_stub__global_readILm65536EEvPKmPm
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z11global_readILm65536EEvPKmPm, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z26__device_stub__global_readILm65536EEvPKmPm, .Lfunc_end3-_Z26__device_stub__global_readILm65536EEvPKmPm
	.cfi_endproc
                                        # -- End function
	.section	.text._Z30__device_stub__global_ldg_readILm65536EEvPKmPm,"axG",@progbits,_Z30__device_stub__global_ldg_readILm65536EEvPKmPm,comdat
	.weak	_Z30__device_stub__global_ldg_readILm65536EEvPKmPm # -- Begin function _Z30__device_stub__global_ldg_readILm65536EEvPKmPm
	.type	_Z30__device_stub__global_ldg_readILm65536EEvPKmPm,@function
_Z30__device_stub__global_ldg_readILm65536EEvPKmPm: # @_Z30__device_stub__global_ldg_readILm65536EEvPKmPm
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z15global_ldg_readILm65536EEvPKmPm, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z30__device_stub__global_ldg_readILm65536EEvPKmPm, .Lfunc_end4-_Z30__device_stub__global_ldg_readILm65536EEvPKmPm
	.cfi_endproc
                                        # -- End function
	.section	.text._Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm,"axG",@progbits,_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm,comdat
	.weak	_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm # -- Begin function _Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm
	.type	_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm,@function
_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm: # @_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z20global_ldg_dist_readILm65536EEvPKmPm, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm, .Lfunc_end5-_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm
	.cfi_endproc
                                        # -- End function
	.section	.text._Z35__device_stub__constant_shared_readILm65536EEvPm,"axG",@progbits,_Z35__device_stub__constant_shared_readILm65536EEvPm,comdat
	.weak	_Z35__device_stub__constant_shared_readILm65536EEvPm # -- Begin function _Z35__device_stub__constant_shared_readILm65536EEvPm
	.type	_Z35__device_stub__constant_shared_readILm65536EEvPm,@function
_Z35__device_stub__constant_shared_readILm65536EEvPm: # @_Z35__device_stub__constant_shared_readILm65536EEvPm
	.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	$_Z20constant_shared_readILm65536EEvPm, %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_end6:
	.size	_Z35__device_stub__constant_shared_readILm65536EEvPm, .Lfunc_end6-_Z35__device_stub__constant_shared_readILm65536EEvPm
	.cfi_endproc
                                        # -- End function
	.section	.text._Z33__device_stub__global_shared_readILm65536EEvPKmPm,"axG",@progbits,_Z33__device_stub__global_shared_readILm65536EEvPKmPm,comdat
	.weak	_Z33__device_stub__global_shared_readILm65536EEvPKmPm # -- Begin function _Z33__device_stub__global_shared_readILm65536EEvPKmPm
	.type	_Z33__device_stub__global_shared_readILm65536EEvPKmPm,@function
_Z33__device_stub__global_shared_readILm65536EEvPKmPm: # @_Z33__device_stub__global_shared_readILm65536EEvPKmPm
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	16(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z18global_shared_readILm65536EEvPKmPm, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z33__device_stub__global_shared_readILm65536EEvPKmPm, .Lfunc_end7-_Z33__device_stub__global_shared_readILm65536EEvPKmPm
	.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	.LBB8_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB8_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13constant_readILm65536EEvPm, %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	$_Z10read_dummyILm65536EEvPm, %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	$_Z11global_readILm65536EEvPKmPm, %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	$_Z15global_ldg_readILm65536EEvPKmPm, %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	$_Z20global_ldg_dist_readILm65536EEvPKmPm, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z20constant_shared_readILm65536EEvPm, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18global_shared_readILm65536EEvPKmPm, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movl	$const_mem, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movl	$40000, %r9d                    # imm = 0x9C40
	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_end8:
	.size	__hip_module_ctor, .Lfunc_end8-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB9_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB9_2:
	retq
.Lfunc_end9:
	.size	__hip_module_dtor, .Lfunc_end9-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	const_mem,@object               # @const_mem
	.local	const_mem
	.comm	const_mem,40000,16
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"constant   : "
	.size	.L.str, 14

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	" GB/s"
	.size	.L.str.1, 6

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"global     : "
	.size	.L.str.2, 14

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"global ldg : "
	.size	.L.str.3, 14

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"dist ldg   : "
	.size	.L.str.4, 14

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"s constant : "
	.size	.L.str.5, 14

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"shared     : "
	.size	.L.str.6, 14

	.type	_Z13constant_readILm65536EEvPm,@object # @_Z13constant_readILm65536EEvPm
	.section	.rodata._Z13constant_readILm65536EEvPm,"aG",@progbits,_Z13constant_readILm65536EEvPm,comdat
	.weak	_Z13constant_readILm65536EEvPm
	.p2align	3, 0x0
_Z13constant_readILm65536EEvPm:
	.quad	_Z28__device_stub__constant_readILm65536EEvPm
	.size	_Z13constant_readILm65536EEvPm, 8

	.type	_Z10read_dummyILm65536EEvPm,@object # @_Z10read_dummyILm65536EEvPm
	.section	.rodata._Z10read_dummyILm65536EEvPm,"aG",@progbits,_Z10read_dummyILm65536EEvPm,comdat
	.weak	_Z10read_dummyILm65536EEvPm
	.p2align	3, 0x0
_Z10read_dummyILm65536EEvPm:
	.quad	_Z25__device_stub__read_dummyILm65536EEvPm
	.size	_Z10read_dummyILm65536EEvPm, 8

	.type	_Z11global_readILm65536EEvPKmPm,@object # @_Z11global_readILm65536EEvPKmPm
	.section	.rodata._Z11global_readILm65536EEvPKmPm,"aG",@progbits,_Z11global_readILm65536EEvPKmPm,comdat
	.weak	_Z11global_readILm65536EEvPKmPm
	.p2align	3, 0x0
_Z11global_readILm65536EEvPKmPm:
	.quad	_Z26__device_stub__global_readILm65536EEvPKmPm
	.size	_Z11global_readILm65536EEvPKmPm, 8

	.type	_Z15global_ldg_readILm65536EEvPKmPm,@object # @_Z15global_ldg_readILm65536EEvPKmPm
	.section	.rodata._Z15global_ldg_readILm65536EEvPKmPm,"aG",@progbits,_Z15global_ldg_readILm65536EEvPKmPm,comdat
	.weak	_Z15global_ldg_readILm65536EEvPKmPm
	.p2align	3, 0x0
_Z15global_ldg_readILm65536EEvPKmPm:
	.quad	_Z30__device_stub__global_ldg_readILm65536EEvPKmPm
	.size	_Z15global_ldg_readILm65536EEvPKmPm, 8

	.type	_Z20global_ldg_dist_readILm65536EEvPKmPm,@object # @_Z20global_ldg_dist_readILm65536EEvPKmPm
	.section	.rodata._Z20global_ldg_dist_readILm65536EEvPKmPm,"aG",@progbits,_Z20global_ldg_dist_readILm65536EEvPKmPm,comdat
	.weak	_Z20global_ldg_dist_readILm65536EEvPKmPm
	.p2align	3, 0x0
_Z20global_ldg_dist_readILm65536EEvPKmPm:
	.quad	_Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm
	.size	_Z20global_ldg_dist_readILm65536EEvPKmPm, 8

	.type	_Z20constant_shared_readILm65536EEvPm,@object # @_Z20constant_shared_readILm65536EEvPm
	.section	.rodata._Z20constant_shared_readILm65536EEvPm,"aG",@progbits,_Z20constant_shared_readILm65536EEvPm,comdat
	.weak	_Z20constant_shared_readILm65536EEvPm
	.p2align	3, 0x0
_Z20constant_shared_readILm65536EEvPm:
	.quad	_Z35__device_stub__constant_shared_readILm65536EEvPm
	.size	_Z20constant_shared_readILm65536EEvPm, 8

	.type	_Z18global_shared_readILm65536EEvPKmPm,@object # @_Z18global_shared_readILm65536EEvPKmPm
	.section	.rodata._Z18global_shared_readILm65536EEvPKmPm,"aG",@progbits,_Z18global_shared_readILm65536EEvPKmPm,comdat
	.weak	_Z18global_shared_readILm65536EEvPKmPm
	.p2align	3, 0x0
_Z18global_shared_readILm65536EEvPKmPm:
	.quad	_Z33__device_stub__global_shared_readILm65536EEvPKmPm
	.size	_Z18global_shared_readILm65536EEvPKmPm, 8

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z13constant_readILm65536EEvPm"
	.size	.L__unnamed_1, 31

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z10read_dummyILm65536EEvPm"
	.size	.L__unnamed_2, 28

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z11global_readILm65536EEvPKmPm"
	.size	.L__unnamed_3, 32

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z15global_ldg_readILm65536EEvPKmPm"
	.size	.L__unnamed_4, 36

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z20global_ldg_dist_readILm65536EEvPKmPm"
	.size	.L__unnamed_5, 41

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z20constant_shared_readILm65536EEvPm"
	.size	.L__unnamed_6, 38

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z18global_shared_readILm65536EEvPKmPm"
	.size	.L__unnamed_7, 39

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"const_mem"
	.size	.L__unnamed_8, 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	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z28__device_stub__constant_readILm65536EEvPm
	.addrsig_sym _Z25__device_stub__read_dummyILm65536EEvPm
	.addrsig_sym _Z26__device_stub__global_readILm65536EEvPKmPm
	.addrsig_sym _Z30__device_stub__global_ldg_readILm65536EEvPKmPm
	.addrsig_sym _Z35__device_stub__global_ldg_dist_readILm65536EEvPKmPm
	.addrsig_sym _Z35__device_stub__constant_shared_readILm65536EEvPm
	.addrsig_sym _Z33__device_stub__global_shared_readILm65536EEvPKmPm
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym const_mem
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z13constant_readILm65536EEvPm
	.addrsig_sym _Z10read_dummyILm65536EEvPm
	.addrsig_sym _Z11global_readILm65536EEvPKmPm
	.addrsig_sym _Z15global_ldg_readILm65536EEvPKmPm
	.addrsig_sym _Z20global_ldg_dist_readILm65536EEvPKmPm
	.addrsig_sym _Z20constant_shared_readILm65536EEvPm
	.addrsig_sym _Z18global_shared_readILm65536EEvPKmPm
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.section	.text._Z13constant_readILm65536EEvPm,"axG",@progbits,_Z13constant_readILm65536EEvPm,comdat
	.protected	_Z13constant_readILm65536EEvPm ; -- Begin function _Z13constant_readILm65536EEvPm
	.globl	_Z13constant_readILm65536EEvPm
	.p2align	8
	.type	_Z13constant_readILm65536EEvPm,@function
_Z13constant_readILm65536EEvPm:         ; @_Z13constant_readILm65536EEvPm
; %bb.0:
	s_load_b32 s8, s[0:1], 0x14
	s_mov_b64 s[4:5], 0
	s_mov_b64 s[2:3], 0
.LBB0_1:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	s_mov_b64 s[6:7], 0
.LBB0_2:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_getpc_b64 s[10:11]
	s_add_u32 s10, s10, const_mem@rel32@lo+4
	s_addc_u32 s11, s11, const_mem@rel32@hi+12
	s_add_u32 s10, s6, s10
	s_addc_u32 s11, s7, s11
	s_load_b64 s[10:11], s[10:11], 0x0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s2, s10, s2
	s_addc_u32 s3, s11, s3
	s_add_u32 s6, s6, 8
	s_addc_u32 s7, s7, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[6:7], 0x9c40
	s_cbranch_scc0 .LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[4:5], 0x10000
	s_cbranch_scc0 .LBB0_1
; %bb.4:
	s_load_b64 s[0:1], s[0:1], 0x0
	s_and_b32 s4, 0xffff, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s4, v[0:1]
	v_mov_b32_e32 v2, 0
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_dual_mov_b32 v2, s2 :: v_dual_mov_b32 v3, s3
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b64 v[0:1], v[2:3], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13constant_readILm65536EEvPm
		.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 4
		.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
	.section	.text._Z13constant_readILm65536EEvPm,"axG",@progbits,_Z13constant_readILm65536EEvPm,comdat
.Lfunc_end0:
	.size	_Z13constant_readILm65536EEvPm, .Lfunc_end0-_Z13constant_readILm65536EEvPm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 204
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; 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
	.section	.text._Z10read_dummyILm65536EEvPm,"axG",@progbits,_Z10read_dummyILm65536EEvPm,comdat
	.protected	_Z10read_dummyILm65536EEvPm ; -- Begin function _Z10read_dummyILm65536EEvPm
	.globl	_Z10read_dummyILm65536EEvPm
	.p2align	8
	.type	_Z10read_dummyILm65536EEvPm,@function
_Z10read_dummyILm65536EEvPm:            ; @_Z10read_dummyILm65536EEvPm
; %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_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v1, vcc_lo
	v_mov_b32_e32 v1, 0x13880000
	global_store_b64 v[3:4], v[1:2], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10read_dummyILm65536EEvPm
		.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
	.section	.text._Z10read_dummyILm65536EEvPm,"axG",@progbits,_Z10read_dummyILm65536EEvPm,comdat
.Lfunc_end1:
	.size	_Z10read_dummyILm65536EEvPm, .Lfunc_end1-_Z10read_dummyILm65536EEvPm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 100
; 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
	.section	.text._Z11global_readILm65536EEvPKmPm,"axG",@progbits,_Z11global_readILm65536EEvPKmPm,comdat
	.protected	_Z11global_readILm65536EEvPKmPm ; -- Begin function _Z11global_readILm65536EEvPKmPm
	.globl	_Z11global_readILm65536EEvPKmPm
	.p2align	8
	.type	_Z11global_readILm65536EEvPKmPm,@function
_Z11global_readILm65536EEvPKmPm:        ; @_Z11global_readILm65536EEvPKmPm
; %bb.0:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b32 s10, s[0:1], 0x1c
	s_mov_b64 s[2:3], 0
	s_mov_b64 s[0:1], 0
.LBB2_1:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_2 Depth 2
	s_mov_b64 s[8:9], 0
.LBB2_2:                                ;   Parent Loop BB2_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s12, s4, s8
	s_addc_u32 s13, s5, s9
	s_load_b64 s[12:13], s[12:13], 0x0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s12, s0
	s_addc_u32 s1, s13, s1
	s_add_u32 s8, s8, 8
	s_addc_u32 s9, s9, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[8:9], 0x9c40
	s_cbranch_scc0 .LBB2_2
; %bb.3:                                ;   in Loop: Header=BB2_1 Depth=1
	s_add_u32 s2, s2, 1
	s_addc_u32 s3, s3, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[2:3], 0x10000
	s_cbranch_scc0 .LBB2_1
; %bb.4:
	s_and_b32 s2, 0xffff, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_dual_mov_b32 v3, s1 :: v_dual_mov_b32 v2, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b64 v[0:1], v[2:3], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11global_readILm65536EEvPKmPm
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 4
		.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
	.section	.text._Z11global_readILm65536EEvPKmPm,"axG",@progbits,_Z11global_readILm65536EEvPKmPm,comdat
.Lfunc_end2:
	.size	_Z11global_readILm65536EEvPKmPm, .Lfunc_end2-_Z11global_readILm65536EEvPKmPm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 188
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; 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
	.section	.text._Z15global_ldg_readILm65536EEvPKmPm,"axG",@progbits,_Z15global_ldg_readILm65536EEvPKmPm,comdat
	.protected	_Z15global_ldg_readILm65536EEvPKmPm ; -- Begin function _Z15global_ldg_readILm65536EEvPKmPm
	.globl	_Z15global_ldg_readILm65536EEvPKmPm
	.p2align	8
	.type	_Z15global_ldg_readILm65536EEvPKmPm,@function
_Z15global_ldg_readILm65536EEvPKmPm:    ; @_Z15global_ldg_readILm65536EEvPKmPm
; %bb.0:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b32 s10, s[0:1], 0x1c
	s_mov_b64 s[2:3], 0
	s_mov_b64 s[0:1], 0
.LBB3_1:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB3_2 Depth 2
	s_mov_b64 s[8:9], 0
.LBB3_2:                                ;   Parent Loop BB3_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_waitcnt lgkmcnt(0)
	s_add_u32 s12, s4, s8
	s_addc_u32 s13, s5, s9
	s_load_b64 s[12:13], s[12:13], 0x0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s12, s0
	s_addc_u32 s1, s13, s1
	s_add_u32 s8, s8, 8
	s_addc_u32 s9, s9, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[8:9], 0x9c40
	s_cbranch_scc0 .LBB3_2
; %bb.3:                                ;   in Loop: Header=BB3_1 Depth=1
	s_add_u32 s2, s2, 1
	s_addc_u32 s3, s3, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[2:3], 0x10000
	s_cbranch_scc0 .LBB3_1
; %bb.4:
	s_and_b32 s2, 0xffff, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_dual_mov_b32 v3, s1 :: v_dual_mov_b32 v2, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b64 v[0:1], v[2:3], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z15global_ldg_readILm65536EEvPKmPm
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 4
		.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
	.section	.text._Z15global_ldg_readILm65536EEvPKmPm,"axG",@progbits,_Z15global_ldg_readILm65536EEvPKmPm,comdat
.Lfunc_end3:
	.size	_Z15global_ldg_readILm65536EEvPKmPm, .Lfunc_end3-_Z15global_ldg_readILm65536EEvPKmPm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 188
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; 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
	.section	.text._Z20global_ldg_dist_readILm65536EEvPKmPm,"axG",@progbits,_Z20global_ldg_dist_readILm65536EEvPKmPm,comdat
	.protected	_Z20global_ldg_dist_readILm65536EEvPKmPm ; -- Begin function _Z20global_ldg_dist_readILm65536EEvPKmPm
	.globl	_Z20global_ldg_dist_readILm65536EEvPKmPm
	.p2align	8
	.type	_Z20global_ldg_dist_readILm65536EEvPKmPm,@function
_Z20global_ldg_dist_readILm65536EEvPKmPm: ; @_Z20global_ldg_dist_readILm65536EEvPKmPm
; %bb.0:
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b32 s8, s[0:1], 0x1c
	s_mul_i32 s0, s15, 0x9c40
	s_mul_hi_u32 s1, s15, 0x9c40
	s_mov_b64 s[2:3], 0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s9, s4, s0
	s_addc_u32 s10, s5, s1
	s_mov_b64 s[0:1], 0
.LBB4_1:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB4_2 Depth 2
	s_mov_b64 s[4:5], 0
.LBB4_2:                                ;   Parent Loop BB4_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s12, s9, s4
	s_addc_u32 s13, s10, s5
	s_load_b64 s[12:13], s[12:13], 0x0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s12, s0
	s_addc_u32 s1, s13, s1
	s_add_u32 s4, s4, 8
	s_addc_u32 s5, s5, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[4:5], 0x9c40
	s_cbranch_scc0 .LBB4_2
; %bb.3:                                ;   in Loop: Header=BB4_1 Depth=1
	s_add_u32 s2, s2, 1
	s_addc_u32 s3, s3, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[2:3], 0x10000
	s_cbranch_scc0 .LBB4_1
; %bb.4:
	s_and_b32 s2, 0xffff, s8
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_dual_mov_b32 v3, s1 :: v_dual_mov_b32 v2, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b64 v[0:1], v[2:3], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20global_ldg_dist_readILm65536EEvPKmPm
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 4
		.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
	.section	.text._Z20global_ldg_dist_readILm65536EEvPKmPm,"axG",@progbits,_Z20global_ldg_dist_readILm65536EEvPKmPm,comdat
.Lfunc_end4:
	.size	_Z20global_ldg_dist_readILm65536EEvPKmPm, .Lfunc_end4-_Z20global_ldg_dist_readILm65536EEvPKmPm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 216
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; 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
	.section	.text._Z20constant_shared_readILm65536EEvPm,"axG",@progbits,_Z20constant_shared_readILm65536EEvPm,comdat
	.protected	_Z20constant_shared_readILm65536EEvPm ; -- Begin function _Z20constant_shared_readILm65536EEvPm
	.globl	_Z20constant_shared_readILm65536EEvPm
	.p2align	8
	.type	_Z20constant_shared_readILm65536EEvPm,@function
_Z20constant_shared_readILm65536EEvPm:  ; @_Z20constant_shared_readILm65536EEvPm
; %bb.0:
	s_load_b32 s2, s[0:1], 0x14
	s_mov_b64 s[4:5], 0
	v_mov_b32_e32 v5, 0
	v_mov_b32_e32 v6, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_mov_b32_e32 v2, 0
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, const_mem@rel32@lo+4
	s_addc_u32 s3, s3, const_mem@rel32@hi+12
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, 0x1388, v1
	v_lshlrev_b32_e32 v0, 3, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v7, s2, v3, s2
	v_add_co_ci_u32_e64 v8, s2, s3, v4, s2
.LBB5_1:                                ; %.preheader18
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB5_3 Depth 2
                                        ;     Child Loop BB5_5 Depth 2
	s_and_saveexec_b32 s6, vcc_lo
	s_cbranch_execz .LBB5_4
; %bb.2:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB5_1 Depth=1
	v_dual_mov_b32 v10, v2 :: v_dual_mov_b32 v9, v1
	v_mov_b32_e32 v13, v0
	v_dual_mov_b32 v12, v8 :: v_dual_mov_b32 v11, v7
	s_mov_b32 s7, 0
.LBB5_3:                                ; %.lr.ph
                                        ;   Parent Loop BB5_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b64 v[14:15], v[11:12], off
	v_add_co_u32 v9, s2, 0x80, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v10, s2, 0, v10, s2
	v_add_co_u32 v11, s2, 0x400, v11
	v_add_co_ci_u32_e64 v12, s2, 0, v12, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_u64_e64 s3, 0x1387, v[9:10]
	s_or_b32 s7, s3, s7
	s_waitcnt vmcnt(0)
	ds_store_b64 v13, v[14:15]
	v_add_nc_u32_e32 v13, 0x400, v13
	s_and_not1_b32 exec_lo, exec_lo, s7
	s_cbranch_execnz .LBB5_3
.LBB5_4:                                ; %Flow35
                                        ;   in Loop: Header=BB5_1 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
	s_mov_b64 s[6:7], 0x1388
	s_mov_b32 s3, 0
.LBB5_5:                                ; %.preheader
                                        ;   Parent Loop BB5_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v9, s3
	s_add_u32 s6, s6, -1
	s_addc_u32 s7, s7, -1
	s_add_i32 s3, s3, 8
	s_cmp_eq_u64 s[6:7], 0
	ds_load_b64 v[9:10], v9
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v5, s2, v9, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v6, s2, v10, v6, s2
	s_cbranch_scc0 .LBB5_5
; %bb.6:                                ;   in Loop: Header=BB5_1 Depth=1
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[4:5], 0x10000
	s_cbranch_scc0 .LBB5_1
; %bb.7:
	s_load_b64 s[0:1], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v4, vcc_lo
	global_store_b64 v[0:1], v[5:6], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20constant_shared_readILm65536EEvPm
		.amdhsa_group_segment_fixed_size 40000
		.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 16
		.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
	.section	.text._Z20constant_shared_readILm65536EEvPm,"axG",@progbits,_Z20constant_shared_readILm65536EEvPm,comdat
.Lfunc_end5:
	.size	_Z20constant_shared_readILm65536EEvPm, .Lfunc_end5-_Z20constant_shared_readILm65536EEvPm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 384
; NumSgprs: 18
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 40000 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 16
; 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
	.section	.text._Z18global_shared_readILm65536EEvPKmPm,"axG",@progbits,_Z18global_shared_readILm65536EEvPKmPm,comdat
	.protected	_Z18global_shared_readILm65536EEvPKmPm ; -- Begin function _Z18global_shared_readILm65536EEvPKmPm
	.globl	_Z18global_shared_readILm65536EEvPKmPm
	.p2align	8
	.type	_Z18global_shared_readILm65536EEvPKmPm,@function
_Z18global_shared_readILm65536EEvPKmPm: ; @_Z18global_shared_readILm65536EEvPKmPm
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x1c
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mov_b32_e32 v5, 0
	v_mov_b32_e32 v6, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s4, v[0:1]
	v_mov_b32_e32 v2, 0
	s_mov_b64 s[4:5], 0
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, 0x1388, v1
	v_lshlrev_b32_e32 v0, 3, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v7, s0, s0, v3
	v_add_co_ci_u32_e64 v8, s0, s1, v4, s0
.LBB6_1:                                ; %.preheader20
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB6_3 Depth 2
                                        ;     Child Loop BB6_5 Depth 2
	s_and_saveexec_b32 s6, vcc_lo
	s_cbranch_execz .LBB6_4
; %bb.2:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB6_1 Depth=1
	v_dual_mov_b32 v10, v2 :: v_dual_mov_b32 v9, v1
	v_mov_b32_e32 v13, v0
	v_dual_mov_b32 v12, v8 :: v_dual_mov_b32 v11, v7
	s_mov_b32 s7, 0
.LBB6_3:                                ; %.lr.ph
                                        ;   Parent Loop BB6_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b64 v[14:15], v[11:12], off
	v_add_co_u32 v9, s0, 0x80, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v10, s0, 0, v10, s0
	v_add_co_u32 v11, s0, 0x400, v11
	v_add_co_ci_u32_e64 v12, s0, 0, v12, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_u64_e64 s1, 0x1387, v[9:10]
	s_or_b32 s7, s1, s7
	s_waitcnt vmcnt(0)
	ds_store_b64 v13, v[14:15]
	v_add_nc_u32_e32 v13, 0x400, v13
	s_and_not1_b32 exec_lo, exec_lo, s7
	s_cbranch_execnz .LBB6_3
.LBB6_4:                                ; %Flow41
                                        ;   in Loop: Header=BB6_1 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
	s_mov_b64 s[6:7], 0x1388
	s_mov_b32 s1, 0
.LBB6_5:                                ; %.preheader
                                        ;   Parent Loop BB6_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v9, s1
	s_add_u32 s6, s6, -1
	s_addc_u32 s7, s7, -1
	s_add_i32 s1, s1, 8
	s_cmp_eq_u64 s[6:7], 0
	ds_load_b64 v[9:10], v9
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v5, s0, v9, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v6, s0, v10, v6, s0
	s_cbranch_scc0 .LBB6_5
; %bb.6:                                ;   in Loop: Header=BB6_1 Depth=1
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[4:5], 0x10000
	s_cbranch_scc0 .LBB6_1
; %bb.7:
	v_add_co_u32 v0, vcc_lo, s2, v3
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v4, vcc_lo
	global_store_b64 v[0:1], v[5:6], off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18global_shared_readILm65536EEvPKmPm
		.amdhsa_group_segment_fixed_size 40000
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 16
		.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
	.section	.text._Z18global_shared_readILm65536EEvPKmPm,"axG",@progbits,_Z18global_shared_readILm65536EEvPKmPm,comdat
.Lfunc_end6:
	.size	_Z18global_shared_readILm65536EEvPKmPm, .Lfunc_end6-_Z18global_shared_readILm65536EEvPKmPm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 364
; NumSgprs: 18
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 40000 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 16
; 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
	.protected	const_mem               ; @const_mem
	.type	const_mem,@object
	.section	.bss,"aw",@nobits
	.globl	const_mem
	.p2align	4, 0x0
const_mem:
	.zero	40000
	.size	const_mem, 40000

	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.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 const_mem
	.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:           _Z13constant_readILm65536EEvPm
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z13constant_readILm65536EEvPm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .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:           _Z10read_dummyILm65536EEvPm
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10read_dummyILm65536EEvPm.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
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11global_readILm65536EEvPKmPm
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z11global_readILm65536EEvPKmPm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z15global_ldg_readILm65536EEvPKmPm
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z15global_ldg_readILm65536EEvPKmPm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20global_ldg_dist_readILm65536EEvPKmPm
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20global_ldg_dist_readILm65536EEvPKmPm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .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: 40000
    .kernarg_segment_align: 8
    .kernarg_segment_size: 264
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20constant_shared_readILm65536EEvPm
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20constant_shared_readILm65536EEvPm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 40000
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18global_shared_readILm65536EEvPKmPm
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18global_shared_readILm65536EEvPKmPm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
