/*********************************************************************
 * Copyright © 2011-2014,
 * Marwan Abdellah: <abdellah.marwan@gmail.com>
 *
 * This library (cufftShift) is free software; you can redistribute it
 * and/or modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 ********************************************************************/
 
#ifndef CUFFTSHIFT_3D_SINGLE_ARRAY_CU
#define CUFFTSHIFT_3D_SINGLE_ARRAY_CU

#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
#include <cufft.h>
// #include <cutil_inline.h>

template <typename T>
__global__
void cufftShift_3D_slice_kernel(T* data, int N, int zIndex)
{
    // 3D Volume & 2D Slice & 1D Line
    int sLine = N;
    int sSlice = N * N;
    int sVolume = N * N * N;

    // Transformations Equations
    int sEq1 = (sVolume + sSlice + sLine) / 2;
    int sEq2 = (sVolume + sSlice - sLine) / 2;
    int sEq3 = (sVolume - sSlice + sLine) / 2;
    int sEq4 = (sVolume - sSlice - sLine) / 2;

    // Thread
    int xThreadIdx = threadIdx.x;
    int yThreadIdx = threadIdx.y;

    // Block Width & Height
    int blockWidth = blockDim.x;
    int blockHeight = blockDim.y;

    // Thread Index 2D
    int xIndex = blockIdx.x * blockWidth + xThreadIdx;
    int yIndex = blockIdx.y * blockHeight + yThreadIdx;

    // Thread Index Converted into 1D Index
    int index = (zIndex * sSlice) + (yIndex * sLine) + xIndex;

    T regTemp;

    if (zIndex < N / 2)
    {
        if (xIndex < N / 2)
        {
            if (yIndex < N / 2)
            {
                regTemp = data[index];

                // First Quad
                data[index] = data[index + sEq1];

                // Fourth Quad
                data[index + sEq1] = regTemp;
            }
            else
            {
                regTemp = data[index];

                // Third Quad
                data[index] = data[index + sEq3];

                // Second Quad
                data[index + sEq3] = regTemp;
            }
        }
        else
        {
            if (yIndex < N / 2)
            {
                regTemp = data[index];

                // Second Quad
                data[index] = data[index + sEq2];

                // Third Quad
                data[index + sEq2] = regTemp;
            }
            else
            {
                regTemp = data[index];

                // Fourth Quad
                data[index] = data[index + sEq4];

                // First Quad
                data[index + sEq4] = regTemp;
            }
        }
    }
}

template <typename T>
void cufftShift_3D_kernel(T* data, int N, dim3 block, dim3 grid)
{
    for (int i = 0; i < N; i++)
        cufftShift_3D_slice_kernel <<< grid, block >>> (data, N, i);
}

template
void cufftShift_3D_kernel <cufftReal>
(cufftReal* data, int N, dim3 block, dim3 grid);

template
void cufftShift_3D_kernel <cufftDoubleReal>
(cufftDoubleReal* data, int N, dim3 block, dim3 grid);

template
void cufftShift_3D_kernel <cufftComplex>
(cufftComplex* data, int N, dim3 block, dim3 grid);

template
void cufftShift_3D_kernel <cufftDoubleComplex>
(cufftDoubleComplex* data, int N, dim3 block, dim3 grid);

#endif // CUFFTSHIFT_3D_SINGLE_ARRAY_CU

	.file	"tmpxft_0029ae5b_00000000-6_cufftShift_3D_IP.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2036:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2036:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZL60__device_stub__Z26cufftShift_3D_slice_kernelI7double2EvPT_iiP7double2ii, @function
_ZL60__device_stub__Z26cufftShift_3D_slice_kernelI7double2EvPT_iiP7double2ii:
.LFB2064:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2064:
	.size	_ZL60__device_stub__Z26cufftShift_3D_slice_kernelI7double2EvPT_iiP7double2ii, .-_ZL60__device_stub__Z26cufftShift_3D_slice_kernelI7double2EvPT_iiP7double2ii
	.section	.text._Z26cufftShift_3D_slice_kernelI7double2EvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii
	.type	_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii, @function
_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii:
.LFB2121:
	.cfi_startproc
	endbr64
	jmp	_ZL60__device_stub__Z26cufftShift_3D_slice_kernelI7double2EvPT_iiP7double2ii
	.cfi_endproc
.LFE2121:
	.size	_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii, .-_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii
	.text
	.type	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIfEvPT_iiPfii, @function
_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIfEvPT_iiPfii:
.LFB2058:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z26cufftShift_3D_slice_kernelIfEvPT_ii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L8:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2058:
	.size	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIfEvPT_iiPfii, .-_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIfEvPT_iiPfii
	.section	.text._Z26cufftShift_3D_slice_kernelIfEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelIfEvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelIfEvPT_ii
	.type	_Z26cufftShift_3D_slice_kernelIfEvPT_ii, @function
_Z26cufftShift_3D_slice_kernelIfEvPT_ii:
.LFB2117:
	.cfi_startproc
	endbr64
	jmp	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIfEvPT_iiPfii
	.cfi_endproc
.LFE2117:
	.size	_Z26cufftShift_3D_slice_kernelIfEvPT_ii, .-_Z26cufftShift_3D_slice_kernelIfEvPT_ii
	.text
	.type	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIdEvPT_iiPdii, @function
_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIdEvPT_iiPdii:
.LFB2060:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L13
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z26cufftShift_3D_slice_kernelIdEvPT_ii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L13:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2060:
	.size	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIdEvPT_iiPdii, .-_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIdEvPT_iiPdii
	.section	.text._Z26cufftShift_3D_slice_kernelIdEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelIdEvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelIdEvPT_ii
	.type	_Z26cufftShift_3D_slice_kernelIdEvPT_ii, @function
_Z26cufftShift_3D_slice_kernelIdEvPT_ii:
.LFB2119:
	.cfi_startproc
	endbr64
	jmp	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIdEvPT_iiPdii
	.cfi_endproc
.LFE2119:
	.size	_Z26cufftShift_3D_slice_kernelIdEvPT_ii, .-_Z26cufftShift_3D_slice_kernelIdEvPT_ii
	.text
	.type	_ZL59__device_stub__Z26cufftShift_3D_slice_kernelI6float2EvPT_iiP6float2ii, @function
_ZL59__device_stub__Z26cufftShift_3D_slice_kernelI6float2EvPT_iiP6float2ii:
.LFB2062:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L18
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L18:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2062:
	.size	_ZL59__device_stub__Z26cufftShift_3D_slice_kernelI6float2EvPT_iiP6float2ii, .-_ZL59__device_stub__Z26cufftShift_3D_slice_kernelI6float2EvPT_iiP6float2ii
	.section	.text._Z26cufftShift_3D_slice_kernelI6float2EvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii
	.type	_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii, @function
_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii:
.LFB2120:
	.cfi_startproc
	endbr64
	jmp	_ZL59__device_stub__Z26cufftShift_3D_slice_kernelI6float2EvPT_iiP6float2ii
	.cfi_endproc
.LFE2120:
	.size	_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii, .-_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii
	.section	.text._Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_,"axG",@progbits,_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_,comdat
	.weak	_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_
	.type	_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_, @function
_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_:
.LFB2113:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%esi, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%rdx, 16(%rsp)
	movl	%ecx, 24(%rsp)
	movq	%r8, (%rsp)
	movl	%r9d, 8(%rsp)
.L24:
	cmpl	%ebx, %ebp
	jge	.L28
	movl	24(%rsp), %ecx
	movq	16(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	(%rsp), %rdi
	movl	8(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L25
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%r12, %rdi
	call	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIfEvPT_iiPfii
.L25:
	incl	%ebp
	jmp	.L24
.L28:
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2113:
	.size	_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_, .-_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_
	.section	.text._Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_,"axG",@progbits,_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_,comdat
	.weak	_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_
	.type	_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_, @function
_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_:
.LFB2114:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%esi, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%rdx, 16(%rsp)
	movl	%ecx, 24(%rsp)
	movq	%r8, (%rsp)
	movl	%r9d, 8(%rsp)
.L30:
	cmpl	%ebx, %ebp
	jge	.L34
	movl	24(%rsp), %ecx
	movq	16(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	(%rsp), %rdi
	movl	8(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L31
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%r12, %rdi
	call	_ZL53__device_stub__Z26cufftShift_3D_slice_kernelIdEvPT_iiPdii
.L31:
	incl	%ebp
	jmp	.L30
.L34:
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2114:
	.size	_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_, .-_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_
	.section	.text._Z20cufftShift_3D_kernelI6float2EvPT_i4dim3S3_,"axG",@progbits,_Z20cufftShift_3D_kernelI6float2EvPT_i4dim3S3_,comdat
	.weak	_Z20cufftShift_3D_kernelI6float2EvPT_i4dim3S3_
	.type	_Z20cufftShift_3D_kernelI6float2EvPT_i4dim3S3_, @function
_Z20cufftShift_3D_kernelI6float2EvPT_i4dim3S3_:
.LFB2115:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%esi, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%rdx, 16(%rsp)
	movl	%ecx, 24(%rsp)
	movq	%r8, (%rsp)
	movl	%r9d, 8(%rsp)
.L36:
	cmpl	%ebx, %ebp
	jge	.L40
	movl	24(%rsp), %ecx
	movq	16(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	(%rsp), %rdi
	movl	8(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L37
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%r12, %rdi
	call	_ZL59__device_stub__Z26cufftShift_3D_slice_kernelI6float2EvPT_iiP6float2ii
.L37:
	incl	%ebp
	jmp	.L36
.L40:
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2115:
	.size	_Z20cufftShift_3D_kernelI6float2EvPT_i4dim3S3_, .-_Z20cufftShift_3D_kernelI6float2EvPT_i4dim3S3_
	.section	.text._Z20cufftShift_3D_kernelI7double2EvPT_i4dim3S3_,"axG",@progbits,_Z20cufftShift_3D_kernelI7double2EvPT_i4dim3S3_,comdat
	.weak	_Z20cufftShift_3D_kernelI7double2EvPT_i4dim3S3_
	.type	_Z20cufftShift_3D_kernelI7double2EvPT_i4dim3S3_, @function
_Z20cufftShift_3D_kernelI7double2EvPT_i4dim3S3_:
.LFB2116:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%esi, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%rdx, 16(%rsp)
	movl	%ecx, 24(%rsp)
	movq	%r8, (%rsp)
	movl	%r9d, 8(%rsp)
.L42:
	cmpl	%ebx, %ebp
	jge	.L46
	movl	24(%rsp), %ecx
	movq	16(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	(%rsp), %rdi
	movl	8(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L43
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%r12, %rdi
	call	_ZL60__device_stub__Z26cufftShift_3D_slice_kernelI7double2EvPT_iiP7double2ii
.L43:
	incl	%ebp
	jmp	.L42
.L46:
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2116:
	.size	_Z20cufftShift_3D_kernelI7double2EvPT_i4dim3S3_, .-_Z20cufftShift_3D_kernelI7double2EvPT_i4dim3S3_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii"
.LC1:
	.string	"_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii"
.LC2:
	.string	"_Z26cufftShift_3D_slice_kernelIdEvPT_ii"
.LC3:
	.string	"_Z26cufftShift_3D_slice_kernelIfEvPT_ii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2067:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z26cufftShift_3D_slice_kernelI7double2EvPT_ii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC1(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z26cufftShift_3D_slice_kernelI6float2EvPT_ii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z26cufftShift_3D_slice_kernelIdEvPT_ii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z26cufftShift_3D_slice_kernelIfEvPT_ii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	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	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2067:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

/*********************************************************************
 * Copyright © 2011-2014,
 * Marwan Abdellah: <abdellah.marwan@gmail.com>
 *
 * This library (cufftShift) is free software; you can redistribute it
 * and/or modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 ********************************************************************/
 
#ifndef CUFFTSHIFT_3D_SINGLE_ARRAY_CU
#define CUFFTSHIFT_3D_SINGLE_ARRAY_CU

#include <hip/hip_runtime.h>

#include <hip/hip_runtime_api.h>
#include <hipfft/hipfft.h>
// #include <cutil_inline.h>

template <typename T>
__global__
void cufftShift_3D_slice_kernel(T* data, int N, int zIndex)
{
    // 3D Volume & 2D Slice & 1D Line
    int sLine = N;
    int sSlice = N * N;
    int sVolume = N * N * N;

    // Transformations Equations
    int sEq1 = (sVolume + sSlice + sLine) / 2;
    int sEq2 = (sVolume + sSlice - sLine) / 2;
    int sEq3 = (sVolume - sSlice + sLine) / 2;
    int sEq4 = (sVolume - sSlice - sLine) / 2;

    // Thread
    int xThreadIdx = threadIdx.x;
    int yThreadIdx = threadIdx.y;

    // Block Width & Height
    int blockWidth = blockDim.x;
    int blockHeight = blockDim.y;

    // Thread Index 2D
    int xIndex = blockIdx.x * blockWidth + xThreadIdx;
    int yIndex = blockIdx.y * blockHeight + yThreadIdx;

    // Thread Index Converted into 1D Index
    int index = (zIndex * sSlice) + (yIndex * sLine) + xIndex;

    T regTemp;

    if (zIndex < N / 2)
    {
        if (xIndex < N / 2)
        {
            if (yIndex < N / 2)
            {
                regTemp = data[index];

                // First Quad
                data[index] = data[index + sEq1];

                // Fourth Quad
                data[index + sEq1] = regTemp;
            }
            else
            {
                regTemp = data[index];

                // Third Quad
                data[index] = data[index + sEq3];

                // Second Quad
                data[index + sEq3] = regTemp;
            }
        }
        else
        {
            if (yIndex < N / 2)
            {
                regTemp = data[index];

                // Second Quad
                data[index] = data[index + sEq2];

                // Third Quad
                data[index + sEq2] = regTemp;
            }
            else
            {
                regTemp = data[index];

                // Fourth Quad
                data[index] = data[index + sEq4];

                // First Quad
                data[index + sEq4] = regTemp;
            }
        }
    }
}

template <typename T>
void cufftShift_3D_kernel(T* data, int N, dim3 block, dim3 grid)
{
    for (int i = 0; i < N; i++)
        cufftShift_3D_slice_kernel <<< grid, block >>> (data, N, i);
}

template
void cufftShift_3D_kernel <hipfftReal>
(hipfftReal* data, int N, dim3 block, dim3 grid);

template
void cufftShift_3D_kernel <hipfftDoubleReal>
(hipfftDoubleReal* data, int N, dim3 block, dim3 grid);

template
void cufftShift_3D_kernel <hipfftComplex>
(hipfftComplex* data, int N, dim3 block, dim3 grid);

template
void cufftShift_3D_kernel <hipfftDoubleComplex>
(hipfftDoubleComplex* data, int N, dim3 block, dim3 grid);

#endif // CUFFTSHIFT_3D_SINGLE_ARRAY_CU

	.text
	.file	"cufftShift_3D_IP.hip"
	.section	.text._Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_,"axG",@progbits,_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_,comdat
	.weak	_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_ # -- Begin function _Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_
	.type	_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_,@function
_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_: # @_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_
	.cfi_startproc
# %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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, (%rsp)                    # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB0_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%r9d, %ebx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movq	%rdx, %r15
	movl	%esi, %r12d
	xorl	%r13d, %r13d
.LBB0_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%ebp, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_4
# %bb.3:                                #   in Loop: Header=BB0_2 Depth=1
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii
.LBB0_4:                                #   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	%r13d, %r12d
	jne	.LBB0_2
.LBB0_5:                                # %._crit_edge
	addq	$8, %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
.Lfunc_end0:
	.size	_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_, .Lfunc_end0-_Z20cufftShift_3D_kernelIfEvPT_i4dim3S2_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii,"axG",@progbits,_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii,comdat
	.weak	_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii # -- Begin function _Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii
	.type	_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii,@function
_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii: # @_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii
	.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	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z26cufftShift_3D_slice_kernelIfEvPT_ii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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_end1:
	.size	_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii, .Lfunc_end1-_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii
	.cfi_endproc
                                        # -- End function
	.section	.text._Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_,"axG",@progbits,_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_,comdat
	.weak	_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_ # -- Begin function _Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_
	.type	_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_,@function
_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_: # @_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_
	.cfi_startproc
# %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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, (%rsp)                    # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB2_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%r9d, %ebx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movq	%rdx, %r15
	movl	%esi, %r12d
	xorl	%r13d, %r13d
.LBB2_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%ebp, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_4
# %bb.3:                                #   in Loop: Header=BB2_2 Depth=1
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii
.LBB2_4:                                #   in Loop: Header=BB2_2 Depth=1
	incl	%r13d
	cmpl	%r13d, %r12d
	jne	.LBB2_2
.LBB2_5:                                # %._crit_edge
	addq	$8, %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
.Lfunc_end2:
	.size	_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_, .Lfunc_end2-_Z20cufftShift_3D_kernelIdEvPT_i4dim3S2_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii,"axG",@progbits,_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii,comdat
	.weak	_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii # -- Begin function _Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii
	.type	_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii,@function
_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii: # @_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii
	.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	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z26cufftShift_3D_slice_kernelIdEvPT_ii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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_end3:
	.size	_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii, .Lfunc_end3-_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii
	.cfi_endproc
                                        # -- End function
	.section	.text._Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_,"axG",@progbits,_Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_,comdat
	.weak	_Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_ # -- Begin function _Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_
	.type	_Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_,@function
_Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_: # @_Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_
	.cfi_startproc
# %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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, (%rsp)                    # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB4_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%r9d, %ebx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movq	%rdx, %r15
	movl	%esi, %r12d
	xorl	%r13d, %r13d
.LBB4_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%ebp, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB4_4
# %bb.3:                                #   in Loop: Header=BB4_2 Depth=1
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
.LBB4_4:                                #   in Loop: Header=BB4_2 Depth=1
	incl	%r13d
	cmpl	%r13d, %r12d
	jne	.LBB4_2
.LBB4_5:                                # %._crit_edge
	addq	$8, %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
.Lfunc_end4:
	.size	_Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_, .Lfunc_end4-_Z20cufftShift_3D_kernelI15HIP_vector_typeIfLj2EEEvPT_i4dim3S4_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,"axG",@progbits,_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,comdat
	.weak	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii # -- Begin function _Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.type	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,@function
_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii: # @_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.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	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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_end5:
	.size	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii, .Lfunc_end5-_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.cfi_endproc
                                        # -- End function
	.section	.text._Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_,"axG",@progbits,_Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_,comdat
	.weak	_Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_ # -- Begin function _Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_
	.type	_Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_,@function
_Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_: # @_Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_
	.cfi_startproc
# %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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, (%rsp)                    # 8-byte Spill
	testl	%esi, %esi
	jle	.LBB6_5
# %bb.1:                                # %.lr.ph.preheader
	movl	%r9d, %ebx
	movq	%r8, %r14
	movl	%ecx, %ebp
	movq	%rdx, %r15
	movl	%esi, %r12d
	xorl	%r13d, %r13d
.LBB6_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%ebp, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB6_4
# %bb.3:                                #   in Loop: Header=BB6_2 Depth=1
	movq	(%rsp), %rdi                    # 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
.LBB6_4:                                #   in Loop: Header=BB6_2 Depth=1
	incl	%r13d
	cmpl	%r13d, %r12d
	jne	.LBB6_2
.LBB6_5:                                # %._crit_edge
	addq	$8, %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
.Lfunc_end6:
	.size	_Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_, .Lfunc_end6-_Z20cufftShift_3D_kernelI15HIP_vector_typeIdLj2EEEvPT_i4dim3S4_
	.cfi_endproc
                                        # -- End function
	.section	.text._Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,"axG",@progbits,_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,comdat
	.weak	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii # -- Begin function _Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.type	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,@function
_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii: # @_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.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	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	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_end7:
	.size	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii, .Lfunc_end7-_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.cfi_endproc
                                        # -- 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:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB8_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB8_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z26cufftShift_3D_slice_kernelIfEvPT_ii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z26cufftShift_3D_slice_kernelIdEvPT_ii, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end8:
	.size	__hip_module_ctor, .Lfunc_end8-__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	.LBB9_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
.LBB9_2:
	retq
.Lfunc_end9:
	.size	__hip_module_dtor, .Lfunc_end9-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z26cufftShift_3D_slice_kernelIfEvPT_ii,@object # @_Z26cufftShift_3D_slice_kernelIfEvPT_ii
	.section	.rodata._Z26cufftShift_3D_slice_kernelIfEvPT_ii,"aG",@progbits,_Z26cufftShift_3D_slice_kernelIfEvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelIfEvPT_ii
	.p2align	3, 0x0
_Z26cufftShift_3D_slice_kernelIfEvPT_ii:
	.quad	_Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii
	.size	_Z26cufftShift_3D_slice_kernelIfEvPT_ii, 8

	.type	_Z26cufftShift_3D_slice_kernelIdEvPT_ii,@object # @_Z26cufftShift_3D_slice_kernelIdEvPT_ii
	.section	.rodata._Z26cufftShift_3D_slice_kernelIdEvPT_ii,"aG",@progbits,_Z26cufftShift_3D_slice_kernelIdEvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelIdEvPT_ii
	.p2align	3, 0x0
_Z26cufftShift_3D_slice_kernelIdEvPT_ii:
	.quad	_Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii
	.size	_Z26cufftShift_3D_slice_kernelIdEvPT_ii, 8

	.type	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,@object # @_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.section	.rodata._Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,"aG",@progbits,_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.p2align	3, 0x0
_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii:
	.quad	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.size	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii, 8

	.type	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,@object # @_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.section	.rodata._Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,"aG",@progbits,_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,comdat
	.weak	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.p2align	3, 0x0
_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii:
	.quad	_Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.size	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii, 8

	.type	.L__unnamed_1,@object           # @0
	.section	.rodata.str1.1,"aMS",@progbits,1
.L__unnamed_1:
	.asciz	"_Z26cufftShift_3D_slice_kernelIfEvPT_ii"
	.size	.L__unnamed_1, 40

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z26cufftShift_3D_slice_kernelIdEvPT_ii"
	.size	.L__unnamed_2, 40

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii"
	.size	.L__unnamed_3, 63

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii"
	.size	.L__unnamed_4, 63

	.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 _Z41__device_stub__cufftShift_3D_slice_kernelIfEvPT_ii
	.addrsig_sym _Z41__device_stub__cufftShift_3D_slice_kernelIdEvPT_ii
	.addrsig_sym _Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.addrsig_sym _Z41__device_stub__cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z26cufftShift_3D_slice_kernelIfEvPT_ii
	.addrsig_sym _Z26cufftShift_3D_slice_kernelIdEvPT_ii
	.addrsig_sym _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.addrsig_sym _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.section	.text._Z26cufftShift_3D_slice_kernelIfEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelIfEvPT_ii,comdat
	.protected	_Z26cufftShift_3D_slice_kernelIfEvPT_ii ; -- Begin function _Z26cufftShift_3D_slice_kernelIfEvPT_ii
	.globl	_Z26cufftShift_3D_slice_kernelIfEvPT_ii
	.p2align	8
	.type	_Z26cufftShift_3D_slice_kernelIfEvPT_ii,@function
_Z26cufftShift_3D_slice_kernelIfEvPT_ii: ; @_Z26cufftShift_3D_slice_kernelIfEvPT_ii
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s4, s2, s4
	s_ashr_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s4, s3
	s_cbranch_scc1 .LBB0_2
; %bb.1:                                ; %.sink.split
	s_load_b32 s5, s[0:1], 0x1c
	v_bfe_u32 v1, v0, 10, 10
	s_mul_i32 s6, s2, s2
	s_load_b64 s[0:1], s[0:1], 0x0
	s_mul_i32 s7, s6, s2
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s8, s5, 16
	s_and_b32 s5, s5, 0xffff
	v_mad_u64_u32 v[2:3], null, s15, s8, v[1:2]
	s_add_i32 s8, s7, s6
	s_sub_i32 s7, s7, s6
	v_mov_b32_e32 v1, s8
	s_mul_i32 s6, s6, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s4, v2
	v_cndmask_b32_e32 v1, s7, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[3:4], null, s14, s5, v[0:1]
	v_add_nc_u32_e32 v0, s2, v1
	v_subrev_nc_u32_e32 v1, s2, v1
	v_cmp_gt_i32_e32 vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v0, v1, v0, vcc_lo
	v_mul_lo_u32 v1, v2, s2
	v_lshrrev_b32_e32 v2, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v2, v0, v2
	v_add3_u32 v0, v3, s6, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 1, v2
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v2, vcc_lo, v0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, v1, v3, vcc_lo
	s_clause 0x1
	global_load_b32 v4, v[2:3], off
	global_load_b32 v5, v[0:1], off
	s_waitcnt vmcnt(1)
	global_store_b32 v[0:1], v4, off
	s_waitcnt vmcnt(0)
	global_store_b32 v[2:3], v5, off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z26cufftShift_3D_slice_kernelIfEvPT_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 6
		.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
	.section	.text._Z26cufftShift_3D_slice_kernelIfEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelIfEvPT_ii,comdat
.Lfunc_end0:
	.size	_Z26cufftShift_3D_slice_kernelIfEvPT_ii, .Lfunc_end0-_Z26cufftShift_3D_slice_kernelIfEvPT_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 320
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.section	.text._Z26cufftShift_3D_slice_kernelIdEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelIdEvPT_ii,comdat
	.protected	_Z26cufftShift_3D_slice_kernelIdEvPT_ii ; -- Begin function _Z26cufftShift_3D_slice_kernelIdEvPT_ii
	.globl	_Z26cufftShift_3D_slice_kernelIdEvPT_ii
	.p2align	8
	.type	_Z26cufftShift_3D_slice_kernelIdEvPT_ii,@function
_Z26cufftShift_3D_slice_kernelIdEvPT_ii: ; @_Z26cufftShift_3D_slice_kernelIdEvPT_ii
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s4, s2, s4
	s_ashr_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s4, s3
	s_cbranch_scc1 .LBB1_2
; %bb.1:                                ; %.sink.split
	s_load_b32 s5, s[0:1], 0x1c
	v_bfe_u32 v1, v0, 10, 10
	s_mul_i32 s6, s2, s2
	s_load_b64 s[0:1], s[0:1], 0x0
	s_mul_i32 s7, s6, s2
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s8, s5, 16
	s_and_b32 s5, s5, 0xffff
	v_mad_u64_u32 v[2:3], null, s15, s8, v[1:2]
	s_add_i32 s8, s7, s6
	s_sub_i32 s7, s7, s6
	v_mov_b32_e32 v1, s8
	s_mul_i32 s6, s6, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s4, v2
	v_cndmask_b32_e32 v1, s7, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[3:4], null, s14, s5, v[0:1]
	v_add_nc_u32_e32 v0, s2, v1
	v_subrev_nc_u32_e32 v1, s2, v1
	v_cmp_gt_i32_e32 vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v0, v1, v0, vcc_lo
	v_mul_lo_u32 v1, v2, s2
	v_lshrrev_b32_e32 v2, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v2, v0, v2
	v_add3_u32 v0, v3, s6, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 1, v2
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v2, vcc_lo, v0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, v1, v3, vcc_lo
	s_clause 0x1
	global_load_b64 v[4:5], v[2:3], off
	global_load_b64 v[6:7], v[0:1], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[0:1], v[4:5], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[6:7], off
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z26cufftShift_3D_slice_kernelIdEvPT_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z26cufftShift_3D_slice_kernelIdEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelIdEvPT_ii,comdat
.Lfunc_end1:
	.size	_Z26cufftShift_3D_slice_kernelIdEvPT_ii, .Lfunc_end1-_Z26cufftShift_3D_slice_kernelIdEvPT_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 320
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.section	.text._Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,comdat
	.protected	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii ; -- Begin function _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.globl	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
	.p2align	8
	.type	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,@function
_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii: ; @_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s4, s2, s4
	s_ashr_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s4, s3
	s_cbranch_scc1 .LBB2_2
; %bb.1:                                ; %.sink.split
	s_load_b32 s5, s[0:1], 0x1c
	v_bfe_u32 v1, v0, 10, 10
	s_mul_i32 s6, s2, s2
	s_load_b64 s[0:1], s[0:1], 0x0
	s_mul_i32 s7, s6, s2
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s8, s5, 16
	s_and_b32 s5, s5, 0xffff
	v_mad_u64_u32 v[2:3], null, s15, s8, v[1:2]
	s_add_i32 s8, s7, s6
	s_sub_i32 s7, s7, s6
	v_mov_b32_e32 v1, s8
	s_mul_i32 s6, s6, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s4, v2
	v_cndmask_b32_e32 v1, s7, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[3:4], null, s14, s5, v[0:1]
	v_add_nc_u32_e32 v0, s2, v1
	v_subrev_nc_u32_e32 v1, s2, v1
	v_cmp_gt_i32_e32 vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v0, v1, v0, vcc_lo
	v_mul_lo_u32 v1, v2, s2
	v_lshrrev_b32_e32 v2, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v2, v0, v2
	v_add3_u32 v0, v3, s6, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 1, v2
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v2, vcc_lo, v0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, v1, v3, vcc_lo
	s_clause 0x1
	global_load_b64 v[4:5], v[2:3], off
	global_load_b64 v[6:7], v[0:1], off
	s_waitcnt vmcnt(1)
	global_store_b64 v[0:1], v[4:5], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[6:7], off
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii,comdat
.Lfunc_end2:
	.size	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii, .Lfunc_end2-_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 320
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.section	.text._Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,comdat
	.protected	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii ; -- Begin function _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.globl	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
	.p2align	8
	.type	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,@function
_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii: ; @_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
; %bb.0:
	s_load_b64 s[2:3], s[0:1], 0x8
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s2, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s4, s2, s4
	s_ashr_i32 s4, s4, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_le_i32 s4, s3
	s_cbranch_scc1 .LBB3_2
; %bb.1:                                ; %.sink.split
	s_load_b32 s5, s[0:1], 0x1c
	v_bfe_u32 v1, v0, 10, 10
	s_mul_i32 s6, s2, s2
	s_load_b64 s[0:1], s[0:1], 0x0
	s_mul_i32 s7, s6, s2
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s8, s5, 16
	s_and_b32 s5, s5, 0xffff
	v_mad_u64_u32 v[2:3], null, s15, s8, v[1:2]
	s_add_i32 s8, s7, s6
	s_sub_i32 s7, s7, s6
	v_mov_b32_e32 v1, s8
	s_mul_i32 s6, s6, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s4, v2
	v_cndmask_b32_e32 v1, s7, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[3:4], null, s14, s5, v[0:1]
	v_add_nc_u32_e32 v0, s2, v1
	v_subrev_nc_u32_e32 v1, s2, v1
	v_cmp_gt_i32_e32 vcc_lo, s4, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v0, v1, v0, vcc_lo
	v_mul_lo_u32 v1, v2, s2
	v_lshrrev_b32_e32 v2, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v2, v0, v2
	v_add3_u32 v0, v3, s6, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 1, v2
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 4, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 4, v[2:3]
	v_add_co_u32 v8, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v1, vcc_lo
	v_add_co_u32 v10, vcc_lo, v8, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v11, vcc_lo, v9, v3, vcc_lo
	s_clause 0x1
	global_load_b128 v[0:3], v[10:11], off
	global_load_b128 v[4:7], v[8:9], off
	s_waitcnt vmcnt(1)
	global_store_b128 v[8:9], v[0:3], off
	s_waitcnt vmcnt(0)
	global_store_b128 v[10:11], v[4:7], off
.LBB3_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 12
		.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
	.section	.text._Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,"axG",@progbits,_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii,comdat
.Lfunc_end3:
	.size	_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii, .Lfunc_end3-_Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 320
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 12
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z26cufftShift_3D_slice_kernelIfEvPT_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z26cufftShift_3D_slice_kernelIfEvPT_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z26cufftShift_3D_slice_kernelIdEvPT_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z26cufftShift_3D_slice_kernelIdEvPT_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIfLj2EEEvPT_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z26cufftShift_3D_slice_kernelI15HIP_vector_typeIdLj2EEEvPT_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
