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

// Define the dimensions of the FFT
#define FFT_SIZE 512

// Check for CUDA errors
#define CUDA_CHECK(call) \
    { \
        cudaError_t err = call; \
        if (err != cudaSuccess) { \
            std::cerr << "CUDA error in file '" << __FILE__ << "' in line " << __LINE__ << ": " << cudaGetErrorString(err) << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    }

// Check for cuFFT errors
#define CUFFT_CHECK(call) \
    { \
        cufftResult err = call; \
        if (err != CUFFT_SUCCESS) { \
            std::cerr << "cuFFT error in file '" << __FILE__ << "' in line " << __LINE__ << ": " << err << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    }

int main() {
    // Define the number of GPUs to use
    int numGPUs = 2;

    // Allocate host memory for the input and output data
    std::vector<cufftComplex> h_input(FFT_SIZE * FFT_SIZE * numGPUs);
    std::vector<cufftComplex> h_output(FFT_SIZE * FFT_SIZE * numGPUs);

    // Initialize the input data
    for (size_t i = 0; i < h_input.size(); ++i) {
        h_input[i].x = static_cast<float>(i);
        h_input[i].y = 0.0f;
    }

    // Allocate and initialize cuFFT plans and device pointers
    std::vector<cufftHandle> plans(numGPUs);
    std::vector<cufftComplex*> d_data(numGPUs);

    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(cudaSetDevice(gpu));

        // Allocate device memory using CUDA Unified Memory
        CUDA_CHECK(cudaMallocManaged(&d_data[gpu], FFT_SIZE * FFT_SIZE * sizeof(cufftComplex)));

        // Create a cuFFT plan
        CUFFT_CHECK(cufftPlan2d(&plans[gpu], FFT_SIZE, FFT_SIZE, CUFFT_C2C));

        // Copy data from host to device
        CUDA_CHECK(cudaMemcpy(d_data[gpu], &h_input[gpu * FFT_SIZE * FFT_SIZE], FFT_SIZE * FFT_SIZE * sizeof(cufftComplex), cudaMemcpyHostToDevice));
    }

    // Execute the FFT on each GPU
    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(cudaSetDevice(gpu));
        CUFFT_CHECK(cufftExecC2C(plans[gpu], d_data[gpu], d_data[gpu], CUFFT_FORWARD));
    }

    // Synchronize and copy results back to host
    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(cudaSetDevice(gpu));
        CUDA_CHECK(cudaDeviceSynchronize());
        CUDA_CHECK(cudaMemcpy(&h_output[gpu * FFT_SIZE * FFT_SIZE], d_data[gpu], FFT_SIZE * FFT_SIZE * sizeof(cufftComplex), cudaMemcpyDeviceToHost));
    }

    // Free device memory
    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(cudaSetDevice(gpu));
        CUDA_CHECK(cudaFree(d_data[gpu]));
        CUFFT_CHECK(cufftDestroy(plans[gpu]));
    }

    // Free Unified Memory (automatically freed at program exit, but good practice to free explicitly)
    CUDA_CHECK(cudaFree(0));

    // Output the first few elements of the result for verification
    std::cout << "First 10 elements of the FFT result from GPU 0:" << std::endl;
    for (int i = 0; i < 10; ++i) {
        std::cout << h_output[i].x << " + " << h_output[i].y << "i" << std::endl;
    }

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

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4025:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4025:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4896:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4896:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4048:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4048:
	.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
.LC0:
	.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_:
.LFB4355:
	.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	.L6
	leaq	.LC0(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L6:
	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	.L7
	movq	%r12, %rdi
	call	_Znwm@PLT
.L7:
	addq	%rax, %r12
	movq	%rax, (%rbx)
	movq	%rax, %rdx
	movq	%rax, 8(%rbx)
	movq	%r12, 16(%rbx)
	testq	%rbp, %rbp
	je	.L8
	xorl	%edx, %edx
	decq	%rbp
	movq	%rdx, (%rax)
	leaq	8(%rax), %rdx
	je	.L8
.L9:
	cmpq	%rdx, %r12
	je	.L8
	movq	(%rax), %rcx
	addq	$8, %rdx
	movq	%rcx, -8(%rdx)
	jmp	.L9
.L8:
	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
.LFE4355:
	.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:
.LFB4358:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L20
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L20:
	ret
	.cfi_endproc
.LFE4358:
	.size	_ZNSt6vectorI6float2SaIS0_EED2Ev, .-_ZNSt6vectorI6float2SaIS0_EED2Ev
	.weak	_ZNSt6vectorI6float2SaIS0_EED1Ev
	.set	_ZNSt6vectorI6float2SaIS0_EED1Ev,_ZNSt6vectorI6float2SaIS0_EED2Ev
	.section	.text._ZNSt6vectorIiSaIiEED2Ev,"axG",@progbits,_ZNSt6vectorIiSaIiEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIiSaIiEED2Ev
	.type	_ZNSt6vectorIiSaIiEED2Ev, @function
_ZNSt6vectorIiSaIiEED2Ev:
.LFB4372:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L22
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L22:
	ret
	.cfi_endproc
.LFE4372:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.text._ZNSt6vectorIP6float2SaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIP6float2SaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIP6float2SaIS1_EED2Ev
	.type	_ZNSt6vectorIP6float2SaIS1_EED2Ev, @function
_ZNSt6vectorIP6float2SaIS1_EED2Ev:
.LFB4384:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L24
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L24:
	ret
	.cfi_endproc
.LFE4384:
	.size	_ZNSt6vectorIP6float2SaIS1_EED2Ev, .-_ZNSt6vectorIP6float2SaIS1_EED2Ev
	.weak	_ZNSt6vectorIP6float2SaIS1_EED1Ev
	.set	_ZNSt6vectorIP6float2SaIS1_EED1Ev,_ZNSt6vectorIP6float2SaIS1_EED2Ev
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"CUDA error in file '"
.LC3:
	.string	"/home/ubuntu/Datasets/cuda-codes-80k-from-llm-dedup/cuda_code_078621.cu"
.LC4:
	.string	"' in line "
.LC5:
	.string	": "
.LC6:
	.string	"cuFFT error in file '"
.LC7:
	.string	"First 10 elements of the FFT result from GPU 0:"
.LC8:
	.string	" + "
.LC9:
	.string	"i"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4022:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4022
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$524288, %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	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	40(%rsp), %rax
	movq	(%rsp), %rdx
	movq	%rax, %rdi
	movq	%rax, 16(%rsp)
.LEHB0:
	call	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_
.LEHE0:
	leaq	64(%rsp), %rax
	movq	(%rsp), %rdx
	movl	$524288, %esi
	movq	%rax, %rdi
	movq	%rax, 24(%rsp)
.LEHB1:
	call	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_
.LEHE1:
	movq	40(%rsp), %r12
	movq	48(%rsp), %rdx
	xorl	%eax, %eax
	subq	%r12, %rdx
	sarq	$3, %rdx
.L27:
	cmpq	%rdx, %rax
	je	.L129
	movl	$0x00000000, 4(%r12,%rax,8)
	cvtsi2ssq	%rax, %xmm0
	movss	%xmm0, (%r12,%rax,8)
	incq	%rax
	jmp	.L27
.L129:
	xorl	%edi, %edi
	movq	%rdi, 96(%rsp)
	movq	%rdi, 104(%rsp)
	movl	$8, %edi
.LEHB2:
	call	_Znwm@PLT
.LEHE2:
	movq	%rax, %rbp
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	%rax, 88(%rsp)
	movq	%rcx, 0(%rbp)
	leaq	8(%rax), %rax
	movl	$16, %edi
	movq	%rax, 104(%rsp)
	movq	%rax, 96(%rsp)
	movq	%rsi, 120(%rsp)
	movq	%rsi, 128(%rsp)
.LEHB3:
	call	_Znwm@PLT
.LEHE3:
	movq	%rax, %rbx
	xorl	%edx, %edx
	movq	%rax, 112(%rsp)
	leaq	16(%rax), %rax
	movq	%rax, 128(%rsp)
	movq	%rbx, %r13
	xorl	%r15d, %r15d
	movq	%rdx, (%rbx)
	movq	%rdx, 8(%rbx)
	movq	%rax, 120(%rsp)
	movq	%rbp, 8(%rsp)
.L34:
	movl	%r15d, %edi
.LEHB4:
	call	cudaSetDevice@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L29
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$49, %esi
.L121:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rbx
	movl	%r14d, %edi
.L101:
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbx, %rdi
.L94:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.L68:
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	exit@PLT
.L29:
	movl	$1, %edx
	movl	$2097152, %esi
	movq	%r13, %rdi
	call	cudaMallocManaged@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L30
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$52, %esi
	jmp	.L121
.L30:
	movq	8(%rsp), %rdi
	movl	$41, %ecx
	movl	$512, %edx
	movl	$512, %esi
	call	cufftPlan2d@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L32
	leaq	.LC6(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$55, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r14d, %esi
	jmp	.L83
.L32:
	movq	0(%r13), %rdi
	movl	$1, %ecx
	movl	$2097152, %edx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %r14d
	testl	%eax, %eax
	je	.L33
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$58, %esi
	jmp	.L121
.L33:
	addq	$4, 8(%rsp)
	addq	$8, %r13
	addq	$2097152, %r12
	testl	%r15d, %r15d
	jne	.L130
	movl	$1, %r15d
	jmp	.L34
.L130:
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L35
	movq	(%rbx), %rsi
	movl	0(%rbp), %edi
	orl	$-1, %ecx
	movq	%rsi, %rdx
	call	cufftExecC2C@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L36
	movl	$1, %edi
	call	cudaSetDevice@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L37
.L35:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$63, %esi
	jmp	.L124
.L37:
	movq	8(%rbx), %rsi
	movl	4(%rbp), %edi
	orl	$-1, %ecx
	movq	%rsi, %rdx
	call	cufftExecC2C@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L38
.L36:
	leaq	.LC6(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$64, %esi
	jmp	.L108
.L38:
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L39
	call	cudaDeviceSynchronize@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L40
	movq	64(%rsp), %r13
	movq	(%rbx), %rsi
	movl	$2, %ecx
	movl	$2097152, %edx
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L41
	movl	$1, %edi
	call	cudaSetDevice@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L42
.L39:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$69, %esi
	jmp	.L124
.L42:
	call	cudaDeviceSynchronize@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L43
.L40:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$70, %esi
	jmp	.L124
.L43:
	movq	8(%rbx), %rsi
	movl	$2, %ecx
	movl	$2097152, %edx
	leaq	2097152(%r13), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L44
.L41:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$71, %esi
	jmp	.L124
.L44:
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L45
	movq	(%rbx), %rdi
	call	cudaFree@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L46
	movl	0(%rbp), %edi
	call	cufftDestroy@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L47
	movl	$1, %edi
	call	cudaSetDevice@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L48
.L45:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$76, %esi
	jmp	.L124
.L48:
	movq	8(%rbx), %rdi
	call	cudaFree@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L49
.L46:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$77, %esi
.L124:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rbx
	movl	%r12d, %edi
	jmp	.L101
.L49:
	movl	4(%rbp), %edi
	call	cufftDestroy@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L50
.L47:
	leaq	.LC6(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$78, %esi
.L108:
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r12d, %esi
.L83:
	call	_ZNSolsEi@PLT
	jmp	.L68
.L50:
	xorl	%edi, %edi
	call	cudaFree@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L51
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	$82, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %edi
	movq	%rax, %rbp
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbp, %rdi
	jmp	.L94
.L51:
	leaq	_ZSt4cout(%rip), %rbp
	leaq	.LC7(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	xorl	%ebx, %ebx
	leaq	.LC8(%rip), %r12
.L52:
	movq	%rbp, %rdi
	cvtss2sd	0(%r13,%rbx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r12, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	4(%r13,%rbx), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC9(%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
.LEHE4:
	addq	$8, %rbx
	cmpq	$80, %rbx
	jne	.L52
	leaq	112(%rsp), %rdi
	call	_ZNSt6vectorIP6float2SaIS1_EED1Ev
	leaq	88(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	64(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	leaq	40(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L58
	jmp	.L65
.L63:
	endbr64
	movq	%rax, %rbx
.L53:
	movq	(%rsp), %rdi
	call	_ZNSt6vectorIP6float2SaIS1_EED1Ev
	jmp	.L54
.L62:
	endbr64
	movq	%rax, %rbx
.L54:
	leaq	88(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L55
.L61:
	endbr64
	movq	%rax, %rbx
.L55:
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	jmp	.L56
.L60:
	endbr64
	movq	%rax, %rbx
.L56:
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L65
	movq	%rbx, %rdi
.LEHB5:
	call	_Unwind_Resume@PLT
.LEHE5:
.L65:
	call	__stack_chk_fail@PLT
.L58:
	addq	$152, %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
.LFE4022:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4022:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4022-.LLSDACSB4022
.LLSDACSB4022:
	.uleb128 .LEHB0-.LFB4022
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4022
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L60-.LFB4022
	.uleb128 0
	.uleb128 .LEHB2-.LFB4022
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L61-.LFB4022
	.uleb128 0
	.uleb128 .LEHB3-.LFB4022
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L62-.LFB4022
	.uleb128 0
	.uleb128 .LEHB4-.LFB4022
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L63-.LFB4022
	.uleb128 0
	.uleb128 .LEHB5-.LFB4022
	.uleb128 .LEHE5-.LEHB5
	.uleb128 0
	.uleb128 0
.LLSDACSE4022:
	.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 <iostream>
#include <hip/hip_runtime.h>
#include <hipfft/hipfft.h>
#include <hipfft/hipfftXt.h>
#include <vector>

// Define the dimensions of the FFT
#define FFT_SIZE 512

// Check for CUDA errors
#define CUDA_CHECK(call) \
    { \
        hipError_t err = call; \
        if (err != hipSuccess) { \
            std::cerr << "CUDA error in file '" << __FILE__ << "' in line " << __LINE__ << ": " << hipGetErrorString(err) << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    }

// Check for cuFFT errors
#define CUFFT_CHECK(call) \
    { \
        hipfftResult err = call; \
        if (err != HIPFFT_SUCCESS) { \
            std::cerr << "cuFFT error in file '" << __FILE__ << "' in line " << __LINE__ << ": " << err << std::endl; \
            exit(EXIT_FAILURE); \
        } \
    }

int main() {
    // Define the number of GPUs to use
    int numGPUs = 2;

    // Allocate host memory for the input and output data
    std::vector<hipfftComplex> h_input(FFT_SIZE * FFT_SIZE * numGPUs);
    std::vector<hipfftComplex> h_output(FFT_SIZE * FFT_SIZE * numGPUs);

    // Initialize the input data
    for (size_t i = 0; i < h_input.size(); ++i) {
        h_input[i].x = static_cast<float>(i);
        h_input[i].y = 0.0f;
    }

    // Allocate and initialize cuFFT plans and device pointers
    std::vector<hipfftHandle> plans(numGPUs);
    std::vector<hipfftComplex*> d_data(numGPUs);

    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(hipSetDevice(gpu));

        // Allocate device memory using CUDA Unified Memory
        CUDA_CHECK(hipMallocManaged(&d_data[gpu], FFT_SIZE * FFT_SIZE * sizeof(hipfftComplex)));

        // Create a cuFFT plan
        CUFFT_CHECK(hipfftPlan2d(&plans[gpu], FFT_SIZE, FFT_SIZE, HIPFFT_C2C));

        // Copy data from host to device
        CUDA_CHECK(hipMemcpy(d_data[gpu], &h_input[gpu * FFT_SIZE * FFT_SIZE], FFT_SIZE * FFT_SIZE * sizeof(hipfftComplex), hipMemcpyHostToDevice));
    }

    // Execute the FFT on each GPU
    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(hipSetDevice(gpu));
        CUFFT_CHECK(hipfftExecC2C(plans[gpu], d_data[gpu], d_data[gpu], HIPFFT_FORWARD));
    }

    // Synchronize and copy results back to host
    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(hipSetDevice(gpu));
        CUDA_CHECK(hipDeviceSynchronize());
        CUDA_CHECK(hipMemcpy(&h_output[gpu * FFT_SIZE * FFT_SIZE], d_data[gpu], FFT_SIZE * FFT_SIZE * sizeof(hipfftComplex), hipMemcpyDeviceToHost));
    }

    // Free device memory
    for (int gpu = 0; gpu < numGPUs; ++gpu) {
        CUDA_CHECK(hipSetDevice(gpu));
        CUDA_CHECK(hipFree(d_data[gpu]));
        CUFFT_CHECK(hipfftDestroy(plans[gpu]));
    }

    // Free Unified Memory (automatically freed at program exit, but good practice to free explicitly)
    CUDA_CHECK(hipFree(0));

    // Output the first few elements of the result for verification
    std::cout << "First 10 elements of the FFT result from GPU 0:" << std::endl;
    for (int i = 0; i < 10; ++i) {
        std::cout << h_output[i].x << " + " << h_output[i].y << "i" << std::endl;
    }

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

                                        # End of file scope inline assembly
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function main
.LCPI0_0:
	.zero	16
	.text
	.globl	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	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$4194304, %edi                  # imm = 0x400000
	callq	_Znwm
	movq	%rax, %r14
	movl	$4194304, %edx                  # imm = 0x400000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp0:
	movl	$4194304, %edi                  # imm = 0x400000
	callq	_Znwm
.Ltmp1:
# %bb.1:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movl	$4194304, %edx                  # imm = 0x400000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB0_2:                                # =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	js	.LBB0_3
# %bb.4:                                #   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rbx, %xmm0
	jmp	.LBB0_5
.LBB0_3:                                #   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	shrq	%rax
	movl	%ebx, %ecx
	andl	$1, %ecx
	orq	%rax, %rcx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rcx, %xmm0
	addss	%xmm0, %xmm0
.LBB0_5:                                #   in Loop: Header=BB0_2 Depth=1
	movss	%xmm0, (%r14,%rbx,8)
	movl	$0, 4(%r14,%rbx,8)
	incq	%rbx
	cmpq	$524288, %rbx                   # imm = 0x80000
	jne	.LBB0_2
# %bb.6:
.Ltmp3:
	movq	%r15, 8(%rsp)                   # 8-byte Spill
	movq	%r14, 16(%rsp)                  # 8-byte Spill
	movl	$16, %edi
	callq	_Znwm
.Ltmp4:
# %bb.7:
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
.Ltmp6:
	movl	$16, %edi
	callq	_Znwm
.Ltmp7:
# %bb.8:
	movq	%rax, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movb	$1, %r14b
	xorl	%r13d, %r13d
.LBB0_9:                                # =>This Inner Loop Header: Depth=1
.Ltmp9:
	movl	%r13d, %edi
	callq	hipSetDevice
.Ltmp10:
# %bb.10:                               #   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_11
# %bb.36:                               #   in Loop: Header=BB0_9 Depth=1
	leaq	(%r12,%r13,8), %rbx
.Ltmp29:
	movl	$2097152, %esi                  # imm = 0x200000
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	hipMallocManaged
.Ltmp30:
# %bb.37:                               # %_ZL16hipMallocManagedI15HIP_vector_typeIfLj2EEE10hipError_tPPT_mj.exit
                                        #   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_38
# %bb.48:                               #   in Loop: Header=BB0_9 Depth=1
	leaq	(%r15,%r13,8), %rdi
.Ltmp49:
	movl	$512, %esi                      # imm = 0x200
	movl	$512, %edx                      # imm = 0x200
	movl	$41, %ecx
	callq	hipfftPlan2d
.Ltmp50:
# %bb.49:                               #   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_50
# %bb.59:                               #   in Loop: Header=BB0_9 Depth=1
	movq	(%rbx), %rdi
	shlq	$21, %r13
	addq	16(%rsp), %r13                  # 8-byte Folded Reload
.Ltmp67:
	movl	$2097152, %edx                  # imm = 0x200000
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp68:
# %bb.60:                               #   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_61
# %bb.20:                               #   in Loop: Header=BB0_9 Depth=1
	movl	$1, %r13d
	testb	$1, %r14b
	movl	$0, %r14d
	jne	.LBB0_9
# %bb.21:                               # %.preheader267.preheader
	movb	$1, %r14b
	xorl	%ebx, %ebx
.LBB0_22:                               # %.preheader267
                                        # =>This Inner Loop Header: Depth=1
.Ltmp87:
	movl	%ebx, %edi
	callq	hipSetDevice
.Ltmp88:
# %bb.23:                               #   in Loop: Header=BB0_22 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_24
# %bb.85:                               #   in Loop: Header=BB0_22 Depth=1
	movq	(%r15,%rbx,8), %rdi
	movq	(%r12,%rbx,8), %rdx
.Ltmp107:
	movq	%rdx, %rsi
	movl	$-1, %ecx
	callq	hipfftExecC2C
.Ltmp108:
# %bb.86:                               #   in Loop: Header=BB0_22 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_87
# %bb.71:                               #   in Loop: Header=BB0_22 Depth=1
	movl	$1, %ebx
	testb	$1, %r14b
	movl	$0, %r14d
	jne	.LBB0_22
# %bb.72:                               # %.preheader251.preheader
	movb	$1, %bl
	xorl	%r13d, %r13d
.LBB0_73:                               # %.preheader251
                                        # =>This Inner Loop Header: Depth=1
.Ltmp125:
	movl	%r13d, %edi
	callq	hipSetDevice
.Ltmp126:
# %bb.74:                               #   in Loop: Header=BB0_73 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_75
# %bb.110:                              #   in Loop: Header=BB0_73 Depth=1
.Ltmp145:
	callq	hipDeviceSynchronize
.Ltmp146:
# %bb.111:                              #   in Loop: Header=BB0_73 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_112
# %bb.122:                              #   in Loop: Header=BB0_73 Depth=1
	movq	%r13, %rdi
	shlq	$21, %rdi
	addq	8(%rsp), %rdi                   # 8-byte Folded Reload
	movq	(%r12,%r13,8), %rsi
.Ltmp165:
	movl	$2097152, %edx                  # imm = 0x200000
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp166:
# %bb.123:                              #   in Loop: Header=BB0_73 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_124
# %bb.96:                               #   in Loop: Header=BB0_73 Depth=1
	movl	$1, %r13d
	testb	$1, %bl
	movl	$0, %ebx
	jne	.LBB0_73
# %bb.97:                               # %.preheader.preheader
	movb	$1, %bl
	xorl	%r13d, %r13d
.LBB0_98:                               # %.preheader
                                        # =>This Inner Loop Header: Depth=1
.Ltmp185:
	movl	%r13d, %edi
	callq	hipSetDevice
.Ltmp186:
# %bb.99:                               #   in Loop: Header=BB0_98 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_100
# %bb.147:                              #   in Loop: Header=BB0_98 Depth=1
	movq	(%r12,%r13,8), %rdi
.Ltmp205:
	callq	hipFree
.Ltmp206:
# %bb.148:                              #   in Loop: Header=BB0_98 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_149
# %bb.159:                              #   in Loop: Header=BB0_98 Depth=1
	movq	(%r15,%r13,8), %rdi
.Ltmp225:
	callq	hipfftDestroy
.Ltmp226:
# %bb.160:                              #   in Loop: Header=BB0_98 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_161
# %bb.134:                              #   in Loop: Header=BB0_98 Depth=1
	movl	$1, %r13d
	testb	$1, %bl
	movl	$0, %ebx
	jne	.LBB0_98
# %bb.135:
.Ltmp243:
	xorl	%edi, %edi
	callq	hipFree
.Ltmp244:
# %bb.136:
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB0_137
# %bb.171:
.Ltmp262:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$47, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp263:
# %bb.172:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit185
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp264:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp265:
# %bb.173:                              # %.noexc
.Ltmp266:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp267:
# %bb.174:                              # %.noexc204
.Ltmp268:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp269:
# %bb.175:                              # %_ZNSolsEPFRSoS_E.exit186.preheader.preheader
	xorl	%r13d, %r13d
.LBB0_176:                              # %_ZNSolsEPFRSoS_E.exit186.preheader
                                        # =>This Inner Loop Header: Depth=1
	movq	8(%rsp), %rax                   # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%r13,8), %xmm0
.Ltmp271:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp272:
# %bb.177:                              # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB0_176 Depth=1
.Ltmp273:
	movq	%rax, %rbx
	movl	$.L.str.6, %esi
	movl	$3, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp274:
# %bb.178:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit191
                                        #   in Loop: Header=BB0_176 Depth=1
	movq	8(%rsp), %rax                   # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rax,%r13,8), %xmm0
.Ltmp275:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp276:
# %bb.179:                              # %_ZNSolsEf.exit192
                                        #   in Loop: Header=BB0_176 Depth=1
.Ltmp277:
	movq	%rax, %rbx
	movl	$.L.str.7, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp278:
# %bb.180:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit193
                                        #   in Loop: Header=BB0_176 Depth=1
	movq	(%rbx), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp279:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp280:
# %bb.181:                              # %.noexc206
                                        #   in Loop: Header=BB0_176 Depth=1
.Ltmp281:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp282:
# %bb.182:                              # %.noexc207
                                        #   in Loop: Header=BB0_176 Depth=1
.Ltmp283:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp284:
# %bb.183:                              # %_ZNSolsEPFRSoS_E.exit194
                                        #   in Loop: Header=BB0_176 Depth=1
	incq	%r13
	cmpq	$10, %r13
	jne	.LBB0_176
# %bb.184:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit190
	movq	%r12, %rdi
	callq	_ZdlPv
	movq	%r15, %rdi
	callq	_ZdlPv
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	_ZdlPv
	movq	16(%rsp), %rdi                  # 8-byte Reload
	callq	_ZdlPv
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB0_61:
	.cfi_def_cfa_offset 80
.Ltmp70:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp71:
# %bb.62:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit135
.Ltmp72:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp73:
# %bb.63:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit136
.Ltmp74:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp75:
# %bb.64:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit137
.Ltmp76:
	movl	$_ZSt4cerr, %edi
	movl	$58, %esi
	callq	_ZNSolsEi
.Ltmp77:
# %bb.65:
.Ltmp78:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp79:
# %bb.66:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit138
.Ltmp80:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp81:
# %bb.67:
.Ltmp82:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp83:
# %bb.68:
.Ltmp84:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp85:
	jmp	.LBB0_19
.LBB0_50:
.Ltmp52:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp53:
# %bb.51:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit130
.Ltmp54:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp55:
# %bb.52:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit131
.Ltmp56:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp57:
# %bb.53:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit132
.Ltmp58:
	movl	$_ZSt4cerr, %edi
	movl	$55, %esi
	callq	_ZNSolsEi
.Ltmp59:
# %bb.54:
.Ltmp60:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp61:
# %bb.55:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit133
.Ltmp62:
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp63:
# %bb.56:
.Ltmp64:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp65:
	jmp	.LBB0_19
.LBB0_38:
.Ltmp32:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp33:
# %bb.39:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit125
.Ltmp34:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp35:
# %bb.40:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit126
.Ltmp36:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp37:
# %bb.41:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit127
.Ltmp38:
	movl	$_ZSt4cerr, %edi
	movl	$52, %esi
	callq	_ZNSolsEi
.Ltmp39:
# %bb.42:
.Ltmp40:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp41:
# %bb.43:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit128
.Ltmp42:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp43:
# %bb.44:
.Ltmp44:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp45:
# %bb.45:
.Ltmp46:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp47:
	jmp	.LBB0_19
.LBB0_11:
.Ltmp12:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp13:
# %bb.12:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp14:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp15:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit122
.Ltmp16:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp17:
# %bb.14:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit123
.Ltmp18:
	movl	$_ZSt4cerr, %edi
	movl	$49, %esi
	callq	_ZNSolsEi
.Ltmp19:
# %bb.15:
.Ltmp20:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp21:
# %bb.16:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit124
.Ltmp22:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp23:
# %bb.17:
.Ltmp24:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp25:
# %bb.18:
.Ltmp26:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp27:
	jmp	.LBB0_19
.LBB0_87:
.Ltmp110:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp111:
# %bb.88:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit145
.Ltmp112:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp113:
# %bb.89:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit146
.Ltmp114:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp115:
# %bb.90:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit147
.Ltmp116:
	movl	$_ZSt4cerr, %edi
	movl	$64, %esi
	callq	_ZNSolsEi
.Ltmp117:
# %bb.91:
.Ltmp118:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp119:
# %bb.92:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit148
.Ltmp120:
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp121:
# %bb.93:
.Ltmp122:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp123:
	jmp	.LBB0_19
.LBB0_24:
.Ltmp90:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp91:
# %bb.25:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit140
.Ltmp92:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp93:
# %bb.26:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit141
.Ltmp94:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp95:
# %bb.27:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit142
.Ltmp96:
	movl	$_ZSt4cerr, %edi
	movl	$63, %esi
	callq	_ZNSolsEi
.Ltmp97:
# %bb.28:
.Ltmp98:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp99:
# %bb.29:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit143
.Ltmp100:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp101:
# %bb.30:
.Ltmp102:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp103:
# %bb.31:
.Ltmp104:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp105:
	jmp	.LBB0_19
.LBB0_124:
.Ltmp168:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp169:
# %bb.125:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit160
.Ltmp170:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp171:
# %bb.126:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit161
.Ltmp172:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp173:
# %bb.127:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit162
.Ltmp174:
	movl	$_ZSt4cerr, %edi
	movl	$71, %esi
	callq	_ZNSolsEi
.Ltmp175:
# %bb.128:
.Ltmp176:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp177:
# %bb.129:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit163
.Ltmp178:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp179:
# %bb.130:
.Ltmp180:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp181:
# %bb.131:
.Ltmp182:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp183:
	jmp	.LBB0_19
.LBB0_112:
.Ltmp148:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp149:
# %bb.113:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit155
.Ltmp150:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp151:
# %bb.114:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit156
.Ltmp152:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp153:
# %bb.115:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit157
.Ltmp154:
	movl	$_ZSt4cerr, %edi
	movl	$70, %esi
	callq	_ZNSolsEi
.Ltmp155:
# %bb.116:
.Ltmp156:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp157:
# %bb.117:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit158
.Ltmp158:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp159:
# %bb.118:
.Ltmp160:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp161:
# %bb.119:
.Ltmp162:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp163:
	jmp	.LBB0_19
.LBB0_75:
.Ltmp128:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp129:
# %bb.76:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit150
.Ltmp130:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp131:
# %bb.77:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit151
.Ltmp132:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp133:
# %bb.78:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit152
.Ltmp134:
	movl	$_ZSt4cerr, %edi
	movl	$69, %esi
	callq	_ZNSolsEi
.Ltmp135:
# %bb.79:
.Ltmp136:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp137:
# %bb.80:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit153
.Ltmp138:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp139:
# %bb.81:
.Ltmp140:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp141:
# %bb.82:
.Ltmp142:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp143:
	jmp	.LBB0_19
.LBB0_161:
.Ltmp228:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.4, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp229:
# %bb.162:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit175
.Ltmp230:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp231:
# %bb.163:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit176
.Ltmp232:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp233:
# %bb.164:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit177
.Ltmp234:
	movl	$_ZSt4cerr, %edi
	movl	$78, %esi
	callq	_ZNSolsEi
.Ltmp235:
# %bb.165:
.Ltmp236:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp237:
# %bb.166:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit178
.Ltmp238:
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp239:
# %bb.167:
.Ltmp240:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp241:
	jmp	.LBB0_19
.LBB0_149:
.Ltmp208:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp209:
# %bb.150:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit170
.Ltmp210:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp211:
# %bb.151:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit171
.Ltmp212:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp213:
# %bb.152:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit172
.Ltmp214:
	movl	$_ZSt4cerr, %edi
	movl	$77, %esi
	callq	_ZNSolsEi
.Ltmp215:
# %bb.153:
.Ltmp216:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp217:
# %bb.154:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit173
.Ltmp218:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp219:
# %bb.155:
.Ltmp220:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp221:
# %bb.156:
.Ltmp222:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp223:
	jmp	.LBB0_19
.LBB0_100:
.Ltmp188:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp189:
# %bb.101:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit165
.Ltmp190:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp191:
# %bb.102:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit166
.Ltmp192:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp193:
# %bb.103:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit167
.Ltmp194:
	movl	$_ZSt4cerr, %edi
	movl	$76, %esi
	callq	_ZNSolsEi
.Ltmp195:
# %bb.104:
.Ltmp196:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp197:
# %bb.105:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit168
.Ltmp198:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp199:
# %bb.106:
.Ltmp200:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp201:
# %bb.107:
.Ltmp202:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp203:
.LBB0_19:                               # %_ZNSolsEPFRSoS_E.exit
	movl	$1, %edi
	callq	exit
.LBB0_137:
.Ltmp245:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp246:
# %bb.138:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit180
.Ltmp247:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.1, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp248:
# %bb.139:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit181
.Ltmp249:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp250:
# %bb.140:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit182
.Ltmp251:
	movl	$_ZSt4cerr, %edi
	movl	$82, %esi
	callq	_ZNSolsEi
.Ltmp252:
# %bb.141:
.Ltmp253:
	movq	%rax, %rbx
	movl	$.L.str.3, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp254:
# %bb.142:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit183
.Ltmp255:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp256:
# %bb.143:
.Ltmp257:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp258:
# %bb.144:
.Ltmp259:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp260:
	jmp	.LBB0_19
.LBB0_33:
.Ltmp8:
	movq	%rax, %r13
	jmp	.LBB0_187
.LBB0_32:
.Ltmp5:
	movq	%rax, %r13
	jmp	.LBB0_188
.LBB0_190:
.Ltmp2:
	movq	%rax, %r13
	jmp	.LBB0_189
.LBB0_170:
.Ltmp261:
	jmp	.LBB0_186
.LBB0_191:
.Ltmp270:
	jmp	.LBB0_186
.LBB0_169:                              # %.loopexit.split-lp247
.Ltmp242:
	jmp	.LBB0_186
.LBB0_95:                               # %.loopexit.split-lp274
.Ltmp124:
	jmp	.LBB0_186
.LBB0_58:                               # %.loopexit.split-lp289
.Ltmp66:
	jmp	.LBB0_186
.LBB0_146:                              # %.loopexit.split-lp
.Ltmp204:
	jmp	.LBB0_186
.LBB0_158:                              # %.loopexit.split-lp242
.Ltmp224:
	jmp	.LBB0_186
.LBB0_109:                              # %.loopexit.split-lp253
.Ltmp144:
	jmp	.LBB0_186
.LBB0_121:                              # %.loopexit.split-lp258
.Ltmp164:
	jmp	.LBB0_186
.LBB0_133:                              # %.loopexit.split-lp263
.Ltmp184:
	jmp	.LBB0_186
.LBB0_84:                               # %.loopexit.split-lp269
.Ltmp106:
	jmp	.LBB0_186
.LBB0_35:                               # %.loopexit.split-lp279
.Ltmp28:
	jmp	.LBB0_186
.LBB0_47:                               # %.loopexit.split-lp284
.Ltmp48:
	jmp	.LBB0_186
.LBB0_70:                               # %.loopexit.split-lp294
.Ltmp86:
	jmp	.LBB0_186
.LBB0_145:                              # %.loopexit
.Ltmp187:
	jmp	.LBB0_186
.LBB0_157:                              # %.loopexit241
.Ltmp207:
	jmp	.LBB0_186
.LBB0_168:                              # %.loopexit246
.Ltmp227:
	jmp	.LBB0_186
.LBB0_108:                              # %.loopexit252
.Ltmp127:
	jmp	.LBB0_186
.LBB0_120:                              # %.loopexit257
.Ltmp147:
	jmp	.LBB0_186
.LBB0_132:                              # %.loopexit262
.Ltmp167:
	jmp	.LBB0_186
.LBB0_83:                               # %.loopexit268
.Ltmp89:
	jmp	.LBB0_186
.LBB0_94:                               # %.loopexit273
.Ltmp109:
	jmp	.LBB0_186
.LBB0_34:                               # %.loopexit278
.Ltmp11:
	jmp	.LBB0_186
.LBB0_46:                               # %.loopexit283
.Ltmp31:
	jmp	.LBB0_186
.LBB0_57:                               # %.loopexit288
.Ltmp51:
	jmp	.LBB0_186
.LBB0_69:                               # %.loopexit293
.Ltmp69:
	jmp	.LBB0_186
.LBB0_185:
.Ltmp285:
.LBB0_186:                              # %_ZNSt6vectorIP15HIP_vector_typeIfLj2EESaIS2_EED2Ev.exit196
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB0_187:                              # %_ZNSt6vectorIP14hipfftHandle_tSaIS1_EED2Ev.exit198
	movq	%r15, %rdi
	callq	_ZdlPv
.LBB0_188:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit200
	movq	16(%rsp), %r14                  # 8-byte Reload
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	_ZdlPv
.LBB0_189:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit202
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%r13, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.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 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp1-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp3-.Ltmp1                  #   Call between .Ltmp1 and .Ltmp3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 6 <<
	.uleb128 .Ltmp10-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp29-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp30-.Ltmp29                #   Call between .Ltmp29 and .Ltmp30
	.uleb128 .Ltmp31-.Lfunc_begin0          #     jumps to .Ltmp31
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp49-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp50-.Ltmp49                #   Call between .Ltmp49 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin0          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp67-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp68-.Ltmp67                #   Call between .Ltmp67 and .Ltmp68
	.uleb128 .Ltmp69-.Lfunc_begin0          #     jumps to .Ltmp69
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp87-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp88-.Ltmp87                #   Call between .Ltmp87 and .Ltmp88
	.uleb128 .Ltmp89-.Lfunc_begin0          #     jumps to .Ltmp89
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp107-.Lfunc_begin0         # >> Call Site 11 <<
	.uleb128 .Ltmp108-.Ltmp107              #   Call between .Ltmp107 and .Ltmp108
	.uleb128 .Ltmp109-.Lfunc_begin0         #     jumps to .Ltmp109
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp125-.Lfunc_begin0         # >> Call Site 12 <<
	.uleb128 .Ltmp126-.Ltmp125              #   Call between .Ltmp125 and .Ltmp126
	.uleb128 .Ltmp127-.Lfunc_begin0         #     jumps to .Ltmp127
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp145-.Lfunc_begin0         # >> Call Site 13 <<
	.uleb128 .Ltmp146-.Ltmp145              #   Call between .Ltmp145 and .Ltmp146
	.uleb128 .Ltmp147-.Lfunc_begin0         #     jumps to .Ltmp147
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp165-.Lfunc_begin0         # >> Call Site 14 <<
	.uleb128 .Ltmp166-.Ltmp165              #   Call between .Ltmp165 and .Ltmp166
	.uleb128 .Ltmp167-.Lfunc_begin0         #     jumps to .Ltmp167
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp185-.Lfunc_begin0         # >> Call Site 15 <<
	.uleb128 .Ltmp186-.Ltmp185              #   Call between .Ltmp185 and .Ltmp186
	.uleb128 .Ltmp187-.Lfunc_begin0         #     jumps to .Ltmp187
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp205-.Lfunc_begin0         # >> Call Site 16 <<
	.uleb128 .Ltmp206-.Ltmp205              #   Call between .Ltmp205 and .Ltmp206
	.uleb128 .Ltmp207-.Lfunc_begin0         #     jumps to .Ltmp207
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp225-.Lfunc_begin0         # >> Call Site 17 <<
	.uleb128 .Ltmp226-.Ltmp225              #   Call between .Ltmp225 and .Ltmp226
	.uleb128 .Ltmp227-.Lfunc_begin0         #     jumps to .Ltmp227
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp243-.Lfunc_begin0         # >> Call Site 18 <<
	.uleb128 .Ltmp244-.Ltmp243              #   Call between .Ltmp243 and .Ltmp244
	.uleb128 .Ltmp261-.Lfunc_begin0         #     jumps to .Ltmp261
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp262-.Lfunc_begin0         # >> Call Site 19 <<
	.uleb128 .Ltmp269-.Ltmp262              #   Call between .Ltmp262 and .Ltmp269
	.uleb128 .Ltmp270-.Lfunc_begin0         #     jumps to .Ltmp270
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp271-.Lfunc_begin0         # >> Call Site 20 <<
	.uleb128 .Ltmp284-.Ltmp271              #   Call between .Ltmp271 and .Ltmp284
	.uleb128 .Ltmp285-.Lfunc_begin0         #     jumps to .Ltmp285
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp70-.Lfunc_begin0          # >> Call Site 21 <<
	.uleb128 .Ltmp85-.Ltmp70                #   Call between .Ltmp70 and .Ltmp85
	.uleb128 .Ltmp86-.Lfunc_begin0          #     jumps to .Ltmp86
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp52-.Lfunc_begin0          # >> Call Site 22 <<
	.uleb128 .Ltmp65-.Ltmp52                #   Call between .Ltmp52 and .Ltmp65
	.uleb128 .Ltmp66-.Lfunc_begin0          #     jumps to .Ltmp66
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp32-.Lfunc_begin0          # >> Call Site 23 <<
	.uleb128 .Ltmp47-.Ltmp32                #   Call between .Ltmp32 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin0          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 24 <<
	.uleb128 .Ltmp27-.Ltmp12                #   Call between .Ltmp12 and .Ltmp27
	.uleb128 .Ltmp28-.Lfunc_begin0          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp110-.Lfunc_begin0         # >> Call Site 25 <<
	.uleb128 .Ltmp123-.Ltmp110              #   Call between .Ltmp110 and .Ltmp123
	.uleb128 .Ltmp124-.Lfunc_begin0         #     jumps to .Ltmp124
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp90-.Lfunc_begin0          # >> Call Site 26 <<
	.uleb128 .Ltmp105-.Ltmp90               #   Call between .Ltmp90 and .Ltmp105
	.uleb128 .Ltmp106-.Lfunc_begin0         #     jumps to .Ltmp106
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp168-.Lfunc_begin0         # >> Call Site 27 <<
	.uleb128 .Ltmp183-.Ltmp168              #   Call between .Ltmp168 and .Ltmp183
	.uleb128 .Ltmp184-.Lfunc_begin0         #     jumps to .Ltmp184
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp148-.Lfunc_begin0         # >> Call Site 28 <<
	.uleb128 .Ltmp163-.Ltmp148              #   Call between .Ltmp148 and .Ltmp163
	.uleb128 .Ltmp164-.Lfunc_begin0         #     jumps to .Ltmp164
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp128-.Lfunc_begin0         # >> Call Site 29 <<
	.uleb128 .Ltmp143-.Ltmp128              #   Call between .Ltmp128 and .Ltmp143
	.uleb128 .Ltmp144-.Lfunc_begin0         #     jumps to .Ltmp144
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp228-.Lfunc_begin0         # >> Call Site 30 <<
	.uleb128 .Ltmp241-.Ltmp228              #   Call between .Ltmp228 and .Ltmp241
	.uleb128 .Ltmp242-.Lfunc_begin0         #     jumps to .Ltmp242
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp208-.Lfunc_begin0         # >> Call Site 31 <<
	.uleb128 .Ltmp223-.Ltmp208              #   Call between .Ltmp208 and .Ltmp223
	.uleb128 .Ltmp224-.Lfunc_begin0         #     jumps to .Ltmp224
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp188-.Lfunc_begin0         # >> Call Site 32 <<
	.uleb128 .Ltmp203-.Ltmp188              #   Call between .Ltmp188 and .Ltmp203
	.uleb128 .Ltmp204-.Lfunc_begin0         #     jumps to .Ltmp204
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp245-.Lfunc_begin0         # >> Call Site 33 <<
	.uleb128 .Ltmp260-.Ltmp245              #   Call between .Ltmp245 and .Ltmp260
	.uleb128 .Ltmp261-.Lfunc_begin0         #     jumps to .Ltmp261
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp260-.Lfunc_begin0         # >> Call Site 34 <<
	.uleb128 .Lfunc_end0-.Ltmp260           #   Call between .Ltmp260 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"CUDA error in file '"
	.size	.L.str, 21

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

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"' in line "
	.size	.L.str.2, 11

	.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 file '"
	.size	.L.str.4, 22

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"First 10 elements of the FFT result from GPU 0:"
	.size	.L.str.5, 48

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	" + "
	.size	.L.str.6, 4

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

	.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 __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cerr
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_cuid_

	.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_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
