#include <iostream>
#include <string>
#include <cstdlib>

// 2 GB of data
#define BYTES 2147483648
#define MAX_STRIDE 4194304
#define MAX_INDEX (BYTES/MAX_STRIDE)

static void __global__
Set(const int Seed, const int Stride, char *data) {
	// Everyone set some data
	for(int i = threadIdx.x; i < BYTES ; i+= blockDim.x ) {
		data[i] = (char)(i * threadIdx.x + Seed);
	}
}

static void __global__
CacheTest(const int Seed , const int Stride , char *data, int *result ) {
	if(threadIdx.x == 0 ) {
		int local_result = 0;
		for(int i = 0 ; i < MAX_INDEX; ++i) {
			local_result += data[i *(Stride+1)];
		}
		*result = local_result;	// Here to make sure we don't optimize the loop away
	}
}

static void Validate(bool cond, std::string msg) {
	if(!cond) {
		std::cout << msg << std::endl;
		cudaDeviceReset();
		std::exit(EXIT_FAILURE);
	}
}

static void CudaCheck(std::string msg, cudaError err) {
	Validate(err==cudaSuccess, cudaGetErrorString(err) + std::string("\n") + msg);
}

void sort(float *durations, int size) {
	for(int i = 1 ; i < size; ++i) {
		float cand = durations[i];
		int j = i;
		while( j > 0 && cand < durations[j-1]) {
			if(durations[j] < durations[j-1]) {
				durations[j] = durations[j-1];
			}
			--j;
		}
		durations[j] = cand;
	}
}


float Run(const int Seed, const int Stride) {
	
	const int Blocks = 1;
	const int Threads = 1024;
	float time;
	cudaEvent_t start,end;
	
	char *d_data;
	int *d_result;
	
	CudaCheck("Malloc Result", cudaMalloc(&d_result, sizeof(int) ) );
	CudaCheck("Malloc Data", cudaMalloc(&d_data, BYTES ) );
	
	CudaCheck("Memset Result", cudaMemset(d_result, 0, sizeof(int) ) );
	CudaCheck("Memset Data", cudaMemset(d_data, 0, BYTES ) );
	
	Set<<<Blocks,Threads>>>(Seed, Stride, d_data);
	CudaCheck("Set",cudaDeviceSynchronize());
	
	CudaCheck("Create start",cudaEventCreate(&start));
	CudaCheck("Create end",cudaEventCreate(&end));
	
	
	
	CudaCheck("Record start",cudaEventRecord(start,0));
	CacheTest<<<Blocks,Threads>>>(Seed, Stride, d_data, d_result);
	CudaCheck("Record end",cudaEventRecord(end,0));
	CudaCheck("Device Sync",cudaDeviceSynchronize());
	
	CudaCheck("Event sync", cudaEventSynchronize(end) );
	CudaCheck("Get elapsed time",cudaEventElapsedTime(&time,start,end));
	
	CudaCheck("Destroy start",cudaEventDestroy(start));
	CudaCheck("Destroy end",cudaEventDestroy(end));
	
	
	CudaCheck("Free result", cudaFree(d_result));
	CudaCheck("Free data", cudaFree(d_data));
	
	CudaCheck("Reset",cudaDeviceReset());
	
	return time;
}

int main(int argc, char* argv[]) {
	
	const int Runs = 50;
	float durations[Runs];
	
	Validate(argc==2,"Usage: " + std::string(argv[0]) + " stride");
	const int Stride = atoi(argv[1]);
	Validate(Stride <= MAX_STRIDE,"Decrease Stride");
	
	std::cout << "Stride: " << Stride << std::endl;
	
	for(int i = 0 ; i < Runs ; ++i ) {
		durations[i] = Run(i+1, Stride);
	}
	sort(durations,Runs);
	
	float time = 0;
	int count = 0;
	for(int i = 0; i < Runs; ++i) {
		time += durations[i];
		++count;
	}
	time /= count;
	
	std::cout << "Elapsed Time: " << time << "ms" << std::endl;	
	
	return EXIT_SUCCESS;
}
	.file	"tmpxft_002ed0f9_00000000-6_Cache.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3642:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3642:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"basic_string: construction from null is not valid"
	.text
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0:
.LFB4319:
	.cfi_startproc
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	jne	.L3
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L8
	leaq	.LC0(%rip), %rdi
	call	_ZSt19__throw_logic_errorPKc@PLT
.L3:
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rsi, %rbp
	call	strlen@PLT
	movq	%rax, (%rsp)
	leaq	0(%rbp,%rax), %r12
	cmpq	$15, %rax
	jbe	.L5
	movq	%rsp, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm@PLT
	movq	%rax, (%rbx)
	movq	(%rsp), %rax
	movq	%rax, 16(%rbx)
.L5:
	movq	(%rbx), %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	movq	(%rsp), %rax
	movq	(%rbx), %rdx
	movq	%rax, 8(%rbx)
	movb	$0, (%rdx,%rax)
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L6
.L8:
	call	__stack_chk_fail@PLT
.L6:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4319:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
	.type	_ZL32__device_stub__Z9CacheTestiiPcPiiiPcPi, @function
_ZL32__device_stub__Z9CacheTestiiPcPiiiPcPi:
.LFB3666:
	.cfi_startproc
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 24(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 16(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L10
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_ZL9CacheTestiiPcPi(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L10:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3666:
	.size	_ZL32__device_stub__Z9CacheTestiiPcPiiiPcPi, .-_ZL32__device_stub__Z9CacheTestiiPcPiiiPcPi
	.type	_ZL9CacheTestiiPcPi, @function
_ZL9CacheTestiiPcPi:
.LFB3667:
	.cfi_startproc
	endbr64
	jmp	_ZL32__device_stub__Z9CacheTestiiPcPiiiPcPi
	.cfi_endproc
.LFE3667:
	.size	_ZL9CacheTestiiPcPi, .-_ZL9CacheTestiiPcPi
	.type	_ZL24__device_stub__Z3SetiiPciiPc, @function
_ZL24__device_stub__Z3SetiiPciiPc:
.LFB3664:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movl	%edi, 12(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 8(%rsp)
	leaq	44(%rsp), %rsi
	movq	%rdx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L15
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_ZL3SetiiPc(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	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 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L15:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3664:
	.size	_ZL24__device_stub__Z3SetiiPciiPc, .-_ZL24__device_stub__Z3SetiiPciiPc
	.type	_ZL3SetiiPc, @function
_ZL3SetiiPc:
.LFB3665:
	.cfi_startproc
	endbr64
	jmp	_ZL24__device_stub__Z3SetiiPciiPc
	.cfi_endproc
.LFE3665:
	.size	_ZL3SetiiPc, .-_ZL3SetiiPc
	.type	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB3635:
	.cfi_startproc
	testb	%dil, %dil
	jne	.L20
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	call	cudaDeviceReset@PLT
	movl	$1, %edi
	call	exit@PLT
.L20:
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3635:
	.size	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.section	.rodata.str1.1
.LC1:
	.string	"\n"
	.text
	.type	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError, @function
_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError:
.LFB3636:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3636
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rdi, %r13
	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
	movl	%esi, %ebx
	leaq	.LC1(%rip), %rsi
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rbp
	movq	%rbp, %rdi
.LEHB0:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE0:
	movl	%ebx, %edi
.LEHB1:
	call	cudaGetErrorString@PLT
	movq	%rax, %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmPKc@PLT
.LEHE1:
	leaq	40(%rsp), %r12
	movq	%rax, %rsi
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
.LEHB2:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_@PLT
.LEHE2:
	leaq	72(%rsp), %r13
	movq	%rax, %rsi
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	xorl	%edi, %edi
	testl	%ebx, %ebx
	movq	%r13, %rsi
	sete	%dil
.LEHB3:
	call	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE3:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L30
	jmp	.L34
.L33:
	endbr64
	movq	%rax, %rbx
.L26:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L27
.L32:
	endbr64
	movq	%rax, %rbx
.L27:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L28
.L31:
	endbr64
	movq	%rax, %rbx
.L28:
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L34:
	call	__stack_chk_fail@PLT
.L30:
	addq	$120, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3636:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3636:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3636-.LLSDACSB3636
.LLSDACSB3636:
	.uleb128 .LEHB0-.LFB3636
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3636
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L31-.LFB3636
	.uleb128 0
	.uleb128 .LEHB2-.LFB3636
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L32-.LFB3636
	.uleb128 0
	.uleb128 .LEHB3-.LFB3636
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L33-.LFB3636
	.uleb128 0
	.uleb128 .LEHB4-.LFB3636
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE3636:
	.text
	.size	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError, .-_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
	.globl	_Z4sortPfi
	.type	_Z4sortPfi, @function
_Z4sortPfi:
.LFB3637:
	.cfi_startproc
	endbr64
	movl	$1, %edx
.L37:
	cmpl	%edx, %esi
	jle	.L45
	movss	(%rdi,%rdx,4), %xmm1
	movq	%rdx, %rax
.L38:
	movss	-4(%rdi,%rax,4), %xmm0
	comiss	%xmm1, %xmm0
	jbe	.L46
	comiss	(%rdi,%rax,4), %xmm0
	jbe	.L39
	movss	%xmm0, (%rdi,%rax,4)
.L39:
	decq	%rax
	movslq	%eax, %rcx
	testl	%eax, %eax
	jne	.L38
	jmp	.L41
.L46:
	movslq	%eax, %rcx
.L41:
	movss	%xmm1, (%rdi,%rcx,4)
	incq	%rdx
	jmp	.L37
.L45:
	ret
	.cfi_endproc
.LFE3637:
	.size	_Z4sortPfi, .-_Z4sortPfi
	.section	.rodata.str1.1
.LC2:
	.string	"Malloc Result"
.LC3:
	.string	"Malloc Data"
.LC4:
	.string	"Memset Result"
.LC5:
	.string	"Memset Data"
.LC6:
	.string	"Set"
.LC7:
	.string	"Create start"
.LC8:
	.string	"Create end"
.LC9:
	.string	"Record start"
.LC10:
	.string	"Record end"
.LC11:
	.string	"Device Sync"
.LC12:
	.string	"Event sync"
.LC13:
	.string	"Get elapsed time"
.LC14:
	.string	"Destroy start"
.LC15:
	.string	"Destroy end"
.LC16:
	.string	"Free result"
.LC17:
	.string	"Free data"
.LC18:
	.string	"Reset"
	.text
	.globl	_Z3Runii
	.type	_Z3Runii, @function
_Z3Runii:
.LFB3638:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3638
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	%esi, %r12d
	movl	$4, %esi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rdi
	leaq	56(%rsp), %rbx
.LEHB5:
	call	cudaMalloc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE5:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB6:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE6:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	16(%rsp), %rdi
	movl	$2147483648, %esi
.LEHB7:
	call	cudaMalloc@PLT
	leaq	.LC3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE7:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB8:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE8:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%rsp), %rdi
	movl	$4, %edx
	xorl	%esi, %esi
.LEHB9:
	call	cudaMemset@PLT
	leaq	.LC4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE9:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB10:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE10:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
	movl	$2147483648, %edx
	xorl	%esi, %esi
.LEHB11:
	call	cudaMemset@PLT
	leaq	.LC5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE11:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB12:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE12:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movl	$4194305, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$10, %rdx
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movq	%rdx, 44(%rsp)
	movl	$1, 52(%rsp)
	movq	%rdi, 32(%rsp)
	movl	$1, 40(%rsp)
.LEHB13:
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L48
	movq	16(%rsp), %rdx
	movl	%r12d, %esi
	movl	%ebp, %edi
	call	_ZL24__device_stub__Z3SetiiPciiPc
.L48:
	call	cudaDeviceSynchronize@PLT
	leaq	.LC6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE13:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB14:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE14:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rsp, %rdi
.LEHB15:
	call	cudaEventCreate@PLT
	leaq	.LC7(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE15:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB16:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE16:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	8(%rsp), %rdi
.LEHB17:
	call	cudaEventCreate@PLT
	leaq	.LC8(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE17:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB18:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE18:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	(%rsp), %rdi
	xorl	%esi, %esi
.LEHB19:
	call	cudaEventRecord@PLT
	leaq	.LC9(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r13d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE19:
	movl	%r13d, %esi
	movq	%rbx, %rdi
.LEHB20:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE20:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movl	$4194305, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$10, %rdx
	movl	$1, %ecx
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movq	%rdx, 44(%rsp)
	movl	$1, 52(%rsp)
	movq	%rdi, 32(%rsp)
	movl	$1, 40(%rsp)
.LEHB21:
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L49
	movq	24(%rsp), %rcx
	movq	16(%rsp), %rdx
	movl	%r12d, %esi
	movl	%ebp, %edi
	call	_ZL32__device_stub__Z9CacheTestiiPcPiiiPcPi
.L49:
	movq	8(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	.LC10(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE21:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB22:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE22:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.LEHB23:
	call	cudaDeviceSynchronize@PLT
	leaq	.LC11(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE23:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB24:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE24:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
.LEHB25:
	call	cudaEventSynchronize@PLT
	leaq	.LC12(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE25:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB26:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE26:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	44(%rsp), %rdi
.LEHB27:
	call	cudaEventElapsedTime@PLT
	leaq	.LC13(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE27:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB28:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE28:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	(%rsp), %rdi
.LEHB29:
	call	cudaEventDestroy@PLT
	leaq	.LC14(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE29:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB30:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE30:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rsp), %rdi
.LEHB31:
	call	cudaEventDestroy@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE31:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB32:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE32:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	24(%rsp), %rdi
.LEHB33:
	call	cudaFree@PLT
	leaq	.LC16(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE33:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB34:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE34:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	16(%rsp), %rdi
.LEHB35:
	call	cudaFree@PLT
	leaq	.LC17(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE35:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB36:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE36:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
.LEHB37:
	call	cudaDeviceReset@PLT
	leaq	.LC18(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE37:
	movl	%ebp, %esi
	movq	%rbx, %rdi
.LEHB38:
	call	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE9cudaError
.LEHE38:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movss	44(%rsp), %xmm0
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L84
	jmp	.L102
.L85:
	endbr64
	jmp	.L105
.L86:
	endbr64
	jmp	.L105
.L87:
	endbr64
	jmp	.L105
.L88:
	endbr64
	jmp	.L105
.L89:
	endbr64
	jmp	.L105
.L90:
	endbr64
	jmp	.L105
.L91:
	endbr64
	jmp	.L105
.L92:
	endbr64
	jmp	.L105
.L93:
	endbr64
	jmp	.L105
.L94:
	endbr64
	jmp	.L105
.L95:
	endbr64
	jmp	.L105
.L96:
	endbr64
	jmp	.L105
.L97:
	endbr64
	jmp	.L105
.L98:
	endbr64
	jmp	.L105
.L99:
	endbr64
	jmp	.L105
.L100:
	endbr64
	jmp	.L105
.L101:
	endbr64
.L105:
	movq	%rax, %rbp
.L82:
	movq	%rbx, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L102
	movq	%rbp, %rdi
.LEHB39:
	call	_Unwind_Resume@PLT
.LEHE39:
.L102:
	call	__stack_chk_fail@PLT
.L84:
	addq	$104, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3638:
	.section	.gcc_except_table
.LLSDA3638:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3638-.LLSDACSB3638
.LLSDACSB3638:
	.uleb128 .LEHB5-.LFB3638
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB6-.LFB3638
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L85-.LFB3638
	.uleb128 0
	.uleb128 .LEHB7-.LFB3638
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB8-.LFB3638
	.uleb128 .LEHE8-.LEHB8
	.uleb128 .L86-.LFB3638
	.uleb128 0
	.uleb128 .LEHB9-.LFB3638
	.uleb128 .LEHE9-.LEHB9
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB10-.LFB3638
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L87-.LFB3638
	.uleb128 0
	.uleb128 .LEHB11-.LFB3638
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB12-.LFB3638
	.uleb128 .LEHE12-.LEHB12
	.uleb128 .L88-.LFB3638
	.uleb128 0
	.uleb128 .LEHB13-.LFB3638
	.uleb128 .LEHE13-.LEHB13
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB14-.LFB3638
	.uleb128 .LEHE14-.LEHB14
	.uleb128 .L89-.LFB3638
	.uleb128 0
	.uleb128 .LEHB15-.LFB3638
	.uleb128 .LEHE15-.LEHB15
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB16-.LFB3638
	.uleb128 .LEHE16-.LEHB16
	.uleb128 .L90-.LFB3638
	.uleb128 0
	.uleb128 .LEHB17-.LFB3638
	.uleb128 .LEHE17-.LEHB17
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB18-.LFB3638
	.uleb128 .LEHE18-.LEHB18
	.uleb128 .L91-.LFB3638
	.uleb128 0
	.uleb128 .LEHB19-.LFB3638
	.uleb128 .LEHE19-.LEHB19
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB20-.LFB3638
	.uleb128 .LEHE20-.LEHB20
	.uleb128 .L92-.LFB3638
	.uleb128 0
	.uleb128 .LEHB21-.LFB3638
	.uleb128 .LEHE21-.LEHB21
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB22-.LFB3638
	.uleb128 .LEHE22-.LEHB22
	.uleb128 .L93-.LFB3638
	.uleb128 0
	.uleb128 .LEHB23-.LFB3638
	.uleb128 .LEHE23-.LEHB23
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB24-.LFB3638
	.uleb128 .LEHE24-.LEHB24
	.uleb128 .L94-.LFB3638
	.uleb128 0
	.uleb128 .LEHB25-.LFB3638
	.uleb128 .LEHE25-.LEHB25
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB26-.LFB3638
	.uleb128 .LEHE26-.LEHB26
	.uleb128 .L95-.LFB3638
	.uleb128 0
	.uleb128 .LEHB27-.LFB3638
	.uleb128 .LEHE27-.LEHB27
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB28-.LFB3638
	.uleb128 .LEHE28-.LEHB28
	.uleb128 .L96-.LFB3638
	.uleb128 0
	.uleb128 .LEHB29-.LFB3638
	.uleb128 .LEHE29-.LEHB29
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB30-.LFB3638
	.uleb128 .LEHE30-.LEHB30
	.uleb128 .L97-.LFB3638
	.uleb128 0
	.uleb128 .LEHB31-.LFB3638
	.uleb128 .LEHE31-.LEHB31
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB32-.LFB3638
	.uleb128 .LEHE32-.LEHB32
	.uleb128 .L98-.LFB3638
	.uleb128 0
	.uleb128 .LEHB33-.LFB3638
	.uleb128 .LEHE33-.LEHB33
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB34-.LFB3638
	.uleb128 .LEHE34-.LEHB34
	.uleb128 .L99-.LFB3638
	.uleb128 0
	.uleb128 .LEHB35-.LFB3638
	.uleb128 .LEHE35-.LEHB35
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB36-.LFB3638
	.uleb128 .LEHE36-.LEHB36
	.uleb128 .L100-.LFB3638
	.uleb128 0
	.uleb128 .LEHB37-.LFB3638
	.uleb128 .LEHE37-.LEHB37
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB38-.LFB3638
	.uleb128 .LEHE38-.LEHB38
	.uleb128 .L101-.LFB3638
	.uleb128 0
	.uleb128 .LEHB39-.LFB3638
	.uleb128 .LEHE39-.LEHB39
	.uleb128 0
	.uleb128 0
.LLSDACSE3638:
	.text
	.size	_Z3Runii, .-_Z3Runii
	.section	.rodata.str1.1
.LC20:
	.string	"Usage: "
.LC21:
	.string	" stride"
.LC22:
	.string	"Decrease Stride"
.LC23:
	.string	"Stride: "
.LC25:
	.string	"Elapsed Time: "
.LC26:
	.string	"ms"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3639:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3639
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rsi, %rbx
	subq	$288, %rsp
	.cfi_def_cfa_offset 336
	movq	(%rsi), %rsi
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rdi
.LEHB40:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE40:
	leaq	.LC20(%rip), %rdx
	xorl	%esi, %esi
	movq	%rbp, %rdi
.LEHB41:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmPKc@PLT
.LEHE41:
	leaq	48(%rsp), %r12
	movq	%rax, %rsi
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	leaq	.LC21(%rip), %rsi
	movq	%r12, %rdi
.LEHB42:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc@PLT
.LEHE42:
	leaq	80(%rsp), %r13
	movq	%rax, %rsi
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EOS4_@PLT
	xorl	%edi, %edi
	cmpl	$2, %r14d
	movq	%r13, %rsi
	sete	%dil
.LEHB43:
	call	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE43:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	%rbp, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	8(%rbx), %rdi
	call	atoi@PLT
	leaq	.LC22(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %ebp
.LEHB44:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.constprop.0
.LEHE44:
	xorl	%edi, %edi
	cmpl	$4194304, %ebp
	movq	%r13, %rsi
	setle	%dil
.LEHB45:
	call	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.LEHE45:
	movq	%r13, %rdi
	leaq	_ZSt4cout(%rip), %r12
	movl	$1, %ebx
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leaq	.LC23(%rip), %rsi
	movq	%r12, %rdi
.LEHB46:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
.L107:
	movl	%ebx, %edi
	movl	%ebp, %esi
	call	_Z3Runii
	movss	%xmm0, -4(%r13,%rbx,4)
	incq	%rbx
	cmpq	$51, %rbx
	jne	.L107
	movl	$50, %esi
	movq	%r13, %rdi
	call	_Z4sortPfi
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
.L108:
	addss	0(%r13,%rax,4), %xmm0
	incq	%rax
	cmpq	$50, %rax
	jne	.L108
	leaq	.LC25(%rip), %rsi
	movq	%r12, %rdi
	divss	.LC24(%rip), %xmm0
	movss	%xmm0, 12(%rsp)
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movss	12(%rsp), %xmm0
	movq	%rax, %rdi
	cvtss2sd	%xmm0, %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC26(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	je	.L115
	jmp	.L122
.L118:
	endbr64
	movq	%rax, %rbx
.L109:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L110
.L117:
	endbr64
	movq	%rax, %rbx
.L110:
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L111
.L116:
	endbr64
	movq	%rax, %rbx
.L111:
	movq	%rbp, %rdi
	jmp	.L125
.L119:
	endbr64
	movq	%rax, %rbx
.L113:
	movq	%r13, %rdi
.L125:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L122
	movq	%rbx, %rdi
	call	_Unwind_Resume@PLT
.LEHE46:
.L122:
	call	__stack_chk_fail@PLT
.L115:
	addq	$288, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3639:
	.section	.gcc_except_table
.LLSDA3639:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3639-.LLSDACSB3639
.LLSDACSB3639:
	.uleb128 .LEHB40-.LFB3639
	.uleb128 .LEHE40-.LEHB40
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB41-.LFB3639
	.uleb128 .LEHE41-.LEHB41
	.uleb128 .L116-.LFB3639
	.uleb128 0
	.uleb128 .LEHB42-.LFB3639
	.uleb128 .LEHE42-.LEHB42
	.uleb128 .L117-.LFB3639
	.uleb128 0
	.uleb128 .LEHB43-.LFB3639
	.uleb128 .LEHE43-.LEHB43
	.uleb128 .L118-.LFB3639
	.uleb128 0
	.uleb128 .LEHB44-.LFB3639
	.uleb128 .LEHE44-.LEHB44
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB45-.LFB3639
	.uleb128 .LEHE45-.LEHB45
	.uleb128 .L119-.LFB3639
	.uleb128 0
	.uleb128 .LEHB46-.LFB3639
	.uleb128 .LEHE46-.LEHB46
	.uleb128 0
	.uleb128 0
.LLSDACSE3639:
	.section	.text.startup
	.size	main, .-main
	.section	.rodata.str1.1
.LC27:
	.string	"_Z9CacheTestiiPcPi"
.LC28:
	.string	"_Z3SetiiPc"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3669:
	.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	.LC27(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_ZL9CacheTestiiPcPi(%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	.LC28(%rip), %rdx
	orl	$-1, %r8d
	leaq	_ZL3SetiiPc(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3669:
	.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
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC24:
	.long	1112014848
	.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 <string>
#include <cstdlib>

// 2 GB of data
#define BYTES 2147483648
#define MAX_STRIDE 4194304
#define MAX_INDEX (BYTES/MAX_STRIDE)

static void __global__
Set(const int Seed, const int Stride, char *data) {
	// Everyone set some data
	for(int i = threadIdx.x; i < BYTES ; i+= blockDim.x ) {
		data[i] = (char)(i * threadIdx.x + Seed);
	}
}

static void __global__
CacheTest(const int Seed , const int Stride , char *data, int *result ) {
	if(threadIdx.x == 0 ) {
		int local_result = 0;
		for(int i = 0 ; i < MAX_INDEX; ++i) {
			local_result += data[i *(Stride+1)];
		}
		*result = local_result;	// Here to make sure we don't optimize the loop away
	}
}

static void Validate(bool cond, std::string msg) {
	if(!cond) {
		std::cout << msg << std::endl;
		hipDeviceReset();
		std::exit(EXIT_FAILURE);
	}
}

static void CudaCheck(std::string msg, hipError_t err) {
	Validate(err==hipSuccess, hipGetErrorString(err) + std::string("\n") + msg);
}

void sort(float *durations, int size) {
	for(int i = 1 ; i < size; ++i) {
		float cand = durations[i];
		int j = i;
		while( j > 0 && cand < durations[j-1]) {
			if(durations[j] < durations[j-1]) {
				durations[j] = durations[j-1];
			}
			--j;
		}
		durations[j] = cand;
	}
}


float Run(const int Seed, const int Stride) {
	
	const int Blocks = 1;
	const int Threads = 1024;
	float time;
	hipEvent_t start,end;
	
	char *d_data;
	int *d_result;
	
	CudaCheck("Malloc Result", hipMalloc(&d_result, sizeof(int) ) );
	CudaCheck("Malloc Data", hipMalloc(&d_data, BYTES ) );
	
	CudaCheck("Memset Result", hipMemset(d_result, 0, sizeof(int) ) );
	CudaCheck("Memset Data", hipMemset(d_data, 0, BYTES ) );
	
	Set<<<Blocks,Threads>>>(Seed, Stride, d_data);
	CudaCheck("Set",hipDeviceSynchronize());
	
	CudaCheck("Create start",hipEventCreate(&start));
	CudaCheck("Create end",hipEventCreate(&end));
	
	
	
	CudaCheck("Record start",hipEventRecord(start,0));
	CacheTest<<<Blocks,Threads>>>(Seed, Stride, d_data, d_result);
	CudaCheck("Record end",hipEventRecord(end,0));
	CudaCheck("Device Sync",hipDeviceSynchronize());
	
	CudaCheck("Event sync", hipEventSynchronize(end) );
	CudaCheck("Get elapsed time",hipEventElapsedTime(&time,start,end));
	
	CudaCheck("Destroy start",hipEventDestroy(start));
	CudaCheck("Destroy end",hipEventDestroy(end));
	
	
	CudaCheck("Free result", hipFree(d_result));
	CudaCheck("Free data", hipFree(d_data));
	
	CudaCheck("Reset",hipDeviceReset());
	
	return time;
}

int main(int argc, char* argv[]) {
	
	const int Runs = 50;
	float durations[Runs];
	
	Validate(argc==2,"Usage: " + std::string(argv[0]) + " stride");
	const int Stride = atoi(argv[1]);
	Validate(Stride <= MAX_STRIDE,"Decrease Stride");
	
	std::cout << "Stride: " << Stride << std::endl;
	
	for(int i = 0 ; i < Runs ; ++i ) {
		durations[i] = Run(i+1, Stride);
	}
	sort(durations,Runs);
	
	float time = 0;
	int count = 0;
	for(int i = 0; i < Runs; ++i) {
		time += durations[i];
		++count;
	}
	time /= count;
	
	std::cout << "Elapsed Time: " << time << "ms" << std::endl;	
	
	return EXIT_SUCCESS;
}
	.text
	.file	"Cache.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z4sortPfi                      # -- Begin function _Z4sortPfi
	.type	_Z4sortPfi,@function
_Z4sortPfi:                             # @_Z4sortPfi
	.cfi_startproc
# %bb.0:
	cmpl	$2, %esi
	jl	.LBB0_9
# %bb.1:                                # %.lr.ph.preheader
	movl	%esi, %eax
	movl	$1, %ecx
.LBB0_2:                                # %.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_3 Depth 2
	movss	(%rdi,%rcx,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	movq	%rcx, %rdx
.LBB0_3:                                #   Parent Loop BB0_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	-4(%rdi,%rdx,4), %xmm1          # xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	.LBB0_8
# %bb.4:                                #   in Loop: Header=BB0_3 Depth=2
	ucomiss	(%rdi,%rdx,4), %xmm1
	jbe	.LBB0_6
# %bb.5:                                #   in Loop: Header=BB0_3 Depth=2
	movss	%xmm1, (%rdi,%rdx,4)
.LBB0_6:                                #   in Loop: Header=BB0_3 Depth=2
	leaq	-1(%rdx), %rsi
	cmpq	$1, %rdx
	movq	%rsi, %rdx
	jg	.LBB0_3
# %bb.7:                                #   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
.LBB0_8:                                # %.critedge
                                        #   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %rdx
	movss	%xmm0, (%rdi,%rdx,4)
	incq	%rcx
	cmpq	%rax, %rcx
	jne	.LBB0_2
.LBB0_9:                                # %._crit_edge
	retq
.Lfunc_end0:
	.size	_Z4sortPfi, .Lfunc_end0-_Z4sortPfi
	.cfi_endproc
                                        # -- End function
	.globl	_Z3Runii                        # -- Begin function _Z3Runii
	.type	_Z3Runii,@function
_Z3Runii:                               # @_Z3Runii
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$592, %rsp                      # imm = 0x250
	.cfi_def_cfa_offset 640
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebx
	movl	%edi, %ebp
	leaq	576(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	560(%rsp), %rdi
	movl	$.L.str, %esi
	movl	$.L.str+13, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp0:
	leaq	24(%rsp), %rdi
	movl	$4, %esi
	callq	hipMalloc
.Ltmp1:
# %bb.1:                                # %_ZL9hipMallocIiE10hipError_tPPT_m.exit
.Ltmp2:
	leaq	560(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp3:
# %bb.2:
	movq	560(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_4
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB1_4:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	leaq	544(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	528(%rsp), %rdi
	movl	$.L.str.1, %esi
	movl	$.L.str.1+11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp5:
	leaq	8(%rsp), %rdi
	movl	$2147483648, %esi               # imm = 0x80000000
	callq	hipMalloc
.Ltmp6:
# %bb.5:                                # %_ZL9hipMallocIcE10hipError_tPPT_m.exit
.Ltmp7:
	leaq	528(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp8:
# %bb.6:
	movq	528(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_8
# %bb.7:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i65
	callq	_ZdlPv
.LBB1_8:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit67
	leaq	512(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	496(%rsp), %rdi
	movl	$.L.str.2, %esi
	movl	$.L.str.2+13, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	24(%rsp), %rdi
.Ltmp10:
	movl	$4, %edx
	xorl	%esi, %esi
	callq	hipMemset
.Ltmp11:
# %bb.9:
.Ltmp12:
	leaq	496(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp13:
# %bb.10:
	movq	496(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_12
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i69
	callq	_ZdlPv
.LBB1_12:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit71
	leaq	480(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	464(%rsp), %rdi
	movl	$.L.str.3, %esi
	movl	$.L.str.3+11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	8(%rsp), %rdi
.Ltmp15:
	movl	$2147483648, %edx               # imm = 0x80000000
	xorl	%esi, %esi
	callq	hipMemset
.Ltmp16:
# %bb.13:
.Ltmp17:
	leaq	464(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp18:
# %bb.14:
	movq	464(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_16
# %bb.15:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i73
	callq	_ZdlPv
.LBB1_16:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit75
	movabsq	$4294967297, %r15               # imm = 0x100000001
	leaq	1023(%r15), %r14
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_18
# %bb.17:
	movq	8(%rsp), %rdx
	movl	%ebp, %edi
	movl	%ebx, %esi
	callq	_ZL18__device_stub__SetiiPc
.LBB1_18:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit88
	leaq	448(%rsp), %r12
	movq	%r12, -16(%r12)
	leaq	432(%rsp), %rdi
	movl	$.L.str.4, %esi
	movl	$.L.str.4+3, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp20:
	callq	hipDeviceSynchronize
.Ltmp21:
# %bb.19:
.Ltmp22:
	leaq	432(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp23:
# %bb.20:
	movq	432(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB1_22
# %bb.21:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i89
	callq	_ZdlPv
.LBB1_22:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit91
	leaq	416(%rsp), %r12
	movq	%r12, -16(%r12)
	leaq	400(%rsp), %rdi
	movl	$.L.str.5, %esi
	movl	$.L.str.5+12, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp25:
	leaq	32(%rsp), %rdi
	callq	hipEventCreate
.Ltmp26:
# %bb.23:
.Ltmp27:
	leaq	400(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp28:
# %bb.24:
	movq	400(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB1_26
# %bb.25:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i93
	callq	_ZdlPv
.LBB1_26:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit95
	leaq	384(%rsp), %r12
	movq	%r12, -16(%r12)
	leaq	368(%rsp), %rdi
	movl	$.L.str.6, %esi
	movl	$.L.str.6+10, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp30:
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
.Ltmp31:
# %bb.27:
.Ltmp32:
	leaq	368(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp33:
# %bb.28:
	movq	368(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB1_30
# %bb.29:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i97
	callq	_ZdlPv
.LBB1_30:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit99
	leaq	352(%rsp), %r12
	movq	%r12, -16(%r12)
	leaq	336(%rsp), %rdi
	movl	$.L.str.7, %esi
	movl	$.L.str.7+12, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	32(%rsp), %rdi
.Ltmp35:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp36:
# %bb.31:
.Ltmp37:
	leaq	336(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp38:
# %bb.32:
	movq	336(%rsp), %rdi
	cmpq	%r12, %rdi
	je	.LBB1_34
# %bb.33:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i101
	callq	_ZdlPv
.LBB1_34:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit103
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.35:
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rcx
	movl	%ebp, %edi
	movl	%ebx, %esi
	callq	_ZL24__device_stub__CacheTestiiPcPi
.LBB1_36:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit116
	leaq	320(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	304(%rsp), %rdi
	movl	$.L.str.8, %esi
	movl	$.L.str.8+10, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	16(%rsp), %rdi
.Ltmp40:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp41:
# %bb.37:
.Ltmp42:
	leaq	304(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp43:
# %bb.38:
	movq	304(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_40
# %bb.39:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i117
	callq	_ZdlPv
.LBB1_40:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit119
	leaq	288(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	272(%rsp), %rdi
	movl	$.L.str.9, %esi
	movl	$.L.str.9+11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp45:
	callq	hipDeviceSynchronize
.Ltmp46:
# %bb.41:
.Ltmp47:
	leaq	272(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp48:
# %bb.42:
	movq	272(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_44
# %bb.43:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i121
	callq	_ZdlPv
.LBB1_44:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit123
	leaq	256(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	240(%rsp), %rdi
	movl	$.L.str.10, %esi
	movl	$.L.str.10+10, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	16(%rsp), %rdi
.Ltmp50:
	callq	hipEventSynchronize
.Ltmp51:
# %bb.45:
.Ltmp52:
	leaq	240(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp53:
# %bb.46:
	movq	240(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_48
# %bb.47:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i125
	callq	_ZdlPv
.LBB1_48:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit127
	leaq	224(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	208(%rsp), %rdi
	movl	$.L.str.11, %esi
	movl	$.L.str.11+16, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	32(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp55:
	leaq	44(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp56:
# %bb.49:
.Ltmp57:
	leaq	208(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp58:
# %bb.50:
	movq	208(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_52
# %bb.51:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i129
	callq	_ZdlPv
.LBB1_52:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit131
	leaq	192(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	176(%rsp), %rdi
	movl	$.L.str.12, %esi
	movl	$.L.str.12+13, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	32(%rsp), %rdi
.Ltmp60:
	callq	hipEventDestroy
.Ltmp61:
# %bb.53:
.Ltmp62:
	leaq	176(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp63:
# %bb.54:
	movq	176(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_56
# %bb.55:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i133
	callq	_ZdlPv
.LBB1_56:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit135
	leaq	160(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	144(%rsp), %rdi
	movl	$.L.str.13, %esi
	movl	$.L.str.13+11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	16(%rsp), %rdi
.Ltmp65:
	callq	hipEventDestroy
.Ltmp66:
# %bb.57:
.Ltmp67:
	leaq	144(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp68:
# %bb.58:
	movq	144(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_60
# %bb.59:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i137
	callq	_ZdlPv
.LBB1_60:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit139
	leaq	128(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	112(%rsp), %rdi
	movl	$.L.str.14, %esi
	movl	$.L.str.14+11, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	24(%rsp), %rdi
.Ltmp70:
	callq	hipFree
.Ltmp71:
# %bb.61:
.Ltmp72:
	leaq	112(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp73:
# %bb.62:
	movq	112(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_64
# %bb.63:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i141
	callq	_ZdlPv
.LBB1_64:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit143
	leaq	96(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	80(%rsp), %rdi
	movl	$.L.str.15, %esi
	movl	$.L.str.15+9, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	8(%rsp), %rdi
.Ltmp75:
	callq	hipFree
.Ltmp76:
# %bb.65:
.Ltmp77:
	leaq	80(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp78:
# %bb.66:
	movq	80(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_68
# %bb.67:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i145
	callq	_ZdlPv
.LBB1_68:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit147
	leaq	64(%rsp), %r14
	movq	%r14, -16(%r14)
	leaq	48(%rsp), %rdi
	movl	$.L.str.16, %esi
	movl	$.L.str.16+5, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
.Ltmp80:
	callq	hipDeviceReset
.Ltmp81:
# %bb.69:
.Ltmp82:
	leaq	48(%rsp), %rdi
	movl	%eax, %esi
	callq	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Ltmp83:
# %bb.70:
	movq	48(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB1_72
# %bb.71:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i149
	callq	_ZdlPv
.LBB1_72:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit151
	movss	44(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	addq	$592, %rsp                      # imm = 0x250
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.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
.LBB1_90:
	.cfi_def_cfa_offset 640
.Ltmp84:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_89:
.Ltmp79:
	movq	%rax, %rbx
	movq	80(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_88:
.Ltmp74:
	movq	%rax, %rbx
	movq	112(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_87:
.Ltmp69:
	movq	%rax, %rbx
	movq	144(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_86:
.Ltmp64:
	movq	%rax, %rbx
	movq	176(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_85:
.Ltmp59:
	movq	%rax, %rbx
	movq	208(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_84:
.Ltmp54:
	movq	%rax, %rbx
	movq	240(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_83:
.Ltmp49:
	movq	%rax, %rbx
	movq	272(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_82:
.Ltmp44:
	movq	%rax, %rbx
	movq	304(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_81:
.Ltmp39:
	movq	%rax, %rbx
	movq	336(%rsp), %rdi
	jmp	.LBB1_78
.LBB1_80:
.Ltmp34:
	movq	%rax, %rbx
	movq	368(%rsp), %rdi
	jmp	.LBB1_78
.LBB1_79:
.Ltmp29:
	movq	%rax, %rbx
	movq	400(%rsp), %rdi
	jmp	.LBB1_78
.LBB1_77:
.Ltmp24:
	movq	%rax, %rbx
	movq	432(%rsp), %rdi
.LBB1_78:
	cmpq	%r12, %rdi
	jne	.LBB1_92
	jmp	.LBB1_93
.LBB1_76:
.Ltmp19:
	movq	%rax, %rbx
	movq	464(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_75:
.Ltmp14:
	movq	%rax, %rbx
	movq	496(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_74:
.Ltmp9:
	movq	%rax, %rbx
	movq	528(%rsp), %rdi
	jmp	.LBB1_91
.LBB1_73:
.Ltmp4:
	movq	%rax, %rbx
	movq	560(%rsp), %rdi
.LBB1_91:
	cmpq	%r14, %rdi
	je	.LBB1_93
.LBB1_92:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i176
	callq	_ZdlPv
.LBB1_93:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit78
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	_Z3Runii, .Lfunc_end1-_Z3Runii
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp5-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp5
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp8-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp8
	.uleb128 .Ltmp9-.Lfunc_begin0           #     jumps to .Ltmp9
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp8-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp10-.Ltmp8                 #   Call between .Ltmp8 and .Ltmp10
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp13-.Ltmp10                #   Call between .Ltmp10 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp15-.Ltmp13                #   Call between .Ltmp13 and .Ltmp15
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp15-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp18-.Ltmp15                #   Call between .Ltmp15 and .Ltmp18
	.uleb128 .Ltmp19-.Lfunc_begin0          #     jumps to .Ltmp19
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp20-.Ltmp18                #   Call between .Ltmp18 and .Ltmp20
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp20-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp23-.Ltmp20                #   Call between .Ltmp20 and .Ltmp23
	.uleb128 .Ltmp24-.Lfunc_begin0          #     jumps to .Ltmp24
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp23-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp25-.Ltmp23                #   Call between .Ltmp23 and .Ltmp25
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp28-.Ltmp25                #   Call between .Ltmp25 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin0          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp28-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp30-.Ltmp28                #   Call between .Ltmp28 and .Ltmp30
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp30-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp33-.Ltmp30                #   Call between .Ltmp30 and .Ltmp33
	.uleb128 .Ltmp34-.Lfunc_begin0          #     jumps to .Ltmp34
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Ltmp35-.Ltmp33                #   Call between .Ltmp33 and .Ltmp35
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp35-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp38-.Ltmp35                #   Call between .Ltmp35 and .Ltmp38
	.uleb128 .Ltmp39-.Lfunc_begin0          #     jumps to .Ltmp39
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp40-.Ltmp38                #   Call between .Ltmp38 and .Ltmp40
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin0          # >> Call Site 18 <<
	.uleb128 .Ltmp43-.Ltmp40                #   Call between .Ltmp40 and .Ltmp43
	.uleb128 .Ltmp44-.Lfunc_begin0          #     jumps to .Ltmp44
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp43-.Lfunc_begin0          # >> Call Site 19 <<
	.uleb128 .Ltmp45-.Ltmp43                #   Call between .Ltmp43 and .Ltmp45
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp45-.Lfunc_begin0          # >> Call Site 20 <<
	.uleb128 .Ltmp48-.Ltmp45                #   Call between .Ltmp45 and .Ltmp48
	.uleb128 .Ltmp49-.Lfunc_begin0          #     jumps to .Ltmp49
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp48-.Lfunc_begin0          # >> Call Site 21 <<
	.uleb128 .Ltmp50-.Ltmp48                #   Call between .Ltmp48 and .Ltmp50
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin0          # >> Call Site 22 <<
	.uleb128 .Ltmp53-.Ltmp50                #   Call between .Ltmp50 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin0          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp53-.Lfunc_begin0          # >> Call Site 23 <<
	.uleb128 .Ltmp55-.Ltmp53                #   Call between .Ltmp53 and .Ltmp55
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin0          # >> Call Site 24 <<
	.uleb128 .Ltmp58-.Ltmp55                #   Call between .Ltmp55 and .Ltmp58
	.uleb128 .Ltmp59-.Lfunc_begin0          #     jumps to .Ltmp59
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin0          # >> Call Site 25 <<
	.uleb128 .Ltmp60-.Ltmp58                #   Call between .Ltmp58 and .Ltmp60
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp60-.Lfunc_begin0          # >> Call Site 26 <<
	.uleb128 .Ltmp63-.Ltmp60                #   Call between .Ltmp60 and .Ltmp63
	.uleb128 .Ltmp64-.Lfunc_begin0          #     jumps to .Ltmp64
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp63-.Lfunc_begin0          # >> Call Site 27 <<
	.uleb128 .Ltmp65-.Ltmp63                #   Call between .Ltmp63 and .Ltmp65
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp65-.Lfunc_begin0          # >> Call Site 28 <<
	.uleb128 .Ltmp68-.Ltmp65                #   Call between .Ltmp65 and .Ltmp68
	.uleb128 .Ltmp69-.Lfunc_begin0          #     jumps to .Ltmp69
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp68-.Lfunc_begin0          # >> Call Site 29 <<
	.uleb128 .Ltmp70-.Ltmp68                #   Call between .Ltmp68 and .Ltmp70
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp70-.Lfunc_begin0          # >> Call Site 30 <<
	.uleb128 .Ltmp73-.Ltmp70                #   Call between .Ltmp70 and .Ltmp73
	.uleb128 .Ltmp74-.Lfunc_begin0          #     jumps to .Ltmp74
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp73-.Lfunc_begin0          # >> Call Site 31 <<
	.uleb128 .Ltmp75-.Ltmp73                #   Call between .Ltmp73 and .Ltmp75
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp75-.Lfunc_begin0          # >> Call Site 32 <<
	.uleb128 .Ltmp78-.Ltmp75                #   Call between .Ltmp75 and .Ltmp78
	.uleb128 .Ltmp79-.Lfunc_begin0          #     jumps to .Ltmp79
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp78-.Lfunc_begin0          # >> Call Site 33 <<
	.uleb128 .Ltmp80-.Ltmp78                #   Call between .Ltmp78 and .Ltmp80
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp80-.Lfunc_begin0          # >> Call Site 34 <<
	.uleb128 .Ltmp83-.Ltmp80                #   Call between .Ltmp80 and .Ltmp83
	.uleb128 .Ltmp84-.Lfunc_begin0          #     jumps to .Ltmp84
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp83-.Lfunc_begin0          # >> Call Site 35 <<
	.uleb128 .Lfunc_end1-.Ltmp83            #   Call between .Ltmp83 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.type	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t,@function # -- Begin function _ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t: # @_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebp
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	hipGetErrorString
	movq	%rax, %rbx
	leaq	24(%rsp), %rax
	movq	%rax, -16(%rax)
	leaq	8(%rsp), %r15
	movl	$.L.str.23, %esi
	movl	$.L.str.23+1, %edx
	movq	%r15, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	movq	%rbx, %rdi
	callq	strlen
.Ltmp85:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm
.Ltmp86:
# %bb.1:                                # %.noexc
	movq	%rax, %r15
	leaq	56(%rsp), %rbx
	movq	%rbx, -16(%rbx)
	movq	(%rax), %rsi
	movq	%rax, %r13
	addq	$16, %r13
	cmpq	%r13, %rsi
	je	.LBB2_2
# %bb.3:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	movq	%rsi, 40(%rsp)
	movq	16(%r15), %rax
	movq	%rax, 56(%rsp)
	movq	8(%r15), %r12
	jmp	.LBB2_4
.LBB2_2:
	movq	8(%r15), %r12
	leaq	1(%r12), %rdx
	movq	%rbx, %rdi
	callq	memcpy@PLT
.LBB2_4:
	leaq	40(%rsp), %rdi
	movq	%r12, 8(%rdi)
	movq	%r13, (%r15)
	movq	$0, 8(%r15)
	movb	$0, 16(%r15)
	movq	(%r14), %rsi
	movq	8(%r14), %rdx
.Ltmp88:
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm
.Ltmp89:
# %bb.5:                                # %.noexc12
	movq	%rax, %r15
	leaq	88(%rsp), %r14
	movq	%r14, -16(%r14)
	movq	(%rax), %rsi
	movq	%rax, %r13
	addq	$16, %r13
	cmpq	%r13, %rsi
	je	.LBB2_6
# %bb.7:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i9
	movq	%rsi, 72(%rsp)
	movq	16(%r15), %rax
	movq	%rax, 88(%rsp)
	movq	8(%r15), %r12
	jmp	.LBB2_8
.LBB2_6:
	movq	8(%r15), %r12
	leaq	1(%r12), %rdx
	movq	%r14, %rdi
	callq	memcpy@PLT
.LBB2_8:
	xorl	%edi, %edi
	testl	%ebp, %ebp
	sete	%dil
	leaq	72(%rsp), %rsi
	movq	%r12, 8(%rsi)
	movq	%r13, (%r15)
	movq	$0, 8(%r15)
	movb	$0, 16(%r15)
.Ltmp91:
	callq	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp92:
# %bb.9:
	movq	72(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB2_11
# %bb.10:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i13
	callq	_ZdlPv
.LBB2_11:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	40(%rsp), %rdi
	cmpq	%rbx, %rdi
	je	.LBB2_13
# %bb.12:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i14
	callq	_ZdlPv
.LBB2_13:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit16
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_15
# %bb.14:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i17
	callq	_ZdlPv
.LBB2_15:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit19
	addq	$104, %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
.LBB2_18:
	.cfi_def_cfa_offset 160
.Ltmp93:
	movq	%rax, %r15
	movq	72(%rsp), %rdi
	cmpq	%r14, %rdi
	je	.LBB2_20
# %bb.19:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i20
	callq	_ZdlPv
	jmp	.LBB2_20
.LBB2_17:
.Ltmp90:
	movq	%rax, %r15
.LBB2_20:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit22
	movq	40(%rsp), %rdi
	cmpq	%rbx, %rdi
	je	.LBB2_22
# %bb.21:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i23
	callq	_ZdlPv
	jmp	.LBB2_22
.LBB2_16:
.Ltmp87:
	movq	%rax, %r15
.LBB2_22:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit25
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB2_24
# %bb.23:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i26
	callq	_ZdlPv
.LBB2_24:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit28
	movq	%r15, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t, .Lfunc_end2-_ZL9CudaCheckNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10hipError_t
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp85-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp85
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp85-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp86-.Ltmp85                #   Call between .Ltmp85 and .Ltmp86
	.uleb128 .Ltmp87-.Lfunc_begin1          #     jumps to .Ltmp87
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp86-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Ltmp88-.Ltmp86                #   Call between .Ltmp86 and .Ltmp88
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp88-.Lfunc_begin1          # >> Call Site 4 <<
	.uleb128 .Ltmp89-.Ltmp88                #   Call between .Ltmp88 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin1          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp89-.Lfunc_begin1          # >> Call Site 5 <<
	.uleb128 .Ltmp91-.Ltmp89                #   Call between .Ltmp89 and .Ltmp91
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin1          # >> Call Site 6 <<
	.uleb128 .Ltmp92-.Ltmp91                #   Call between .Ltmp91 and .Ltmp92
	.uleb128 .Ltmp93-.Lfunc_begin1          #     jumps to .Ltmp93
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp92-.Lfunc_begin1          # >> Call Site 7 <<
	.uleb128 .Lfunc_end2-.Ltmp92            #   Call between .Ltmp92 and .Lfunc_end2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_ # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	leaq	16(%rdi), %rax
	movq	%rax, (%rdi)
	testq	%rsi, %rsi
	je	.LBB3_1
# %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	strlen
	leaq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # TAILCALL
.LBB3_1:
	.cfi_def_cfa_offset 32
	movl	$.L.str.27, %edi
	callq	_ZSt19__throw_logic_errorPKc
.Lfunc_end3:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_, .Lfunc_end3-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
	.cfi_endproc
                                        # -- End function
	.text
	.type	_ZL18__device_stub__SetiiPc,@function # -- Begin function _ZL18__device_stub__SetiiPc
_ZL18__device_stub__SetiiPc:            # @_ZL18__device_stub__SetiiPc
	.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	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	4(%rsp), %rax
	movl	%edi, (%rax)
	movq	%rsp, %rcx
	movl	%esi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_ZL3SetiiPc, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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	_ZL18__device_stub__SetiiPc, .Lfunc_end4-_ZL18__device_stub__SetiiPc
	.cfi_endproc
                                        # -- End function
	.type	_ZL24__device_stub__CacheTestiiPcPi,@function # -- Begin function _ZL24__device_stub__CacheTestiiPcPi
_ZL24__device_stub__CacheTestiiPcPi:    # @_ZL24__device_stub__CacheTestiiPcPi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_ZL9CacheTestiiPcPi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_ZL24__device_stub__CacheTestiiPcPi, .Lfunc_end5-_ZL24__device_stub__CacheTestiiPcPi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI6_0:
	.long	0x42480000                      # float 50
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %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	$344, %rsp                      # imm = 0x158
	.cfi_def_cfa_offset 400
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movl	%edi, %ebp
	movq	(%rsi), %rsi
.Ltmp94:
	leaq	112(%rsp), %rdi
	leaq	11(%rsp), %rdx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
.Ltmp95:
# %bb.1:
.Ltmp97:
	leaq	112(%rsp), %rdi
	movl	$.L.str.17, %ecx
	movl	$7, %r8d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm
.Ltmp98:
# %bb.2:                                # %.noexc
	movq	%rax, %r15
	leaq	32(%rsp), %rdi
	movq	%rdi, -16(%rdi)
	movq	(%rax), %rsi
	movq	%rax, %r12
	addq	$16, %r12
	cmpq	%r12, %rsi
	je	.LBB6_3
# %bb.4:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	movq	%rsi, 16(%rsp)
	movq	16(%r15), %rax
	movq	%rax, 32(%rsp)
	movq	8(%r15), %r14
	jmp	.LBB6_5
.LBB6_3:
	movq	8(%r15), %r14
	leaq	1(%r14), %rdx
	callq	memcpy@PLT
.LBB6_5:
	leaq	16(%rsp), %rdi
	movq	%r14, 8(%rdi)
	movq	%r12, (%r15)
	movq	$0, 8(%r15)
	movb	$0, 16(%r15)
.Ltmp100:
	movl	$.L.str.18, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc
.Ltmp101:
# %bb.6:                                # %.noexc37
	movq	%rax, %r12
	leaq	64(%rsp), %r15
	movq	%r15, -16(%r15)
	movq	(%rax), %rsi
	movq	%rax, %r13
	addq	$16, %r13
	cmpq	%r13, %rsi
	je	.LBB6_7
# %bb.8:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i34
	movq	%rsi, 48(%rsp)
	movq	16(%r12), %rax
	movq	%rax, 64(%rsp)
	movq	8(%r12), %r14
	jmp	.LBB6_9
.LBB6_7:
	movq	8(%r12), %r14
	leaq	1(%r14), %rdx
	movq	%r15, %rdi
	callq	memcpy@PLT
.LBB6_9:
	xorl	%edi, %edi
	cmpl	$2, %ebp
	sete	%dil
	leaq	48(%rsp), %rsi
	movq	%r14, 8(%rsi)
	movq	%r13, (%r12)
	movq	$0, 8(%r12)
	movb	$0, 16(%r12)
.Ltmp103:
	callq	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp104:
# %bb.10:
	movq	48(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB6_12
# %bb.11:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i38
	callq	_ZdlPv
.LBB6_12:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	16(%rsp), %rdi
	leaq	32(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB6_14
# %bb.13:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i39
	callq	_ZdlPv
.LBB6_14:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit41
	leaq	128(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB6_16
# %bb.15:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i42
	callq	_ZdlPv
.LBB6_16:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit44
	movq	8(%rbx), %rdi
	callq	atoi
	movl	%eax, %ebx
	leaq	96(%rsp), %r15
	movq	%r15, -16(%r15)
	leaq	80(%rsp), %r14
	movl	$.L.str.19, %esi
	movl	$.L.str.19+15, %edx
	movq	%r14, %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	xorl	%edi, %edi
	cmpl	$4194305, %ebx                  # imm = 0x400001
	setl	%dil
.Ltmp106:
	movq	%r14, %rsi
	callq	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Ltmp107:
# %bb.17:
	movq	80(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB6_19
# %bb.18:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i46
	callq	_ZdlPv
.LBB6_19:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit48
	movl	$_ZSt4cout, %edi
	movl	$.L.str.20, %esi
	movl	$8, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %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
	xorl	%r15d, %r15d
.LBB6_20:                               # =>This Inner Loop Header: Depth=1
	leaq	1(%r15), %r14
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_Z3Runii
	movss	%xmm0, 144(%rsp,%r15,4)
	movq	%r14, %r15
	cmpq	$50, %r14
	jne	.LBB6_20
# %bb.21:                               # %.lr.ph.i.preheader
	movl	$1, %eax
.LBB6_22:                               # %.lr.ph.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_23 Depth 2
	movss	144(%rsp,%rax,4), %xmm0         # xmm0 = mem[0],zero,zero,zero
	movq	%rax, %rcx
.LBB6_23:                               #   Parent Loop BB6_22 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	140(%rsp,%rcx,4), %xmm1         # xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	.LBB6_28
# %bb.24:                               #   in Loop: Header=BB6_23 Depth=2
	ucomiss	144(%rsp,%rcx,4), %xmm1
	jbe	.LBB6_26
# %bb.25:                               #   in Loop: Header=BB6_23 Depth=2
	movss	%xmm1, 144(%rsp,%rcx,4)
.LBB6_26:                               #   in Loop: Header=BB6_23 Depth=2
	leaq	-1(%rcx), %rdx
	cmpq	$1, %rcx
	movq	%rdx, %rcx
	jg	.LBB6_23
# %bb.27:                               #   in Loop: Header=BB6_22 Depth=1
	xorl	%ecx, %ecx
.LBB6_28:                               # %.critedge.i
                                        #   in Loop: Header=BB6_22 Depth=1
	movslq	%ecx, %rcx
	movss	%xmm0, 144(%rsp,%rcx,4)
	incq	%rax
	cmpq	$50, %rax
	jne	.LBB6_22
# %bb.29:                               # %_Z4sortPfi.exit.preheader
	xorps	%xmm0, %xmm0
	xorl	%eax, %eax
.LBB6_30:                               # %_Z4sortPfi.exit
                                        # =>This Inner Loop Header: Depth=1
	addss	144(%rsp,%rax,4), %xmm0
	incq	%rax
	cmpq	$50, %rax
	jne	.LBB6_30
# %bb.31:
	divss	.LCPI6_0(%rip), %xmm0
	movss	%xmm0, 12(%rsp)                 # 4-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.21, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rsp), %xmm0                 # 4-byte Folded Reload
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movl	$.L.str.22, %esi
	movl	$2, %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
	xorl	%eax, %eax
	addq	$344, %rsp                      # imm = 0x158
	.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
.LBB6_40:
	.cfi_def_cfa_offset 400
.Ltmp108:
	movq	%rax, %rbx
	movq	80(%rsp), %rdi
	cmpq	%r15, %rdi
	jne	.LBB6_41
	jmp	.LBB6_42
.LBB6_35:
.Ltmp105:
	movq	%rax, %rbx
	movq	48(%rsp), %rdi
	cmpq	%r15, %rdi
	je	.LBB6_37
# %bb.36:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i49
	callq	_ZdlPv
	jmp	.LBB6_37
.LBB6_34:
.Ltmp102:
	movq	%rax, %rbx
.LBB6_37:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit51
	movq	16(%rsp), %rdi
	leaq	32(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB6_39
# %bb.38:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i52
	callq	_ZdlPv
	jmp	.LBB6_39
.LBB6_33:
.Ltmp99:
	movq	%rax, %rbx
.LBB6_39:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit54
	leaq	128(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB6_42
.LBB6_41:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i58
	callq	_ZdlPv
	jmp	.LBB6_42
.LBB6_32:
.Ltmp96:
	movq	%rax, %rbx
.LBB6_42:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit60
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	main, .Lfunc_end6-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table6:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Ltmp94-.Lfunc_begin2          # >> Call Site 1 <<
	.uleb128 .Ltmp95-.Ltmp94                #   Call between .Ltmp94 and .Ltmp95
	.uleb128 .Ltmp96-.Lfunc_begin2          #     jumps to .Ltmp96
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp97-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp98-.Ltmp97                #   Call between .Ltmp97 and .Ltmp98
	.uleb128 .Ltmp99-.Lfunc_begin2          #     jumps to .Ltmp99
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp98-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Ltmp100-.Ltmp98               #   Call between .Ltmp98 and .Ltmp100
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp100-.Lfunc_begin2         # >> Call Site 4 <<
	.uleb128 .Ltmp101-.Ltmp100              #   Call between .Ltmp100 and .Ltmp101
	.uleb128 .Ltmp102-.Lfunc_begin2         #     jumps to .Ltmp102
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp101-.Lfunc_begin2         # >> Call Site 5 <<
	.uleb128 .Ltmp103-.Ltmp101              #   Call between .Ltmp101 and .Ltmp103
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp103-.Lfunc_begin2         # >> Call Site 6 <<
	.uleb128 .Ltmp104-.Ltmp103              #   Call between .Ltmp103 and .Ltmp104
	.uleb128 .Ltmp105-.Lfunc_begin2         #     jumps to .Ltmp105
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp104-.Lfunc_begin2         # >> Call Site 7 <<
	.uleb128 .Ltmp106-.Ltmp104              #   Call between .Ltmp104 and .Ltmp106
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp106-.Lfunc_begin2         # >> Call Site 8 <<
	.uleb128 .Ltmp107-.Ltmp106              #   Call between .Ltmp106 and .Ltmp107
	.uleb128 .Ltmp108-.Lfunc_begin2         #     jumps to .Ltmp108
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp107-.Lfunc_begin2         # >> Call Site 9 <<
	.uleb128 .Lfunc_end6-.Ltmp107           #   Call between .Ltmp107 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.type	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE,@function # -- Begin function _ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: # @_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	je	.LBB7_2
# %bb.1:
	retq
.LBB7_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$_ZSt4cout, %edi
	callq	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	callq	hipDeviceReset
	movl	$1, %edi
	callq	exit
.Lfunc_end7:
	.size	_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .Lfunc_end7-_ZL8ValidatebNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB8_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB8_3
.LBB8_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB8_3:
	testq	%r14, %r14
	je	.LBB8_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB8_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB8_7
.LBB8_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB8_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end8-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.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	.LBB9_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB9_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_ZL3SetiiPc, %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	$_ZL9CacheTestiiPcPi, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end9:
	.size	__hip_module_ctor, .Lfunc_end9-__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	.LBB10_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
.LBB10_2:
	retq
.Lfunc_end10:
	.size	__hip_module_dtor, .Lfunc_end10-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Malloc Result"
	.size	.L.str, 14

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Malloc Data"
	.size	.L.str.1, 12

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Memset Data"
	.size	.L.str.3, 12

	.type	_ZL3SetiiPc,@object             # @_ZL3SetiiPc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
_ZL3SetiiPc:
	.quad	_ZL18__device_stub__SetiiPc
	.size	_ZL3SetiiPc, 8

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

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Create start"
	.size	.L.str.5, 13

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Create end"
	.size	.L.str.6, 11

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

	.type	_ZL9CacheTestiiPcPi,@object     # @_ZL9CacheTestiiPcPi
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
_ZL9CacheTestiiPcPi:
	.quad	_ZL24__device_stub__CacheTestiiPcPi
	.size	_ZL9CacheTestiiPcPi, 8

	.type	.L.str.8,@object                # @.str.8
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.8:
	.asciz	"Record end"
	.size	.L.str.8, 11

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Device Sync"
	.size	.L.str.9, 12

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Event sync"
	.size	.L.str.10, 11

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Get elapsed time"
	.size	.L.str.11, 17

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"Destroy start"
	.size	.L.str.12, 14

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"Destroy end"
	.size	.L.str.13, 12

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"Free result"
	.size	.L.str.14, 12

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"Free data"
	.size	.L.str.15, 10

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"Reset"
	.size	.L.str.16, 6

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"Usage: "
	.size	.L.str.17, 8

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	" stride"
	.size	.L.str.18, 8

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"Decrease Stride"
	.size	.L.str.19, 16

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"Stride: "
	.size	.L.str.20, 9

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"Elapsed Time: "
	.size	.L.str.21, 15

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

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

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"basic_string: construction from null is not valid"
	.size	.L.str.27, 50

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_ZL3SetiiPc"
	.size	.L__unnamed_1, 12

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_ZL9CacheTestiiPcPi"
	.size	.L__unnamed_2, 20

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

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

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

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.section	.text._ZL3SetiiPc,"axG",@progbits,_ZL3SetiiPc,comdat
	.globl	_ZL3SetiiPc                     ; -- Begin function _ZL3SetiiPc
	.p2align	8
	.type	_ZL3SetiiPc,@function
_ZL3SetiiPc:                            ; @_ZL3SetiiPc
; %bb.0:
	s_clause 0x2
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b32 s3, s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	v_mad_u32_u24 v1, v0, v0, s3
	v_mul_u32_u24_e32 v2, s2, v0
.LBB0_1:                                ; =>This Inner Loop Header: Depth=1
	v_ashrrev_i32_e32 v4, 31, v0
	v_add_co_u32 v3, vcc_lo, s0, v0
	v_add_nc_u32_e32 v0, s2, v0
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_mov_b32 vcc_lo, exec_lo
	global_store_b8 v[3:4], v1, off
	v_add_nc_u32_e32 v1, v1, v2
	s_cbranch_vccnz .LBB0_1
; %bb.2:                                ; %DummyReturnBlock
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _ZL3SetiiPc
		.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 5
		.amdhsa_next_free_sgpr 4
		.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._ZL3SetiiPc,"axG",@progbits,_ZL3SetiiPc,comdat
.Lfunc_end0:
	.size	_ZL3SetiiPc, .Lfunc_end0-_ZL3SetiiPc
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 108
; NumSgprs: 6
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 6
; 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._ZL9CacheTestiiPcPi,"axG",@progbits,_ZL9CacheTestiiPcPi,comdat
	.globl	_ZL9CacheTestiiPcPi             ; -- Begin function _ZL9CacheTestiiPcPi
	.p2align	8
	.type	_ZL9CacheTestiiPcPi,@function
_ZL9CacheTestiiPcPi:                    ; @_ZL9CacheTestiiPcPi
; %bb.0:
	s_mov_b32 s2, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB1_4
; %bb.1:                                ; %.preheader
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x4
	s_load_b128 s[0:3], s[0:1], 0x8
	v_dual_mov_b32 v1, 0 :: v_dual_mov_b32 v0, 0
	s_movk_i32 s6, 0x200
	s_waitcnt lgkmcnt(0)
	s_add_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_ashr_i32 s5, s4, 31
.LBB1_2:                                ; =>This Inner Loop Header: Depth=1
	global_load_i8 v2, v1, s[0:1]
	s_add_u32 s0, s0, s4
	s_addc_u32 s1, s1, s5
	s_add_i32 s6, s6, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s6, 0
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v0, v0, v2
	s_cbranch_scc0 .LBB1_2
; %bb.3:
	v_mov_b32_e32 v1, 0
	global_store_b32 v1, v0, s[2:3]
.LBB1_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _ZL9CacheTestiiPcPi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 24
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 3
		.amdhsa_next_free_sgpr 7
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._ZL9CacheTestiiPcPi,"axG",@progbits,_ZL9CacheTestiiPcPi,comdat
.Lfunc_end1:
	.size	_ZL9CacheTestiiPcPi, .Lfunc_end1-_ZL9CacheTestiiPcPi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 124
; NumSgprs: 7
; NumVgprs: 3
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 7
; NumVGPRsForWavesPerEU: 3
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

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

	.end_amdgpu_metadata
