#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>

using namespace std;

extern float *Ex, *dev_Ex, coe_Ex, dt, dz;
extern int size_space, size_Ex;
const float epsilon = 8.85e-12;

void Ex_init_allocate(int size_Ex)
{
	Ex = (float *)malloc(size_Ex* sizeof(float));
	cudaMalloc(&dev_Ex, size_Ex* sizeof(float));
}

void Ex_init_assignValue(int size_Ex)
{
	for (int i = 0; i < size_Ex; i++){
		Ex[i] = 0.f;
	}

	coe_Ex = dt / (epsilon * dz);
}

void Ex_transfer_host_device(int size_Ex)
{
	cudaMemcpy(dev_Ex, Ex, size_Ex * sizeof(float), cudaMemcpyHostToDevice);
}

void Ex_transfer_device_host(int size_Ex)
{
	cudaMemcpy(Ex, dev_Ex, size_Ex * sizeof(float), cudaMemcpyDeviceToHost);
}

__global__ void Ex_cmp_kernel(float* dev_Hy, float * dev_Ex, float coe_Ex, int step_space)
{
	for (int i = 1; i < step_space; i++){
		dev_Ex[i] = dev_Ex[i] - coe_Ex * (dev_Hy[i] - dev_Hy[i - 1]);
		//test
		//dev_Ex[i] = i / 10.0;
	}
}

void Ex_checkout(int size)
{
	cout << "Ex: size = " << size << endl;
	cout << "coe_Ex = " << coe_Ex;
	cout << "Ex: ";
	for (int i = 0; i < size; i++)
	{
		cout << Ex[i] << "\t";
	}
	cout << endl;
}

void Ex_init(int size_space)
{
	size_Ex = size_space + 1;
	Ex_init_allocate(size_Ex);
	Ex_init_assignValue(size_Ex);
}

__global__ void Ex_boundary_PEC_kernel(float* dev_Ex, int size_space)
{
	dev_Ex[size_space] = 0.f;
}
	.file	"tmpxft_0037ac05_00000000-6_Ex.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3643:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3643:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z16Ex_init_allocatei
	.type	_Z16Ex_init_allocatei, @function
_Z16Ex_init_allocatei:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	%edi, %rbx
	salq	$2, %rbx
	movq	%rbx, %rdi
	call	malloc@PLT
	movq	%rbx, %rsi
	leaq	dev_Ex(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	movq	%rax, Ex(%rip)
	jmp	cudaMalloc@PLT
	.cfi_endproc
.LFE3635:
	.size	_Z16Ex_init_allocatei, .-_Z16Ex_init_allocatei
	.globl	_Z19Ex_init_assignValuei
	.type	_Z19Ex_init_assignValuei, @function
_Z19Ex_init_assignValuei:
.LFB3636:
	.cfi_startproc
	endbr64
	movq	Ex(%rip), %rdx
	xorl	%eax, %eax
.L5:
	cmpl	%eax, %edi
	jle	.L8
	movl	$0x00000000, (%rdx,%rax,4)
	incq	%rax
	jmp	.L5
.L8:
	movss	.LC1(%rip), %xmm1
	mulss	dz(%rip), %xmm1
	movss	dt(%rip), %xmm0
	divss	%xmm1, %xmm0
	movss	%xmm0, coe_Ex(%rip)
	ret
	.cfi_endproc
.LFE3636:
	.size	_Z19Ex_init_assignValuei, .-_Z19Ex_init_assignValuei
	.globl	_Z23Ex_transfer_host_devicei
	.type	_Z23Ex_transfer_host_devicei, @function
_Z23Ex_transfer_host_devicei:
.LFB3637:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdx
	movq	Ex(%rip), %rsi
	movq	dev_Ex(%rip), %rdi
	movl	$1, %ecx
	salq	$2, %rdx
	jmp	cudaMemcpy@PLT
	.cfi_endproc
.LFE3637:
	.size	_Z23Ex_transfer_host_devicei, .-_Z23Ex_transfer_host_devicei
	.globl	_Z23Ex_transfer_device_hosti
	.type	_Z23Ex_transfer_device_hosti, @function
_Z23Ex_transfer_device_hosti:
.LFB3638:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdx
	movq	dev_Ex(%rip), %rsi
	movq	Ex(%rip), %rdi
	movl	$2, %ecx
	salq	$2, %rdx
	jmp	cudaMemcpy@PLT
	.cfi_endproc
.LFE3638:
	.size	_Z23Ex_transfer_device_hosti, .-_Z23Ex_transfer_device_hosti
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Ex: size = "
.LC3:
	.string	"coe_Ex = "
.LC4:
	.string	"Ex: "
.LC5:
	.string	"\t"
	.text
	.globl	_Z11Ex_checkouti
	.type	_Z11Ex_checkouti, @function
_Z11Ex_checkouti:
.LFB3639:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC2(%rip), %rsi
	leaq	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	_ZSt4cout(%rip), %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 48
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	leaq	.LC3(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	coe_Ex(%rip), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC4(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L12:
	cmpl	%ebp, %r12d
	jle	.L15
	movq	Ex(%rip), %rax
	movq	%rbx, %rdi
	cvtss2sd	(%rax,%rbp,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%r13, %rsi
	incq	%rbp
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	jmp	.L12
.L15:
	popq	%rax
	.cfi_def_cfa_offset 40
	movq	%rbx, %rdi
	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
	jmp	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	.cfi_endproc
.LFE3639:
	.size	_Z11Ex_checkouti, .-_Z11Ex_checkouti
	.globl	_Z7Ex_initi
	.type	_Z7Ex_initi, @function
_Z7Ex_initi:
.LFB3640:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	incl	%edi
	movl	%edi, size_Ex(%rip)
	call	_Z16Ex_init_allocatei
	movl	size_Ex(%rip), %edi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	_Z19Ex_init_assignValuei
	.cfi_endproc
.LFE3640:
	.size	_Z7Ex_initi, .-_Z7Ex_initi
	.globl	_Z37__device_stub__Z13Ex_cmp_kernelPfS_fiPfS_fi
	.type	_Z37__device_stub__Z13Ex_cmp_kernelPfS_fiPfS_fi, @function
_Z37__device_stub__Z13Ex_cmp_kernelPfS_fiPfS_fi:
.LFB3665:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%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	.L18
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z13Ex_cmp_kernelPfS_fi(%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
.L18:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3665:
	.size	_Z37__device_stub__Z13Ex_cmp_kernelPfS_fiPfS_fi, .-_Z37__device_stub__Z13Ex_cmp_kernelPfS_fiPfS_fi
	.globl	_Z13Ex_cmp_kernelPfS_fi
	.type	_Z13Ex_cmp_kernelPfS_fi, @function
_Z13Ex_cmp_kernelPfS_fi:
.LFB3666:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z13Ex_cmp_kernelPfS_fiPfS_fi
	.cfi_endproc
.LFE3666:
	.size	_Z13Ex_cmp_kernelPfS_fi, .-_Z13Ex_cmp_kernelPfS_fi
	.globl	_Z43__device_stub__Z22Ex_boundary_PEC_kernelPfiPfi
	.type	_Z43__device_stub__Z22Ex_boundary_PEC_kernelPfiPfi, @function
_Z43__device_stub__Z22Ex_boundary_PEC_kernelPfiPfi:
.LFB3667:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	%esi, 4(%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L23
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z22Ex_boundary_PEC_kernelPfi(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L23:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3667:
	.size	_Z43__device_stub__Z22Ex_boundary_PEC_kernelPfiPfi, .-_Z43__device_stub__Z22Ex_boundary_PEC_kernelPfiPfi
	.globl	_Z22Ex_boundary_PEC_kernelPfi
	.type	_Z22Ex_boundary_PEC_kernelPfi, @function
_Z22Ex_boundary_PEC_kernelPfi:
.LFB3668:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z22Ex_boundary_PEC_kernelPfiPfi
	.cfi_endproc
.LFE3668:
	.size	_Z22Ex_boundary_PEC_kernelPfi, .-_Z22Ex_boundary_PEC_kernelPfi
	.section	.rodata.str1.1
.LC6:
	.string	"_Z22Ex_boundary_PEC_kernelPfi"
.LC7:
	.string	"_Z13Ex_cmp_kernelPfS_fi"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3670:
	.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	.LC6(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z22Ex_boundary_PEC_kernelPfi(%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	.LC7(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z13Ex_cmp_kernelPfS_fi(%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
.LFE3670:
	.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
.LC1:
	.long	756789467
	.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>

using namespace std;

extern float *Ex, *dev_Ex, coe_Ex, dt, dz;
extern int size_space, size_Ex;
const float epsilon = 8.85e-12;

void Ex_init_allocate(int size_Ex)
{
	Ex = (float *)malloc(size_Ex* sizeof(float));
	hipMalloc(&dev_Ex, size_Ex* sizeof(float));
}

void Ex_init_assignValue(int size_Ex)
{
	for (int i = 0; i < size_Ex; i++){
		Ex[i] = 0.f;
	}

	coe_Ex = dt / (epsilon * dz);
}

void Ex_transfer_host_device(int size_Ex)
{
	hipMemcpy(dev_Ex, Ex, size_Ex * sizeof(float), hipMemcpyHostToDevice);
}

void Ex_transfer_device_host(int size_Ex)
{
	hipMemcpy(Ex, dev_Ex, size_Ex * sizeof(float), hipMemcpyDeviceToHost);
}

__global__ void Ex_cmp_kernel(float* dev_Hy, float * dev_Ex, float coe_Ex, int step_space)
{
	for (int i = 1; i < step_space; i++){
		dev_Ex[i] = dev_Ex[i] - coe_Ex * (dev_Hy[i] - dev_Hy[i - 1]);
		//test
		//dev_Ex[i] = i / 10.0;
	}
}

void Ex_checkout(int size)
{
	cout << "Ex: size = " << size << endl;
	cout << "coe_Ex = " << coe_Ex;
	cout << "Ex: ";
	for (int i = 0; i < size; i++)
	{
		cout << Ex[i] << "\t";
	}
	cout << endl;
}

void Ex_init(int size_space)
{
	size_Ex = size_space + 1;
	Ex_init_allocate(size_Ex);
	Ex_init_assignValue(size_Ex);
}

__global__ void Ex_boundary_PEC_kernel(float* dev_Ex, int size_space)
{
	dev_Ex[size_space] = 0.f;
}
	.text
	.file	"Ex.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z16Ex_init_allocatei           # -- Begin function _Z16Ex_init_allocatei
	.type	_Z16Ex_init_allocatei,@function
_Z16Ex_init_allocatei:                  # @_Z16Ex_init_allocatei
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movslq	%edi, %rbx
	shlq	$2, %rbx
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, Ex(%rip)
	movl	$dev_Ex, %edi
	movq	%rbx, %rsi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	hipMalloc                       # TAILCALL
.Lfunc_end0:
	.size	_Z16Ex_init_allocatei, .Lfunc_end0-_Z16Ex_init_allocatei
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z19Ex_init_assignValuei
.LCPI1_0:
	.long	0x2d1bb0db                      # float 8.84999972E-12
	.text
	.globl	_Z19Ex_init_assignValuei
	.type	_Z19Ex_init_assignValuei,@function
_Z19Ex_init_assignValuei:               # @_Z19Ex_init_assignValuei
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	testl	%edi, %edi
	jle	.LBB1_2
# %bb.1:                                # %.lr.ph
	movq	Ex(%rip), %rax
	movl	%edi, %edx
	shlq	$2, %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB1_2:                                # %._crit_edge
	movss	dt(%rip), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	movss	dz(%rip), %xmm1                 # xmm1 = mem[0],zero,zero,zero
	mulss	.LCPI1_0(%rip), %xmm1
	divss	%xmm1, %xmm0
	movss	%xmm0, coe_Ex(%rip)
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z19Ex_init_assignValuei, .Lfunc_end1-_Z19Ex_init_assignValuei
	.cfi_endproc
                                        # -- End function
	.globl	_Z23Ex_transfer_host_devicei    # -- Begin function _Z23Ex_transfer_host_devicei
	.type	_Z23Ex_transfer_host_devicei,@function
_Z23Ex_transfer_host_devicei:           # @_Z23Ex_transfer_host_devicei
	.cfi_startproc
# %bb.0:
	movq	dev_Ex(%rip), %rax
	movq	Ex(%rip), %rsi
	movslq	%edi, %rdx
	shlq	$2, %rdx
	movq	%rax, %rdi
	movl	$1, %ecx
	jmp	hipMemcpy                       # TAILCALL
.Lfunc_end2:
	.size	_Z23Ex_transfer_host_devicei, .Lfunc_end2-_Z23Ex_transfer_host_devicei
	.cfi_endproc
                                        # -- End function
	.globl	_Z23Ex_transfer_device_hosti    # -- Begin function _Z23Ex_transfer_device_hosti
	.type	_Z23Ex_transfer_device_hosti,@function
_Z23Ex_transfer_device_hosti:           # @_Z23Ex_transfer_device_hosti
	.cfi_startproc
# %bb.0:
	movq	Ex(%rip), %rax
	movq	dev_Ex(%rip), %rsi
	movslq	%edi, %rdx
	shlq	$2, %rdx
	movq	%rax, %rdi
	movl	$2, %ecx
	jmp	hipMemcpy                       # TAILCALL
.Lfunc_end3:
	.size	_Z23Ex_transfer_device_hosti, .Lfunc_end3-_Z23Ex_transfer_device_hosti
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__Ex_cmp_kernelPfS_fi # -- Begin function _Z28__device_stub__Ex_cmp_kernelPfS_fi
	.type	_Z28__device_stub__Ex_cmp_kernelPfS_fi,@function
_Z28__device_stub__Ex_cmp_kernelPfS_fi: # @_Z28__device_stub__Ex_cmp_kernelPfS_fi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movss	%xmm0, (%rsi)
	leaq	8(%rsp), %rdi
	movl	%edx, (%rdi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdi, 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	$_Z13Ex_cmp_kernelPfS_fi, %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_end4:
	.size	_Z28__device_stub__Ex_cmp_kernelPfS_fi, .Lfunc_end4-_Z28__device_stub__Ex_cmp_kernelPfS_fi
	.cfi_endproc
                                        # -- End function
	.globl	_Z11Ex_checkouti                # -- Begin function _Z11Ex_checkouti
	.type	_Z11Ex_checkouti,@function
_Z11Ex_checkouti:                       # @_Z11Ex_checkouti
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%edi, %ebx
	movl	$_ZSt4cout, %r15d
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$11, %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
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$9, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cvtss2sd	coe_Ex(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$4, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	testl	%ebx, %ebx
	jle	.LBB5_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%ebx, %ebx
	xorl	%r14d, %r14d
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	Ex(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%r14,4), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movl	$.L.str.3, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	cmpq	%r14, %rbx
	jne	.LBB5_2
.LBB5_3:                                # %._crit_edge
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end5:
	.size	_Z11Ex_checkouti, .Lfunc_end5-_Z11Ex_checkouti
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function _Z7Ex_initi
.LCPI6_0:
	.long	0x2d1bb0db                      # float 8.84999972E-12
	.text
	.globl	_Z7Ex_initi
	.type	_Z7Ex_initi,@function
_Z7Ex_initi:                            # @_Z7Ex_initi
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
                                        # kill: def $edi killed $edi def $rdi
	leal	1(%rdi), %eax
	movl	%eax, size_Ex(%rip)
	movslq	%edi, %rax
	leaq	4(,%rax,4), %rbx
	movq	%rbx, %rdi
	callq	malloc
	movq	%rax, Ex(%rip)
	movl	$dev_Ex, %edi
	movq	%rbx, %rsi
	callq	hipMalloc
	movl	size_Ex(%rip), %edx
	testl	%edx, %edx
	jle	.LBB6_2
# %bb.1:                                # %.lr.ph.i
	movq	Ex(%rip), %rdi
	shlq	$2, %rdx
	xorl	%esi, %esi
	callq	memset@PLT
.LBB6_2:                                # %_Z19Ex_init_assignValuei.exit
	movss	dt(%rip), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	movss	dz(%rip), %xmm1                 # xmm1 = mem[0],zero,zero,zero
	mulss	.LCPI6_0(%rip), %xmm1
	divss	%xmm1, %xmm0
	movss	%xmm0, coe_Ex(%rip)
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z7Ex_initi, .Lfunc_end6-_Z7Ex_initi
	.cfi_endproc
                                        # -- End function
	.globl	_Z37__device_stub__Ex_boundary_PEC_kernelPfi # -- Begin function _Z37__device_stub__Ex_boundary_PEC_kernelPfi
	.type	_Z37__device_stub__Ex_boundary_PEC_kernelPfi,@function
_Z37__device_stub__Ex_boundary_PEC_kernelPfi: # @_Z37__device_stub__Ex_boundary_PEC_kernelPfi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z22Ex_boundary_PEC_kernelPfi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z37__device_stub__Ex_boundary_PEC_kernelPfi, .Lfunc_end7-_Z37__device_stub__Ex_boundary_PEC_kernelPfi
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB8_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB8_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13Ex_cmp_kernelPfS_fi, %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	$_Z22Ex_boundary_PEC_kernelPfi, %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_end8:
	.size	__hip_module_ctor, .Lfunc_end8-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB9_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB9_2:
	retq
.Lfunc_end9:
	.size	__hip_module_dtor, .Lfunc_end9-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z13Ex_cmp_kernelPfS_fi,@object # @_Z13Ex_cmp_kernelPfS_fi
	.section	.rodata,"a",@progbits
	.globl	_Z13Ex_cmp_kernelPfS_fi
	.p2align	3, 0x0
_Z13Ex_cmp_kernelPfS_fi:
	.quad	_Z28__device_stub__Ex_cmp_kernelPfS_fi
	.size	_Z13Ex_cmp_kernelPfS_fi, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Ex: size = "
	.size	.L.str, 12

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"coe_Ex = "
	.size	.L.str.1, 10

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Ex: "
	.size	.L.str.2, 5

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"\t"
	.size	.L.str.3, 2

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

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

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z22Ex_boundary_PEC_kernelPfi"
	.size	.L__unnamed_2, 30

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

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

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

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z13Ex_cmp_kernelPfS_fi ; -- Begin function _Z13Ex_cmp_kernelPfS_fi
	.globl	_Z13Ex_cmp_kernelPfS_fi
	.p2align	8
	.type	_Z13Ex_cmp_kernelPfS_fi,@function
_Z13Ex_cmp_kernelPfS_fi:                ; @_Z13Ex_cmp_kernelPfS_fi
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s3, 2
	s_cbranch_scc1 .LBB0_3
; %bb.1:                                ; %.lr.ph.preheader
	s_load_b128 s[4:7], s[0:1], 0x0
	s_add_i32 s3, s3, -1
	v_mov_b32_e32 v0, 0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s6, 4
	s_addc_u32 s1, s7, 0
	s_add_u32 s4, s4, 4
	s_addc_u32 s5, s5, 0
.LBB0_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	s_clause 0x1
	global_load_b64 v[1:2], v0, s[4:5] offset:-4
	global_load_b32 v3, v0, s[0:1]
	s_add_i32 s3, s3, -1
	s_waitcnt vmcnt(1)
	v_sub_f32_e32 v1, v2, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f32 v1, -v1, s2, v3
	global_store_b32 v0, v1, s[0:1]
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_add_u32 s4, s4, 4
	s_addc_u32 s5, s5, 0
	s_cmp_eq_u32 s3, 0
	s_cbranch_scc0 .LBB0_2
.LBB0_3:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13Ex_cmp_kernelPfS_fi
		.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 4
		.amdhsa_next_free_sgpr 8
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z13Ex_cmp_kernelPfS_fi, .Lfunc_end0-_Z13Ex_cmp_kernelPfS_fi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; NumSgprs: 8
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 8
; NumVGPRsForWavesPerEU: 4
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z22Ex_boundary_PEC_kernelPfi ; -- Begin function _Z22Ex_boundary_PEC_kernelPfi
	.globl	_Z22Ex_boundary_PEC_kernelPfi
	.p2align	8
	.type	_Z22Ex_boundary_PEC_kernelPfi,@function
_Z22Ex_boundary_PEC_kernelPfi:          ; @_Z22Ex_boundary_PEC_kernelPfi
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x8
	s_load_b64 s[0:1], s[0:1], 0x0
	v_mov_b32_e32 v0, 0
	s_waitcnt lgkmcnt(0)
	s_ashr_i32 s3, s2, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[2:3], s[2:3], 2
	s_add_u32 s0, s0, s2
	s_addc_u32 s1, s1, s3
	global_store_b32 v0, v0, s[0:1]
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z22Ex_boundary_PEC_kernelPfi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 12
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 1
		.amdhsa_next_free_sgpr 4
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z22Ex_boundary_PEC_kernelPfi, .Lfunc_end1-_Z22Ex_boundary_PEC_kernelPfi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 68
; NumSgprs: 4
; NumVgprs: 1
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 4
; NumVGPRsForWavesPerEU: 1
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

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

	.end_amdgpu_metadata
