//Assignment No-B3

 #include "iostream"  
 using namespace std;  
 __global__ void sort(int *arr_d, int pivot, int len, int *arrl_d, int *arrh_d)  
 {  
   int id = threadIdx.x;  
   bool flag;  
   int element = arr_d[id+1];  
   if( element <= pivot )  
     flag = true;  
   else  
     flag = false;  
   __syncthreads();  
   if(flag)  
     arrl_d[id] = element;  
   else  
     arrh_d[id] = element;  
 }  
 void quicksort(int *arr, int len)  
 {  
   if(len == 1 || len == 0)  
     return;  
   int pivot = arr[0];  
   size_t size = len*sizeof(int);  
   int *arr_d, *arrl_d, *arrh_d, *arrl, *arrh;  
   arrl = new int[len];  
   arrh = new int[len];  
   for(int i=0; i<len; i++)  
   {  
     arrl[i] = -9999;  
     arrh[i] = -9999;  
   }  
   cudaMalloc((void **)&arr_d, size);  
   cudaMalloc((void **)&arrl_d, size);  
   cudaMalloc((void **)&arrh_d, size);  
   cudaMemcpy(arr_d, arr, size, cudaMemcpyHostToDevice);  
   cudaMemcpy(arrl_d, arrl, size, cudaMemcpyHostToDevice);  
   cudaMemcpy(arrh_d, arrh, size, cudaMemcpyHostToDevice);  
   sort<<<1, len-1>>>(arr_d, pivot, len, arrl_d, arrh_d);  
   cudaMemcpy(arrl, arrl_d, size, cudaMemcpyDeviceToHost);  
   cudaMemcpy(arrh, arrh_d, size, cudaMemcpyDeviceToHost);  
   int *temp1 = new int[len];  
   int *temp2 = new int[len];  
   for(int i=0; i<len; i++)  
   {  
     temp1[i]=temp2[i]=-9999;  
   }  
   int j=0, k=0;  
   for(int i=0; i<len; i++)  
   {  
     if(arrl[i]!=-9999)  
     {  
       temp1[j++] = arrl[i];  
     }  
     if(arrh[i]!=-9999)  
     {  
       temp2[k++] = arrh[i];  
     }  
   }  
   quicksort(temp1, j);  
   int p=0;  
   for(int i=0; i<j; i++)  
     arr[p++] = temp1[i];  
   arr[p++] = pivot;  
   quicksort(temp2, k);  
   for(int i=0; i<k; i++)  
     arr[p++] = temp2[i];  
   delete(arrl); delete(arrh); delete(temp1); delete(temp2);  
   cudaFree(arr_d); cudaFree(arrl_d); cudaFree(arrh_d);  
 }  
 int main()  
 {  
   int n;  
   cout<<"\nEnter no. of elements you want to sort: ";  
   cin>>n;  
   int arr[n];  
   cout<<"\n\nEnter no.s to be sorted: \n";  
   for (int i = 0 ; i < n ; i++)  
     cin>>arr[i];  
   quicksort(arr, n);  
   cout<<"\nSorted array is: \n";  
   for(int i=0;i<n;i++)  
       cout<<arr[i]<<"\t";  
   return 0;  
 }  


	.file	"tmpxft_0022a857_00000000-6_B3.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3639:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3639:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z29__device_stub__Z4sortPiiiS_S_PiiiS_S_
	.type	_Z29__device_stub__Z4sortPiiiS_S_PiiiS_S_, @function
_Z29__device_stub__Z4sortPiiiS_S_PiiiS_S_:
.LFB3661:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 16(%rsp)
	leaq	32(%rsp), %rdx
	movq	%rcx, 8(%rsp)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	40(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z4sortPiiiS_S_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 176
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L2:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3661:
	.size	_Z29__device_stub__Z4sortPiiiS_S_PiiiS_S_, .-_Z29__device_stub__Z4sortPiiiS_S_PiiiS_S_
	.globl	_Z4sortPiiiS_S_
	.type	_Z4sortPiiiS_S_, @function
_Z4sortPiiiS_S_:
.LFB3662:
	.cfi_startproc
	endbr64
	jmp	_Z29__device_stub__Z4sortPiiiS_S_PiiiS_S_
	.cfi_endproc
.LFE3662:
	.size	_Z4sortPiiiS_S_, .-_Z4sortPiiiS_S_
	.globl	_Z9quicksortPii
	.type	_Z9quicksortPii, @function
_Z9quicksortPii:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	cmpl	$1, %esi
	jbe	.L8
	movl	(%rdi), %eax
	movq	%rdi, %r15
	movl	%esi, %ebx
	movabsq	$2305843009213693950, %rdx
	movl	%eax, 8(%rsp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbp
	cmpq	%rax, %rdx
	jb	.L10
	movq	%rbp, %rdi
	call	_Znam@PLT
	movq	%rbp, %rdi
	movq	%rax, %r14
	call	_Znam@PLT
	movq	%rax, (%rsp)
	xorl	%eax, %eax
	jmp	.L11
.L10:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	call	__cxa_throw_bad_array_new_length@PLT
.L11:
	movq	(%rsp), %rdx
	movl	$-9999, (%r14,%rax,4)
	movl	$-9999, (%rdx,%rax,4)
	incq	%rax
	cmpl	%eax, %ebx
	jg	.L11
	leaq	24(%rsp), %rdi
	movq	%rbp, %rsi
	call	cudaMalloc@PLT
	leaq	32(%rsp), %rdi
	movq	%rbp, %rsi
	call	cudaMalloc@PLT
	leaq	40(%rsp), %rdi
	movq	%rbp, %rsi
	call	cudaMalloc@PLT
	movq	24(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%r15, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rdi
	movq	%rbp, %rdx
	movq	%r14, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	movq	40(%rsp), %rdi
	movq	%rbp, %rdx
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	leal	-1(%rbx), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rdi
	movl	%eax, 60(%rsp)
	movl	$1, %esi
	movq	%rdi, 64(%rsp)
	movl	68(%rsp), %ecx
	movq	60(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L13
	movq	40(%rsp), %r8
	movq	32(%rsp), %rcx
	movl	%ebx, %edx
	movl	8(%rsp), %esi
	movq	24(%rsp), %rdi
	call	_Z29__device_stub__Z4sortPiiiS_S_PiiiS_S_
.L13:
	movq	32(%rsp), %rsi
	movq	%rbp, %rdx
	movl	$2, %ecx
	movq	%r14, %rdi
	call	cudaMemcpy@PLT
	movq	40(%rsp), %rsi
	movq	(%rsp), %rdi
	movq	%rbp, %rdx
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	%rbp, %rdi
	call	_Znam@PLT
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	_Znam@PLT
	movq	%rax, %rbp
	xorl	%eax, %eax
.L14:
	movl	$-9999, 0(%rbp,%rax,4)
	movl	$-9999, (%r12,%rax,4)
	incq	%rax
	cmpl	%eax, %ebx
	jg	.L14
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
.L17:
	movl	(%r14,%rcx,4), %esi
	cmpl	$-9999, %esi
	je	.L15
	movslq	%eax, %rdi
	incl	%eax
	movl	%esi, (%r12,%rdi,4)
.L15:
	movq	(%rsp), %rdx
	movl	(%rdx,%rcx,4), %esi
	cmpl	$-9999, %esi
	je	.L16
	movslq	%r13d, %rdi
	incl	%r13d
	movl	%esi, 0(%rbp,%rdi,4)
.L16:
	incq	%rcx
	cmpl	%ecx, %ebx
	jg	.L17
	movl	%eax, %esi
	movq	%r12, %rdi
	movl	%eax, 12(%rsp)
	call	_Z9quicksortPii
	movl	12(%rsp), %eax
	xorl	%ecx, %ecx
.L18:
	cmpl	%ecx, %eax
	jle	.L34
	movl	(%r12,%rcx,4), %esi
	movl	%esi, (%r15,%rcx,4)
	incq	%rcx
	jmp	.L18
.L34:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	movl	%r13d, %esi
	movq	%rbp, %rdi
	cmovs	%ecx, %eax
	movslq	%eax, %rbx
	movl	8(%rsp), %eax
	movl	%eax, (%r15,%rbx,4)
	call	_Z9quicksortPii
	leaq	(%r15,%rbx,4), %rcx
	xorl	%eax, %eax
.L20:
	cmpl	%eax, %r13d
	jle	.L35
	movl	0(%rbp,%rax,4), %esi
	movl	%esi, 4(%rcx,%rax,4)
	incq	%rax
	jmp	.L20
.L35:
	movl	$4, %esi
	movq	%r14, %rdi
	call	_ZdlPvm@PLT
	movq	(%rsp), %rdi
	movl	$4, %esi
	call	_ZdlPvm@PLT
	movl	$4, %esi
	movq	%r12, %rdi
	call	_ZdlPvm@PLT
	movl	$4, %esi
	movq	%rbp, %rdi
	call	_ZdlPvm@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
.L8:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L22
.L33:
	call	__stack_chk_fail@PLT
.L22:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3635:
	.size	_Z9quicksortPii, .-_Z9quicksortPii
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\nEnter no. of elements you want to sort: "
.LC1:
	.string	"\n\nEnter no.s to be sorted: \n"
.LC2:
	.string	"\nSorted array is: \n"
.LC3:
	.string	"\t"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3636:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$41, %edx
	leaq	.LC0(%rip), %rsi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	leaq	_ZSt4cout(%rip), %r12
	pushq	%rbx
	movq	%r12, %rdi
	.cfi_offset 3, -56
	leaq	_ZSt3cin(%rip), %rbx
	subq	$24, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	leaq	-60(%rbp), %rsi
	movq	%rbx, %rdi
	call	_ZNSirsERi@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L37:
	cmpq	%rcx, %rsp
	je	.L38
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L37
.L38:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L39
	orq	$0, -8(%rsp,%rax)
.L39:
	movq	%rsp, %r13
	movl	$28, %edx
	movq	%r12, %rdi
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %rsi
	movq	%r13, %r15
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
.L40:
	movl	-60(%rbp), %esi
	cmpl	%r14d, %esi
	jle	.L49
	movq	%r15, %rsi
	movq	%rbx, %rdi
	incl	%r14d
	addq	$4, %r15
	call	_ZNSirsERi@PLT
	jmp	.L40
.L49:
	movq	%r13, %rdi
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r14
	call	_Z9quicksortPii
	movl	$19, %edx
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
.L42:
	cmpl	%ebx, -60(%rbp)
	jle	.L50
	movl	0(%r13,%rbx,4), %esi
	movq	%r12, %rdi
	incq	%rbx
	call	_ZNSolsEi@PLT
	movl	$1, %edx
	movq	%r14, %rsi
	movq	%rax, %rdi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	jmp	.L42
.L50:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3636:
	.size	main, .-main
	.section	.rodata.str1.1
.LC4:
	.string	"_Z4sortPiiiS_S_"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3664:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 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	.LC4(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z4sortPiiiS_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	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	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3664:
	.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
	.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:

//Assignment No-B3

 
#include <hip/hip_runtime.h>
#include "iostream"  
 using namespace std;  
 __global__ void sort(int *arr_d, int pivot, int len, int *arrl_d, int *arrh_d)  
 {  
   int id = threadIdx.x;  
   bool flag;  
   int element = arr_d[id+1];  
   if( element <= pivot )  
     flag = true;  
   else  
     flag = false;  
   __syncthreads();  
   if(flag)  
     arrl_d[id] = element;  
   else  
     arrh_d[id] = element;  
 }  
 void quicksort(int *arr, int len)  
 {  
   if(len == 1 || len == 0)  
     return;  
   int pivot = arr[0];  
   size_t size = len*sizeof(int);  
   int *arr_d, *arrl_d, *arrh_d, *arrl, *arrh;  
   arrl = new int[len];  
   arrh = new int[len];  
   for(int i=0; i<len; i++)  
   {  
     arrl[i] = -9999;  
     arrh[i] = -9999;  
   }  
   hipMalloc((void **)&arr_d, size);  
   hipMalloc((void **)&arrl_d, size);  
   hipMalloc((void **)&arrh_d, size);  
   hipMemcpy(arr_d, arr, size, hipMemcpyHostToDevice);  
   hipMemcpy(arrl_d, arrl, size, hipMemcpyHostToDevice);  
   hipMemcpy(arrh_d, arrh, size, hipMemcpyHostToDevice);  
   sort<<<1, len-1>>>(arr_d, pivot, len, arrl_d, arrh_d);  
   hipMemcpy(arrl, arrl_d, size, hipMemcpyDeviceToHost);  
   hipMemcpy(arrh, arrh_d, size, hipMemcpyDeviceToHost);  
   int *temp1 = new int[len];  
   int *temp2 = new int[len];  
   for(int i=0; i<len; i++)  
   {  
     temp1[i]=temp2[i]=-9999;  
   }  
   int j=0, k=0;  
   for(int i=0; i<len; i++)  
   {  
     if(arrl[i]!=-9999)  
     {  
       temp1[j++] = arrl[i];  
     }  
     if(arrh[i]!=-9999)  
     {  
       temp2[k++] = arrh[i];  
     }  
   }  
   quicksort(temp1, j);  
   int p=0;  
   for(int i=0; i<j; i++)  
     arr[p++] = temp1[i];  
   arr[p++] = pivot;  
   quicksort(temp2, k);  
   for(int i=0; i<k; i++)  
     arr[p++] = temp2[i];  
   delete(arrl); delete(arrh); delete(temp1); delete(temp2);  
   hipFree(arr_d); hipFree(arrl_d); hipFree(arrh_d);  
 }  
 int main()  
 {  
   int n;  
   cout<<"\nEnter no. of elements you want to sort: ";  
   cin>>n;  
   int arr[n];  
   cout<<"\n\nEnter no.s to be sorted: \n";  
   for (int i = 0 ; i < n ; i++)  
     cin>>arr[i];  
   quicksort(arr, n);  
   cout<<"\nSorted array is: \n";  
   for(int i=0;i<n;i++)  
       cout<<arr[i]<<"\t";  
   return 0;  
 }  


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

                                        # End of file scope inline assembly
	.globl	_Z19__device_stub__sortPiiiS_S_ # -- Begin function _Z19__device_stub__sortPiiiS_S_
	.type	_Z19__device_stub__sortPiiiS_S_,@function
_Z19__device_stub__sortPiiiS_S_:        # @_Z19__device_stub__sortPiiiS_S_
	.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	$128, %rsp
	.cfi_def_cfa_offset 176
	.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	4(%rsp), %rdi
	movl	%esi, (%rdi)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z4sortPiiiS_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z19__device_stub__sortPiiiS_S_, .Lfunc_end0-_Z19__device_stub__sortPiiiS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z9quicksortPii                 # -- Begin function _Z9quicksortPii
	.type	_Z9quicksortPii,@function
_Z9quicksortPii:                        # @_Z9quicksortPii
	.cfi_startproc
# %bb.0:
	cmpl	$2, %esi
	jb	.LBB1_22
# %bb.1:
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	.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, %r12d
	movq	%rdi, 16(%rsp)                  # 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	movslq	%esi, %r13
	shlq	$2, %r13
	testl	%esi, %esi
	movq	$-1, %rbp
	cmovnsq	%r13, %rbp
	movq	%rbp, %rdi
	callq	_Znam
	movq	%rax, %r15
	movq	%rbp, %rdi
	callq	_Znam
	movq	%rax, %r14
	movl	%r12d, %ebx
	testl	%r12d, %r12d
	jle	.LBB1_4
# %bb.2:                                # %.lr.ph.preheader
	xorl	%eax, %eax
	movl	$-9999, %ecx                    # imm = 0xD8F1
.LBB1_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%ecx, (%r15,%rax,4)
	movl	%ecx, (%r14,%rax,4)
	incq	%rax
	cmpq	%rax, %rbx
	jne	.LBB1_3
.LBB1_4:                                # %._crit_edge
	leaq	40(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	leaq	32(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	leaq	24(%rsp), %rdi
	movq	%r13, %rsi
	callq	hipMalloc
	leaq	40(%rsp), %rax
	movq	(%rax), %rdi
	movq	16(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	32(%rsp), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	24(%rsp), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leal	-1(%r12), %edx
	btsq	$32, %rdx
	movabsq	$4294967296, %rdi               # imm = 0x100000000
	orq	$1, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_6
# %bb.5:
	movq	40(%rsp), %rdi
	movq	32(%rsp), %rcx
	movq	24(%rsp), %r8
	movl	12(%rsp), %esi                  # 4-byte Reload
	movl	%r12d, %edx
	callq	_Z19__device_stub__sortPiiiS_S_
.LBB1_6:
	movq	32(%rsp), %rsi
	movq	%r15, 48(%rsp)                  # 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	%rbp, %rdi
	callq	_Znam
	movq	%rax, %r13
	movq	%rbp, %rdi
	callq	_Znam
	movq	%rax, %rbp
	testl	%r12d, %r12d
	movq	16(%rsp), %r15                  # 8-byte Reload
	jle	.LBB1_23
# %bb.7:                                # %.lr.ph100.preheader
	xorl	%eax, %eax
	movl	$-9999, %ecx                    # imm = 0xD8F1
.LBB1_8:                                # %.lr.ph100
                                        # =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rbp,%rax,4)
	movl	%ecx, (%r13,%rax,4)
	incq	%rax
	cmpq	%rax, %rbx
	jne	.LBB1_8
# %bb.9:                                # %.preheader
	testl	%r12d, %r12d
	jle	.LBB1_23
# %bb.10:                               # %.lr.ph104.preheader
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	48(%rsp), %rsi                  # 8-byte Reload
.LBB1_11:                               # %.lr.ph104
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rax,4), %ecx
	cmpl	$-9999, %ecx                    # imm = 0xD8F1
	je	.LBB1_13
# %bb.12:                               #   in Loop: Header=BB1_11 Depth=1
	movslq	%r15d, %rdx
	incl	%r15d
	movl	%ecx, (%r13,%rdx,4)
.LBB1_13:                               #   in Loop: Header=BB1_11 Depth=1
	movl	(%r14,%rax,4), %ecx
	cmpl	$-9999, %ecx                    # imm = 0xD8F1
	je	.LBB1_15
# %bb.14:                               #   in Loop: Header=BB1_11 Depth=1
	movslq	%r12d, %rdx
	incl	%r12d
	movl	%ecx, (%rbp,%rdx,4)
.LBB1_15:                               #   in Loop: Header=BB1_11 Depth=1
	incq	%rax
	cmpq	%rax, %rbx
	jne	.LBB1_11
# %bb.16:                               # %._crit_edge105
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_Z9quicksortPii
	testl	%r15d, %r15d
	jle	.LBB1_17
# %bb.18:                               # %.lr.ph110.preheader
	movl	%r15d, %ebx
	leaq	(,%rbx,4), %rdx
	movq	16(%rsp), %r15                  # 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	memcpy@PLT
	jmp	.LBB1_19
.LBB1_23:                               # %._crit_edge111.thread
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_Z9quicksortPii
	movl	12(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%r15)
	movq	%rbp, %rdi
	xorl	%esi, %esi
	callq	_Z9quicksortPii
	jmp	.LBB1_21
.LBB1_17:
	xorl	%ebx, %ebx
	movq	16(%rsp), %r15                  # 8-byte Reload
.LBB1_19:                               # %._crit_edge111
	movl	12(%rsp), %eax                  # 4-byte Reload
	movl	%eax, (%r15,%rbx,4)
	movq	%rbp, %rdi
	movl	%r12d, %esi
	callq	_Z9quicksortPii
	testl	%r12d, %r12d
	jle	.LBB1_21
# %bb.20:                               # %.lr.ph116.preheader
	leaq	(%r15,%rbx,4), %rdi
	addq	$4, %rdi
	movl	%r12d, %edx
	shlq	$2, %rdx
	movq	%rbp, %rsi
	callq	memcpy@PLT
.LBB1_21:                               # %._crit_edge117
	movq	48(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdlPv
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%r13, %rdi
	callq	_ZdlPv
	movq	%rbp, %rdi
	callq	_ZdlPv
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	addq	$56, %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
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB1_22:
	retq
.Lfunc_end1:
	.size	_Z9quicksortPii, .Lfunc_end1-_Z9quicksortPii
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$41, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	-36(%rbp), %r14
	movl	$_ZSt3cin, %edi
	movq	%r14, %rsi
	callq	_ZNSirsERi
	movq	%rsp, %r15
	movl	(%r14), %eax
	movq	%rsp, %rbx
	leaq	15(,%rax,4), %rax
	andq	$-16, %rax
	subq	%rax, %rbx
	movq	%rbx, %rsp
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$28, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	(%r14), %esi
	testl	%esi, %esi
	jle	.LBB2_3
# %bb.1:                                # %.lr.ph.preheader
	xorl	%r12d, %r12d
	movq	%rbx, %r14
.LBB2_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$_ZSt3cin, %edi
	movq	%r14, %rsi
	callq	_ZNSirsERi
	incq	%r12
	movslq	-36(%rbp), %rsi
	addq	$4, %r14
	cmpq	%rsi, %r12
	jl	.LBB2_2
.LBB2_3:                                # %._crit_edge
	movq	%rbx, %rdi
                                        # kill: def $esi killed $esi killed $rsi
	callq	_Z9quicksortPii
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	cmpl	$0, -36(%rbp)
	jle	.LBB2_6
# %bb.4:                                # %.lr.ph12.preheader
	xorl	%r14d, %r14d
.LBB2_5:                                # %.lr.ph12
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r14
	movslq	-36(%rbp), %rax
	cmpq	%rax, %r14
	jl	.LBB2_5
.LBB2_6:                                # %._crit_edge13
	movq	%r15, %rsp
	xorl	%eax, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.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:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB3_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB3_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z4sortPiiiS_S_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end3:
	.size	__hip_module_ctor, .Lfunc_end3-__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	.LBB4_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
.LBB4_2:
	retq
.Lfunc_end4:
	.size	__hip_module_dtor, .Lfunc_end4-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z4sortPiiiS_S_,@object         # @_Z4sortPiiiS_S_
	.section	.rodata,"a",@progbits
	.globl	_Z4sortPiiiS_S_
	.p2align	3, 0x0
_Z4sortPiiiS_S_:
	.quad	_Z19__device_stub__sortPiiiS_S_
	.size	_Z4sortPiiiS_S_, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"\nEnter no. of elements you want to sort: "
	.size	.L.str, 42

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"\n\nEnter no.s to be sorted: \n"
	.size	.L.str.1, 29

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"\nSorted array is: \n"
	.size	.L.str.2, 20

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z4sortPiiiS_S_"
	.size	.L__unnamed_1, 16

	.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 _Z19__device_stub__sortPiiiS_S_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z4sortPiiiS_S_
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt3cin
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z4sortPiiiS_S_         ; -- Begin function _Z4sortPiiiS_S_
	.globl	_Z4sortPiiiS_S_
	.p2align	8
	.type	_Z4sortPiiiS_S_,@function
_Z4sortPiiiS_S_:                        ; @_Z4sortPiiiS_S_
; %bb.0:
	s_clause 0x1
	s_load_b64 s[2:3], s[0:1], 0x0
	s_load_b32 s4, s[0:1], 0x8
	v_lshlrev_b32_e32 v0, 2, v0
	s_waitcnt lgkmcnt(0)
	global_load_b32 v2, v0, s[2:3] offset:4
	s_load_b128 s[0:3], s[0:1], 0x10
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	v_mov_b32_e32 v1, s3
	v_mov_b32_e32 v3, s2
	v_cmp_lt_i32_e32 vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v3, s0, v3, vcc_lo
	v_cndmask_b32_e32 v1, s1, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v3, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z4sortPiiiS_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 32
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 4
		.amdhsa_next_free_sgpr 5
		.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	_Z4sortPiiiS_S_, .Lfunc_end0-_Z4sortPiiiS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 120
; NumSgprs: 7
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 7
; 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
	.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
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 32
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z4sortPiiiS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     7
    .sgpr_spill_count: 0
    .symbol:         _Z4sortPiiiS_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
