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

#define CHECK(call)                                                            \
{                                                                              \
    const cudaError_t error = call;                                            \
    if (error != cudaSuccess)                                                  \
    {                                                                          \
        std::cerr << "Error: " << cudaGetErrorString(error) << ":\n";           \
        std::cerr << __FILE__ << ":" << __LINE__ << std::endl;                   \
        exit(EXIT_FAILURE);                                                    \
    }                                                                          \
}

#define CHECK_CUFFT(call)                                                      \
{                                                                              \
    const cufftResult result = call;                                           \
    if (result != CUFFT_SUCCESS)                                               \
    {                                                                          \
        std::cerr << "CUFFT Error: " << result << ":\n";                       \
        std::cerr << __FILE__ << ":" << __LINE__ << std::endl;                   \
        exit(EXIT_FAILURE);                                                    \
    }                                                                          \
}

__global__ void sparse_fft_kernel(cufftComplex *d_data, int N, int *d_indices, cufftComplex *d_output) {
    int idx = blockIdx.x * blockDim.x + threadIdx.x;
    if (idx < N) {
        // Avoid bank conflicts by ensuring each thread accesses a unique memory bank
        int index = d_indices[idx];
        d_output[index] = d_data[idx];
    }
}

void sparse_fft(cufftComplex *d_data, int N, int *d_indices, cufftComplex *d_output, int num_gpus) {
    int devices[num_gpus];
    cudaGetDeviceCount(&num_gpus);
    for (int i = 0; i < num_gpus; ++i) {
        devices[i] = i;
    }

    int blockSize = 256;
    int numBlocks = (N + blockSize - 1) / blockSize;

    for (int i = 0; i < num_gpus; ++i) {
        cudaSetDevice(devices[i]);
        sparse_fft_kernel<<<numBlocks, blockSize>>>(d_data, N, d_indices, d_output);
        CHECK(cudaGetLastError());
        CHECK(cudaDeviceSynchronize());
    }
}

int main() {
    const int N = 1024;
    const int num_gpus = 2;

    // Allocate host memory
    std::vector<cufftComplex> h_data(N);
    std::vector<int> h_indices(N);
    std::vector<cufftComplex> h_output(N);

    // Initialize data and indices
    for (int i = 0; i < N; ++i) {
        h_data[i].x = static_cast<float>(i);
        h_data[i].y = 0.0f;
        h_indices[i] = i; // Simple mapping, can be customized
    }

    // Allocate device memory
    cufftComplex *d_data[num_gpus];
    cufftComplex *d_output[num_gpus];
    int *d_indices[num_gpus];

    for (int i = 0; i < num_gpus; ++i) {
        cudaSetDevice(i);
        CHECK(cudaMalloc(&d_data[i], N * sizeof(cufftComplex)));
        CHECK(cudaMalloc(&d_indices[i], N * sizeof(int)));
        CHECK(cudaMalloc(&d_output[i], N * sizeof(cufftComplex)));

        CHECK(cudaMemcpy(d_data[i], h_data.data(), N * sizeof(cufftComplex), cudaMemcpyHostToDevice));
        CHECK(cudaMemcpy(d_indices[i], h_indices.data(), N * sizeof(int), cudaMemcpyHostToDevice));
    }

    // Perform sparse FFT
    sparse_fft(d_data[0], N, d_indices[0], d_output[0], num_gpus);

    // Copy results back to host
    for (int i = 0; i < num_gpus; ++i) {
        cudaSetDevice(i);
        CHECK(cudaMemcpy(h_output.data(), d_output[i], N * sizeof(cufftComplex), cudaMemcpyDeviceToHost));
    }

    // Free device memory
    for (int i = 0; i < num_gpus; ++i) {
        cudaSetDevice(i);
        CHECK(cudaFree(d_data[i]));
        CHECK(cudaFree(d_indices[i]));
        CHECK(cudaFree(d_output[i]));
    }

    // Output first 10 results for verification
    for (int i = 0; i < 10; ++i) {
        std::cout << "Output[" << i << "] = (" << h_output[i].x << ", " << h_output[i].y << ")\n";
    }

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

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4026:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4026:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4832:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4832:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z49__device_stub__Z17sparse_fft_kernelP6float2iPiS0_P6float2iPiS0_
	.type	_Z49__device_stub__Z17sparse_fft_kernelP6float2iPiS0_P6float2iPiS0_, @function
_Z49__device_stub__Z17sparse_fft_kernelP6float2iPiS0_P6float2iPiS0_:
.LFB4048:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movl	%esi, 20(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movq	%rcx, (%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%rsp, %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L3
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z17sparse_fft_kernelP6float2iPiS0_(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L3:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4048:
	.size	_Z49__device_stub__Z17sparse_fft_kernelP6float2iPiS0_P6float2iPiS0_, .-_Z49__device_stub__Z17sparse_fft_kernelP6float2iPiS0_P6float2iPiS0_
	.globl	_Z17sparse_fft_kernelP6float2iPiS0_
	.type	_Z17sparse_fft_kernelP6float2iPiS0_, @function
_Z17sparse_fft_kernelP6float2iPiS0_:
.LFB4049:
	.cfi_startproc
	endbr64
	jmp	_Z49__device_stub__Z17sparse_fft_kernelP6float2iPiS0_P6float2iPiS0_
	.cfi_endproc
.LFE4049:
	.size	_Z17sparse_fft_kernelP6float2iPiS0_, .-_Z17sparse_fft_kernelP6float2iPiS0_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error: "
.LC1:
	.string	":\n"
.LC2:
	.string	"/home/ubuntu/Datasets/cuda-codes-80k-from-llm-dedup/cuda_code_041956.cu"
.LC3:
	.string	":"
	.text
	.globl	_Z10sparse_fftP6float2iPiS0_i
	.type	_Z10sparse_fftP6float2iPiS0_i, @function
_Z10sparse_fftP6float2iPiS0_i:
.LFB4022:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	movl	%esi, %r12d
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -56
	movq	%rdx, -104(%rbp)
	movq	%rcx, -112(%rbp)
	movq	%rsp, %rcx
	movl	%r8d, -84(%rbp)
	movslq	%r8d, %r8
	movq	%rdi, -96(%rbp)
	leaq	15(,%r8,4), %rdx
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L10:
	cmpq	%rcx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L12
	orq	$0, -8(%rsp,%rax)
.L12:
	leaq	-84(%rbp), %rdi
	movq	%rsp, %r14
	call	cudaGetDeviceCount@PLT
	movl	-84(%rbp), %edx
	xorl	%eax, %eax
.L13:
	cmpl	%eax, %edx
	jle	.L27
	movl	%eax, (%r14,%rax,4)
	incq	%rax
	jmp	.L13
.L27:
	leal	255(%r12), %eax
	movl	$256, %ecx
	xorl	%ebx, %ebx
	movabsq	$4294967552, %r15
	cltd
	idivl	%ecx
	movl	%eax, -88(%rbp)
.L15:
	cmpl	%ebx, -84(%rbp)
	jle	.L28
	movl	(%r14,%rbx,4), %edi
	call	cudaSetDevice@PLT
	movl	-88(%rbp), %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%r15, %rdx
	movl	$1, %ecx
	movq	%r15, -68(%rbp)
	movl	%eax, -80(%rbp)
	movabsq	$4294967297, %rax
	movq	%rax, -76(%rbp)
	movq	-80(%rbp), %rdi
	movl	-72(%rbp), %esi
	movl	$1, -60(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	movq	-112(%rbp), %rcx
	movq	-104(%rbp), %rdx
	movl	%r12d, %esi
	movq	-96(%rbp), %rdi
	call	_Z49__device_stub__Z17sparse_fft_kernelP6float2iPiS0_P6float2iPiS0_
.L16:
	call	cudaGetLastError@PLT
	movl	%eax, %r13d
	testl	%eax, %eax
	je	.L17
	leaq	_ZSt4cerr(%rip), %r12
	leaq	.LC0(%rip), %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %edi
	movq	%rax, %rbx
	call	cudaGetErrorString@PLT
	movq	%rbx, %rdi
	movq	%rax, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC3(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$51, %esi
	movq	%rax, %rdi
	jmp	.L26
.L17:
	call	cudaDeviceSynchronize@PLT
	incq	%rbx
	movl	%eax, %r13d
	testl	%eax, %eax
	je	.L15
	leaq	_ZSt4cerr(%rip), %r12
	leaq	.LC0(%rip), %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r13d, %edi
	movq	%rax, %rbx
	call	cudaGetErrorString@PLT
	movq	%rbx, %rdi
	movq	%rax, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC3(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	$52, %esi
	movq	%rax, %rdi
.L26:
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	exit@PLT
.L28:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4022:
	.size	_Z10sparse_fftP6float2iPiS0_i, .-_Z10sparse_fftP6float2iPiS0_i
	.section	.rodata.str1.1
.LC4:
	.string	"_Z17sparse_fft_kernelP6float2iPiS0_"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4051:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC4(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z17sparse_fft_kernelP6float2iPiS0_(%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
.LFE4051:
	.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
.LC5:
	.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_:
.LFB4361:
	.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	.L32
	leaq	.LC5(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L32:
	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	.L33
	movq	%r12, %rdi
	call	_Znwm@PLT
.L33:
	addq	%rax, %r12
	movq	%rax, (%rbx)
	movq	%rax, %rdx
	movq	%rax, 8(%rbx)
	movq	%r12, 16(%rbx)
	testq	%rbp, %rbp
	je	.L34
	xorl	%edx, %edx
	decq	%rbp
	movq	%rdx, (%rax)
	leaq	8(%rax), %rdx
	je	.L34
.L35:
	cmpq	%rdx, %r12
	je	.L34
	movq	(%rax), %rcx
	addq	$8, %rdx
	movq	%rcx, -8(%rdx)
	jmp	.L35
.L34:
	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
.LFE4361:
	.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:
.LFB4364:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L45
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L45:
	ret
	.cfi_endproc
.LFE4364:
	.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:
.LFB4376:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L47
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L47:
	ret
	.cfi_endproc
.LFE4376:
	.size	_ZNSt6vectorIiSaIiEED2Ev, .-_ZNSt6vectorIiSaIiEED2Ev
	.weak	_ZNSt6vectorIiSaIiEED1Ev
	.set	_ZNSt6vectorIiSaIiEED1Ev,_ZNSt6vectorIiSaIiEED2Ev
	.section	.rodata.str1.1
.LC7:
	.string	"Output["
.LC8:
	.string	"] = ("
.LC9:
	.string	", "
.LC10:
	.string	")\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4023:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4023
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$1024, %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	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	64(%rsp), %rax
	movq	8(%rsp), %rdx
	movq	%rax, %rdi
	movq	%rax, 24(%rsp)
.LEHB0:
	call	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_
.LEHE0:
	xorl	%edi, %edi
	movq	%rdi, 96(%rsp)
	movq	%rdi, 104(%rsp)
	movl	$4096, %edi
.LEHB1:
	call	_Znwm@PLT
.LEHE1:
	leaq	4096(%rax), %rdx
	xorl	%esi, %esi
	movq	%rax, 88(%rsp)
	movq	%rax, %rbx
	movq	%rdx, 104(%rsp)
	movl	%esi, (%rax)
	xorl	%eax, %eax
.L50:
	addq	$4, %rax
	cmpq	$4096, %rax
	je	.L100
	xorl	%ecx, %ecx
	movl	%ecx, (%rbx,%rax)
	jmp	.L50
.L100:
	movq	8(%rsp), %rdi
	movq	%rdx, 96(%rsp)
	movl	$1024, %esi
	leaq	63(%rsp), %rdx
.LEHB2:
	call	_ZNSt6vectorI6float2SaIS0_EEC1EmRKS1_
.LEHE2:
	movq	64(%rsp), %r14
	xorl	%eax, %eax
.L52:
	movl	$0x00000000, 4(%r14,%rax,8)
	cvtsi2ssl	%eax, %xmm0
	movss	%xmm0, (%r14,%rax,8)
	movl	%eax, (%rbx,%rax,4)
	incq	%rax
	cmpq	$1024, %rax
	jne	.L52
	leaq	152(%rsp), %rax
	leaq	168(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	136(%rsp), %rbp
	movq	%rax, (%rsp)
	movq	%rax, %r15
	movq	%r12, 32(%rsp)
	movq	%rbp, 40(%rsp)
.L59:
	movl	%r13d, %edi
.LEHB3:
	call	cudaSetDevice@PLT
	movl	$8192, %esi
	movq	%rbp, %rdi
	call	cudaMalloc@PLT
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	je	.L53
	leaq	_ZSt4cerr(%rip), %rbx
	leaq	.LC0(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %edi
	movq	%rax, %rbp
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %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
	movl	$79, %esi
.L92:
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movl	$1, %edi
	call	exit@PLT
.L53:
	movl	$4096, %esi
	movq	%r12, %rdi
	call	cudaMalloc@PLT
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	je	.L54
	leaq	_ZSt4cerr(%rip), %rbx
	leaq	.LC0(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %edi
	movq	%rax, %rbp
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %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
	movl	$80, %esi
	jmp	.L92
.L54:
	movq	(%rsp), %rdi
	movl	$8192, %esi
	call	cudaMalloc@PLT
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	je	.L56
	leaq	_ZSt4cerr(%rip), %rbx
	leaq	.LC0(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %edi
	movq	%rax, %rbp
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %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
	movl	$81, %esi
	jmp	.L92
.L56:
	movq	0(%rbp), %rdi
	movl	$1, %ecx
	movl	$8192, %edx
	movq	%r14, %rsi
	call	cudaMemcpy@PLT
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	je	.L57
	leaq	_ZSt4cerr(%rip), %rbx
	leaq	.LC0(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %edi
	movq	%rax, %rbp
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %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
	movl	$83, %esi
	jmp	.L92
.L57:
	movq	(%r12), %rdi
	movl	$1, %ecx
	movl	$4096, %edx
	movq	%rbx, %rsi
	call	cudaMemcpy@PLT
	movl	%eax, 20(%rsp)
	testl	%eax, %eax
	je	.L58
	leaq	_ZSt4cerr(%rip), %rbx
	leaq	.LC0(%rip), %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	20(%rsp), %edi
	movq	%rax, %rbp
	call	cudaGetErrorString@PLT
	movq	%rax, %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %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
	movl	$84, %esi
	jmp	.L92
.L58:
	addq	$8, (%rsp)
	addq	$8, %r12
	addq	$8, %rbp
	testl	%r13d, %r13d
	jne	.L101
	movl	$1, %r13d
	jmp	.L59
.L101:
	movq	152(%rsp), %rcx
	movq	168(%rsp), %rdx
	movl	$1024, %esi
	movl	$2, %r8d
	movq	136(%rsp), %rdi
	call	_Z10sparse_fftP6float2iPiS0_i
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	movq	112(%rsp), %r12
	movl	$2, %ecx
	movl	$8192, %edx
	movq	152(%rsp), %rsi
	movq	%r12, %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	.L60
	movl	$1, %edi
	call	cudaSetDevice@PLT
	movq	160(%rsp), %rsi
	movl	$2, %ecx
	movl	$8192, %edx
	movq	%r12, %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %ebx
	xorl	%ebp, %ebp
	testl	%eax, %eax
	je	.L61
.L60:
	leaq	_ZSt4cerr(%rip), %rbp
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	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
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %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
	movl	$93, %esi
	jmp	.L92
.L106:
	movq	40(%rsp), %rax
	movq	(%rax,%rbp,8), %rdi
	call	cudaFree@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	.L102
	movq	32(%rsp), %rax
	movq	(%rax,%rbp,8), %rdi
	call	cudaFree@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	.L103
	movq	(%r15,%rbp,8), %rdi
	call	cudaFree@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	.L104
	testq	%rbp, %rbp
	jne	.L105
	movl	$1, %ebp
.L61:
	movl	%ebp, %edi
	call	cudaSetDevice@PLT
	jmp	.L106
.L102:
	leaq	_ZSt4cerr(%rip), %rbp
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	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
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %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
	movl	$99, %esi
	jmp	.L92
.L103:
	leaq	_ZSt4cerr(%rip), %rbp
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	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
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %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
	movl	$100, %esi
	jmp	.L92
.L104:
	leaq	_ZSt4cerr(%rip), %rbp
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	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
	movq	%rax, %rdi
	leaq	.LC1(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %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
	movl	$101, %esi
	jmp	.L92
.L105:
	xorl	%ebx, %ebx
	leaq	.LC7(%rip), %rbp
.L65:
	movq	%rbp, %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%ebx, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC8(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	(%r12,%rbx,8), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	cvtss2sd	4(%r12,%rbx,8), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
.LEHE3:
	incq	%rbx
	cmpq	$10, %rbx
	jne	.L65
	leaq	112(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	leaq	88(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	leaq	64(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L70
	jmp	.L80
.L76:
	endbr64
	movq	%rax, %rbx
.L66:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	jmp	.L67
.L75:
	endbr64
	movq	%rax, %rbx
.L67:
	leaq	88(%rsp), %rdi
	call	_ZNSt6vectorIiSaIiEED1Ev
	jmp	.L68
.L74:
	endbr64
	movq	%rax, %rbx
.L68:
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorI6float2SaIS0_EED1Ev
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L80:
	call	__stack_chk_fail@PLT
.L70:
	addq	$200, %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
.LFE4023:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4023:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4023-.LLSDACSB4023
.LLSDACSB4023:
	.uleb128 .LEHB0-.LFB4023
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4023
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L74-.LFB4023
	.uleb128 0
	.uleb128 .LEHB2-.LFB4023
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L75-.LFB4023
	.uleb128 0
	.uleb128 .LEHB3-.LFB4023
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L76-.LFB4023
	.uleb128 0
	.uleb128 .LEHB4-.LFB4023
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE4023:
	.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 CHECK(call)                                                            \
{                                                                              \
    const hipError_t error = call;                                            \
    if (error != hipSuccess)                                                  \
    {                                                                          \
        std::cerr << "Error: " << hipGetErrorString(error) << ":\n";           \
        std::cerr << __FILE__ << ":" << __LINE__ << std::endl;                   \
        exit(EXIT_FAILURE);                                                    \
    }                                                                          \
}

#define CHECK_CUFFT(call)                                                      \
{                                                                              \
    const hipfftResult result = call;                                           \
    if (result != HIPFFT_SUCCESS)                                               \
    {                                                                          \
        std::cerr << "CUFFT Error: " << result << ":\n";                       \
        std::cerr << __FILE__ << ":" << __LINE__ << std::endl;                   \
        exit(EXIT_FAILURE);                                                    \
    }                                                                          \
}

__global__ void sparse_fft_kernel(hipfftComplex *d_data, int N, int *d_indices, hipfftComplex *d_output) {
    int idx = blockIdx.x * blockDim.x + threadIdx.x;
    if (idx < N) {
        // Avoid bank conflicts by ensuring each thread accesses a unique memory bank
        int index = d_indices[idx];
        d_output[index] = d_data[idx];
    }
}

void sparse_fft(hipfftComplex *d_data, int N, int *d_indices, hipfftComplex *d_output, int num_gpus) {
    int devices[num_gpus];
    hipGetDeviceCount(&num_gpus);
    for (int i = 0; i < num_gpus; ++i) {
        devices[i] = i;
    }

    int blockSize = 256;
    int numBlocks = (N + blockSize - 1) / blockSize;

    for (int i = 0; i < num_gpus; ++i) {
        hipSetDevice(devices[i]);
        sparse_fft_kernel<<<numBlocks, blockSize>>>(d_data, N, d_indices, d_output);
        CHECK(hipGetLastError());
        CHECK(hipDeviceSynchronize());
    }
}

int main() {
    const int N = 1024;
    const int num_gpus = 2;

    // Allocate host memory
    std::vector<hipfftComplex> h_data(N);
    std::vector<int> h_indices(N);
    std::vector<hipfftComplex> h_output(N);

    // Initialize data and indices
    for (int i = 0; i < N; ++i) {
        h_data[i].x = static_cast<float>(i);
        h_data[i].y = 0.0f;
        h_indices[i] = i; // Simple mapping, can be customized
    }

    // Allocate device memory
    hipfftComplex *d_data[num_gpus];
    hipfftComplex *d_output[num_gpus];
    int *d_indices[num_gpus];

    for (int i = 0; i < num_gpus; ++i) {
        hipSetDevice(i);
        CHECK(hipMalloc(&d_data[i], N * sizeof(hipfftComplex)));
        CHECK(hipMalloc(&d_indices[i], N * sizeof(int)));
        CHECK(hipMalloc(&d_output[i], N * sizeof(hipfftComplex)));

        CHECK(hipMemcpy(d_data[i], h_data.data(), N * sizeof(hipfftComplex), hipMemcpyHostToDevice));
        CHECK(hipMemcpy(d_indices[i], h_indices.data(), N * sizeof(int), hipMemcpyHostToDevice));
    }

    // Perform sparse FFT
    sparse_fft(d_data[0], N, d_indices[0], d_output[0], num_gpus);

    // Copy results back to host
    for (int i = 0; i < num_gpus; ++i) {
        hipSetDevice(i);
        CHECK(hipMemcpy(h_output.data(), d_output[i], N * sizeof(hipfftComplex), hipMemcpyDeviceToHost));
    }

    // Free device memory
    for (int i = 0; i < num_gpus; ++i) {
        hipSetDevice(i);
        CHECK(hipFree(d_data[i]));
        CHECK(hipFree(d_indices[i]));
        CHECK(hipFree(d_output[i]));
    }

    // Output first 10 results for verification
    for (int i = 0; i < 10; ++i) {
        std::cout << "Output[" << i << "] = (" << h_output[i].x << ", " << h_output[i].y << ")\n";
    }

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

                                        # End of file scope inline assembly
	.globl	_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_ # -- Begin function _Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.type	_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_,@function
_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_: # @_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	24(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_, .Lfunc_end0-_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.cfi_endproc
                                        # -- End function
	.globl	_Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i # -- Begin function _Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i
	.type	_Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i,@function
_Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i: # @_Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 # 8-byte Spill
	movq	%rdx, -72(%rbp)                 # 8-byte Spill
                                        # kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 # 8-byte Spill
	movq	%rdi, -64(%rbp)                 # 8-byte Spill
	leaq	-44(%rbp), %rbx
	movl	%r8d, (%rbx)
	movl	%r8d, %eax
	movq	%rsp, %r12
	leaq	15(,%rax,4), %rax
	andq	$-16, %rax
	subq	%rax, %r12
	movq	%r12, %rsp
	movq	%rbx, %rdi
	callq	hipGetDeviceCount
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	.LBB1_13
# %bb.1:                                # %.lr.ph.preheader
	xorl	%ecx, %ecx
.LBB1_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%ecx, (%r12,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB1_2
# %bb.3:                                # %._crit_edge
	testl	%eax, %eax
	jle	.LBB1_13
# %bb.4:                                # %.lr.ph35
	movabsq	$4294967296, %r13               # imm = 0x100000000
	movq	-56(%rbp), %rcx                 # 8-byte Reload
	leal	255(%rcx), %eax
	leal	510(%rcx), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$8, %ebx
	btsq	$32, %rbx
	xorl	%r15d, %r15d
	addq	$256, %r13                      # imm = 0x100
.LBB1_6:                                # =>This Inner Loop Header: Depth=1
	movl	(%r12,%r15,4), %edi
	callq	hipSetDevice
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_8
# %bb.7:                                #   in Loop: Header=BB1_6 Depth=1
	movq	-64(%rbp), %rdi                 # 8-byte Reload
	movq	-56(%rbp), %rsi                 # 8-byte Reload
                                        # kill: def $esi killed $esi killed $rsi
	movq	-72(%rbp), %rdx                 # 8-byte Reload
	movq	-80(%rbp), %rcx                 # 8-byte Reload
	callq	_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
.LBB1_8:                                #   in Loop: Header=BB1_6 Depth=1
	callq	hipGetLastError
	testl	%eax, %eax
	jne	.LBB1_9
# %bb.11:                               #   in Loop: Header=BB1_6 Depth=1
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB1_12
# %bb.5:                                #   in Loop: Header=BB1_6 Depth=1
	incq	%r15
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r15
	jl	.LBB1_6
.LBB1_13:                               # %._crit_edge36
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.LBB1_12:
	.cfi_def_cfa %rbp, 16
	movl	%eax, %r14d
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	hipGetErrorString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.3, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rdi
	movl	$52, %esi
	jmp	.LBB1_10
.LBB1_9:
	movl	%eax, %r14d
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	hipGetErrorString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movl	$.L.str.3, %esi
	movq	%rax, %rdi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
	movq	%rax, %rdi
	movl	$51, %esi
.LBB1_10:
	callq	_ZNSolsEi
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	movl	$1, %edi
	callq	exit
.Lfunc_end1:
	.size	_Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i, .Lfunc_end1-_Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i
	.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	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	.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	$8192, %edi                     # imm = 0x2000
	callq	_Znwm
	movq	%rax, %r13
	movl	$8192, %edx                     # imm = 0x2000
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp0:
	movl	$4096, %edi                     # imm = 0x1000
	callq	_Znwm
.Ltmp1:
# %bb.1:
	movl	$4096, %edx                     # imm = 0x1000
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.Ltmp3:
	movl	$8192, %edi                     # imm = 0x2000
	callq	_Znwm
.Ltmp4:
# %bb.2:
	xorl	%ebx, %ebx
	movl	$8192, %edx                     # imm = 0x2000
	movq	%rax, (%rsp)                    # 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movq	8(%rsp), %rax                   # 8-byte Reload
.LBB2_3:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movss	%xmm0, (%r13,%rbx,8)
	movl	$0, 4(%r13,%rbx,8)
	movl	%ebx, (%rax,%rbx,4)
	incq	%rbx
	cmpq	$1024, %rbx                     # imm = 0x400
	jne	.LBB2_3
# %bb.4:
	movb	$1, %bl
	xorl	%r12d, %r12d
.LBB2_5:                                # =>This Inner Loop Header: Depth=1
.Ltmp6:
	movq	%r13, %r15
	movl	%r12d, %edi
	callq	hipSetDevice
.Ltmp7:
# %bb.6:                                #   in Loop: Header=BB2_5 Depth=1
	leaq	(%rsp,%r12,8), %rbp
	addq	$48, %rbp
.Ltmp9:
	movl	$8192, %esi                     # imm = 0x2000
	movq	%rbp, %rdi
	callq	hipMalloc
.Ltmp10:
# %bb.7:                                # %_ZL9hipMallocI15HIP_vector_typeIfLj2EEE10hipError_tPPT_m.exit
                                        #   in Loop: Header=BB2_5 Depth=1
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	.LBB2_8
# %bb.37:                               #   in Loop: Header=BB2_5 Depth=1
	leaq	(%rsp,%r12,8), %r13
	addq	$32, %r13
.Ltmp29:
	movl	$4096, %esi                     # imm = 0x1000
	movq	%r13, %rdi
	callq	hipMalloc
.Ltmp30:
# %bb.38:                               # %_ZL9hipMallocIiE10hipError_tPPT_m.exit
                                        #   in Loop: Header=BB2_5 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB2_39
# %bb.49:                               #   in Loop: Header=BB2_5 Depth=1
	leaq	(%rsp,%r12,8), %rdi
	addq	$16, %rdi
.Ltmp49:
	movl	$8192, %esi                     # imm = 0x2000
	callq	hipMalloc
.Ltmp50:
# %bb.50:                               # %_ZL9hipMallocI15HIP_vector_typeIfLj2EEE10hipError_tPPT_m.exit98
                                        #   in Loop: Header=BB2_5 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	.LBB2_51
# %bb.61:                               #   in Loop: Header=BB2_5 Depth=1
	movq	(%rbp), %rdi
.Ltmp69:
	movl	$8192, %edx                     # imm = 0x2000
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp70:
# %bb.62:                               #   in Loop: Header=BB2_5 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB2_63
# %bb.73:                               #   in Loop: Header=BB2_5 Depth=1
	movq	(%r13), %rdi
.Ltmp89:
	movl	$4096, %edx                     # imm = 0x1000
	movq	8(%rsp), %rsi                   # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp90:
# %bb.74:                               #   in Loop: Header=BB2_5 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB2_75
# %bb.19:                               #   in Loop: Header=BB2_5 Depth=1
	movq	%r15, %r13
	movl	$1, %r12d
	testb	$1, %bl
	movl	$0, %ebx
	jne	.LBB2_5
# %bb.20:
	movq	48(%rsp), %rdi
	movq	32(%rsp), %rdx
	movq	16(%rsp), %rcx
.Ltmp109:
	movl	$1024, %esi                     # imm = 0x400
	movl	$2, %r8d
	callq	_Z10sparse_fftP15HIP_vector_typeIfLj2EEiPiS1_i
.Ltmp110:
# %bb.21:                               # %.preheader179.preheader
	movb	$1, %bl
	xorl	%r12d, %r12d
.LBB2_22:                               # %.preheader179
                                        # =>This Inner Loop Header: Depth=1
.Ltmp112:
	movl	%r12d, %edi
	callq	hipSetDevice
.Ltmp113:
# %bb.23:                               #   in Loop: Header=BB2_22 Depth=1
	movq	16(%rsp,%r12,8), %rsi
.Ltmp115:
	movl	$8192, %edx                     # imm = 0x2000
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp116:
# %bb.24:                               #   in Loop: Header=BB2_22 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB2_25
# %bb.85:                               #   in Loop: Header=BB2_22 Depth=1
	movl	$1, %r12d
	testb	$1, %bl
	movl	$0, %ebx
	jne	.LBB2_22
# %bb.86:                               # %.preheader168.preheader
	movb	$1, %bl
	xorl	%r12d, %r12d
.LBB2_87:                               # %.preheader168
                                        # =>This Inner Loop Header: Depth=1
.Ltmp135:
	movl	%r12d, %edi
	callq	hipSetDevice
.Ltmp136:
# %bb.88:                               #   in Loop: Header=BB2_87 Depth=1
	movq	48(%rsp,%r12,8), %rdi
.Ltmp138:
	callq	hipFree
.Ltmp139:
# %bb.89:                               #   in Loop: Header=BB2_87 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB2_90
# %bb.116:                              #   in Loop: Header=BB2_87 Depth=1
	movq	32(%rsp,%r12,8), %rdi
.Ltmp158:
	callq	hipFree
.Ltmp159:
# %bb.117:                              #   in Loop: Header=BB2_87 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB2_118
# %bb.128:                              #   in Loop: Header=BB2_87 Depth=1
	movq	16(%rsp,%r12,8), %rdi
.Ltmp178:
	callq	hipFree
.Ltmp179:
# %bb.129:                              #   in Loop: Header=BB2_87 Depth=1
	movl	%eax, %ebp
	testl	%eax, %eax
	jne	.LBB2_130
# %bb.102:                              #   in Loop: Header=BB2_87 Depth=1
	movl	$1, %r12d
	testb	$1, %bl
	movl	$0, %ebx
	jne	.LBB2_87
# %bb.103:                              # %.preheader.preheader
	xorl	%r12d, %r12d
.LBB2_104:                              # %.preheader
                                        # =>This Inner Loop Header: Depth=1
.Ltmp198:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp199:
# %bb.105:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit137
                                        #   in Loop: Header=BB2_104 Depth=1
.Ltmp200:
	movl	$_ZSt4cout, %edi
	movl	%r12d, %esi
	callq	_ZNSolsEi
.Ltmp201:
# %bb.106:                              #   in Loop: Header=BB2_104 Depth=1
.Ltmp202:
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movl	$5, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp203:
# %bb.107:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit138
                                        #   in Loop: Header=BB2_104 Depth=1
	movq	(%rsp), %rax                    # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%r12,8), %xmm0
.Ltmp204:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp205:
# %bb.108:                              # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB2_104 Depth=1
.Ltmp206:
	movq	%rax, %r14
	movl	$.L.str.6, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp207:
# %bb.109:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit139
                                        #   in Loop: Header=BB2_104 Depth=1
	movq	(%rsp), %rax                    # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rax,%r12,8), %xmm0
.Ltmp208:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp209:
# %bb.110:                              # %_ZNSolsEf.exit140
                                        #   in Loop: Header=BB2_104 Depth=1
.Ltmp210:
	movl	$.L.str.7, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp211:
# %bb.111:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit141
                                        #   in Loop: Header=BB2_104 Depth=1
	incq	%r12
	cmpq	$10, %r12
	jne	.LBB2_104
# %bb.112:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit136
	movq	(%rsp), %rdi                    # 8-byte Reload
	callq	_ZdlPv
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	_ZdlPv
	movq	%r13, %rdi
	callq	_ZdlPv
	xorl	%eax, %eax
	addq	$72, %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
.LBB2_75:
	.cfi_def_cfa_offset 128
.Ltmp92:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp93:
# %bb.76:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit109
.Ltmp94:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp95:
# %bb.77:
.Ltmp96:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp97:
# %bb.78:
.Ltmp98:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp99:
# %bb.79:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit110
.Ltmp100:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp101:
# %bb.80:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit111
.Ltmp102:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp103:
# %bb.81:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit112
.Ltmp104:
	movl	$_ZSt4cerr, %edi
	movl	$84, %esi
	callq	_ZNSolsEi
.Ltmp105:
# %bb.82:
.Ltmp106:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp107:
	jmp	.LBB2_16
.LBB2_63:
.Ltmp72:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp73:
# %bb.64:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit104
.Ltmp74:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp75:
# %bb.65:
.Ltmp76:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp77:
# %bb.66:
.Ltmp78:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp79:
# %bb.67:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit105
.Ltmp80:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp81:
# %bb.68:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit106
.Ltmp82:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp83:
# %bb.69:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit107
.Ltmp84:
	movl	$_ZSt4cerr, %edi
	movl	$83, %esi
	callq	_ZNSolsEi
.Ltmp85:
# %bb.70:
.Ltmp86:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp87:
	jmp	.LBB2_16
.LBB2_51:
.Ltmp52:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp53:
# %bb.52:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit99
.Ltmp54:
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp55:
# %bb.53:
.Ltmp56:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp57:
# %bb.54:
.Ltmp58:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp59:
# %bb.55:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit100
.Ltmp60:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp61:
# %bb.56:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit101
.Ltmp62:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp63:
# %bb.57:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit102
.Ltmp64:
	movl	$_ZSt4cerr, %edi
	movl	$81, %esi
	callq	_ZNSolsEi
.Ltmp65:
# %bb.58:
.Ltmp66:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp67:
	jmp	.LBB2_16
.LBB2_39:
.Ltmp32:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp33:
# %bb.40:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit93
.Ltmp34:
	movl	%r14d, %edi
	callq	hipGetErrorString
.Ltmp35:
# %bb.41:
.Ltmp36:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp37:
# %bb.42:
.Ltmp38:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp39:
# %bb.43:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit94
.Ltmp40:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp41:
# %bb.44:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit95
.Ltmp42:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp43:
# %bb.45:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit96
.Ltmp44:
	movl	$_ZSt4cerr, %edi
	movl	$80, %esi
	callq	_ZNSolsEi
.Ltmp45:
# %bb.46:
.Ltmp46:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp47:
	jmp	.LBB2_16
.LBB2_8:
.Ltmp12:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp13:
# %bb.9:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp14:
	movl	%r13d, %edi
	callq	hipGetErrorString
.Ltmp15:
# %bb.10:
.Ltmp16:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp17:
# %bb.11:
.Ltmp18:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp19:
# %bb.12:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit90
.Ltmp20:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp21:
# %bb.13:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit91
.Ltmp22:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp23:
# %bb.14:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit92
.Ltmp24:
	movl	$_ZSt4cerr, %edi
	movl	$79, %esi
	callq	_ZNSolsEi
.Ltmp25:
# %bb.15:
.Ltmp26:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp27:
	jmp	.LBB2_16
.LBB2_25:
.Ltmp118:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp119:
# %bb.26:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit114
.Ltmp120:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp121:
# %bb.27:
.Ltmp122:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp123:
# %bb.28:
.Ltmp124:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp125:
# %bb.29:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit115
.Ltmp126:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp127:
# %bb.30:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit116
.Ltmp128:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp129:
# %bb.31:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit117
.Ltmp130:
	movl	$_ZSt4cerr, %edi
	movl	$93, %esi
	callq	_ZNSolsEi
.Ltmp131:
# %bb.32:
.Ltmp132:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp133:
	jmp	.LBB2_16
.LBB2_130:
.Ltmp181:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp182:
# %bb.131:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit129
.Ltmp183:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp184:
# %bb.132:
.Ltmp185:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp186:
# %bb.133:
.Ltmp187:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp188:
# %bb.134:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit130
.Ltmp189:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp190:
# %bb.135:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit131
.Ltmp191:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp192:
# %bb.136:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit132
.Ltmp193:
	movl	$_ZSt4cerr, %edi
	movl	$101, %esi
	callq	_ZNSolsEi
.Ltmp194:
# %bb.137:
.Ltmp195:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp196:
	jmp	.LBB2_16
.LBB2_118:
.Ltmp161:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp162:
# %bb.119:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit124
.Ltmp163:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp164:
# %bb.120:
.Ltmp165:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp166:
# %bb.121:
.Ltmp167:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp168:
# %bb.122:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit125
.Ltmp169:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp170:
# %bb.123:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit126
.Ltmp171:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp172:
# %bb.124:                              # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit127
.Ltmp173:
	movl	$_ZSt4cerr, %edi
	movl	$100, %esi
	callq	_ZNSolsEi
.Ltmp174:
# %bb.125:
.Ltmp175:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp176:
	jmp	.LBB2_16
.LBB2_90:
.Ltmp141:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp142:
# %bb.91:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit119
.Ltmp143:
	movl	%ebp, %edi
	callq	hipGetErrorString
.Ltmp144:
# %bb.92:
.Ltmp145:
	movl	$_ZSt4cerr, %edi
	movq	%rax, %rsi
	callq	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.Ltmp146:
# %bb.93:
.Ltmp147:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp148:
# %bb.94:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit120
.Ltmp149:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$88, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp150:
# %bb.95:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit121
.Ltmp151:
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp152:
# %bb.96:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit122
.Ltmp153:
	movl	$_ZSt4cerr, %edi
	movl	$99, %esi
	callq	_ZNSolsEi
.Ltmp154:
# %bb.97:
.Ltmp155:
	movq	%rax, %rdi
	callq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
.Ltmp156:
.LBB2_16:                               # %_ZNSolsEPFRSoS_E.exit
	movl	$1, %edi
	callq	exit
.LBB2_98:
.Ltmp111:
	jmp	.LBB2_141
.LBB2_18:
.Ltmp5:
	movq	%rax, %r12
	jmp	.LBB2_143
.LBB2_17:
.Ltmp2:
	movq	%rax, %r12
	jmp	.LBB2_144
.LBB2_115:                              # %.loopexit.split-lp
.Ltmp157:
	jmp	.LBB2_34
.LBB2_127:                              # %.loopexit.split-lp170
.Ltmp177:
	jmp	.LBB2_34
.LBB2_139:                              # %.loopexit.split-lp175
.Ltmp197:
	jmp	.LBB2_34
.LBB2_101:                              # %.loopexit.split-lp181
.Ltmp134:
	jmp	.LBB2_34
.LBB2_36:                               # %.loopexit.split-lp186
.Ltmp28:
	jmp	.LBB2_34
.LBB2_48:                               # %.loopexit.split-lp191
.Ltmp48:
	jmp	.LBB2_34
.LBB2_60:                               # %.loopexit.split-lp196
.Ltmp68:
	jmp	.LBB2_34
.LBB2_72:                               # %.loopexit.split-lp201
.Ltmp88:
	jmp	.LBB2_34
.LBB2_84:                               # %.loopexit.split-lp206
.Ltmp108:
	jmp	.LBB2_34
.LBB2_113:
.Ltmp137:
	jmp	.LBB2_141
.LBB2_114:                              # %.loopexit
.Ltmp140:
	jmp	.LBB2_141
.LBB2_126:                              # %.loopexit169
.Ltmp160:
	jmp	.LBB2_141
.LBB2_138:                              # %.loopexit174
.Ltmp180:
	jmp	.LBB2_141
.LBB2_99:
.Ltmp114:
	jmp	.LBB2_141
.LBB2_100:                              # %.loopexit180
.Ltmp117:
	jmp	.LBB2_141
.LBB2_33:
.Ltmp8:
	jmp	.LBB2_34
.LBB2_35:                               # %.loopexit185
.Ltmp11:
	jmp	.LBB2_34
.LBB2_47:                               # %.loopexit190
.Ltmp31:
	jmp	.LBB2_34
.LBB2_59:                               # %.loopexit195
.Ltmp51:
	jmp	.LBB2_34
.LBB2_71:                               # %.loopexit200
.Ltmp71:
	jmp	.LBB2_34
.LBB2_83:                               # %.loopexit205
.Ltmp91:
.LBB2_34:                               # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit143
	movq	%rax, %r12
	movq	%r15, %r13
	jmp	.LBB2_142
.LBB2_140:
.Ltmp212:
.LBB2_141:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit143
	movq	%rax, %r12
.LBB2_142:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit143
	movq	(%rsp), %rdi                    # 8-byte Reload
	callq	_ZdlPv
.LBB2_143:                              # %_ZNSt6vectorIiSaIiEED2Ev.exit145
	movq	8(%rsp), %rdi                   # 8-byte Reload
	callq	_ZdlPv
.LBB2_144:                              # %_ZNSt6vectorI15HIP_vector_typeIfLj2EESaIS1_EED2Ev.exit147
	movq	%r13, %rdi
	callq	_ZdlPv
	movq	%r12, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table2:
.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 .Ltmp4-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Ltmp6-.Ltmp4                  #   Call between .Ltmp4 and .Ltmp6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 6 <<
	.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 7 <<
	.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 8 <<
	.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 9 <<
	.uleb128 .Ltmp50-.Ltmp49                #   Call between .Ltmp49 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin0          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp69-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp70-.Ltmp69                #   Call between .Ltmp69 and .Ltmp70
	.uleb128 .Ltmp71-.Lfunc_begin0          #     jumps to .Ltmp71
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp89-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp90-.Ltmp89                #   Call between .Ltmp89 and .Ltmp90
	.uleb128 .Ltmp91-.Lfunc_begin0          #     jumps to .Ltmp91
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp109-.Lfunc_begin0         # >> Call Site 12 <<
	.uleb128 .Ltmp110-.Ltmp109              #   Call between .Ltmp109 and .Ltmp110
	.uleb128 .Ltmp111-.Lfunc_begin0         #     jumps to .Ltmp111
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp112-.Lfunc_begin0         # >> Call Site 13 <<
	.uleb128 .Ltmp113-.Ltmp112              #   Call between .Ltmp112 and .Ltmp113
	.uleb128 .Ltmp114-.Lfunc_begin0         #     jumps to .Ltmp114
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp115-.Lfunc_begin0         # >> Call Site 14 <<
	.uleb128 .Ltmp116-.Ltmp115              #   Call between .Ltmp115 and .Ltmp116
	.uleb128 .Ltmp117-.Lfunc_begin0         #     jumps to .Ltmp117
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp135-.Lfunc_begin0         # >> Call Site 15 <<
	.uleb128 .Ltmp136-.Ltmp135              #   Call between .Ltmp135 and .Ltmp136
	.uleb128 .Ltmp137-.Lfunc_begin0         #     jumps to .Ltmp137
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp138-.Lfunc_begin0         # >> Call Site 16 <<
	.uleb128 .Ltmp139-.Ltmp138              #   Call between .Ltmp138 and .Ltmp139
	.uleb128 .Ltmp140-.Lfunc_begin0         #     jumps to .Ltmp140
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp158-.Lfunc_begin0         # >> Call Site 17 <<
	.uleb128 .Ltmp159-.Ltmp158              #   Call between .Ltmp158 and .Ltmp159
	.uleb128 .Ltmp160-.Lfunc_begin0         #     jumps to .Ltmp160
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp178-.Lfunc_begin0         # >> Call Site 18 <<
	.uleb128 .Ltmp179-.Ltmp178              #   Call between .Ltmp178 and .Ltmp179
	.uleb128 .Ltmp180-.Lfunc_begin0         #     jumps to .Ltmp180
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp198-.Lfunc_begin0         # >> Call Site 19 <<
	.uleb128 .Ltmp211-.Ltmp198              #   Call between .Ltmp198 and .Ltmp211
	.uleb128 .Ltmp212-.Lfunc_begin0         #     jumps to .Ltmp212
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp92-.Lfunc_begin0          # >> Call Site 20 <<
	.uleb128 .Ltmp107-.Ltmp92               #   Call between .Ltmp92 and .Ltmp107
	.uleb128 .Ltmp108-.Lfunc_begin0         #     jumps to .Ltmp108
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp72-.Lfunc_begin0          # >> Call Site 21 <<
	.uleb128 .Ltmp87-.Ltmp72                #   Call between .Ltmp72 and .Ltmp87
	.uleb128 .Ltmp88-.Lfunc_begin0          #     jumps to .Ltmp88
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp52-.Lfunc_begin0          # >> Call Site 22 <<
	.uleb128 .Ltmp67-.Ltmp52                #   Call between .Ltmp52 and .Ltmp67
	.uleb128 .Ltmp68-.Lfunc_begin0          #     jumps to .Ltmp68
	.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 .Ltmp118-.Lfunc_begin0         # >> Call Site 25 <<
	.uleb128 .Ltmp133-.Ltmp118              #   Call between .Ltmp118 and .Ltmp133
	.uleb128 .Ltmp134-.Lfunc_begin0         #     jumps to .Ltmp134
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp181-.Lfunc_begin0         # >> Call Site 26 <<
	.uleb128 .Ltmp196-.Ltmp181              #   Call between .Ltmp181 and .Ltmp196
	.uleb128 .Ltmp197-.Lfunc_begin0         #     jumps to .Ltmp197
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp161-.Lfunc_begin0         # >> Call Site 27 <<
	.uleb128 .Ltmp176-.Ltmp161              #   Call between .Ltmp161 and .Ltmp176
	.uleb128 .Ltmp177-.Lfunc_begin0         #     jumps to .Ltmp177
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp141-.Lfunc_begin0         # >> Call Site 28 <<
	.uleb128 .Ltmp156-.Ltmp141              #   Call between .Ltmp141 and .Ltmp156
	.uleb128 .Ltmp157-.Lfunc_begin0         #     jumps to .Ltmp157
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp156-.Lfunc_begin0         # >> Call Site 29 <<
	.uleb128 .Lfunc_end2-.Ltmp156           #   Call between .Ltmp156 and .Lfunc_end2
	.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	.LBB3_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB3_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end3:
	.size	__hip_module_ctor, .Lfunc_end3-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB4_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB4_2:
	retq
.Lfunc_end4:
	.size	__hip_module_dtor, .Lfunc_end4-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_,@object # @_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.section	.rodata,"a",@progbits
	.globl	_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.p2align	3, 0x0
_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_:
	.quad	_Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.size	_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Error: "
	.size	.L.str, 8

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

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

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

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

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

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_"
	.size	.L__unnamed_1, 53

	.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 _Z32__device_stub__sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.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	_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_ ; -- Begin function _Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.globl	_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
	.p2align	8
	.type	_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_,@function
_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_: ; @_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x10
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[0:1], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[1:2]
	v_lshlrev_b64 v[1:2], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v4, vcc_lo
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b32 v0, v[3:4], off
	global_load_b64 v[2:3], v[1:2], off
	s_waitcnt vmcnt(1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b64 v[0:1], v[2:3], off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_, .Lfunc_end0-_Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 208
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17sparse_fft_kernelP15HIP_vector_typeIfLj2EEiPiS1_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
