#include <cuda_runtime.h>
#include <cufft.h>
#include <iostream>
#include <vector>

// Define the size of the FFT
#define FFT_SIZE 16384

// Kernel to perform in-place FFT using cuFFT
__global__ void fftKernel(cufftComplex *data) {
    // This kernel is a placeholder as cuFFT handles the FFT internally
    // Warp-level optimizations are handled by cuFFT's implementation
}

// Error checking macro
#define CUDA_CHECK(call) \
    do { \
        cudaError_t err = call; \
        if (err != cudaSuccess) { \
            std::cerr << "CUDA error in " << __FILE__ << ":" << __LINE__ << ": " << cudaGetErrorString(err) << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    } while (0)

// Error checking macro for cuFFT
#define CUFFT_CHECK(call) \
    do { \
        cufftResult res = call; \
        if (res != CUFFT_SUCCESS) { \
            std::cerr << "cuFFT error in " << __FILE__ << ":" << __LINE__ << ": " << res << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    } while (0)

int main() {
    // Allocate host memory for input data
    std::vector<cufftComplex> h_input(FFT_SIZE);
    for (int i = 0; i < FFT_SIZE; ++i) {
        h_input[i].x = static_cast<float>(i); // Real part
        h_input[i].y = 0.0f; // Imaginary part
    }

    // Allocate device memory
    cufftComplex *d_input;
    CUDA_CHECK(cudaMalloc(&d_input, FFT_SIZE * sizeof(cufftComplex)));

    // Create cuFFT plan
    cufftHandle plan;
    CUFFT_CHECK(cufftPlan1d(&plan, FFT_SIZE, CUFFT_C2C, 1));

    // Asynchronously copy data from host to device
    cudaStream_t stream;
    CUDA_CHECK(cudaStreamCreate(&stream));
    CUDA_CHECK(cudaMemcpyAsync(d_input, h_input.data(), FFT_SIZE * sizeof(cufftComplex), cudaMemcpyHostToDevice, stream));

    // Execute the FFT
    CUFFT_CHECK(cufftExecC2C(plan, d_input, d_input, CUFFT_FORWARD));

    // Asynchronously copy the result back to the host
    std::vector<cufftComplex> h_output(FFT_SIZE);
    CUDA_CHECK(cudaMemcpyAsync(h_output.data(), d_input, FFT_SIZE * sizeof(cufftComplex), cudaMemcpyDeviceToHost, stream));

    // Synchronize the stream to ensure all operations are complete
    CUDA_CHECK(cudaStreamSynchronize(stream));

    // Clean up
    CUDA_CHECK(cudaStreamDestroy(stream));
    CUFFT_CHECK(cufftDestroy(plan));
    CUDA_CHECK(cudaFree(d_input));

    // Optionally, print the first few elements of the output to verify
    for (int i = 0; i < 10; ++i) {
        std::cout << "Output[" << i << "] = (" << h_output[i].x << ", " << h_output[i].y << ")" << std::endl;
    }

    return 0;
}
	.file	"tmpxft_001a0c12_00000000-6_cuda_code_054555.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4024:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4024:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4755:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4755:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z34__device_stub__Z9fftKernelP6float2P6float2
	.type	_Z34__device_stub__Z9fftKernelP6float2P6float2, @function
_Z34__device_stub__Z9fftKernelP6float2P6float2:
.LFB4046:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L3
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z9fftKernelP6float2(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L3:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4046:
	.size	_Z34__device_stub__Z9fftKernelP6float2P6float2, .-_Z34__device_stub__Z9fftKernelP6float2P6float2
	.globl	_Z9fftKernelP6float2
	.type	_Z9fftKernelP6float2, @function
_Z9fftKernelP6float2:
.LFB4047:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z9fftKernelP6float2P6float2
	.cfi_endproc
.LFE4047:
	.size	_Z9fftKernelP6float2, .-_Z9fftKernelP6float2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z9fftKernelP6float2"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4049:
	.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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z9fftKernelP6float2(%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
.LFE4049:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata._ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_.str1.1,"aMS",@progbits,1
.LC1:
	.string	"cannot create std::vector larger than max_size()"
	.section	.text._ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_,"axG",@progbits,_ZNSt6vectorI6float2SaIS0_EEC5EmRKS1_,comdat
	.align 2
	.weak	_ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_
	.type	_ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_, @function
_ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_:
.LFB4356:
	.cfi_startproc
	endbr64
	movabsq	$1152921504606846975, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmpq	%rsi, %rax
	jnb	.L12
	leaq	.LC1(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L12:
	xorl	%ecx, %ecx
	movq	%rdi, %rbx
	movq	%rsi, %rbp
	xorl	%eax, %eax
	movq	%rcx, (%rdi)
	leaq	0(,%rsi,8), %r12
	movq	%rcx, 8(%rdi)
	movq	%rcx, 16(%rdi)
	testq	%rsi, %rsi
	je	.L13
	movq	%r12, %rdi
	call	_Znwm@PLT
.L13:
	addq	%rax, %r12
	movq	%rax, (%rbx)
	movq	%rax, %rdx
	movq	%rax, 8(%rbx)
	movq	%r12, 16(%rbx)
	testq	%rbp, %rbp
	je	.L14
	xorl	%edx, %edx
	decq	%rbp
	movq	%rdx, (%rax)
	leaq	8(%rax), %rdx
	je	.L14
.L15:
	cmpq	%rdx, %r12
	je	.L14
	movq	(%rax), %rcx
	addq	$8, %rdx
	movq	%rcx, -8(%rdx)
	jmp	.L15
.L14:
	movq	%rdx, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4356:
	.size	_ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_, .-_ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_
	.weak	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_
	.set	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_,_ZNSt6vectorI6float2SaIS0_EEC2EmRKS1_
	.section	.text._ZNSt6vectorI6float2SaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI6float2SaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI6float2SaIS0_EED2Ev
	.type	_ZNSt6vectorI6float2SaIS0_EED2Ev, @function
_ZNSt6vectorI6float2SaIS0_EED2Ev:
.LFB4359:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L25
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L25:
	ret
	.cfi_endproc
.LFE4359:
	.size	_ZNSt6vectorI6float2SaIS0_EED2Ev, .-_ZNSt6vectorI6float2SaIS0_EED2Ev
	.weak	_ZNSt6vectorI6float2SaIS0_EED1Ev
	.set	_ZNSt6vectorI6float2SaIS0_EED1Ev,_ZNSt6vectorI6float2SaIS0_EED2Ev
	.section	.rodata.str1.1
.LC3:
	.string	"CUDA error in "
.LC4:
	.string	"/home/ubuntu/Datasets/cuda-codes-80k-from-llm-dedup/cuda_code_054555.cu"
.LC5:
	.string	":"
.LC6:
	.string	": "
.LC7:
	.string	"cuFFT error in "
.LC8:
	.string	"Output["
.LC9:
	.string	"] = ("
.LC10:
	.string	", "
.LC11:
	.string	")"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4021:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4021
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$16384, %esi
	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
	leaq	48(%rsp), %r12
	leaq	24(%rsp), %rbp
	movq	%r12, %rdx
	movq	%rbp, %rdi
.LEHB0:
	call	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_
.LEHE0:
	movq	24(%rsp), %r13
	xorl	%eax, %eax
.L28:
	movl	$0x00000000, 4(%r13,%rax,8)
	cvtsi2ssl	%eax, %xmm0
	movss	%xmm0, 0(%r13,%rax,8)
	incq	%rax
	cmpq	$16384, %rax
	jne	.L28
	leaq	8(%rsp), %rdi
	movl	$131072, %esi
.LEHB1:
	call	cudaMalloc@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L29
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$45, %esi
.L91:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %edi
	movq	%rax, %r12
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L55:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.L31:
	movl	$1, %edi
	call	exit@PLT
.L29:
	leaq	4(%rsp), %rdi
	movl	$1, %ecx
	movl	$41, %edx
	movl	$16384, %esi
	call	cufftPlan1d@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L30
	leaq	.LC7(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$49, %esi
	jmp	.L80
.L30:
	leaq	16(%rsp), %rdi
	call	cudaStreamCreate@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L32
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$53, %esi
	jmp	.L91
.L32:
	movq	16(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movq	%r13, %rsi
	movl	$131072, %edx
	call	cudaMemcpyAsync@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L33
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$54, %esi
	jmp	.L91
.L33:
	movq	8(%rsp), %rsi
	movl	4(%rsp), %edi
	orl	$-1, %ecx
	movq	%rsi, %rdx
	call	cufftExecC2C@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L34
	leaq	.LC7(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$57, %esi
.L80:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	jmp	.L55
.L34:
	leaq	3(%rsp), %rdx
	movl	$16384, %esi
	movq	%r12, %rdi
	call	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_
.LEHE1:
	movq	48(%rsp), %r14
	movq	16(%rsp), %r8
	movl	$2, %ecx
	movl	$131072, %edx
	movq	8(%rsp), %rsi
	movq	%r14, %rdi
.LEHB2:
	call	cudaMemcpyAsync@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L35
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$61, %esi
	jmp	.L94
.L35:
	movq	16(%rsp), %rdi
	call	cudaStreamSynchronize@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L36
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$64, %esi
	jmp	.L94
.L36:
	movq	16(%rsp), %rdi
	call	cudaStreamDestroy@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L37
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$67, %esi
.L94:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %edi
	movq	%rax, %r13
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%r13, %rdi
	jmp	.L65
.L37:
	movl	4(%rsp), %edi
	call	cufftDestroy@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L38
	leaq	.LC7(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$68, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	jmp	.L53
.L38:
	movq	8(%rsp), %rdi
	call	cudaFree@PLT
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	leaq	.LC8(%rip), %r15
	testl	%eax, %eax
	je	.L39
	leaq	.LC3(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$69, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %edi
	movq	%rax, %rbx
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbx, %rdi
.L65:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L53:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	jmp	.L31
.L97:
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	(%r14,%rbx,8), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	4(%r14,%rbx,8), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC11(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	incq	%rbx
	cmpq	$10, %rbx
	je	.L96
.L39:
	movq	%r15, %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE2:
	jmp	.L97
.L96:
	leaq	48(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	leaq	24(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	jmp	.L50
.L46:
	endbr64
	movq	%rax, %rbx
.L40:
	movq	%r12, %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	jmp	.L41
.L45:
	endbr64
	movq	%rax, %rbx
.L41:
	movq	%rbp, %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L50:
	call	__stack_chk_fail@PLT
.L43:
	addq	$88, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.LFE4021:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4021:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4021-.LLSDACSB4021
.LLSDACSB4021:
	.uleb128 .LEHB0-.LFB4021
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4021
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L45-.LFB4021
	.uleb128 0
	.uleb128 .LEHB2-.LFB4021
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L46-.LFB4021
	.uleb128 0
	.uleb128 .LEHB3-.LFB4021
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4021:
	.section	.text.startup
	.size	main, .-main
	.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
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <hip/hip_runtime.h>
#include <hipfft/hipfft.h>
#include <iostream>
#include <vector>

// Define the size of the FFT
#define FFT_SIZE 16384

// Kernel to perform in-place FFT using cuFFT
__global__ void fftKernel(hipfftComplex *data) {
    // This kernel is a placeholder as cuFFT handles the FFT internally
    // Warp-level optimizations are handled by cuFFT's implementation
}

// Error checking macro
#define CUDA_CHECK(call) \
    do { \
        hipError_t err = call; \
        if (err != hipSuccess) { \
            std::cerr << "CUDA error in " << __FILE__ << ":" << __LINE__ << ": " << hipGetErrorString(err) << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    } while (0)

// Error checking macro for cuFFT
#define CUFFT_CHECK(call) \
    do { \
        hipfftResult res = call; \
        if (res != HIPFFT_SUCCESS) { \
            std::cerr << "cuFFT error in " << __FILE__ << ":" << __LINE__ << ": " << res << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    } while (0)

int main() {
    // Allocate host memory for input data
    std::vector<hipfftComplex> h_input(FFT_SIZE);
    for (int i = 0; i < FFT_SIZE; ++i) {
        h_input[i].x = static_cast<float>(i); // Real part
        h_input[i].y = 0.0f; // Imaginary part
    }

    // Allocate device memory
    hipfftComplex *d_input;
    CUDA_CHECK(hipMalloc(&d_input, FFT_SIZE * sizeof(hipfftComplex)));

    // Create cuFFT plan
    hipfftHandle plan;
    CUFFT_CHECK(hipfftPlan1d(&plan, FFT_SIZE, HIPFFT_C2C, 1));

    // Asynchronously copy data from host to device
    hipStream_t stream;
    CUDA_CHECK(hipStreamCreate(&stream));
    CUDA_CHECK(hipMemcpyAsync(d_input, h_input.data(), FFT_SIZE * sizeof(hipfftComplex), hipMemcpyHostToDevice, stream));

    // Execute the FFT
    CUFFT_CHECK(hipfftExecC2C(plan, d_input, d_input, HIPFFT_FORWARD));

    // Asynchronously copy the result back to the host
    std::vector<hipfftComplex> h_output(FFT_SIZE);
    CUDA_CHECK(hipMemcpyAsync(h_output.data(), d_input, FFT_SIZE * sizeof(hipfftComplex), hipMemcpyDeviceToHost, stream));

    // Synchronize the stream to ensure all operations are complete
    CUDA_CHECK(hipStreamSynchronize(stream));

    // Clean up
    CUDA_CHECK(hipStreamDestroy(stream));
    CUFFT_CHECK(hipfftDestroy(plan));
    CUDA_CHECK(hipFree(d_input));

    // Optionally, print the first few elements of the output to verify
    for (int i = 0; i < 10; ++i) {
        std::cout << "Output[" << i << "] = (" << h_output[i].x << ", " << h_output[i].y << ")" << std::endl;
    }

    return 0;
}
	.text
	.file	"cuda_code_054555.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE # -- Begin function _Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE
	.type	_Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE,@function
_Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE: # @_Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z9fftKernelP15HIP_vector_typeIfLj2EE, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	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	_Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE, .Lfunc_end0-_Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$131072, %edi                   # imm = 0x20000
	callq	_Znwm
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movl	$131072, %edx                   # imm = 0x20000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB1_1:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	movss	%xmm0, (%rbx,%r14,8)
	movl	$0, 4(%rbx,%r14,8)
	incq	%r14
	cmpq	$16384, %r14                    # imm = 0x4000
	jne	.LBB1_1
# %bb.2:
.Ltmp0:
	leaq	16(%rsp), %rdi
	movl	$131072, %esi                   # imm = 0x20000
	callq	hipMalloc
.Ltmp1:
# %bb.3:                                # %_ZL9hipMallocI15HIP_vector_typeIfLj2EEE10hipError_tPPT_m.exit
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_36
# %bb.4:
.Ltmp19:
	leaq	24(%rsp), %rdi
	movl	$16384, %esi                    # imm = 0x4000
	movl	$41, %edx
	movl	$1, %ecx
	callq	hipfftPlan1d
.Ltmp20:
# %bb.5:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_44
# %bb.6:
.Ltmp36:
	leaq	8(%rsp), %rdi
	callq	hipStreamCreate
.Ltmp37:
# %bb.7:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_51
# %bb.8:
	movq	16(%rsp), %rdi
	movq	8(%rsp), %r8
.Ltmp55:
	movl	$131072, %edx                   # imm = 0x20000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpyAsync
.Ltmp56:
# %bb.9:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_59
# %bb.10:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rdx
.Ltmp74:
	movq	%rdx, %rsi
	movl	$-1, %ecx
	callq	hipfftExecC2C
.Ltmp75:
# %bb.11:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_67
# %bb.12:
.Ltmp91:
	movl	$131072, %edi                   # imm = 0x20000
	callq	_Znwm
.Ltmp92:
# %bb.13:
	movq	%rax, %r14
	movl	$131072, %edx                   # imm = 0x20000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movq	16(%rsp), %rsi
	movq	8(%rsp), %r8
.Ltmp94:
	movl	$131072, %edx                   # imm = 0x20000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpyAsync
.Ltmp95:
# %bb.14:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_74
# %bb.15:
	movq	8(%rsp), %rdi
.Ltmp113:
	callq	hipStreamSynchronize
.Ltmp114:
# %bb.16:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_82
# %bb.17:
	movq	8(%rsp), %rdi
.Ltmp132:
	callq	hipStreamDestroy
.Ltmp133:
# %bb.18:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_90
# %bb.19:
	movq	24(%rsp), %rdi
.Ltmp151:
	callq	hipfftDestroy
.Ltmp152:
# %bb.20:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_98
# %bb.21:
	movq	16(%rsp), %rdi
.Ltmp168:
	callq	hipFree
.Ltmp169:
# %bb.22:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB1_105
# %bb.23:                               # %.preheader.preheader
	xorl	%r15d, %r15d
.LBB1_24:                               # %.preheader
                                        # =>This Inner Loop Header: Depth=1
.Ltmp187:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp188:
# %bb.25:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit120
                                        #   in Loop: Header=BB1_24 Depth=1
.Ltmp189:
	movl	$_ZSt4cout, %edi
	movl	%r15d, %esi
	callq	_ZNSolsEi
.Ltmp190:
# %bb.26:                               #   in Loop: Header=BB1_24 Depth=1
.Ltmp191:
	movq	%rax, %r12
	movl	$.L.str.6, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp192:
# %bb.27:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit121
                                        #   in Loop: Header=BB1_24 Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r14,%r15,8), %xmm0
.Ltmp193:
	movq	%r12, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp194:
# %bb.28:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB1_24 Depth=1
.Ltmp195:
	movq	%rax, %r12
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp196:
# %bb.29:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit122
                                        #   in Loop: Header=BB1_24 Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%r14,%r15,8), %xmm0
.Ltmp197:
	movq	%r12, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp198:
# %bb.30:                               # %_ZNSolsEf.exit123
                                        #   in Loop: Header=BB1_24 Depth=1
.Ltmp199:
	movq	%rax, %r12
	movl	$.L.str.8, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp200:
# %bb.31:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit124
                                        #   in Loop: Header=BB1_24 Depth=1
	movq	(%r12), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
.Ltmp201:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp202:
# %bb.32:                               # %.noexc
                                        #   in Loop: Header=BB1_24 Depth=1
.Ltmp203:
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
.Ltmp204:
# %bb.33:                               # %.noexc131
                                        #   in Loop: Header=BB1_24 Depth=1
.Ltmp205:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp206:
# %bb.34:                               # %_ZNSolsEPFRSoS_E.exit125
                                        #   in Loop: Header=BB1_24 Depth=1
	incq	%r15
	cmpq	$10, %r15
	jne	.LBB1_24
# %bb.35:                               # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit119
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%rbx, %rdi
	callq	_ZdlPv
	xorl	%eax, %eax
	addq	$32, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB1_36:
	.cfi_def_cfa_offset 80
.Ltmp2:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp3:
# %bb.37:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp4:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp5:
# %bb.38:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit68
.Ltmp6:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp7:
# %bb.39:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit69
.Ltmp8:
	movl	$_ZSt4cerr, %edi
	movl	$45, %esi
	callq	_ZNSolsEi
.Ltmp9:
# %bb.40:
.Ltmp10:
	movq	%rax, %r14
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp11:
# %bb.41:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit70
.Ltmp12:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp13:
# %bb.42:
.Ltmp14:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp15:
# %bb.43:
.Ltmp16:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp17:
	jmp	.LBB1_113
.LBB1_44:
.Ltmp21:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp22:
# %bb.45:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit71
.Ltmp23:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp24:
# %bb.46:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit72
.Ltmp25:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp26:
# %bb.47:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit73
.Ltmp27:
	movl	$_ZSt4cerr, %edi
	movl	$49, %esi
	callq	_ZNSolsEi
.Ltmp28:
# %bb.48:
.Ltmp29:
	movq	%rax, %r14
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp30:
# %bb.49:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit74
.Ltmp31:
	movq	%r14, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp32:
# %bb.50:
.Ltmp33:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp34:
	jmp	.LBB1_113
.LBB1_51:
.Ltmp38:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp39:
# %bb.52:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit76
.Ltmp40:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp41:
# %bb.53:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit77
.Ltmp42:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp43:
# %bb.54:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit78
.Ltmp44:
	movl	$_ZSt4cerr, %edi
	movl	$53, %esi
	callq	_ZNSolsEi
.Ltmp45:
# %bb.55:
.Ltmp46:
	movq	%rax, %r14
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp47:
# %bb.56:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit79
.Ltmp48:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp49:
# %bb.57:
.Ltmp50:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp51:
# %bb.58:
.Ltmp52:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp53:
	jmp	.LBB1_113
.LBB1_59:
.Ltmp57:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp58:
# %bb.60:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit81
.Ltmp59:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp60:
# %bb.61:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit82
.Ltmp61:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp62:
# %bb.62:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit83
.Ltmp63:
	movl	$_ZSt4cerr, %edi
	movl	$54, %esi
	callq	_ZNSolsEi
.Ltmp64:
# %bb.63:
.Ltmp65:
	movq	%rax, %r14
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp66:
# %bb.64:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit84
.Ltmp67:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp68:
# %bb.65:
.Ltmp69:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp70:
# %bb.66:
.Ltmp71:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp72:
	jmp	.LBB1_113
.LBB1_67:
.Ltmp76:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp77:
# %bb.68:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit86
.Ltmp78:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp79:
# %bb.69:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit87
.Ltmp80:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp81:
# %bb.70:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit88
.Ltmp82:
	movl	$_ZSt4cerr, %edi
	movl	$57, %esi
	callq	_ZNSolsEi
.Ltmp83:
# %bb.71:
.Ltmp84:
	movq	%rax, %r14
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp85:
# %bb.72:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit89
.Ltmp86:
	movq	%r14, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp87:
# %bb.73:
.Ltmp88:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp89:
	jmp	.LBB1_113
.LBB1_74:
.Ltmp96:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp97:
# %bb.75:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit93
.Ltmp98:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp99:
# %bb.76:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit94
.Ltmp100:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp101:
# %bb.77:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit95
.Ltmp102:
	movl	$_ZSt4cerr, %edi
	movl	$61, %esi
	callq	_ZNSolsEi
.Ltmp103:
# %bb.78:
.Ltmp104:
	movq	%rax, %r15
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp105:
# %bb.79:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit96
.Ltmp106:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp107:
# %bb.80:
.Ltmp108:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp109:
# %bb.81:
.Ltmp110:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp111:
	jmp	.LBB1_113
.LBB1_82:
.Ltmp115:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp116:
# %bb.83:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit98
.Ltmp117:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp118:
# %bb.84:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit99
.Ltmp119:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp120:
# %bb.85:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit100
.Ltmp121:
	movl	$_ZSt4cerr, %edi
	movl	$64, %esi
	callq	_ZNSolsEi
.Ltmp122:
# %bb.86:
.Ltmp123:
	movq	%rax, %r15
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp124:
# %bb.87:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit101
.Ltmp125:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp126:
# %bb.88:
.Ltmp127:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp128:
# %bb.89:
.Ltmp129:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp130:
	jmp	.LBB1_113
.LBB1_90:
.Ltmp134:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp135:
# %bb.91:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit103
.Ltmp136:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp137:
# %bb.92:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit104
.Ltmp138:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp139:
# %bb.93:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit105
.Ltmp140:
	movl	$_ZSt4cerr, %edi
	movl	$67, %esi
	callq	_ZNSolsEi
.Ltmp141:
# %bb.94:
.Ltmp142:
	movq	%rax, %r15
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp143:
# %bb.95:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit106
.Ltmp144:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp145:
# %bb.96:
.Ltmp146:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp147:
# %bb.97:
.Ltmp148:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp149:
	jmp	.LBB1_113
.LBB1_98:
.Ltmp153:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$15, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp154:
# %bb.99:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit108
.Ltmp155:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp156:
# %bb.100:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit109
.Ltmp157:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp158:
# %bb.101:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit110
.Ltmp159:
	movl	$_ZSt4cerr, %edi
	movl	$68, %esi
	callq	_ZNSolsEi
.Ltmp160:
# %bb.102:
.Ltmp161:
	movq	%rax, %r15
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp162:
# %bb.103:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit111
.Ltmp163:
	movq	%r15, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp164:
# %bb.104:
.Ltmp165:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp166:
	jmp	.LBB1_113
.LBB1_105:
.Ltmp170:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp171:
# %bb.106:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit113
.Ltmp172:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp173:
# %bb.107:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit114
.Ltmp174:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp175:
# %bb.108:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit115
.Ltmp176:
	movl	$_ZSt4cerr, %edi
	movl	$69, %esi
	callq	_ZNSolsEi
.Ltmp177:
# %bb.109:
.Ltmp178:
	movq	%rax, %r15
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp179:
# %bb.110:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit116
.Ltmp180:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp181:
# %bb.111:
.Ltmp182:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp183:
# %bb.112:
.Ltmp184:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp185:
.LBB1_113:                              # %_ZNSolsEPFRSoS_E.exit
	movl	$1, %edi
	callq	exit
.LBB1_114:
.Ltmp93:
	jmp	.LBB1_125
.LBB1_115:
.Ltmp167:
	jmp	.LBB1_127
.LBB1_116:
.Ltmp90:
	jmp	.LBB1_125
.LBB1_117:
.Ltmp35:
	jmp	.LBB1_125
.LBB1_118:
.Ltmp186:
	jmp	.LBB1_127
.LBB1_119:
.Ltmp150:
	jmp	.LBB1_127
.LBB1_120:
.Ltmp131:
	jmp	.LBB1_127
.LBB1_121:
.Ltmp112:
	jmp	.LBB1_127
.LBB1_122:
.Ltmp73:
	jmp	.LBB1_125
.LBB1_123:
.Ltmp54:
	jmp	.LBB1_125
.LBB1_124:
.Ltmp18:
.LBB1_125:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit129
	movq	%rax, %r15
	jmp	.LBB1_128
.LBB1_126:
.Ltmp207:
.LBB1_127:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit127
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_ZdlPv
.LBB1_128:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit129
	movq	%rbx, %rdi
	callq	_ZdlPv
	movq	%r15, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp18-.Lfunc_begin0          #     jumps to .Ltmp18
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 3 <<
	.uleb128 .Ltmp20-.Ltmp19                #   Call between .Ltmp19 and .Ltmp20
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp54-.Lfunc_begin0          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp56-.Ltmp55                #   Call between .Ltmp55 and .Ltmp56
	.uleb128 .Ltmp73-.Lfunc_begin0          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp74-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp75-.Ltmp74                #   Call between .Ltmp74 and .Ltmp75
	.uleb128 .Ltmp90-.Lfunc_begin0          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp91-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp92-.Ltmp91                #   Call between .Ltmp91 and .Ltmp92
	.uleb128 .Ltmp93-.Lfunc_begin0          #     jumps to .Ltmp93
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp92-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp94-.Ltmp92                #   Call between .Ltmp92 and .Ltmp94
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp94-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp95-.Ltmp94                #   Call between .Ltmp94 and .Ltmp95
	.uleb128 .Ltmp112-.Lfunc_begin0         #     jumps to .Ltmp112
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp113-.Lfunc_begin0         # >> Call Site 10 <<
	.uleb128 .Ltmp114-.Ltmp113              #   Call between .Ltmp113 and .Ltmp114
	.uleb128 .Ltmp131-.Lfunc_begin0         #     jumps to .Ltmp131
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp132-.Lfunc_begin0         # >> Call Site 11 <<
	.uleb128 .Ltmp133-.Ltmp132              #   Call between .Ltmp132 and .Ltmp133
	.uleb128 .Ltmp150-.Lfunc_begin0         #     jumps to .Ltmp150
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp151-.Lfunc_begin0         # >> Call Site 12 <<
	.uleb128 .Ltmp152-.Ltmp151              #   Call between .Ltmp151 and .Ltmp152
	.uleb128 .Ltmp167-.Lfunc_begin0         #     jumps to .Ltmp167
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp168-.Lfunc_begin0         # >> Call Site 13 <<
	.uleb128 .Ltmp169-.Ltmp168              #   Call between .Ltmp168 and .Ltmp169
	.uleb128 .Ltmp186-.Lfunc_begin0         #     jumps to .Ltmp186
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp187-.Lfunc_begin0         # >> Call Site 14 <<
	.uleb128 .Ltmp206-.Ltmp187              #   Call between .Ltmp187 and .Ltmp206
	.uleb128 .Ltmp207-.Lfunc_begin0         #     jumps to .Ltmp207
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp2-.Lfunc_begin0           # >> Call Site 15 <<
	.uleb128 .Ltmp17-.Ltmp2                 #   Call between .Ltmp2 and .Ltmp17
	.uleb128 .Ltmp18-.Lfunc_begin0          #     jumps to .Ltmp18
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 16 <<
	.uleb128 .Ltmp34-.Ltmp21                #   Call between .Ltmp21 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin0          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin0          # >> Call Site 17 <<
	.uleb128 .Ltmp53-.Ltmp38                #   Call between .Ltmp38 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin0          #     jumps to .Ltmp54
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp57-.Lfunc_begin0          # >> Call Site 18 <<
	.uleb128 .Ltmp72-.Ltmp57                #   Call between .Ltmp57 and .Ltmp72
	.uleb128 .Ltmp73-.Lfunc_begin0          #     jumps to .Ltmp73
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp76-.Lfunc_begin0          # >> Call Site 19 <<
	.uleb128 .Ltmp89-.Ltmp76                #   Call between .Ltmp76 and .Ltmp89
	.uleb128 .Ltmp90-.Lfunc_begin0          #     jumps to .Ltmp90
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp96-.Lfunc_begin0          # >> Call Site 20 <<
	.uleb128 .Ltmp111-.Ltmp96               #   Call between .Ltmp96 and .Ltmp111
	.uleb128 .Ltmp112-.Lfunc_begin0         #     jumps to .Ltmp112
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp115-.Lfunc_begin0         # >> Call Site 21 <<
	.uleb128 .Ltmp130-.Ltmp115              #   Call between .Ltmp115 and .Ltmp130
	.uleb128 .Ltmp131-.Lfunc_begin0         #     jumps to .Ltmp131
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp134-.Lfunc_begin0         # >> Call Site 22 <<
	.uleb128 .Ltmp149-.Ltmp134              #   Call between .Ltmp134 and .Ltmp149
	.uleb128 .Ltmp150-.Lfunc_begin0         #     jumps to .Ltmp150
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp153-.Lfunc_begin0         # >> Call Site 23 <<
	.uleb128 .Ltmp166-.Ltmp153              #   Call between .Ltmp153 and .Ltmp166
	.uleb128 .Ltmp167-.Lfunc_begin0         #     jumps to .Ltmp167
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp170-.Lfunc_begin0         # >> Call Site 24 <<
	.uleb128 .Ltmp185-.Ltmp170              #   Call between .Ltmp170 and .Ltmp185
	.uleb128 .Ltmp186-.Lfunc_begin0         #     jumps to .Ltmp186
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp185-.Lfunc_begin0         # >> Call Site 25 <<
	.uleb128 .Lfunc_end1-.Ltmp185           #   Call between .Ltmp185 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB2_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB2_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z9fftKernelP15HIP_vector_typeIfLj2EE, %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	_Z9fftKernelP15HIP_vector_typeIfLj2EE,@object # @_Z9fftKernelP15HIP_vector_typeIfLj2EE
	.section	.rodata,"a",@progbits
	.globl	_Z9fftKernelP15HIP_vector_typeIfLj2EE
	.p2align	3, 0x0
_Z9fftKernelP15HIP_vector_typeIfLj2EE:
	.quad	_Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE
	.size	_Z9fftKernelP15HIP_vector_typeIfLj2EE, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"CUDA error in "
	.size	.L.str, 15

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"/home/ubuntu/Datasets/hip-codes-80k-from-llm-dedup-disassemble-sm89/cuda_code_054555.hip"
	.size	.L.str.1, 89

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

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

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"cuFFT error in "
	.size	.L.str.4, 16

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Output["
	.size	.L.str.5, 8

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"] = ("
	.size	.L.str.6, 6

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

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	")"
	.size	.L.str.8, 2

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z9fftKernelP15HIP_vector_typeIfLj2EE"
	.size	.L__unnamed_1, 38

	.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 _Z24__device_stub__fftKernelP15HIP_vector_typeIfLj2EE
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z9fftKernelP15HIP_vector_typeIfLj2EE
	.addrsig_sym _ZSt4cerr
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z9fftKernelP15HIP_vector_typeIfLj2EE ; -- Begin function _Z9fftKernelP15HIP_vector_typeIfLj2EE
	.globl	_Z9fftKernelP15HIP_vector_typeIfLj2EE
	.p2align	8
	.type	_Z9fftKernelP15HIP_vector_typeIfLj2EE,@function
_Z9fftKernelP15HIP_vector_typeIfLj2EE:  ; @_Z9fftKernelP15HIP_vector_typeIfLj2EE
; %bb.0:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9fftKernelP15HIP_vector_typeIfLj2EE
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 8
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 1
		.amdhsa_next_free_sgpr 1
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z9fftKernelP15HIP_vector_typeIfLj2EE, .Lfunc_end0-_Z9fftKernelP15HIP_vector_typeIfLj2EE
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 4
; NumSgprs: 0
; NumVgprs: 0
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 1
; NumVGPRsForWavesPerEU: 1
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

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

	.end_amdgpu_metadata
