#include <cuda.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define rows 1000
#define cols 1000
#define Y 32
#define X 32

__host__ void fill(double* M1, double* M2){
  for(int k=0; k<rows*cols; k++){
    M1[k] = sin(k);
    M2[k] = cos(k);
  }
}

__host__ void checkStatus(cudaError_t& status,const char *message){
  if(status != cudaSuccess) printf("%s\n",message);
}

__global__ void mul(double* M1,double* M2,double* Mr){
  int tx = threadIdx.x, ty = threadIdx.y;
  int bx = blockIdx.x, by = blockIdx.y;
  int tileWidthInX = blockDim.x, tileWidthInY = blockDim.y;
  int Mri = by*tileWidthInY+ty;
  int Mrj = bx*tileWidthInX+tx; 
   __shared__ double sM1[Y][X];
   __shared__ double sM2[Y][X];

  if(Mri < rows && Mrj < cols){ 
      int totalPhases = ceil((double)rows/tileWidthInX);
      double MrVal = 0.0;
      for(int phase=0; phase < totalPhases; phase++ ){
        sM1[ty][tx] = M1[Mri*rows + (phase*tileWidthInX + tx)];
        sM2[ty][tx] = M2[(phase*tileWidthInY + ty)*cols + Mrj];
        __syncthreads(); 
        for(int k=0; k<tileWidthInX; k++){
          MrVal += sM1[ty][k] * sM2[k][tx];
          __syncthreads();
        } 
      } 
      Mr[Mri*rows + Mrj] = MrVal;
   }
}

int main(int argc, char const *argv[]) {
  cudaError_t status = cudaSuccess;

  double *h_M1=NULL, *h_M2=NULL, *h_Mr=NULL;
  int n = rows*cols*sizeof(double);
  h_M1 = (double *)malloc(n);
  h_M2 = (double *)malloc(n);
  h_Mr = (double *)malloc(n);
  fill(h_M1,h_M2);

  double *d_M1=NULL, *d_M2=NULL, *d_Mr=NULL;
  status = cudaMalloc((void**)&d_M1,n);
  checkStatus(status,"Unallocated memory to d_M1");
  status = cudaMalloc((void**)&d_M2,n);
  checkStatus(status,"Unallocated memory to d_M2");
  status = cudaMalloc((void**)&d_Mr,n);
  checkStatus(status,"Unallocated memory to d_Mr");
  if(d_M1 != NULL && d_M2 != NULL && d_Mr != NULL){
    status = cudaMemcpy(d_M1,h_M1,n,cudaMemcpyHostToDevice);
    checkStatus(status,"Impossible copy data to d_M1");
    status = cudaMemcpy(d_M2,h_M2,n,cudaMemcpyHostToDevice);
    checkStatus(status,"Impossible copy data to d_M2");
    dim3 blockS(32,32,1);
    dim3 gridS(ceil((double)rows/32.0),ceil((double)cols/32.0),1);
    mul<<<gridS,blockS>>>(d_M1,d_M2,d_Mr);
    status = cudaMemcpy(h_Mr,d_Mr,n,cudaMemcpyDeviceToHost);
    checkStatus(status,"Impossible copy data to h_Mr");
    if(status == cudaSuccess) for(int k=0; k<rows*cols; k++) printf("%f ",h_Mr[k]);
  }

  if(d_M1 != NULL) cudaFree(d_M1);
  if(d_M2 != NULL) cudaFree(d_M2);
  if(d_Mr != NULL) cudaFree(d_Mr);
  if(h_M1 != NULL) free(h_M1);
  if(h_M2 != NULL) free(h_M2);
  if(h_Mr != NULL) free(h_Mr);
  return 0;
}

	.file	"tmpxft_0027055e_00000000-6_sharedMemory.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2032:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2032:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z4fillPdS_
	.type	_Z4fillPdS_, @function
_Z4fillPdS_:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	leaq	8(%rsp), %r13
.L3:
	cvtsi2sdl	%ebx, %xmm0
	movq	%rsp, %rsi
	movq	%r13, %rdi
	call	sincos@PLT
	movsd	8(%rsp), %xmm0
	movsd	%xmm0, (%r12,%rbx,8)
	movsd	(%rsp), %xmm0
	movsd	%xmm0, 0(%rbp,%rbx,8)
	incq	%rbx
	cmpq	$1000000, %rbx
	jne	.L3
	addq	$24, %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
.LFE2027:
	.size	_Z4fillPdS_, .-_Z4fillPdS_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s\n"
	.text
	.globl	_Z11checkStatusR9cudaErrorPKc
	.type	_Z11checkStatusR9cudaErrorPKc, @function
_Z11checkStatusR9cudaErrorPKc:
.LFB2028:
	.cfi_startproc
	endbr64
	cmpl	$0, (%rdi)
	movq	%rsi, %rdx
	je	.L7
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	jmp	__printf_chk@PLT
.L7:
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z11checkStatusR9cudaErrorPKc, .-_Z11checkStatusR9cudaErrorPKc
	.globl	_Z26__device_stub__Z3mulPdS_S_PdS_S_
	.type	_Z26__device_stub__Z3mulPdS_S_PdS_S_, @function
_Z26__device_stub__Z3mulPdS_S_PdS_S_:
.LFB2054:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L9
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z3mulPdS_S_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	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 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L9:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2054:
	.size	_Z26__device_stub__Z3mulPdS_S_PdS_S_, .-_Z26__device_stub__Z3mulPdS_S_PdS_S_
	.globl	_Z3mulPdS_S_
	.type	_Z3mulPdS_S_, @function
_Z3mulPdS_S_:
.LFB2055:
	.cfi_startproc
	endbr64
	jmp	_Z26__device_stub__Z3mulPdS_S_PdS_S_
	.cfi_endproc
.LFE2055:
	.size	_Z3mulPdS_S_, .-_Z3mulPdS_S_
	.section	.rodata.str1.1
.LC1:
	.string	"Unallocated memory to d_M1"
.LC2:
	.string	"Unallocated memory to d_M2"
.LC3:
	.string	"Unallocated memory to d_Mr"
.LC4:
	.string	"Impossible copy data to d_M1"
.LC5:
	.string	"Impossible copy data to d_M2"
.LC6:
	.string	"Impossible copy data to h_Mr"
.LC7:
	.string	"%f "
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$8000000, %edi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	call	malloc@PLT
	movl	$8000000, %edi
	movq	%rax, %r12
	call	malloc@PLT
	movl	$8000000, %edi
	movq	%rax, %rbp
	call	malloc@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	movq	%rax, %rbx
	call	_Z4fillPdS_
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	movl	$8000000, %esi
	movq	%rax, 8(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 24(%rsp)
	call	cudaMalloc@PLT
	leaq	.LC1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, 4(%rsp)
	call	_Z11checkStatusR9cudaErrorPKc
	leaq	16(%rsp), %rdi
	movl	$8000000, %esi
	call	cudaMalloc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, 4(%rsp)
	call	_Z11checkStatusR9cudaErrorPKc
	leaq	24(%rsp), %rdi
	movl	$8000000, %esi
	call	cudaMalloc@PLT
	movq	%r13, %rdi
	leaq	.LC3(%rip), %rsi
	movl	%eax, 4(%rsp)
	call	_Z11checkStatusR9cudaErrorPKc
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.L15
	cmpq	$0, 16(%rsp)
	je	.L15
	cmpq	$0, 24(%rsp)
	je	.L15
	movl	$1, %ecx
	movl	$8000000, %edx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	leaq	.LC4(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, 4(%rsp)
	call	_Z11checkStatusR9cudaErrorPKc
	movq	16(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$8000000, %edx
	call	cudaMemcpy@PLT
	leaq	.LC5(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, 4(%rsp)
	call	_Z11checkStatusR9cudaErrorPKc
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movabsq	$137438953504, %rdi
	movl	$1, %esi
	movq	%rdi, %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	_Z26__device_stub__Z3mulPdS_S_PdS_S_
.L16:
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$8000000, %edx
	call	cudaMemcpy@PLT
	leaq	.LC6(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %r14d
	movl	%eax, 4(%rsp)
	call	_Z11checkStatusR9cudaErrorPKc
	testl	%r14d, %r14d
	jne	.L15
	xorl	%r13d, %r13d
	leaq	.LC7(%rip), %r14
.L18:
	movsd	(%rbx,%r13,8), %xmm0
	movq	%r14, %rsi
	movl	$2, %edi
	movb	$1, %al
	incq	%r13
	call	__printf_chk@PLT
	cmpq	$1000000, %r13
	jne	.L18
.L15:
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.L19
	call	cudaFree@PLT
.L19:
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.L20
	call	cudaFree@PLT
.L20:
	movq	24(%rsp), %rdi
	testq	%rdi, %rdi
	je	.L21
	call	cudaFree@PLT
.L21:
	testq	%r12, %r12
	je	.L22
	movq	%r12, %rdi
	call	free@PLT
.L22:
	testq	%rbp, %rbp
	je	.L23
	movq	%rbp, %rdi
	call	free@PLT
.L23:
	testq	%rbx, %rbx
	je	.L24
	movq	%rbx, %rdi
	call	free@PLT
.L24:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$64, %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
.LFE2029:
	.size	main, .-main
	.section	.rodata.str1.1
.LC8:
	.string	"_Z3mulPdS_S_"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2057:
	.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	.LC8(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z3mulPdS_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
.LFE2057:
	.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:

#include <hip/hip_runtime.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define rows 1000
#define cols 1000
#define Y 32
#define X 32

__host__ void fill(double* M1, double* M2){
  for(int k=0; k<rows*cols; k++){
    M1[k] = sin(k);
    M2[k] = cos(k);
  }
}

__host__ void checkStatus(hipError_t& status,const char *message){
  if(status != hipSuccess) printf("%s\n",message);
}

__global__ void mul(double* M1,double* M2,double* Mr){
  int tx = threadIdx.x, ty = threadIdx.y;
  int bx = blockIdx.x, by = blockIdx.y;
  int tileWidthInX = blockDim.x, tileWidthInY = blockDim.y;
  int Mri = by*tileWidthInY+ty;
  int Mrj = bx*tileWidthInX+tx; 
   __shared__ double sM1[Y][X];
   __shared__ double sM2[Y][X];

  if(Mri < rows && Mrj < cols){ 
      int totalPhases = ceil((double)rows/tileWidthInX);
      double MrVal = 0.0;
      for(int phase=0; phase < totalPhases; phase++ ){
        sM1[ty][tx] = M1[Mri*rows + (phase*tileWidthInX + tx)];
        sM2[ty][tx] = M2[(phase*tileWidthInY + ty)*cols + Mrj];
        __syncthreads(); 
        for(int k=0; k<tileWidthInX; k++){
          MrVal += sM1[ty][k] * sM2[k][tx];
          __syncthreads();
        } 
      } 
      Mr[Mri*rows + Mrj] = MrVal;
   }
}

int main(int argc, char const *argv[]) {
  hipError_t status = hipSuccess;

  double *h_M1=NULL, *h_M2=NULL, *h_Mr=NULL;
  int n = rows*cols*sizeof(double);
  h_M1 = (double *)malloc(n);
  h_M2 = (double *)malloc(n);
  h_Mr = (double *)malloc(n);
  fill(h_M1,h_M2);

  double *d_M1=NULL, *d_M2=NULL, *d_Mr=NULL;
  status = hipMalloc((void**)&d_M1,n);
  checkStatus(status,"Unallocated memory to d_M1");
  status = hipMalloc((void**)&d_M2,n);
  checkStatus(status,"Unallocated memory to d_M2");
  status = hipMalloc((void**)&d_Mr,n);
  checkStatus(status,"Unallocated memory to d_Mr");
  if(d_M1 != NULL && d_M2 != NULL && d_Mr != NULL){
    status = hipMemcpy(d_M1,h_M1,n,hipMemcpyHostToDevice);
    checkStatus(status,"Impossible copy data to d_M1");
    status = hipMemcpy(d_M2,h_M2,n,hipMemcpyHostToDevice);
    checkStatus(status,"Impossible copy data to d_M2");
    dim3 blockS(32,32,1);
    dim3 gridS(ceil((double)rows/32.0),ceil((double)cols/32.0),1);
    mul<<<gridS,blockS>>>(d_M1,d_M2,d_Mr);
    status = hipMemcpy(h_Mr,d_Mr,n,hipMemcpyDeviceToHost);
    checkStatus(status,"Impossible copy data to h_Mr");
    if(status == hipSuccess) for(int k=0; k<rows*cols; k++) printf("%f ",h_Mr[k]);
  }

  if(d_M1 != NULL) hipFree(d_M1);
  if(d_M2 != NULL) hipFree(d_M2);
  if(d_Mr != NULL) hipFree(d_Mr);
  if(h_M1 != NULL) free(h_M1);
  if(h_M2 != NULL) free(h_M2);
  if(h_Mr != NULL) free(h_Mr);
  return 0;
}

	.text
	.file	"sharedMemory.hip"
	.globl	_Z4fillPdS_                     # -- Begin function _Z4fillPdS_
	.type	_Z4fillPdS_,@function
_Z4fillPdS_:                            # @_Z4fillPdS_
	.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
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	callq	sin
	movsd	%xmm0, (%r14,%r15,8)
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	cos
	movsd	%xmm0, (%rbx,%r15,8)
	incq	%r15
	cmpq	$1000000, %r15                  # imm = 0xF4240
	jne	.LBB0_1
# %bb.2:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z4fillPdS_, .Lfunc_end0-_Z4fillPdS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z11checkStatusR10hipError_tPKc # -- Begin function _Z11checkStatusR10hipError_tPKc
	.type	_Z11checkStatusR10hipError_tPKc,@function
_Z11checkStatusR10hipError_tPKc:        # @_Z11checkStatusR10hipError_tPKc
	.cfi_startproc
# %bb.0:
	cmpl	$0, (%rdi)
	je	.LBB1_1
# %bb.2:
	movq	%rsi, %rdi
	jmp	puts@PLT                        # TAILCALL
.LBB1_1:
	retq
.Lfunc_end1:
	.size	_Z11checkStatusR10hipError_tPKc, .Lfunc_end1-_Z11checkStatusR10hipError_tPKc
	.cfi_endproc
                                        # -- End function
	.globl	_Z18__device_stub__mulPdS_S_    # -- Begin function _Z18__device_stub__mulPdS_S_
	.type	_Z18__device_stub__mulPdS_S_,@function
_Z18__device_stub__mulPdS_S_:           # @_Z18__device_stub__mulPdS_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	$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	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z3mulPdS_S_, %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_end2:
	.size	_Z18__device_stub__mulPdS_S_, .Lfunc_end2-_Z18__device_stub__mulPdS_S_
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$8000000, %edi                  # imm = 0x7A1200
	callq	malloc
	movq	%rax, %r15
	movl	$8000000, %edi                  # imm = 0x7A1200
	callq	malloc
	movq	%rax, %r14
	movl	$8000000, %edi                  # imm = 0x7A1200
	callq	malloc
	movq	%rax, %rbx
	xorl	%r12d, %r12d
.LBB3_1:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	movsd	%xmm0, 32(%rsp)                 # 8-byte Spill
	callq	sin
	movsd	%xmm0, (%r15,%r12,8)
	movsd	32(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	cos
	movsd	%xmm0, (%r14,%r12,8)
	incq	%r12
	cmpq	$1000000, %r12                  # imm = 0xF4240
	jne	.LBB3_1
# %bb.2:                                # %_Z4fillPdS_.exit
	xorl	%eax, %eax
	leaq	24(%rsp), %rdi
	movq	%rax, (%rdi)
	movq	%rax, 16(%rsp)
	movq	%rax, 8(%rsp)
	movl	$8000000, %esi                  # imm = 0x7A1200
	callq	hipMalloc
	testl	%eax, %eax
	je	.LBB3_4
# %bb.3:
	movl	$.L.str.1, %edi
	callq	puts@PLT
.LBB3_4:                                # %_Z11checkStatusR10hipError_tPKc.exit
	leaq	16(%rsp), %rdi
	movl	$8000000, %esi                  # imm = 0x7A1200
	callq	hipMalloc
	testl	%eax, %eax
	je	.LBB3_6
# %bb.5:
	movl	$.L.str.2, %edi
	callq	puts@PLT
.LBB3_6:                                # %_Z11checkStatusR10hipError_tPKc.exit47
	leaq	8(%rsp), %rdi
	movl	$8000000, %esi                  # imm = 0x7A1200
	callq	hipMalloc
	testl	%eax, %eax
	je	.LBB3_8
# %bb.7:
	movl	$.L.str.3, %edi
	callq	puts@PLT
.LBB3_8:                                # %_Z11checkStatusR10hipError_tPKc.exit50
	movq	24(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_20
# %bb.9:                                # %_Z11checkStatusR10hipError_tPKc.exit50
	cmpq	$0, 16(%rsp)
	je	.LBB3_20
# %bb.10:                               # %_Z11checkStatusR10hipError_tPKc.exit50
	cmpq	$0, 8(%rsp)
	je	.LBB3_20
# %bb.11:
	movl	$8000000, %edx                  # imm = 0x7A1200
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB3_13
# %bb.12:
	movl	$.L.str.4, %edi
	callq	puts@PLT
.LBB3_13:                               # %_Z11checkStatusR10hipError_tPKc.exit53
	movq	16(%rsp), %rdi
	movl	$8000000, %edx                  # imm = 0x7A1200
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB3_15
# %bb.14:
	movl	$.L.str.5, %edi
	callq	puts@PLT
.LBB3_15:                               # %_Z11checkStatusR10hipError_tPKc.exit56
	movabsq	$137438953504, %rdi             # imm = 0x2000000020
	movl	$1, %esi
	movq	%rdi, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB3_17
# %bb.16:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
	callq	_Z18__device_stub__mulPdS_S_
.LBB3_17:
	movq	8(%rsp), %rsi
	movl	$8000000, %edx                  # imm = 0x7A1200
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	je	.LBB3_18
# %bb.33:                               # %_Z11checkStatusR10hipError_tPKc.exit59.thread
	movl	$.L.str.6, %edi
	callq	puts@PLT
	jmp	.LBB3_20
.LBB3_18:                               # %_Z11checkStatusR10hipError_tPKc.exit59.preheader
	xorl	%r12d, %r12d
.LBB3_19:                               # %_Z11checkStatusR10hipError_tPKc.exit59
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rbx,%r12,8), %xmm0            # xmm0 = mem[0],zero
	movl	$.L.str.7, %edi
	movb	$1, %al
	callq	printf
	incq	%r12
	cmpq	$1000000, %r12                  # imm = 0xF4240
	jne	.LBB3_19
.LBB3_20:                               # %.loopexit
	movq	24(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_22
# %bb.21:
	callq	hipFree
.LBB3_22:
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_24
# %bb.23:
	callq	hipFree
.LBB3_24:
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB3_26
# %bb.25:
	callq	hipFree
.LBB3_26:
	testq	%r15, %r15
	je	.LBB3_28
# %bb.27:
	movq	%r15, %rdi
	callq	free
.LBB3_28:
	testq	%r14, %r14
	je	.LBB3_30
# %bb.29:
	movq	%r14, %rdi
	callq	free
.LBB3_30:
	testq	%rbx, %rbx
	je	.LBB3_32
# %bb.31:
	movq	%rbx, %rdi
	callq	free
.LBB3_32:
	xorl	%eax, %eax
	addq	$40, %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_end3:
	.size	main, .Lfunc_end3-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	.LBB4_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB4_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z3mulPdS_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_end4:
	.size	__hip_module_ctor, .Lfunc_end4-__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	.LBB5_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
.LBB5_2:
	retq
.Lfunc_end5:
	.size	__hip_module_dtor, .Lfunc_end5-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z3mulPdS_S_,@object            # @_Z3mulPdS_S_
	.section	.rodata,"a",@progbits
	.globl	_Z3mulPdS_S_
	.p2align	3, 0x0
_Z3mulPdS_S_:
	.quad	_Z18__device_stub__mulPdS_S_
	.size	_Z3mulPdS_S_, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"Unallocated memory to d_M1"
	.size	.L.str.1, 27

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Unallocated memory to d_M2"
	.size	.L.str.2, 27

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Unallocated memory to d_Mr"
	.size	.L.str.3, 27

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Impossible copy data to d_M1"
	.size	.L.str.4, 29

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Impossible copy data to d_M2"
	.size	.L.str.5, 29

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Impossible copy data to h_Mr"
	.size	.L.str.6, 29

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"%f "
	.size	.L.str.7, 4

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z3mulPdS_S_"
	.size	.L__unnamed_1, 13

	.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 _Z18__device_stub__mulPdS_S_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z3mulPdS_S_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z3mulPdS_S_            ; -- Begin function _Z3mulPdS_S_
	.globl	_Z3mulPdS_S_
	.p2align	8
	.type	_Z3mulPdS_S_,@function
_Z3mulPdS_S_:                           ; @_Z3mulPdS_S_
; %bb.0:
	s_load_b32 s3, s[0:1], 0x24
	v_bfe_u32 v2, v0, 10, 10
	v_and_b32_e32 v3, 0x3ff, v0
	s_mov_b32 s4, exec_lo
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s2, s3, 16
	s_and_b32 s3, s3, 0xffff
	v_mad_u64_u32 v[4:5], null, s15, s2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, s14, s3, v[3:4]
	v_max_i32_e32 v1, v4, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e32 0x3e8, v1
	s_cbranch_execz .LBB0_8
; %bb.1:
	v_cvt_f64_u32_e32 v[5:6], s3
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[7:8], null, v[5:6], v[5:6], 0x408f4000
	v_div_scale_f64 v[13:14], vcc_lo, 0x408f4000, v[5:6], 0x408f4000
	v_rcp_f64_e32 v[9:10], v[7:8]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[11:12], -v[7:8], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[9:10], v[11:12], v[9:10]
	v_fma_f64 v[11:12], -v[7:8], v[9:10], 1.0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[9:10], v[9:10], v[11:12], v[9:10]
	v_mul_f64 v[11:12], v[13:14], v[9:10]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[7:8], -v[7:8], v[11:12], v[13:14]
	v_div_fmas_f64 v[7:8], v[7:8], v[9:10], v[11:12]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fixup_f64 v[5:6], v[7:8], v[5:6], 0x408f4000
	v_ceil_f64_e32 v[5:6], v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cvt_i32_f64_e32 v6, v[5:6]
	v_mul_lo_u32 v5, 0x3e8, v4
	v_cmp_gt_i32_e32 vcc_lo, 1, v6
	s_cbranch_vccnz .LBB0_6
; %bb.2:                                ; %.lr.ph51
	v_lshlrev_b32_e32 v9, 3, v3
	v_lshlrev_b32_e32 v7, 8, v2
	s_delay_alu instid0(VALU_DEP_4)
	v_add_nc_u32_e32 v1, v5, v3
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
	v_or_b32_e32 v8, 0x2000, v9
	v_add_nc_u32_e32 v9, v7, v9
	s_cmp_lg_u32 s3, 0
	s_mov_b32 s9, 0
	s_cselect_b32 s8, -1, 0
	v_add_nc_u32_e32 v10, v8, v7
.LBB0_3:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[11:12], null, s9, s2, v[2:3]
	v_mad_u64_u32 v[12:13], null, s9, s3, v[1:2]
	s_mov_b32 s10, s3
	v_mad_u64_u32 v[14:15], null, 0x3e8, v11, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v13, 31, v12
	v_lshlrev_b64 v[11:12], 3, v[12:13]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v15, 31, v14
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v11, vcc_lo, s4, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[13:14], 3, v[14:15]
	v_add_co_ci_u32_e32 v12, vcc_lo, s5, v12, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v13, vcc_lo, s6, v13
	v_add_co_ci_u32_e32 v14, vcc_lo, s7, v14, vcc_lo
	global_load_b64 v[15:16], v[11:12], off
	global_load_b64 v[13:14], v[13:14], off
	v_dual_mov_b32 v11, v8 :: v_dual_mov_b32 v12, v7
	s_and_not1_b32 vcc_lo, exec_lo, s8
	s_waitcnt vmcnt(1)
	ds_store_b64 v9, v[15:16]
	s_waitcnt vmcnt(0)
	ds_store_b64 v10, v[13:14]
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_cbranch_vccnz .LBB0_5
.LBB0_4:                                ; %.lr.ph
                                        ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ds_load_b64 v[13:14], v12
	ds_load_b64 v[15:16], v11
	v_add_nc_u32_e32 v12, 8, v12
	v_add_nc_u32_e32 v11, 0x100, v11
	s_add_i32 s10, s10, -1
	s_waitcnt lgkmcnt(0)
	s_cmp_eq_u32 s10, 0
	s_barrier
	buffer_gl0_inv
	v_fma_f64 v[3:4], v[13:14], v[15:16], v[3:4]
	s_cbranch_scc0 .LBB0_4
.LBB0_5:                                ; %._crit_edge
                                        ;   in Loop: Header=BB0_3 Depth=1
	s_add_i32 s9, s9, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	v_cmp_eq_u32_e32 vcc_lo, s9, v6
	s_cbranch_vccz .LBB0_3
	s_branch .LBB0_7
.LBB0_6:
	v_mov_b32_e32 v3, 0
	v_mov_b32_e32 v4, 0
.LBB0_7:                                ; %Flow72
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v0, v5, v0
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b64 v[0:1], v[3:4], off
.LBB0_8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z3mulPdS_S_
		.amdhsa_group_segment_fixed_size 16384
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 14
		.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 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 17
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z3mulPdS_S_, .Lfunc_end0-_Z3mulPdS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 644
; NumSgprs: 18
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 16384 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 17
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 16384
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z3mulPdS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z3mulPdS_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
