#include <stdio.h>

__global__
void transposeReadRow(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < rowCount) {
		out[idx*columnCount+idy] = in[idy*rowCount+idx];
	}
}

__global__
void transposeReadColumn(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < rowCount) {
		out[idy*rowCount+idx] = in[idx*columnCount+idy];
	}
}

__global__
void transposeReadRowUnwrap8(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	int x = idy*rowCount+idx;
	int y = idx*columnCount+idx;

	if (idx + 7 * blockDim.x < columnCount && idy < rowCount) {
		out[y] = in[x];
		out[y+rowCount*blockDim.x] = in[x+blockDim.x];
		out[y+2*rowCount*blockDim.x] = in[x+2*blockDim.x];
		out[y+3*rowCount*blockDim.x] = in[x+3*blockDim.x];
		out[y+4*rowCount*blockDim.x] = in[x+4*blockDim.x];
		out[y+5*rowCount*blockDim.x] = in[x+5*blockDim.x];
		out[y+6*rowCount*blockDim.x] = in[x+6*blockDim.x];
		out[y+7*rowCount*blockDim.x] = in[x+7*blockDim.x];

	}
}

__global__
void transposeReadColumnUnwrap8(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	int x = idy*rowCount+idx;
	int y = idx*columnCount+idx;

	if (idx + 7 * blockDim.x < columnCount && idy < rowCount) {
		out[x] = in[y];
		out[x+blockDim.x] = in[y+rowCount*blockDim.x];
		out[x+2*blockDim.x] = in[y+2*rowCount*blockDim.x];
		out[x+3*blockDim.x] = in[y+3*rowCount*blockDim.x];
		out[x+4*blockDim.x] = in[y+4*rowCount*blockDim.x];
		out[x+5*blockDim.x] = in[y+5*rowCount*blockDim.x];
		out[x+6*blockDim.x] = in[y+6*rowCount*blockDim.x];
		out[x+7*blockDim.x] = in[y+7*rowCount*blockDim.x];
	}
}

__global__
void transposeDiagonalReadRow(float* out, float* in, int rowCount, int columnCount) {
	int blockX = (blockIdx.x + blockIdx.y) % gridDim.x;
	int blockY = blockIdx.x;

	int idx = (blockX * blockDim.x) + threadIdx.x;
	int idy = (blockY * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < columnCount) {
		out[idx*columnCount+idy] = in[idy*rowCount+idx];
	}
}

__global__
void transposeDiagonalReadColumn(float* out, float* in, int rowCount, int columnCount) {
	int blockX = (blockIdx.x + blockIdx.y) % gridDim.x;
	int blockY = blockIdx.x;

	int idx = (blockX * blockDim.x) + threadIdx.x;
	int idy = (blockY * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < columnCount) {
		out[idy*rowCount+idx] = in[idx*columnCount+idy];
	}
}

void transpose(float* out, float* in, int rowCount, int columnCount) {
	for (int y = 0; y < columnCount; y++) {
		for (int x = 0; x < rowCount; x++) {
			out[x*columnCount+y] = in[y*rowCount+x];
		}
	}
}

bool checkMatrix(float* matrixA, float* matrixB, int rowCount, int columnCount) {
	for (int x = 0; x < rowCount * columnCount; x++) {
		if (matrixA[x] != matrixB[x]) {
			return false;
		}
	}

	return true;
}

void printMatrix(float* matrix, int rowCount, int columnCount) {
	for (int y = 0; y < columnCount; y++) {
		for (int x = 0; x < rowCount; x++) {
			printf("%-3d ", int(matrix[y*rowCount+x]));
		}
		printf("\n");
	}
}

int main(void) {
	printf("\n");
	int rowCount = 64;
	int columnCount = 64;

	dim3 block(32,32);
	dim3 grid((columnCount+block.x-1)/block.x, (rowCount+block.y-1)/block.y);
	dim3 gridUnwrap8((columnCount+(block.x/8)-1)/(block.x/8), (rowCount+block.y-1)/block.y);

	float* h_matrix = (float*)malloc(rowCount*columnCount*sizeof(float));
	for (int x = 0; x < rowCount * columnCount; x++) { h_matrix[x] = x; }
	float* h_transpose_matrix = (float*)malloc(rowCount*columnCount*sizeof(float));

	float* expected_matrix = (float*)malloc(rowCount*columnCount*sizeof(float));
	transpose(expected_matrix, h_matrix, rowCount, columnCount);

	float* d_matrix;
	cudaMalloc((float**)&d_matrix, rowCount*columnCount*sizeof(float));
	cudaMemcpy(d_matrix, h_matrix, rowCount*columnCount*sizeof(float), cudaMemcpyHostToDevice);

	float* d_transpose_matrix;
	cudaMalloc((float**)&d_transpose_matrix, rowCount*columnCount*sizeof(float));

	transposeReadRow<<<grid,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	cudaDeviceSynchronize();
	cudaMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), cudaMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadRow", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeReadColumn<<<grid,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	cudaDeviceSynchronize();
	cudaMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), cudaMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadColumn", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeReadRowUnwrap8<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	cudaDeviceSynchronize();
	cudaMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), cudaMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadRowUnwrap8", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeReadColumnUnwrap8<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	cudaDeviceSynchronize();
	cudaMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), cudaMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadColumnUnwrap8", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeDiagonalReadRow<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	cudaDeviceSynchronize();
	cudaMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), cudaMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeDiagonalReadRow", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeDiagonalReadColumn<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	cudaDeviceSynchronize();
	cudaMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), cudaMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeDiagonalReadColumn", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	cudaFree(d_matrix);
	cudaFree(d_transpose_matrix);
	free(h_matrix);
	free(h_transpose_matrix);
	free(expected_matrix);
	cudaDeviceReset();

	printf("\n");

	return 0;
}
	.file	"tmpxft_00370bcf_00000000-6_matrix_transpose.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2033:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2033:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z9transposePfS_ii
	.type	_Z9transposePfS_ii, @function
_Z9transposePfS_ii:
.LFB2027:
	.cfi_startproc
	endbr64
	movslq	%ecx, %r11
	xorl	%r10d, %r10d
	movq	%rsi, %r8
	xorl	%r9d, %r9d
	salq	$2, %r11
	cmpl	%ecx, %r10d
	jl	.L11
	ret
.L11:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
.L9:
	movslq	%r9d, %rax
	movq	%rdi, %rsi
	leaq	(%r8,%rax,4), %rbx
	xorl	%eax, %eax
.L6:
	cmpl	%eax, %edx
	jle	.L13
	movss	(%rbx,%rax,4), %xmm0
	incq	%rax
	movss	%xmm0, (%rsi)
	addq	%r11, %rsi
	jmp	.L6
.L13:
	incl	%r10d
	addq	$4, %rdi
	addl	%edx, %r9d
	cmpl	%ecx, %r10d
	jl	.L9
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z9transposePfS_ii, .-_Z9transposePfS_ii
	.globl	_Z11checkMatrixPfS_ii
	.type	_Z11checkMatrixPfS_ii, @function
_Z11checkMatrixPfS_ii:
.LFB2028:
	.cfi_startproc
	endbr64
	imull	%ecx, %edx
	xorl	%eax, %eax
.L15:
	cmpl	%eax, %edx
	jle	.L20
	movss	(%rdi,%rax,4), %xmm0
	incq	%rax
	ucomiss	-4(%rsi,%rax,4), %xmm0
	jp	.L19
	je	.L15
	jmp	.L19
.L20:
	movb	$1, %al
	ret
.L19:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z11checkMatrixPfS_ii, .-_Z11checkMatrixPfS_ii
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%-3d "
.LC1:
	.string	"\n"
	.text
	.globl	_Z11printMatrixPfii
	.type	_Z11printMatrixPfii, @function
_Z11printMatrixPfii:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%edx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%esi, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L22:
	cmpl	%r14d, %r13d
	jge	.L21
	movslq	%r12d, %rax
	xorl	%r15d, %r15d
	leaq	0(%rbp,%rax,4), %r8
.L25:
	cmpl	%r15d, %ebx
	jle	.L27
	cvttss2sil	(%r8,%r15,4), %edx
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r8, 8(%rsp)
	incq	%r15
	call	__printf_chk@PLT
	movq	8(%rsp), %r8
	jmp	.L25
.L27:
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	incl	%r13d
	addl	%ebx, %r12d
	movl	$2, %edi
	call	__printf_chk@PLT
	jmp	.L22
.L21:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
.LFE2029:
	.size	_Z11printMatrixPfii, .-_Z11printMatrixPfii
	.globl	_Z40__device_stub__Z16transposeReadRowPfS_iiPfS_ii
	.type	_Z40__device_stub__Z16transposeReadRowPfS_iiPfS_ii, @function
_Z40__device_stub__Z16transposeReadRowPfS_iiPfS_ii:
.LFB2055:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%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	.L28
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z16transposeReadRowPfS_ii(%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
.L28:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2055:
	.size	_Z40__device_stub__Z16transposeReadRowPfS_iiPfS_ii, .-_Z40__device_stub__Z16transposeReadRowPfS_iiPfS_ii
	.globl	_Z16transposeReadRowPfS_ii
	.type	_Z16transposeReadRowPfS_ii, @function
_Z16transposeReadRowPfS_ii:
.LFB2056:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z16transposeReadRowPfS_iiPfS_ii
	.cfi_endproc
.LFE2056:
	.size	_Z16transposeReadRowPfS_ii, .-_Z16transposeReadRowPfS_ii
	.globl	_Z43__device_stub__Z19transposeReadColumnPfS_iiPfS_ii
	.type	_Z43__device_stub__Z19transposeReadColumnPfS_iiPfS_ii, @function
_Z43__device_stub__Z19transposeReadColumnPfS_iiPfS_ii:
.LFB2057:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%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	.L33
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z19transposeReadColumnPfS_ii(%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
.L33:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2057:
	.size	_Z43__device_stub__Z19transposeReadColumnPfS_iiPfS_ii, .-_Z43__device_stub__Z19transposeReadColumnPfS_iiPfS_ii
	.globl	_Z19transposeReadColumnPfS_ii
	.type	_Z19transposeReadColumnPfS_ii, @function
_Z19transposeReadColumnPfS_ii:
.LFB2058:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z19transposeReadColumnPfS_iiPfS_ii
	.cfi_endproc
.LFE2058:
	.size	_Z19transposeReadColumnPfS_ii, .-_Z19transposeReadColumnPfS_ii
	.globl	_Z47__device_stub__Z23transposeReadRowUnwrap8PfS_iiPfS_ii
	.type	_Z47__device_stub__Z23transposeReadRowUnwrap8PfS_iiPfS_ii, @function
_Z47__device_stub__Z23transposeReadRowUnwrap8PfS_iiPfS_ii:
.LFB2059:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%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	.L38
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z23transposeReadRowUnwrap8PfS_ii(%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
.L38:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2059:
	.size	_Z47__device_stub__Z23transposeReadRowUnwrap8PfS_iiPfS_ii, .-_Z47__device_stub__Z23transposeReadRowUnwrap8PfS_iiPfS_ii
	.globl	_Z23transposeReadRowUnwrap8PfS_ii
	.type	_Z23transposeReadRowUnwrap8PfS_ii, @function
_Z23transposeReadRowUnwrap8PfS_ii:
.LFB2060:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z23transposeReadRowUnwrap8PfS_iiPfS_ii
	.cfi_endproc
.LFE2060:
	.size	_Z23transposeReadRowUnwrap8PfS_ii, .-_Z23transposeReadRowUnwrap8PfS_ii
	.globl	_Z50__device_stub__Z26transposeReadColumnUnwrap8PfS_iiPfS_ii
	.type	_Z50__device_stub__Z26transposeReadColumnUnwrap8PfS_iiPfS_ii, @function
_Z50__device_stub__Z26transposeReadColumnUnwrap8PfS_iiPfS_ii:
.LFB2061:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%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	.L43
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z26transposeReadColumnUnwrap8PfS_ii(%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
.L43:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2061:
	.size	_Z50__device_stub__Z26transposeReadColumnUnwrap8PfS_iiPfS_ii, .-_Z50__device_stub__Z26transposeReadColumnUnwrap8PfS_iiPfS_ii
	.globl	_Z26transposeReadColumnUnwrap8PfS_ii
	.type	_Z26transposeReadColumnUnwrap8PfS_ii, @function
_Z26transposeReadColumnUnwrap8PfS_ii:
.LFB2062:
	.cfi_startproc
	endbr64
	jmp	_Z50__device_stub__Z26transposeReadColumnUnwrap8PfS_iiPfS_ii
	.cfi_endproc
.LFE2062:
	.size	_Z26transposeReadColumnUnwrap8PfS_ii, .-_Z26transposeReadColumnUnwrap8PfS_ii
	.globl	_Z48__device_stub__Z24transposeDiagonalReadRowPfS_iiPfS_ii
	.type	_Z48__device_stub__Z24transposeDiagonalReadRowPfS_iiPfS_ii, @function
_Z48__device_stub__Z24transposeDiagonalReadRowPfS_iiPfS_ii:
.LFB2063:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%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	.L48
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z24transposeDiagonalReadRowPfS_ii(%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
.L48:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2063:
	.size	_Z48__device_stub__Z24transposeDiagonalReadRowPfS_iiPfS_ii, .-_Z48__device_stub__Z24transposeDiagonalReadRowPfS_iiPfS_ii
	.globl	_Z24transposeDiagonalReadRowPfS_ii
	.type	_Z24transposeDiagonalReadRowPfS_ii, @function
_Z24transposeDiagonalReadRowPfS_ii:
.LFB2064:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z24transposeDiagonalReadRowPfS_iiPfS_ii
	.cfi_endproc
.LFE2064:
	.size	_Z24transposeDiagonalReadRowPfS_ii, .-_Z24transposeDiagonalReadRowPfS_ii
	.globl	_Z51__device_stub__Z27transposeDiagonalReadColumnPfS_iiPfS_ii
	.type	_Z51__device_stub__Z27transposeDiagonalReadColumnPfS_iiPfS_ii, @function
_Z51__device_stub__Z27transposeDiagonalReadColumnPfS_iiPfS_ii:
.LFB2065:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%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	.L53
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z27transposeDiagonalReadColumnPfS_ii(%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
.L53:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2065:
	.size	_Z51__device_stub__Z27transposeDiagonalReadColumnPfS_iiPfS_ii, .-_Z51__device_stub__Z27transposeDiagonalReadColumnPfS_iiPfS_ii
	.globl	_Z27transposeDiagonalReadColumnPfS_ii
	.type	_Z27transposeDiagonalReadColumnPfS_ii, @function
_Z27transposeDiagonalReadColumnPfS_ii:
.LFB2066:
	.cfi_startproc
	endbr64
	jmp	_Z51__device_stub__Z27transposeDiagonalReadColumnPfS_iiPfS_ii
	.cfi_endproc
.LFE2066:
	.size	_Z27transposeDiagonalReadColumnPfS_ii, .-_Z27transposeDiagonalReadColumnPfS_ii
	.section	.rodata.str1.1
.LC2:
	.string	"transposeReadRow"
.LC3:
	.string	"%-30s: %d\n"
.LC4:
	.string	"transposeReadColumn"
.LC5:
	.string	"transposeReadRowUnwrap8"
.LC6:
	.string	"transposeReadColumnUnwrap8"
.LC7:
	.string	"transposeDiagonalReadRow"
.LC8:
	.string	"transposeDiagonalReadColumn"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2030:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %r14
	movl	$2, %edi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rsi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$16384, %edi
	movabsq	$8589934594, %rax
	movl	$1, 28(%rsp)
	movq	%rax, 32(%rsp)
	addq	$14, %rax
	movl	$1, 40(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	malloc@PLT
	movq	%rax, %r12
	xorl	%eax, %eax
.L59:
	cvtsi2ssl	%eax, %xmm0
	movss	%xmm0, (%r12,%rax,4)
	incq	%rax
	cmpq	$4096, %rax
	jne	.L59
	movl	$16384, %edi
	call	malloc@PLT
	movl	$16384, %edi
	movq	%rax, %rbx
	call	malloc@PLT
	movl	$64, %ecx
	movl	$64, %edx
	movq	%r12, %rsi
	movq	%rax, %rdi
	movq	%rax, %rbp
	call	_Z9transposePfS_ii
	movq	%rsp, %rdi
	movl	$16384, %esi
	call	cudaMalloc@PLT
	movq	(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rsi
	movl	$16384, %edx
	call	cudaMemcpy@PLT
	leaq	8(%rsp), %rdi
	movl	$16384, %esi
	call	cudaMalloc@PLT
	movl	28(%rsp), %ecx
	movl	40(%rsp), %esi
	xorl	%r9d, %r9d
	movq	32(%rsp), %rdi
	xorl	%r8d, %r8d
	movabsq	$137438953504, %rdx
	movq	%rdx, 20(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L60
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$64, %ecx
	movl	$64, %edx
	call	_Z40__device_stub__Z16transposeReadRowPfS_iiPfS_ii
.L60:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdi
	movl	$16384, %edx
	leaq	.LC3(%rip), %r13
	call	cudaMemcpy@PLT
	movl	$64, %ecx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$64, %edx
	call	_Z11checkMatrixPfS_ii
	leaq	.LC2(%rip), %rdx
	movq	%r13, %rsi
	movl	$2, %edi
	movzbl	%al, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	28(%rsp), %ecx
	movl	40(%rsp), %esi
	xorl	%r9d, %r9d
	movq	20(%rsp), %rdx
	movq	32(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L61
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$64, %ecx
	movl	$64, %edx
	call	_Z43__device_stub__Z19transposeReadColumnPfS_iiPfS_ii
.L61:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdi
	movl	$16384, %edx
	call	cudaMemcpy@PLT
	movl	$64, %ecx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$64, %edx
	call	_Z11checkMatrixPfS_ii
	leaq	.LC4(%rip), %rdx
	movq	%r13, %rsi
	movl	$2, %edi
	movzbl	%al, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	28(%rsp), %ecx
	movl	52(%rsp), %esi
	xorl	%r9d, %r9d
	movq	20(%rsp), %rdx
	movq	44(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L62
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$64, %ecx
	movl	$64, %edx
	call	_Z47__device_stub__Z23transposeReadRowUnwrap8PfS_iiPfS_ii
.L62:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdi
	movl	$16384, %edx
	call	cudaMemcpy@PLT
	movl	$64, %ecx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$64, %edx
	call	_Z11checkMatrixPfS_ii
	leaq	.LC5(%rip), %rdx
	movq	%r13, %rsi
	movl	$2, %edi
	movzbl	%al, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	28(%rsp), %ecx
	movl	52(%rsp), %esi
	xorl	%r9d, %r9d
	movq	20(%rsp), %rdx
	movq	44(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L63
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$64, %ecx
	movl	$64, %edx
	call	_Z50__device_stub__Z26transposeReadColumnUnwrap8PfS_iiPfS_ii
.L63:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdi
	movl	$16384, %edx
	call	cudaMemcpy@PLT
	movl	$64, %ecx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$64, %edx
	call	_Z11checkMatrixPfS_ii
	leaq	.LC6(%rip), %rdx
	movq	%r13, %rsi
	movl	$2, %edi
	movzbl	%al, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	28(%rsp), %ecx
	movl	52(%rsp), %esi
	xorl	%r9d, %r9d
	movq	20(%rsp), %rdx
	movq	44(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L64
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$64, %ecx
	movl	$64, %edx
	call	_Z48__device_stub__Z24transposeDiagonalReadRowPfS_iiPfS_ii
.L64:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdi
	movl	$16384, %edx
	call	cudaMemcpy@PLT
	movl	$64, %ecx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$64, %edx
	call	_Z11checkMatrixPfS_ii
	leaq	.LC7(%rip), %rdx
	movq	%r13, %rsi
	movl	$2, %edi
	movzbl	%al, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	28(%rsp), %ecx
	movl	52(%rsp), %esi
	xorl	%r9d, %r9d
	movq	20(%rsp), %rdx
	movq	44(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L65
	movq	(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$64, %ecx
	movl	$64, %edx
	call	_Z51__device_stub__Z27transposeDiagonalReadColumnPfS_iiPfS_ii
.L65:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbx, %rdi
	movl	$16384, %edx
	call	cudaMemcpy@PLT
	movl	$64, %ecx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movl	$64, %edx
	call	_Z11checkMatrixPfS_ii
	movq	%r13, %rsi
	movl	$2, %edi
	leaq	.LC8(%rip), %rdx
	movzbl	%al, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	(%rsp), %rdi
	call	cudaFree@PLT
	movq	8(%rsp), %rdi
	call	cudaFree@PLT
	movq	%r12, %rdi
	call	free@PLT
	movq	%rbx, %rdi
	call	free@PLT
	movq	%rbp, %rdi
	call	free@PLT
	call	cudaDeviceReset@PLT
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	addq	$64, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2030:
	.size	main, .-main
	.section	.rodata.str1.1
.LC9:
	.string	"_Z27transposeDiagonalReadColumnPfS_ii"
.LC10:
	.string	"_Z24transposeDiagonalReadRowPfS_ii"
.LC11:
	.string	"_Z26transposeReadColumnUnwrap8PfS_ii"
.LC12:
	.string	"_Z23transposeReadRowUnwrap8PfS_ii"
.LC13:
	.string	"_Z19transposeReadColumnPfS_ii"
.LC14:
	.string	"_Z16transposeReadRowPfS_ii"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2068:
	.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	.LC9(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z27transposeDiagonalReadColumnPfS_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	.LC10(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z24transposeDiagonalReadRowPfS_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	.LC11(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z26transposeReadColumnUnwrap8PfS_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	.LC12(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z23transposeReadRowUnwrap8PfS_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	.LC13(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z19transposeReadColumnPfS_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	.LC14(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16transposeReadRowPfS_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
.LFE2068:
	.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:


#include <hip/hip_runtime.h>
#include <stdio.h>

__global__
void transposeReadRow(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < rowCount) {
		out[idx*columnCount+idy] = in[idy*rowCount+idx];
	}
}

__global__
void transposeReadColumn(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < rowCount) {
		out[idy*rowCount+idx] = in[idx*columnCount+idy];
	}
}

__global__
void transposeReadRowUnwrap8(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	int x = idy*rowCount+idx;
	int y = idx*columnCount+idx;

	if (idx + 7 * blockDim.x < columnCount && idy < rowCount) {
		out[y] = in[x];
		out[y+rowCount*blockDim.x] = in[x+blockDim.x];
		out[y+2*rowCount*blockDim.x] = in[x+2*blockDim.x];
		out[y+3*rowCount*blockDim.x] = in[x+3*blockDim.x];
		out[y+4*rowCount*blockDim.x] = in[x+4*blockDim.x];
		out[y+5*rowCount*blockDim.x] = in[x+5*blockDim.x];
		out[y+6*rowCount*blockDim.x] = in[x+6*blockDim.x];
		out[y+7*rowCount*blockDim.x] = in[x+7*blockDim.x];

	}
}

__global__
void transposeReadColumnUnwrap8(float* out, float* in, int rowCount, int columnCount) {
	int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
	int idy = (blockIdx.y * blockDim.y) + threadIdx.y;

	int x = idy*rowCount+idx;
	int y = idx*columnCount+idx;

	if (idx + 7 * blockDim.x < columnCount && idy < rowCount) {
		out[x] = in[y];
		out[x+blockDim.x] = in[y+rowCount*blockDim.x];
		out[x+2*blockDim.x] = in[y+2*rowCount*blockDim.x];
		out[x+3*blockDim.x] = in[y+3*rowCount*blockDim.x];
		out[x+4*blockDim.x] = in[y+4*rowCount*blockDim.x];
		out[x+5*blockDim.x] = in[y+5*rowCount*blockDim.x];
		out[x+6*blockDim.x] = in[y+6*rowCount*blockDim.x];
		out[x+7*blockDim.x] = in[y+7*rowCount*blockDim.x];
	}
}

__global__
void transposeDiagonalReadRow(float* out, float* in, int rowCount, int columnCount) {
	int blockX = (blockIdx.x + blockIdx.y) % gridDim.x;
	int blockY = blockIdx.x;

	int idx = (blockX * blockDim.x) + threadIdx.x;
	int idy = (blockY * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < columnCount) {
		out[idx*columnCount+idy] = in[idy*rowCount+idx];
	}
}

__global__
void transposeDiagonalReadColumn(float* out, float* in, int rowCount, int columnCount) {
	int blockX = (blockIdx.x + blockIdx.y) % gridDim.x;
	int blockY = blockIdx.x;

	int idx = (blockX * blockDim.x) + threadIdx.x;
	int idy = (blockY * blockDim.y) + threadIdx.y;

	if (idx < columnCount && idy < columnCount) {
		out[idy*rowCount+idx] = in[idx*columnCount+idy];
	}
}

void transpose(float* out, float* in, int rowCount, int columnCount) {
	for (int y = 0; y < columnCount; y++) {
		for (int x = 0; x < rowCount; x++) {
			out[x*columnCount+y] = in[y*rowCount+x];
		}
	}
}

bool checkMatrix(float* matrixA, float* matrixB, int rowCount, int columnCount) {
	for (int x = 0; x < rowCount * columnCount; x++) {
		if (matrixA[x] != matrixB[x]) {
			return false;
		}
	}

	return true;
}

void printMatrix(float* matrix, int rowCount, int columnCount) {
	for (int y = 0; y < columnCount; y++) {
		for (int x = 0; x < rowCount; x++) {
			printf("%-3d ", int(matrix[y*rowCount+x]));
		}
		printf("\n");
	}
}

int main(void) {
	printf("\n");
	int rowCount = 64;
	int columnCount = 64;

	dim3 block(32,32);
	dim3 grid((columnCount+block.x-1)/block.x, (rowCount+block.y-1)/block.y);
	dim3 gridUnwrap8((columnCount+(block.x/8)-1)/(block.x/8), (rowCount+block.y-1)/block.y);

	float* h_matrix = (float*)malloc(rowCount*columnCount*sizeof(float));
	for (int x = 0; x < rowCount * columnCount; x++) { h_matrix[x] = x; }
	float* h_transpose_matrix = (float*)malloc(rowCount*columnCount*sizeof(float));

	float* expected_matrix = (float*)malloc(rowCount*columnCount*sizeof(float));
	transpose(expected_matrix, h_matrix, rowCount, columnCount);

	float* d_matrix;
	hipMalloc((float**)&d_matrix, rowCount*columnCount*sizeof(float));
	hipMemcpy(d_matrix, h_matrix, rowCount*columnCount*sizeof(float), hipMemcpyHostToDevice);

	float* d_transpose_matrix;
	hipMalloc((float**)&d_transpose_matrix, rowCount*columnCount*sizeof(float));

	transposeReadRow<<<grid,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	hipDeviceSynchronize();
	hipMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), hipMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadRow", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeReadColumn<<<grid,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	hipDeviceSynchronize();
	hipMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), hipMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadColumn", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeReadRowUnwrap8<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	hipDeviceSynchronize();
	hipMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), hipMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadRowUnwrap8", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeReadColumnUnwrap8<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	hipDeviceSynchronize();
	hipMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), hipMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeReadColumnUnwrap8", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeDiagonalReadRow<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	hipDeviceSynchronize();
	hipMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), hipMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeDiagonalReadRow", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	transposeDiagonalReadColumn<<<gridUnwrap8,block>>>(d_transpose_matrix, d_matrix, rowCount, columnCount);
	hipDeviceSynchronize();
	hipMemcpy(h_transpose_matrix, d_transpose_matrix, rowCount*columnCount*sizeof(float), hipMemcpyDeviceToHost);
	printf("%-30s: %d\n", "transposeDiagonalReadColumn", checkMatrix(expected_matrix, h_transpose_matrix, rowCount, columnCount));

	hipFree(d_matrix);
	hipFree(d_transpose_matrix);
	free(h_matrix);
	free(h_transpose_matrix);
	free(expected_matrix);
	hipDeviceReset();

	printf("\n");

	return 0;
}
	.text
	.file	"matrix_transpose.hip"
	.globl	_Z31__device_stub__transposeReadRowPfS_ii # -- Begin function _Z31__device_stub__transposeReadRowPfS_ii
	.type	_Z31__device_stub__transposeReadRowPfS_ii,@function
_Z31__device_stub__transposeReadRowPfS_ii: # @_Z31__device_stub__transposeReadRowPfS_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	$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	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%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	24(%rsp), %r12
	leaq	16(%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	$_Z16transposeReadRowPfS_ii, %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	_Z31__device_stub__transposeReadRowPfS_ii, .Lfunc_end0-_Z31__device_stub__transposeReadRowPfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__transposeReadColumnPfS_ii # -- Begin function _Z34__device_stub__transposeReadColumnPfS_ii
	.type	_Z34__device_stub__transposeReadColumnPfS_ii,@function
_Z34__device_stub__transposeReadColumnPfS_ii: # @_Z34__device_stub__transposeReadColumnPfS_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	$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	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%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	24(%rsp), %r12
	leaq	16(%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	$_Z19transposeReadColumnPfS_ii, %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_end1:
	.size	_Z34__device_stub__transposeReadColumnPfS_ii, .Lfunc_end1-_Z34__device_stub__transposeReadColumnPfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z38__device_stub__transposeReadRowUnwrap8PfS_ii # -- Begin function _Z38__device_stub__transposeReadRowUnwrap8PfS_ii
	.type	_Z38__device_stub__transposeReadRowUnwrap8PfS_ii,@function
_Z38__device_stub__transposeReadRowUnwrap8PfS_ii: # @_Z38__device_stub__transposeReadRowUnwrap8PfS_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	$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	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%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	24(%rsp), %r12
	leaq	16(%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	$_Z23transposeReadRowUnwrap8PfS_ii, %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_end2:
	.size	_Z38__device_stub__transposeReadRowUnwrap8PfS_ii, .Lfunc_end2-_Z38__device_stub__transposeReadRowUnwrap8PfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z41__device_stub__transposeReadColumnUnwrap8PfS_ii # -- Begin function _Z41__device_stub__transposeReadColumnUnwrap8PfS_ii
	.type	_Z41__device_stub__transposeReadColumnUnwrap8PfS_ii,@function
_Z41__device_stub__transposeReadColumnUnwrap8PfS_ii: # @_Z41__device_stub__transposeReadColumnUnwrap8PfS_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	$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	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%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	24(%rsp), %r12
	leaq	16(%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	$_Z26transposeReadColumnUnwrap8PfS_ii, %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_end3:
	.size	_Z41__device_stub__transposeReadColumnUnwrap8PfS_ii, .Lfunc_end3-_Z41__device_stub__transposeReadColumnUnwrap8PfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z39__device_stub__transposeDiagonalReadRowPfS_ii # -- Begin function _Z39__device_stub__transposeDiagonalReadRowPfS_ii
	.type	_Z39__device_stub__transposeDiagonalReadRowPfS_ii,@function
_Z39__device_stub__transposeDiagonalReadRowPfS_ii: # @_Z39__device_stub__transposeDiagonalReadRowPfS_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	$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	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%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	24(%rsp), %r12
	leaq	16(%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	$_Z24transposeDiagonalReadRowPfS_ii, %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_end4:
	.size	_Z39__device_stub__transposeDiagonalReadRowPfS_ii, .Lfunc_end4-_Z39__device_stub__transposeDiagonalReadRowPfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z42__device_stub__transposeDiagonalReadColumnPfS_ii # -- Begin function _Z42__device_stub__transposeDiagonalReadColumnPfS_ii
	.type	_Z42__device_stub__transposeDiagonalReadColumnPfS_ii,@function
_Z42__device_stub__transposeDiagonalReadColumnPfS_ii: # @_Z42__device_stub__transposeDiagonalReadColumnPfS_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	$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	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%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	24(%rsp), %r12
	leaq	16(%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	$_Z27transposeDiagonalReadColumnPfS_ii, %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_end5:
	.size	_Z42__device_stub__transposeDiagonalReadColumnPfS_ii, .Lfunc_end5-_Z42__device_stub__transposeDiagonalReadColumnPfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z9transposePfS_ii              # -- Begin function _Z9transposePfS_ii
	.type	_Z9transposePfS_ii,@function
_Z9transposePfS_ii:                     # @_Z9transposePfS_ii
	.cfi_startproc
# %bb.0:
	testl	%ecx, %ecx
	jle	.LBB6_7
# %bb.1:                                # %.preheader.lr.ph
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movl	%ecx, %eax
	movl	%edx, %ecx
	leaq	(,%rax,4), %r8
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
.LBB6_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_4 Depth 2
	testl	%edx, %edx
	jle	.LBB6_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB6_2 Depth=1
	movl	%r9d, %r11d
	leaq	(%rsi,%r11,4), %r11
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
.LBB6_4:                                #   Parent Loop BB6_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	(%r11,%r14,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbx)
	incq	%r14
	addq	%r8, %rbx
	cmpq	%r14, %rcx
	jne	.LBB6_4
.LBB6_5:                                # %._crit_edge
                                        #   in Loop: Header=BB6_2 Depth=1
	incq	%r10
	addl	%edx, %r9d
	addq	$4, %rdi
	cmpq	%rax, %r10
	jne	.LBB6_2
# %bb.6:
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
.LBB6_7:                                # %._crit_edge18
	retq
.Lfunc_end6:
	.size	_Z9transposePfS_ii, .Lfunc_end6-_Z9transposePfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z11checkMatrixPfS_ii           # -- Begin function _Z11checkMatrixPfS_ii
	.type	_Z11checkMatrixPfS_ii,@function
_Z11checkMatrixPfS_ii:                  # @_Z11checkMatrixPfS_ii
	.cfi_startproc
# %bb.0:
	imull	%ecx, %edx
	testl	%edx, %edx
	jle	.LBB7_3
# %bb.1:                                # %.lr.ph.preheader
	movss	(%rdi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%rsi), %xmm0
	jne	.LBB7_2
	jnp	.LBB7_5
.LBB7_2:
	xorl	%eax, %eax
                                        # kill: def $al killed $al killed $eax
	retq
.LBB7_3:
	movb	$1, %al
                                        # kill: def $al killed $al killed $eax
	retq
.LBB7_5:                                # %.lr.ph15.preheader
	movl	%edx, %eax
	movl	$1, %edx
.LBB7_6:                                # %.lr.ph15
                                        # =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	cmpq	%rdx, %rax
	je	.LBB7_8
# %bb.7:                                # %.lr.ph
                                        #   in Loop: Header=BB7_6 Depth=1
	movss	(%rdi,%rcx,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	leaq	1(%rcx), %rdx
	ucomiss	(%rsi,%rcx,4), %xmm0
	jne	.LBB7_8
	jnp	.LBB7_6
.LBB7_8:                                # %._crit_edge.loopexit
	cmpq	%rax, %rcx
	setae	%al
                                        # kill: def $al killed $al killed $eax
	retq
.Lfunc_end7:
	.size	_Z11checkMatrixPfS_ii, .Lfunc_end7-_Z11checkMatrixPfS_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z11printMatrixPfii             # -- Begin function _Z11printMatrixPfii
	.type	_Z11printMatrixPfii,@function
_Z11printMatrixPfii:                    # @_Z11printMatrixPfii
	.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
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, 8(%rsp)                   # 8-byte Spill
	testl	%edx, %edx
	jle	.LBB8_6
# %bb.1:                                # %.preheader.lr.ph
	movl	%esi, %ebx
	movl	%edx, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	%esi, %r12d
	xorl	%ebp, %ebp
	xorl	%r13d, %r13d
.LBB8_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_4 Depth 2
	testl	%ebx, %ebx
	jle	.LBB8_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB8_2 Depth=1
	movl	%ebp, %eax
	movq	8(%rsp), %rcx                   # 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	xorl	%r15d, %r15d
.LBB8_4:                                #   Parent Loop BB8_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cvttss2si	(%r14,%r15,4), %esi
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	incq	%r15
	cmpq	%r15, %r12
	jne	.LBB8_4
.LBB8_5:                                # %._crit_edge
                                        #   in Loop: Header=BB8_2 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	incq	%r13
	addl	%ebx, %ebp
	cmpq	16(%rsp), %r13                  # 8-byte Folded Reload
	jne	.LBB8_2
.LBB8_6:                                # %._crit_edge13
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z11printMatrixPfii, .Lfunc_end8-_Z11printMatrixPfii
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.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
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$10, %edi
	callq	putchar@PLT
	movl	$16384, %edi                    # imm = 0x4000
	callq	malloc
	movq	%rax, %rbx
	xorl	%eax, %eax
.LBB9_1:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, (%rbx,%rax,4)
	incq	%rax
	cmpq	$4096, %rax                     # imm = 0x1000
	jne	.LBB9_1
# %bb.2:
	movl	$16384, %edi                    # imm = 0x4000
	callq	malloc
	movq	%rax, %r14
	movl	$16384, %edi                    # imm = 0x4000
	callq	malloc
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rbx, %rcx
	movq	%r15, %rdx
.LBB9_3:                                # %.preheader.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_4 Depth 2
	movq	%rdx, %rsi
	xorl	%edi, %edi
.LBB9_4:                                #   Parent Loop BB9_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	(%rcx,%rdi,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rsi)
	incq	%rdi
	addq	$256, %rsi                      # imm = 0x100
	cmpq	$64, %rdi
	jne	.LBB9_4
# %bb.5:                                # %._crit_edge.i
                                        #   in Loop: Header=BB9_3 Depth=1
	incq	%rax
	addq	$4, %rdx
	addq	$256, %rcx                      # imm = 0x100
	cmpq	$64, %rax
	jne	.LBB9_3
# %bb.6:                                # %_Z9transposePfS_ii.exit
	movabsq	$137438953504, %r13             # imm = 0x2000000020
	movabsq	$8589934608, %rbp               # imm = 0x200000010
	leaq	16(%rsp), %r12
	movl	$16384, %esi                    # imm = 0x4000
	movq	%r12, %rdi
	callq	hipMalloc
	movq	(%r12), %rdi
	movl	$16384, %edx                    # imm = 0x4000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rsp, %rdi
	movl	$16384, %esi                    # imm = 0x4000
	callq	hipMalloc
	addq	$-14, %rbp
	xorl	%r12d, %r12d
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_8
# %bb.7:
	movq	(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_Z31__device_stub__transposeReadRowPfS_ii
.LBB9_8:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	movl	$16384, %edx                    # imm = 0x4000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movss	(%r15), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 12(%rsp)                 # 4-byte Spill
	ucomiss	(%r14), %xmm0
	jne	.LBB9_13
	jp	.LBB9_13
# %bb.9:                                # %.lr.ph.preheader
	xorl	%ecx, %ecx
.LBB9_10:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	$4095, %rcx                     # imm = 0xFFF
	je	.LBB9_12
# %bb.11:                               # %.lr.ph.i
                                        #   in Loop: Header=BB9_10 Depth=1
	movss	4(%r15,%rax,4), %xmm0           # xmm0 = mem[0],zero,zero,zero
	leaq	1(%rax), %rcx
	ucomiss	4(%r14,%rax,4), %xmm0
	jne	.LBB9_12
	jnp	.LBB9_10
.LBB9_12:                               # %_Z11checkMatrixPfS_ii.exit.loopexit
	xorl	%r12d, %r12d
	cmpq	$4095, %rax                     # imm = 0xFFF
	setae	%r12b
.LBB9_13:                               # %_Z11checkMatrixPfS_ii.exit
	xorl	%r13d, %r13d
	movl	$.L.str.2, %edi
	movl	$.L.str.3, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	printf
	movq	%rbp, %rdi
	movl	$1, %esi
	movabsq	$137438953504, %r12             # imm = 0x2000000020
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_15
# %bb.14:
	movq	(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_Z34__device_stub__transposeReadColumnPfS_ii
.LBB9_15:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	movl	$16384, %edx                    # imm = 0x4000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%r14), %xmm0
	jne	.LBB9_20
	jp	.LBB9_20
# %bb.16:                               # %.lr.ph204.preheader
	xorl	%ecx, %ecx
.LBB9_17:                               # %.lr.ph204
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	$4095, %rcx                     # imm = 0xFFF
	je	.LBB9_19
# %bb.18:                               # %.lr.ph.i139
                                        #   in Loop: Header=BB9_17 Depth=1
	movss	4(%r15,%rax,4), %xmm0           # xmm0 = mem[0],zero,zero,zero
	leaq	1(%rax), %rcx
	ucomiss	4(%r14,%rax,4), %xmm0
	jne	.LBB9_19
	jnp	.LBB9_17
.LBB9_19:                               # %_Z11checkMatrixPfS_ii.exit145.loopexit
	xorl	%r13d, %r13d
	cmpq	$4095, %rax                     # imm = 0xFFF
	setae	%r13b
.LBB9_20:                               # %_Z11checkMatrixPfS_ii.exit145
	xorl	%ebp, %ebp
	movl	$.L.str.2, %edi
	movl	$.L.str.4, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	printf
	movabsq	$8589934608, %rdi               # imm = 0x200000010
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_22
# %bb.21:
	movq	(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_Z38__device_stub__transposeReadRowUnwrap8PfS_ii
.LBB9_22:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	movl	$16384, %edx                    # imm = 0x4000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%r14), %xmm0
	jne	.LBB9_27
	jp	.LBB9_27
# %bb.23:                               # %.lr.ph208.preheader
	xorl	%ecx, %ecx
.LBB9_24:                               # %.lr.ph208
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	$4095, %rcx                     # imm = 0xFFF
	je	.LBB9_26
# %bb.25:                               # %.lr.ph.i146
                                        #   in Loop: Header=BB9_24 Depth=1
	movss	4(%r15,%rax,4), %xmm0           # xmm0 = mem[0],zero,zero,zero
	leaq	1(%rax), %rcx
	ucomiss	4(%r14,%rax,4), %xmm0
	jne	.LBB9_26
	jnp	.LBB9_24
.LBB9_26:                               # %_Z11checkMatrixPfS_ii.exit152.loopexit
	xorl	%ebp, %ebp
	cmpq	$4095, %rax                     # imm = 0xFFF
	setae	%bpl
.LBB9_27:                               # %_Z11checkMatrixPfS_ii.exit152
	xorl	%r13d, %r13d
	movl	$.L.str.2, %edi
	movl	$.L.str.5, %esi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	printf
	movabsq	$8589934608, %rdi               # imm = 0x200000010
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_29
# %bb.28:
	movq	(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_Z41__device_stub__transposeReadColumnUnwrap8PfS_ii
.LBB9_29:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	movl	$16384, %edx                    # imm = 0x4000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%r14), %xmm0
	jne	.LBB9_34
	jp	.LBB9_34
# %bb.30:                               # %.lr.ph212.preheader
	xorl	%ecx, %ecx
.LBB9_31:                               # %.lr.ph212
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	$4095, %rcx                     # imm = 0xFFF
	je	.LBB9_33
# %bb.32:                               # %.lr.ph.i153
                                        #   in Loop: Header=BB9_31 Depth=1
	movss	4(%r15,%rax,4), %xmm0           # xmm0 = mem[0],zero,zero,zero
	leaq	1(%rax), %rcx
	ucomiss	4(%r14,%rax,4), %xmm0
	jne	.LBB9_33
	jnp	.LBB9_31
.LBB9_33:                               # %_Z11checkMatrixPfS_ii.exit159.loopexit
	xorl	%r13d, %r13d
	cmpq	$4095, %rax                     # imm = 0xFFF
	setae	%r13b
.LBB9_34:                               # %_Z11checkMatrixPfS_ii.exit159
	xorl	%ebp, %ebp
	movl	$.L.str.2, %edi
	movl	$.L.str.6, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	printf
	movabsq	$8589934608, %rdi               # imm = 0x200000010
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_36
# %bb.35:
	movq	(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_Z39__device_stub__transposeDiagonalReadRowPfS_ii
.LBB9_36:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	movl	$16384, %edx                    # imm = 0x4000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%r14), %xmm0
	jne	.LBB9_41
	jp	.LBB9_41
# %bb.37:                               # %.lr.ph216.preheader
	xorl	%ecx, %ecx
.LBB9_38:                               # %.lr.ph216
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	$4095, %rcx                     # imm = 0xFFF
	je	.LBB9_40
# %bb.39:                               # %.lr.ph.i160
                                        #   in Loop: Header=BB9_38 Depth=1
	movss	4(%r15,%rax,4), %xmm0           # xmm0 = mem[0],zero,zero,zero
	leaq	1(%rax), %rcx
	ucomiss	4(%r14,%rax,4), %xmm0
	jne	.LBB9_40
	jnp	.LBB9_38
.LBB9_40:                               # %_Z11checkMatrixPfS_ii.exit166.loopexit
	xorl	%ebp, %ebp
	cmpq	$4095, %rax                     # imm = 0xFFF
	setae	%bpl
.LBB9_41:                               # %_Z11checkMatrixPfS_ii.exit166
	xorl	%r13d, %r13d
	movl	$.L.str.2, %edi
	movl	$.L.str.7, %esi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	printf
	movabsq	$8589934608, %rdi               # imm = 0x200000010
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB9_43
# %bb.42:
	movq	(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_Z42__device_stub__transposeDiagonalReadColumnPfS_ii
.LBB9_43:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rsi
	movl	$16384, %edx                    # imm = 0x4000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	ucomiss	(%r14), %xmm0
	jne	.LBB9_48
	jp	.LBB9_48
# %bb.44:                               # %.lr.ph220.preheader
	xorl	%ecx, %ecx
.LBB9_45:                               # %.lr.ph220
                                        # =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	cmpq	$4095, %rcx                     # imm = 0xFFF
	je	.LBB9_47
# %bb.46:                               # %.lr.ph.i167
                                        #   in Loop: Header=BB9_45 Depth=1
	movss	4(%r15,%rax,4), %xmm0           # xmm0 = mem[0],zero,zero,zero
	leaq	1(%rax), %rcx
	ucomiss	4(%r14,%rax,4), %xmm0
	jne	.LBB9_47
	jnp	.LBB9_45
.LBB9_47:                               # %_Z11checkMatrixPfS_ii.exit173.loopexit
	xorl	%r13d, %r13d
	cmpq	$4095, %rax                     # imm = 0xFFF
	setae	%r13b
.LBB9_48:                               # %_Z11checkMatrixPfS_ii.exit173
	movl	$.L.str.2, %edi
	movl	$.L.str.8, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	printf
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	(%rsp), %rdi
	callq	hipFree
	movq	%rbx, %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	movq	%r15, %rdi
	callq	free
	callq	hipDeviceReset
	movl	$10, %edi
	callq	putchar@PLT
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	main, .Lfunc_end9-main
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	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	.LBB10_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB10_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16transposeReadRowPfS_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	$_Z19transposeReadColumnPfS_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	$_Z23transposeReadRowUnwrap8PfS_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	$_Z26transposeReadColumnUnwrap8PfS_ii, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z24transposeDiagonalReadRowPfS_ii, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z27transposeDiagonalReadColumnPfS_ii, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %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_end10:
	.size	__hip_module_ctor, .Lfunc_end10-__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	.LBB11_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
.LBB11_2:
	retq
.Lfunc_end11:
	.size	__hip_module_dtor, .Lfunc_end11-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z16transposeReadRowPfS_ii,@object # @_Z16transposeReadRowPfS_ii
	.section	.rodata,"a",@progbits
	.globl	_Z16transposeReadRowPfS_ii
	.p2align	3, 0x0
_Z16transposeReadRowPfS_ii:
	.quad	_Z31__device_stub__transposeReadRowPfS_ii
	.size	_Z16transposeReadRowPfS_ii, 8

	.type	_Z19transposeReadColumnPfS_ii,@object # @_Z19transposeReadColumnPfS_ii
	.globl	_Z19transposeReadColumnPfS_ii
	.p2align	3, 0x0
_Z19transposeReadColumnPfS_ii:
	.quad	_Z34__device_stub__transposeReadColumnPfS_ii
	.size	_Z19transposeReadColumnPfS_ii, 8

	.type	_Z23transposeReadRowUnwrap8PfS_ii,@object # @_Z23transposeReadRowUnwrap8PfS_ii
	.globl	_Z23transposeReadRowUnwrap8PfS_ii
	.p2align	3, 0x0
_Z23transposeReadRowUnwrap8PfS_ii:
	.quad	_Z38__device_stub__transposeReadRowUnwrap8PfS_ii
	.size	_Z23transposeReadRowUnwrap8PfS_ii, 8

	.type	_Z26transposeReadColumnUnwrap8PfS_ii,@object # @_Z26transposeReadColumnUnwrap8PfS_ii
	.globl	_Z26transposeReadColumnUnwrap8PfS_ii
	.p2align	3, 0x0
_Z26transposeReadColumnUnwrap8PfS_ii:
	.quad	_Z41__device_stub__transposeReadColumnUnwrap8PfS_ii
	.size	_Z26transposeReadColumnUnwrap8PfS_ii, 8

	.type	_Z24transposeDiagonalReadRowPfS_ii,@object # @_Z24transposeDiagonalReadRowPfS_ii
	.globl	_Z24transposeDiagonalReadRowPfS_ii
	.p2align	3, 0x0
_Z24transposeDiagonalReadRowPfS_ii:
	.quad	_Z39__device_stub__transposeDiagonalReadRowPfS_ii
	.size	_Z24transposeDiagonalReadRowPfS_ii, 8

	.type	_Z27transposeDiagonalReadColumnPfS_ii,@object # @_Z27transposeDiagonalReadColumnPfS_ii
	.globl	_Z27transposeDiagonalReadColumnPfS_ii
	.p2align	3, 0x0
_Z27transposeDiagonalReadColumnPfS_ii:
	.quad	_Z42__device_stub__transposeDiagonalReadColumnPfS_ii
	.size	_Z27transposeDiagonalReadColumnPfS_ii, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"%-3d "
	.size	.L.str, 6

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"%-30s: %d\n"
	.size	.L.str.2, 11

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

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"transposeReadColumn"
	.size	.L.str.4, 20

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"transposeReadRowUnwrap8"
	.size	.L.str.5, 24

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

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

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"transposeDiagonalReadColumn"
	.size	.L.str.8, 28

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z16transposeReadRowPfS_ii"
	.size	.L__unnamed_1, 27

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z19transposeReadColumnPfS_ii"
	.size	.L__unnamed_2, 30

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z23transposeReadRowUnwrap8PfS_ii"
	.size	.L__unnamed_3, 34

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z26transposeReadColumnUnwrap8PfS_ii"
	.size	.L__unnamed_4, 37

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z24transposeDiagonalReadRowPfS_ii"
	.size	.L__unnamed_5, 35

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z27transposeDiagonalReadColumnPfS_ii"
	.size	.L__unnamed_6, 38

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z31__device_stub__transposeReadRowPfS_ii
	.addrsig_sym _Z34__device_stub__transposeReadColumnPfS_ii
	.addrsig_sym _Z38__device_stub__transposeReadRowUnwrap8PfS_ii
	.addrsig_sym _Z41__device_stub__transposeReadColumnUnwrap8PfS_ii
	.addrsig_sym _Z39__device_stub__transposeDiagonalReadRowPfS_ii
	.addrsig_sym _Z42__device_stub__transposeDiagonalReadColumnPfS_ii
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z16transposeReadRowPfS_ii
	.addrsig_sym _Z19transposeReadColumnPfS_ii
	.addrsig_sym _Z23transposeReadRowUnwrap8PfS_ii
	.addrsig_sym _Z26transposeReadColumnUnwrap8PfS_ii
	.addrsig_sym _Z24transposeDiagonalReadRowPfS_ii
	.addrsig_sym _Z27transposeDiagonalReadColumnPfS_ii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z16transposeReadRowPfS_ii ; -- Begin function _Z16transposeReadRowPfS_ii
	.globl	_Z16transposeReadRowPfS_ii
	.p2align	8
	.type	_Z16transposeReadRowPfS_ii,@function
_Z16transposeReadRowPfS_ii:             ; @_Z16transposeReadRowPfS_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b64 s[4:5], s[0:1], 0x10
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s2, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s3, v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s5, v0
	v_cmp_gt_i32_e64 s2, s4, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, v1, s4, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v3, vcc_lo
	global_load_b32 v4, v[2:3], off
	v_mad_u64_u32 v[2:3], null, v0, s5, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v4, off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16transposeReadRowPfS_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 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	_Z16transposeReadRowPfS_ii, .Lfunc_end0-_Z16transposeReadRowPfS_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 228
; 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 : 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
	.protected	_Z19transposeReadColumnPfS_ii ; -- Begin function _Z19transposeReadColumnPfS_ii
	.globl	_Z19transposeReadColumnPfS_ii
	.p2align	8
	.type	_Z19transposeReadColumnPfS_ii,@function
_Z19transposeReadColumnPfS_ii:          ; @_Z19transposeReadColumnPfS_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b64 s[4:5], s[0:1], 0x10
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s2, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s3, v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_i32_e32 vcc_lo, s5, v0
	v_cmp_gt_i32_e64 s2, s4, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB1_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[2:3], null, v0, s5, v[1:2]
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v3, vcc_lo
	global_load_b32 v4, v[2:3], off
	v_mad_u64_u32 v[2:3], null, v1, s4, v[0:1]
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	v_add_co_u32 v0, vcc_lo, s0, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v4, off
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19transposeReadColumnPfS_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 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_end1:
	.size	_Z19transposeReadColumnPfS_ii, .Lfunc_end1-_Z19transposeReadColumnPfS_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 232
; 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 : 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
	.protected	_Z23transposeReadRowUnwrap8PfS_ii ; -- Begin function _Z23transposeReadRowUnwrap8PfS_ii
	.globl	_Z23transposeReadRowUnwrap8PfS_ii
	.p2align	8
	.type	_Z23transposeReadRowUnwrap8PfS_ii,@function
_Z23transposeReadRowUnwrap8PfS_ii:      ; @_Z23transposeReadRowUnwrap8PfS_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b64 s[4:5], s[0:1], 0x10
	v_and_b32_e32 v3, 0x3ff, v0
	v_bfe_u32 v0, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s6, s2, 0xffff
	s_lshr_b32 s2, s2, 16
	v_mad_u64_u32 v[1:2], null, s14, s6, v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[4:5], null, s6, 7, v[1:2]
	v_mad_u64_u32 v[2:3], null, s15, s2, v[0:1]
	v_cmp_gt_u32_e32 vcc_lo, s5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e64 s2, s4, v2
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mad_u64_u32 v[3:4], null, v2, s4, v[1:2]
	s_mul_i32 s4, s6, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v4, 31, v3
	v_add_nc_u32_e32 v0, s6, v3
	v_lshlrev_b64 v[4:5], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s2, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v5, vcc_lo
	global_load_b32 v7, v[4:5], off
	v_mad_u64_u32 v[4:5], null, v1, s5, v[1:2]
	v_mov_b32_e32 v1, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[2:3], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s6, v0
	v_add_co_u32 v2, vcc_lo, s0, v2
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[2:3], v7, off
	global_load_b32 v7, v[5:6], off
	v_dual_mov_b32 v3, v1 :: v_dual_add_nc_u32 v2, s4, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_nc_u32_e32 v2, s4, v2
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	v_mov_b32_e32 v3, v1
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s6, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_co_u32 v5, vcc_lo, s2, v5
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	global_load_b32 v7, v[5:6], off
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_co_u32 v5, vcc_lo, s2, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	global_load_b32 v7, v[5:6], off
	v_dual_mov_b32 v3, v1 :: v_dual_add_nc_u32 v2, s4, v2
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_nc_u32_e32 v2, s4, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	v_dual_mov_b32 v3, v1 :: v_dual_add_nc_u32 v0, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s6, v0
	v_add_nc_u32_e32 v2, s4, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	global_load_b32 v7, v[5:6], off
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s6, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	global_load_b32 v7, v[5:6], off
	v_mov_b32_e32 v3, v1
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s6, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_nc_u32_e32 v2, s4, v2
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	v_mov_b32_e32 v3, v1
	global_load_b32 v7, v[5:6], off
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s4, v2
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	global_load_b32 v3, v[5:6], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v3, off
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z23transposeReadRowUnwrap8PfS_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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
	.text
.Lfunc_end2:
	.size	_Z23transposeReadRowUnwrap8PfS_ii, .Lfunc_end2-_Z23transposeReadRowUnwrap8PfS_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 804
; 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
	.text
	.protected	_Z26transposeReadColumnUnwrap8PfS_ii ; -- Begin function _Z26transposeReadColumnUnwrap8PfS_ii
	.globl	_Z26transposeReadColumnUnwrap8PfS_ii
	.p2align	8
	.type	_Z26transposeReadColumnUnwrap8PfS_ii,@function
_Z26transposeReadColumnUnwrap8PfS_ii:   ; @_Z26transposeReadColumnUnwrap8PfS_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b64 s[4:5], s[0:1], 0x10
	v_and_b32_e32 v3, 0x3ff, v0
	v_bfe_u32 v0, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s6, s2, 0xffff
	s_lshr_b32 s2, s2, 16
	v_mad_u64_u32 v[1:2], null, s14, s6, v[3:4]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[4:5], null, s6, 7, v[1:2]
	v_mad_u64_u32 v[2:3], null, s15, s2, v[0:1]
	v_cmp_gt_u32_e32 vcc_lo, s5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e64 s2, s4, v2
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB3_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mad_u64_u32 v[3:4], null, v1, s5, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[4:5], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s2, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v5, vcc_lo
	global_load_b32 v7, v[4:5], off
	v_mad_u64_u32 v[4:5], null, v2, s4, v[1:2]
	s_mul_i32 s4, s6, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_mov_b32 v1, 0 :: v_dual_add_nc_u32 v0, s4, v3
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[2:3], 2, v[4:5]
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s4, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[2:3], v7, off
	global_load_b32 v7, v[5:6], off
	v_dual_mov_b32 v3, v1 :: v_dual_add_nc_u32 v2, s6, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_nc_u32_e32 v2, s6, v2
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	v_mov_b32_e32 v3, v1
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s4, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_co_u32 v5, vcc_lo, s2, v5
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	global_load_b32 v7, v[5:6], off
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_co_u32 v5, vcc_lo, s2, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	global_load_b32 v7, v[5:6], off
	v_dual_mov_b32 v3, v1 :: v_dual_add_nc_u32 v2, s6, v2
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_nc_u32_e32 v2, s6, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	v_dual_mov_b32 v3, v1 :: v_dual_add_nc_u32 v0, s4, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s4, v0
	v_add_nc_u32_e32 v2, s6, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	global_load_b32 v7, v[5:6], off
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s4, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	global_load_b32 v7, v[5:6], off
	v_mov_b32_e32 v3, v1
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s4, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	v_add_nc_u32_e32 v2, s6, v2
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	v_mov_b32_e32 v3, v1
	global_load_b32 v7, v[5:6], off
	v_lshlrev_b64 v[5:6], 2, v[0:1]
	v_add_nc_u32_e32 v0, s6, v2
	v_lshlrev_b64 v[3:4], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	v_add_co_u32 v5, vcc_lo, s2, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s3, v6, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[3:4], v7, off
	global_load_b32 v3, v[5:6], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v3, off
.LBB3_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z26transposeReadColumnUnwrap8PfS_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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
	.text
.Lfunc_end3:
	.size	_Z26transposeReadColumnUnwrap8PfS_ii, .Lfunc_end3-_Z26transposeReadColumnUnwrap8PfS_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 808
; 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
	.text
	.protected	_Z24transposeDiagonalReadRowPfS_ii ; -- Begin function _Z24transposeDiagonalReadRowPfS_ii
	.globl	_Z24transposeDiagonalReadRowPfS_ii
	.p2align	8
	.type	_Z24transposeDiagonalReadRowPfS_ii,@function
_Z24transposeDiagonalReadRowPfS_ii:     ; @_Z24transposeDiagonalReadRowPfS_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x18
	s_load_b32 s5, s[0:1], 0x24
	s_add_i32 s6, s14, s15
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s4
	s_sub_i32 s3, 0, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s2, v1
	s_mul_i32 s3, s3, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s3, s2, s3
	s_add_i32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s2, s6, s2
	s_mul_i32 s2, s2, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_sub_i32 s6, s6, s2
	s_load_b64 s[2:3], s[0:1], 0x10
	s_sub_i32 s7, s6, s4
	s_cmp_ge_u32 s6, s4
	s_cselect_b32 s6, s7, s6
	s_sub_i32 s7, s6, s4
	s_cmp_ge_u32 s6, s4
	s_cselect_b32 s4, s7, s6
	s_lshr_b32 s6, s5, 16
	s_and_b32 s5, s5, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, s4, s5, v[2:3]
	v_mad_u64_u32 v[1:2], null, s14, s6, v[3:4]
	s_mov_b32 s4, exec_lo
	v_max_i32_e32 v2, v0, v1
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s3, v2
	s_cbranch_execz .LBB4_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, v1, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	global_load_b32 v4, v[2:3], off
	v_mad_u64_u32 v[2:3], null, v0, s3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v4, off
.LBB4_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z24transposeDiagonalReadRowPfS_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 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_end4:
	.size	_Z24transposeDiagonalReadRowPfS_ii, .Lfunc_end4-_Z24transposeDiagonalReadRowPfS_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 336
; 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 : 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
	.protected	_Z27transposeDiagonalReadColumnPfS_ii ; -- Begin function _Z27transposeDiagonalReadColumnPfS_ii
	.globl	_Z27transposeDiagonalReadColumnPfS_ii
	.p2align	8
	.type	_Z27transposeDiagonalReadColumnPfS_ii,@function
_Z27transposeDiagonalReadColumnPfS_ii:  ; @_Z27transposeDiagonalReadColumnPfS_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x18
	s_load_b32 s5, s[0:1], 0x24
	s_add_i32 s6, s14, s15
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s4
	s_sub_i32 s3, 0, s4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s2, v1
	s_mul_i32 s3, s3, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s3, s2, s3
	s_add_i32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_hi_u32 s2, s6, s2
	s_mul_i32 s2, s2, s4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_sub_i32 s6, s6, s2
	s_load_b64 s[2:3], s[0:1], 0x10
	s_sub_i32 s7, s6, s4
	s_cmp_ge_u32 s6, s4
	s_cselect_b32 s6, s7, s6
	s_sub_i32 s7, s6, s4
	s_cmp_ge_u32 s6, s4
	s_cselect_b32 s4, s7, s6
	s_lshr_b32 s6, s5, 16
	s_and_b32 s5, s5, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, s4, s5, v[2:3]
	v_mad_u64_u32 v[1:2], null, s14, s6, v[3:4]
	s_mov_b32 s4, exec_lo
	v_max_i32_e32 v2, v0, v1
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e64 s3, v2
	s_cbranch_execz .LBB5_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, v0, s3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	global_load_b32 v4, v[2:3], off
	v_mad_u64_u32 v[2:3], null, v1, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v4, off
.LBB5_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z27transposeDiagonalReadColumnPfS_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 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_end5:
	.size	_Z27transposeDiagonalReadColumnPfS_ii, .Lfunc_end5-_Z27transposeDiagonalReadColumnPfS_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 336
; 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 : 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
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16transposeReadRowPfS_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16transposeReadRowPfS_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z19transposeReadColumnPfS_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z19transposeReadColumnPfS_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z23transposeReadRowUnwrap8PfS_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z23transposeReadRowUnwrap8PfS_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
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z26transposeReadColumnUnwrap8PfS_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z26transposeReadColumnUnwrap8PfS_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
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z24transposeDiagonalReadRowPfS_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z24transposeDiagonalReadRowPfS_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z27transposeDiagonalReadColumnPfS_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z27transposeDiagonalReadColumnPfS_ii.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
