#include <stdio.h>
#include <cuda_runtime.h>
#include <cuComplex.h>

// Complex multiplication kernel
__global__ void complexMultiplyKernel(cuFloatComplex* A, cuFloatComplex* B, cuFloatComplex* C, int size) {
    int idx = blockIdx.x * blockDim.x + threadIdx.x;
    
    if (idx < size) {
        // Complex multiplication: (a+bi) * (c+di) = (ac-bd) + (ad+bc)i
        C[idx] = cuCmulf(A[idx], B[idx]);
    }
}

// Error checking helper function
#define CHECK_CUDA_ERROR(call) \
do { \
    cudaError_t err = call; \
    if (err != cudaSuccess) { \
        fprintf(stderr, "CUDA error in %s:%d: %s\n", __FILE__, __LINE__, \
                cudaGetErrorString(err)); \
        exit(EXIT_FAILURE); \
    } \
} while(0)

int main() {
    // Array size
    int size = 1024;
    size_t bytes = size * sizeof(cuFloatComplex);
    
    // Host arrays
    cuFloatComplex *h_A = (cuFloatComplex*)malloc(bytes);
    cuFloatComplex *h_B = (cuFloatComplex*)malloc(bytes);
    cuFloatComplex *h_C = (cuFloatComplex*)malloc(bytes);
    
    // Initialize arrays with some values
    for (int i = 0; i < size; i++) {
        h_A[i] = make_cuFloatComplex(i * 0.1f, i * 0.2f);
        h_B[i] = make_cuFloatComplex(i * 0.3f, i * 0.4f);
    }
    
    // Device arrays
    cuFloatComplex *d_A, *d_B, *d_C;
    CHECK_CUDA_ERROR(cudaMalloc(&d_A, bytes));
    CHECK_CUDA_ERROR(cudaMalloc(&d_B, bytes));
    CHECK_CUDA_ERROR(cudaMalloc(&d_C, bytes));
    
    // Copy data from host to device
    CHECK_CUDA_ERROR(cudaMemcpy(d_A, h_A, bytes, cudaMemcpyHostToDevice));
    CHECK_CUDA_ERROR(cudaMemcpy(d_B, h_B, bytes, cudaMemcpyHostToDevice));
    
    // Launch kernel with 256 threads per block
    int threadsPerBlock = 256;
    int blocksPerGrid = (size + threadsPerBlock - 1) / threadsPerBlock;
    complexMultiplyKernel<<<blocksPerGrid, threadsPerBlock>>>(d_A, d_B, d_C, size);
    
    // Check for kernel launch errors
    CHECK_CUDA_ERROR(cudaGetLastError());
    
    // Wait for kernel to finish
    CHECK_CUDA_ERROR(cudaDeviceSynchronize());
    
    // Copy result back to host
    CHECK_CUDA_ERROR(cudaMemcpy(h_C, d_C, bytes, cudaMemcpyDeviceToHost));
    
    // Verify results (check a few values)
    printf("Verification of a few results:\n");
    for (int i = 0; i < 5; i++) {
        printf("C[%d] = (%.2f, %.2f) * (%.2f, %.2f) = (%.2f, %.2f)\n", 
               i, 
               cuCrealf(h_A[i]), cuCimagf(h_A[i]),
               cuCrealf(h_B[i]), cuCimagf(h_B[i]),
               cuCrealf(h_C[i]), cuCimagf(h_C[i]));
    }
    
    // Free memory
    free(h_A);
    free(h_B);
    free(h_C);
    CHECK_CUDA_ERROR(cudaFree(d_A));
    CHECK_CUDA_ERROR(cudaFree(d_B));
    CHECK_CUDA_ERROR(cudaFree(d_C));
    
    printf("Complex multiplication completed successfully!\n");
    
    return 0;
}
	.file	"tmpxft_00047c98_00000000-6_14.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2005:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2005:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z54__device_stub__Z21complexMultiplyKernelP6float2S0_S0_iP6float2S0_S0_i
	.type	_Z54__device_stub__Z21complexMultiplyKernelP6float2S0_S0_iP6float2S0_S0_i, @function
_Z54__device_stub__Z21complexMultiplyKernelP6float2S0_S0_iP6float2S0_S0_i:
.LFB2027:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	48(%rsp), %rcx
	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	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	4(%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	.L2
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z21complexMultiplyKernelP6float2S0_S0_i(%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
.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
.LFE2027:
	.size	_Z54__device_stub__Z21complexMultiplyKernelP6float2S0_S0_iP6float2S0_S0_i, .-_Z54__device_stub__Z21complexMultiplyKernelP6float2S0_S0_iP6float2S0_S0_i
	.globl	_Z21complexMultiplyKernelP6float2S0_S0_i
	.type	_Z21complexMultiplyKernelP6float2S0_S0_i, @function
_Z21complexMultiplyKernelP6float2S0_S0_i:
.LFB2028:
	.cfi_startproc
	endbr64
	jmp	_Z54__device_stub__Z21complexMultiplyKernelP6float2S0_S0_iP6float2S0_S0_i
	.cfi_endproc
.LFE2028:
	.size	_Z21complexMultiplyKernelP6float2S0_S0_i, .-_Z21complexMultiplyKernelP6float2S0_S0_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"14.cu"
.LC5:
	.string	"CUDA error in %s:%d: %s\n"
.LC6:
	.string	"Verification of a few results:\n"
.LC7:
	.string	"C[%d] = (%.2f, %.2f) * (%.2f, %.2f) = (%.2f, %.2f)\n"
.LC8:
	.string	"Complex multiplication completed successfully!\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2002:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$8192, %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
	call	malloc@PLT
	movl	$8192, %edi
	movq	%rax, %r12
	call	malloc@PLT
	movl	$8192, %edi
	movq	%rax, %rbp
	call	malloc@PLT
	movss	.LC0(%rip), %xmm5
	movss	.LC1(%rip), %xmm4
	movss	.LC2(%rip), %xmm3
	movss	.LC3(%rip), %xmm1
	movq	%rax, %r13
	xorl	%eax, %eax
.L9:
	cvtsi2ssl	%eax, %xmm0
	movaps	%xmm0, %xmm2
	mulss	%xmm5, %xmm2
	movss	%xmm2, (%r12,%rax,8)
	movaps	%xmm0, %xmm2
	mulss	%xmm4, %xmm2
	movss	%xmm2, 4(%r12,%rax,8)
	movaps	%xmm0, %xmm2
	mulss	%xmm3, %xmm2
	mulss	%xmm1, %xmm0
	movss	%xmm2, 0(%rbp,%rax,8)
	movss	%xmm0, 4(%rbp,%rax,8)
	incq	%rax
	cmpq	$1024, %rax
	jne	.L9
	leaq	8(%rsp), %rdi
	movl	$8192, %esi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L10
	call	cudaGetErrorString@PLT
	movl	$44, %r8d
	movq	%rax, %r9
	jmp	.L27
.L10:
	leaq	16(%rsp), %rdi
	movl	$8192, %esi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L11
	call	cudaGetErrorString@PLT
	movl	$45, %r8d
	movq	%rax, %r9
.L27:
	movq	stderr(%rip), %rdi
	leaq	.LC4(%rip), %rcx
	leaq	.LC5(%rip), %rdx
	xorl	%eax, %eax
	movl	$1, %esi
	call	__fprintf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L11:
	leaq	24(%rsp), %rdi
	movl	$8192, %esi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L12
	call	cudaGetErrorString@PLT
	movl	$46, %r8d
	movq	%rax, %r9
	jmp	.L27
.L12:
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movl	$8192, %edx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L13
	call	cudaGetErrorString@PLT
	movl	$49, %r8d
	movq	%rax, %r9
	jmp	.L27
.L13:
	movq	16(%rsp), %rdi
	movl	$1, %ecx
	movl	$8192, %edx
	movq	%rbp, %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L14
	call	cudaGetErrorString@PLT
	movl	$50, %r8d
	movq	%rax, %r9
	jmp	.L27
.L14:
	movl	$16777217, %edx
	movl	$1073741825, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$8, %rdx
	salq	$2, %rdi
	movl	$1, %ecx
	movl	$1, %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L15
	movq	24(%rsp), %rdx
	movq	16(%rsp), %rsi
	movl	$1024, %ecx
	movq	8(%rsp), %rdi
	call	_Z54__device_stub__Z21complexMultiplyKernelP6float2S0_S0_iP6float2S0_S0_i
.L15:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L16
	call	cudaGetErrorString@PLT
	movl	$58, %r8d
	movq	%rax, %r9
	jmp	.L27
.L16:
	call	cudaDeviceSynchronize@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L17
	call	cudaGetErrorString@PLT
	movl	$61, %r8d
	movq	%rax, %r9
	jmp	.L27
.L17:
	movq	24(%rsp), %rsi
	movq	%r13, %rdi
	movl	$2, %ecx
	movl	$8192, %edx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L18
	call	cudaGetErrorString@PLT
	movl	$64, %r8d
	movq	%rax, %r9
	jmp	.L27
.L18:
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__printf_chk@PLT
	leaq	.LC7(%rip), %r14
.L19:
	movl	%ebx, %edx
	cvtss2sd	(%r12,%rbx,8), %xmm0
	movq	%r14, %rsi
	cvtss2sd	4(%r13,%rbx,8), %xmm5
	cvtss2sd	0(%r13,%rbx,8), %xmm4
	cvtss2sd	4(%rbp,%rbx,8), %xmm3
	movb	$6, %al
	cvtss2sd	0(%rbp,%rbx,8), %xmm2
	cvtss2sd	4(%r12,%rbx,8), %xmm1
	movl	$1, %edi
	incq	%rbx
	call	__printf_chk@PLT
	cmpq	$5, %rbx
	jne	.L19
	movq	%r12, %rdi
	call	free@PLT
	movq	%rbp, %rdi
	call	free@PLT
	movq	%r13, %rdi
	call	free@PLT
	movq	8(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L20
	call	cudaGetErrorString@PLT
	movl	$80, %r8d
	movq	%rax, %r9
	jmp	.L27
.L20:
	movq	16(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L21
	call	cudaGetErrorString@PLT
	movl	$81, %r8d
	movq	%rax, %r9
	jmp	.L27
.L21:
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L22
	call	cudaGetErrorString@PLT
	movl	$82, %r8d
	movq	%rax, %r9
	jmp	.L27
.L22:
	xorl	%eax, %eax
	leaq	.LC8(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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
.LFE2002:
	.size	main, .-main
	.section	.rodata.str1.1
.LC9:
	.string	"_Z21complexMultiplyKernelP6float2S0_S0_i"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2030:
	.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	.LC9(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z21complexMultiplyKernelP6float2S0_S0_i(%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
.LFE2030:
	.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
.LC0:
	.long	1036831949
	.align 4
.LC1:
	.long	1045220557
	.align 4
.LC2:
	.long	1050253722
	.align 4
.LC3:
	.long	1053609165
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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 <stdio.h>
#include <hip/hip_runtime.h>
#include <hip/hip_complex.h>

// Complex multiplication kernel
__global__ void complexMultiplyKernel(hipFloatComplex* A, hipFloatComplex* B, hipFloatComplex* C, int size) {
    int idx = blockIdx.x * blockDim.x + threadIdx.x;
    
    if (idx < size) {
        // Complex multiplication: (a+bi) * (c+di) = (ac-bd) + (ad+bc)i
        C[idx] = hipCmulf(A[idx], B[idx]);
    }
}

// Error checking helper function
#define CHECK_HIP_ERROR(call) \
do { \
    hipError_t err = call; \
    if (err != hipSuccess) { \
        fprintf(stderr, "HIP error in %s:%d: %s\n", __FILE__, __LINE__, \
                hipGetErrorString(err)); \
        exit(EXIT_FAILURE); \
    } \
} while(0)

int main() {
    // Array size
    int size = 1024;
    size_t bytes = size * sizeof(hipFloatComplex);
    
    // Host arrays
    hipFloatComplex *h_A = (hipFloatComplex*)malloc(bytes);
    hipFloatComplex *h_B = (hipFloatComplex*)malloc(bytes);
    hipFloatComplex *h_C = (hipFloatComplex*)malloc(bytes);
    
    // Initialize arrays with some values
    for (int i = 0; i < size; i++) {
        h_A[i] = make_hipFloatComplex(i * 0.1f, i * 0.2f);
        h_B[i] = make_hipFloatComplex(i * 0.3f, i * 0.4f);
    }
    
    // Device arrays
    hipFloatComplex *d_A, *d_B, *d_C;
    CHECK_HIP_ERROR(hipMalloc(&d_A, bytes));
    CHECK_HIP_ERROR(hipMalloc(&d_B, bytes));
    CHECK_HIP_ERROR(hipMalloc(&d_C, bytes));
    
    // Copy data from host to device
    CHECK_HIP_ERROR(hipMemcpy(d_A, h_A, bytes, hipMemcpyHostToDevice));
    CHECK_HIP_ERROR(hipMemcpy(d_B, h_B, bytes, hipMemcpyHostToDevice));
    
    // Launch kernel with 256 threads per block
    int threadsPerBlock = 256;
    int blocksPerGrid = (size + threadsPerBlock - 1) / threadsPerBlock;
    hipLaunchKernelGGL(complexMultiplyKernel, 
                       dim3(blocksPerGrid), 
                       dim3(threadsPerBlock),
                       0, 0,
                       d_A, d_B, d_C, size);
    
    // Check for kernel launch errors
    CHECK_HIP_ERROR(hipGetLastError());
    
    // Wait for kernel to finish
    CHECK_HIP_ERROR(hipDeviceSynchronize());
    
    // Copy result back to host
    CHECK_HIP_ERROR(hipMemcpy(h_C, d_C, bytes, hipMemcpyDeviceToHost));
    
    // Verify results (check a few values)
    printf("Verification of a few results:\n");
    for (int i = 0; i < 5; i++) {
        printf("C[%d] = (%.2f, %.2f) * (%.2f, %.2f) = (%.2f, %.2f)\n", 
               i, 
               hipCrealf(h_A[i]), hipCimagf(h_A[i]),
               hipCrealf(h_B[i]), hipCimagf(h_B[i]),
               hipCrealf(h_C[i]), hipCimagf(h_C[i]));
    }
    
    // Free memory
    free(h_A);
    free(h_B);
    free(h_C);
    CHECK_HIP_ERROR(hipFree(d_A));
    CHECK_HIP_ERROR(hipFree(d_B));
    CHECK_HIP_ERROR(hipFree(d_C));
    
    printf("Complex multiplication completed successfully!\n");
    
    return 0;
}
	.text
	.file	"14.cpp"
	.globl	_Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i # -- Begin function _Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.p2align	4, 0x90
	.type	_Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i,@function
_Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i: # @_Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.cfi_startproc
# %bb.0:
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 72(%rsp)
	movq	%rsi, 64(%rsp)
	movq	%rdx, 56(%rsp)
	movl	%ecx, 4(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 80(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 96(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	40(%rsp), %rdi
	leaq	24(%rsp), %rsi
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rcx
	callq	__hipPopCallConfiguration
	movq	40(%rsp), %rsi
	movl	48(%rsp), %edx
	movq	24(%rsp), %rcx
	movl	32(%rsp), %r8d
	leaq	80(%rsp), %r9
	movl	$_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i, %edi
	pushq	8(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	24(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$136, %rsp
	.cfi_adjust_cfa_offset -136
	retq
.Lfunc_end0:
	.size	_Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i, .Lfunc_end0-_Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI1_0:
	.long	0x3dcccccd                      # float 0.100000001
.LCPI1_1:
	.long	0x3e4ccccd                      # float 0.200000003
.LCPI1_2:
	.long	0x3e99999a                      # float 0.300000012
.LCPI1_3:
	.long	0x3ecccccd                      # float 0.400000006
	.text
	.globl	main
	.p2align	4, 0x90
	.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	$136, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$8192, %edi                     # imm = 0x2000
	callq	malloc
	movq	%rax, %rbx
	movl	$8192, %edi                     # imm = 0x2000
	callq	malloc
	movq	%rax, %r14
	movl	$8192, %edi                     # imm = 0x2000
	callq	malloc
	movq	%rax, %r15
	xorl	%eax, %eax
	movss	.LCPI1_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movss	.LCPI1_1(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	movss	.LCPI1_2(%rip), %xmm2           # xmm2 = mem[0],zero,zero,zero
	movss	.LCPI1_3(%rip), %xmm3           # xmm3 = mem[0],zero,zero,zero
	.p2align	4, 0x90
.LBB1_1:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm4, %xmm4
	cvtsi2ss	%eax, %xmm4
	movaps	%xmm4, %xmm5
	mulss	%xmm0, %xmm5
	movaps	%xmm4, %xmm6
	mulss	%xmm1, %xmm6
	movss	%xmm5, (%rsp)
	movss	%xmm6, 4(%rsp)
	movsd	(%rsp), %xmm5                   # xmm5 = mem[0],zero
	movsd	%xmm5, (%rbx,%rax,8)
	movaps	%xmm4, %xmm5
	mulss	%xmm2, %xmm5
	mulss	%xmm3, %xmm4
	movss	%xmm5, (%rsp)
	movss	%xmm4, 4(%rsp)
	movsd	(%rsp), %xmm4                   # xmm4 = mem[0],zero
	movsd	%xmm4, (%r14,%rax,8)
	incq	%rax
	cmpq	$1024, %rax                     # imm = 0x400
	jne	.LBB1_1
# %bb.2:
	leaq	48(%rsp), %rdi
	movl	$8192, %esi                     # imm = 0x2000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_3
# %bb.5:
	leaq	40(%rsp), %rdi
	movl	$8192, %esi                     # imm = 0x2000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_6
# %bb.7:
	leaq	32(%rsp), %rdi
	movl	$8192, %esi                     # imm = 0x2000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB1_8
# %bb.9:
	movq	48(%rsp), %rdi
	movl	$8192, %edx                     # imm = 0x2000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_10
# %bb.11:
	movq	40(%rsp), %rdi
	movl	$8192, %edx                     # imm = 0x2000
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_12
# %bb.13:
	movabsq	$4294967300, %rdi               # imm = 0x100000004
	leaq	252(%rdi), %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_15
# %bb.14:
	movq	48(%rsp), %rax
	movq	40(%rsp), %rcx
	movq	32(%rsp), %rdx
	movq	%rax, 128(%rsp)
	movq	%rcx, 120(%rsp)
	movq	%rdx, 112(%rsp)
	movl	$1024, 60(%rsp)                 # imm = 0x400
	leaq	128(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	120(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	60(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	96(%rsp), %rdi
	leaq	80(%rsp), %rsi
	leaq	72(%rsp), %rdx
	leaq	64(%rsp), %rcx
	callq	__hipPopCallConfiguration
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	movq	80(%rsp), %rcx
	movl	88(%rsp), %r8d
	movq	%rsp, %r9
	movl	$_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i, %edi
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	80(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
.LBB1_15:
	callq	hipGetLastError
	testl	%eax, %eax
	jne	.LBB1_16
# %bb.17:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB1_18
# %bb.19:
	movq	32(%rsp), %rsi
	movl	$8192, %edx                     # imm = 0x2000
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB1_20
# %bb.21:
	movl	$.Lstr, %edi
	callq	puts@PLT
	xorl	%r12d, %r12d
	.p2align	4, 0x90
.LBB1_22:                               # =>This Inner Loop Header: Depth=1
	movsd	(%rbx,%r12,8), %xmm1            # xmm1 = mem[0],zero
	movsd	%xmm1, (%rsp)
	movss	(%rsp), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm1, (%rsp)
	movss	4(%rsp), %xmm1                  # xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	movsd	(%r14,%r12,8), %xmm3            # xmm3 = mem[0],zero
	movsd	%xmm3, (%rsp)
	movss	(%rsp), %xmm2                   # xmm2 = mem[0],zero,zero,zero
	cvtss2sd	%xmm2, %xmm2
	movsd	%xmm3, (%rsp)
	movss	4(%rsp), %xmm3                  # xmm3 = mem[0],zero,zero,zero
	cvtss2sd	%xmm3, %xmm3
	movsd	(%r15,%r12,8), %xmm5            # xmm5 = mem[0],zero
	movsd	%xmm5, (%rsp)
	movss	(%rsp), %xmm4                   # xmm4 = mem[0],zero,zero,zero
	cvtss2sd	%xmm4, %xmm4
	movsd	%xmm5, (%rsp)
	movss	4(%rsp), %xmm5                  # xmm5 = mem[0],zero,zero,zero
	cvtss2sd	%xmm5, %xmm5
	movl	$.L.str.3, %edi
	movl	%r12d, %esi
	movb	$6, %al
	callq	printf
	incq	%r12
	cmpq	$5, %r12
	jne	.LBB1_22
# %bb.23:
	movq	%rbx, %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	movq	%r15, %rdi
	callq	free
	movq	48(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB1_24
# %bb.25:
	movq	40(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB1_26
# %bb.27:
	movq	32(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB1_28
# %bb.29:
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	xorl	%eax, %eax
	addq	$136, %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
.LBB1_3:
	.cfi_def_cfa_offset 176
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$44, %ecx
	jmp	.LBB1_4
.LBB1_6:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$45, %ecx
	jmp	.LBB1_4
.LBB1_8:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$46, %ecx
	jmp	.LBB1_4
.LBB1_10:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$49, %ecx
	jmp	.LBB1_4
.LBB1_12:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$50, %ecx
	jmp	.LBB1_4
.LBB1_16:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$62, %ecx
	jmp	.LBB1_4
.LBB1_18:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$65, %ecx
	jmp	.LBB1_4
.LBB1_20:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$68, %ecx
	jmp	.LBB1_4
.LBB1_24:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$84, %ecx
	jmp	.LBB1_4
.LBB1_26:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$85, %ecx
	jmp	.LBB1_4
.LBB1_28:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str, %esi
	movl	$.L.str.1, %edx
	movq	%rbx, %rdi
	movl	$86, %ecx
.LBB1_4:
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	fprintf
	movl	$1, %edi
	callq	exit
.Lfunc_end1:
	.size	main, .Lfunc_end1-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
	cmpq	$0, __hip_gpubin_handle(%rip)
	jne	.LBB2_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB2_2:
	movq	__hip_gpubin_handle(%rip), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i, %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_end2:
	.size	__hip_module_ctor, .Lfunc_end2-__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	.LBB3_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
.LBB3_2:
	retq
.Lfunc_end3:
	.size	__hip_module_dtor, .Lfunc_end3-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i,@object # @_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.section	.rodata,"a",@progbits
	.globl	_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.p2align	3, 0x0
_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i:
	.quad	_Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.size	_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"HIP error in %s:%d: %s\n"
	.size	.L.str, 24

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"14.cpp"
	.size	.L.str.1, 7

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"C[%d] = (%.2f, %.2f) * (%.2f, %.2f) = (%.2f, %.2f)\n"
	.size	.L.str.3, 52

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i"
	.size	.L__unnamed_1, 58

	.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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Verification of a few results:"
	.size	.Lstr, 31

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Complex multiplication completed successfully!"
	.size	.Lstr.1, 47

	.section	".linker-options","e",@llvm_linker_options
	.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 _Z36__device_stub__complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i ; -- Begin function _Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.globl	_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
	.p2align	8
	.type	_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i,@function
_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i: ; @_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[0:1], s[0:1], 0x10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v7, v3, v5
	v_mul_f32_e32 v6, v2, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v5, v2, v4, -v7
	v_fmac_f32_e32 v6, v3, v4
	global_store_b64 v[0:1], v[5:6], off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 8
		.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	_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i, .Lfunc_end0-_Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 200
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; 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
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z21complexMultiplyKernelP15HIP_vector_typeIfLj2EES1_S1_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
