#ifndef POP_H
#define POP_H

#pragma once

#include "util/device_utils.cuh"

// Populates the possValues array
// Removes all values that are not possible, based on starting board



// returns an array containing all the Squares in the current row
__device__
void getRow(int tid, Square* board, Square* localRow) {

	int rowNum = (tid/9); // had floor here before
	int startOfRow = rowNum*9;
	//Square output[9];

	for (int i = 0; i<9; i++) {
		localRow[i].value = board[startOfRow + i].value;
		localRow[i].isLocked = board[startOfRow + i].isLocked;

		for (int j=0; j<9; j++) {
			localRow[i].possValues[j] = board[startOfRow + i].possValues[j];
		}
	}

	//return output;

}

__device__
void getCol(int tid, Square* board, Square* localCol) {

	int colNum = tid%9; // also first element of the column
	//Square output[9];

	for (int i = 0; i<9; i++) {
		localCol[i].value = board[colNum + (9*i)].value;
		localCol[i].isLocked = board[colNum + (9*i)].isLocked;

		for (int j=0; j<9; j++) {
			localCol[i].possValues[j] = board[colNum + (9*i)].possValues[j];
		}

	}

	//return output;

}

__device__
void getBlock(int tid, Square* board, Square* localBlock) {

	int blockRow; // tells us if it's in the top/mid/bot

	if (tid<27)
		blockRow = 0; //top

	else if (tid<54)
		blockRow = 1; //middle

	else
		blockRow = 2; //bottom


	int blockCol; // tells us if it's on the left/mid/right
	int col = tid%9;

	if (col<3)
		blockCol = 0; //left side

	else if (col<6)
		blockCol = 1; //middle

	else
		blockCol = 2; //right side


	//now we know exactly which block we are dealing with, sooooo

	int starter = blockRow*27 + blockCol*3;
	int offset;

	for (int i=0; i<9; i++) {

		if (i<3)
			offset = i;
		else if (i<6)
			offset = i -3 +9;
		else
			offset = i -6 +18;

		localBlock[i].value = board[starter + offset].value;
		localBlock[i].isLocked = board[starter + offset].isLocked;

		for(int j=0; j<9; j++)
				localBlock[i].possValues[j] = board[starter+offset].possValues[j];
	}


/*	localBlock =
		{board[starter], board[starter+1], board[starter+2],
		board[starter+9], board[starter+10], board[starter+11],
		board[starter+18], board[starter+19], board[starter+20]};
*/	//return output;

}


__global__ void populate(Square* board) {

	__shared__ Square s_board[81];

	if (threadIdx.x == 0) {
		for(int i = 0; i<81; i++) {
			s_board[i].value = board[i].value;
			s_board[i].isLocked = board[i].isLocked;

			for (int j=0; j<9; j++) {
					s_board[i].possValues[j] = board[i].possValues[j];
			}
		}
	}

	__syncthreads();

	int tid = threadIdx.x + blockIdx.x * blockDim.x;

	if (tid<81) { //one thread per square

		// start by filling the possValues array with numbers 1-9
		// board[tid].possValues = (1, 2, 3, 4, 5, 6, 7, 8, 9);
		// this is now done in io_utils.cuh

		// initialize arrays for the current square's row/col/block

		Square localRow[9];
		getRow(tid, s_board, localRow);
		Square localCol[9];
		getCol(tid, s_board, localCol);
		Square localBlock[9];
		getBlock(tid, s_board, localBlock);

		int localRowValues[9];
		int localColValues[9];
		int localBlockValues[9];

		for (int i=0; i<9; i++) {
			localRowValues[i] = localRow[i].value;
			localColValues[i] = localCol[i].value;
			localBlockValues[i] = localBlock[i].value;
		}


		// use popoff to remove invalid values from the possValues array

		//int cur;
		int rowVal, colVal, blockVal;
		for (int i=0; i<9; i++) {
			//cur = s_board[tid].possValues[i];

			rowVal = localRowValues[i];
			colVal = localColValues[i];
			blockVal = localBlockValues[i];

			if (rowVal>=1 && rowVal<=9)
				s_board[tid].possValues[rowVal-1] = 0;

//			if (colVal != 0)
			if (colVal>=1 && colVal<=9)
				s_board[tid].possValues[colVal-1] = 0;

			if (blockVal>=1 && blockVal<=9)
				s_board[tid].possValues[blockVal-1] = 0;


/*			if (cur==NULL)
				break;

			// check if another Square in the row/col/block makes cur
				// invalid for the current Square
			if (!validNum(cur, localBlockValues, localRowValues,
					localColValues)) {

				//if there is a conflict, pop it off
				//isPossibleNum checks if it's even in the
				//array of possValues
				popoff(i, s_board[i].possValues);
*/


		}
	}

	__syncthreads();

	if (threadIdx.x == 0) {
		for (int i=0; i<81; i++) {
			board[i].value = s_board[i].value;
			board[i].isLocked = s_board[i].isLocked;

			for (int j=0; j<9; j++)
				board[i].possValues[j] = s_board[i].possValues[j];

		}
	}

}
#endif

	.file	"tmpxft_0033b662_00000000-6_populate.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2016:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2016:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z8validNumiPiS_S_
	.type	_Z8validNumiPiS_S_, @function
_Z8validNumiPiS_S_:
.LFB2008:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2008:
	.size	_Z8validNumiPiS_S_, .-_Z8validNumiPiS_S_
	.globl	_Z13isPossibleNumiPi
	.type	_Z13isPossibleNumiPi, @function
_Z13isPossibleNumiPi:
.LFB2009:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2009:
	.size	_Z13isPossibleNumiPi, .-_Z13isPossibleNumiPi
	.globl	_Z6popoffiPi
	.type	_Z6popoffiPi, @function
_Z6popoffiPi:
.LFB2010:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2010:
	.size	_Z6popoffiPi, .-_Z6popoffiPi
	.globl	_Z6getRowiP6SquareS0_
	.type	_Z6getRowiP6SquareS0_, @function
_Z6getRowiP6SquareS0_:
.LFB2011:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2011:
	.size	_Z6getRowiP6SquareS0_, .-_Z6getRowiP6SquareS0_
	.globl	_Z6getColiP6SquareS0_
	.type	_Z6getColiP6SquareS0_, @function
_Z6getColiP6SquareS0_:
.LFB2158:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2158:
	.size	_Z6getColiP6SquareS0_, .-_Z6getColiP6SquareS0_
	.globl	_Z8getBlockiP6SquareS0_
	.type	_Z8getBlockiP6SquareS0_, @function
_Z8getBlockiP6SquareS0_:
.LFB2160:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2160:
	.size	_Z8getBlockiP6SquareS0_, .-_Z8getBlockiP6SquareS0_
	.globl	_Z33__device_stub__Z8populateP6SquareP6Square
	.type	_Z33__device_stub__Z8populateP6SquareP6Square, @function
_Z33__device_stub__Z8populateP6SquareP6Square:
.LFB2038:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L14
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z8populateP6Square(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L14:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2038:
	.size	_Z33__device_stub__Z8populateP6SquareP6Square, .-_Z33__device_stub__Z8populateP6SquareP6Square
	.globl	_Z8populateP6Square
	.type	_Z8populateP6Square, @function
_Z8populateP6Square:
.LFB2039:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z8populateP6SquareP6Square
	.cfi_endproc
.LFE2039:
	.size	_Z8populateP6Square, .-_Z8populateP6Square
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z8populateP6Square"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2041:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z8populateP6Square(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2041:
	.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:

#ifndef POP_H
#include <hip/hip_runtime.h>

#define POP_H

#pragma once

#include "util/device_utils.cuh"

// Populates the possValues array
// Removes all values that are not possible, based on starting board



// returns an array containing all the Squares in the current row
__device__
void getRow(int tid, Square* board, Square* localRow) {

	int rowNum = (tid/9); // had floor here before
	int startOfRow = rowNum*9;
	//Square output[9];

	for (int i = 0; i<9; i++) {
		localRow[i].value = board[startOfRow + i].value;
		localRow[i].isLocked = board[startOfRow + i].isLocked;

		for (int j=0; j<9; j++) {
			localRow[i].possValues[j] = board[startOfRow + i].possValues[j];
		}
	}

	//return output;

}

__device__
void getCol(int tid, Square* board, Square* localCol) {

	int colNum = tid%9; // also first element of the column
	//Square output[9];

	for (int i = 0; i<9; i++) {
		localCol[i].value = board[colNum + (9*i)].value;
		localCol[i].isLocked = board[colNum + (9*i)].isLocked;

		for (int j=0; j<9; j++) {
			localCol[i].possValues[j] = board[colNum + (9*i)].possValues[j];
		}

	}

	//return output;

}

__device__
void getBlock(int tid, Square* board, Square* localBlock) {

	int blockRow; // tells us if it's in the top/mid/bot

	if (tid<27)
		blockRow = 0; //top

	else if (tid<54)
		blockRow = 1; //middle

	else
		blockRow = 2; //bottom


	int blockCol; // tells us if it's on the left/mid/right
	int col = tid%9;

	if (col<3)
		blockCol = 0; //left side

	else if (col<6)
		blockCol = 1; //middle

	else
		blockCol = 2; //right side


	//now we know exactly which block we are dealing with, sooooo

	int starter = blockRow*27 + blockCol*3;
	int offset;

	for (int i=0; i<9; i++) {

		if (i<3)
			offset = i;
		else if (i<6)
			offset = i -3 +9;
		else
			offset = i -6 +18;

		localBlock[i].value = board[starter + offset].value;
		localBlock[i].isLocked = board[starter + offset].isLocked;

		for(int j=0; j<9; j++)
				localBlock[i].possValues[j] = board[starter+offset].possValues[j];
	}


/*	localBlock =
		{board[starter], board[starter+1], board[starter+2],
		board[starter+9], board[starter+10], board[starter+11],
		board[starter+18], board[starter+19], board[starter+20]};
*/	//return output;

}


__global__ void populate(Square* board) {

	__shared__ Square s_board[81];

	if (threadIdx.x == 0) {
		for(int i = 0; i<81; i++) {
			s_board[i].value = board[i].value;
			s_board[i].isLocked = board[i].isLocked;

			for (int j=0; j<9; j++) {
					s_board[i].possValues[j] = board[i].possValues[j];
			}
		}
	}

	__syncthreads();

	int tid = threadIdx.x + blockIdx.x * blockDim.x;

	if (tid<81) { //one thread per square

		// start by filling the possValues array with numbers 1-9
		// board[tid].possValues = (1, 2, 3, 4, 5, 6, 7, 8, 9);
		// this is now done in io_utils.cuh

		// initialize arrays for the current square's row/col/block

		Square localRow[9];
		getRow(tid, s_board, localRow);
		Square localCol[9];
		getCol(tid, s_board, localCol);
		Square localBlock[9];
		getBlock(tid, s_board, localBlock);

		int localRowValues[9];
		int localColValues[9];
		int localBlockValues[9];

		for (int i=0; i<9; i++) {
			localRowValues[i] = localRow[i].value;
			localColValues[i] = localCol[i].value;
			localBlockValues[i] = localBlock[i].value;
		}


		// use popoff to remove invalid values from the possValues array

		//int cur;
		int rowVal, colVal, blockVal;
		for (int i=0; i<9; i++) {
			//cur = s_board[tid].possValues[i];

			rowVal = localRowValues[i];
			colVal = localColValues[i];
			blockVal = localBlockValues[i];

			if (rowVal>=1 && rowVal<=9)
				s_board[tid].possValues[rowVal-1] = 0;

//			if (colVal != 0)
			if (colVal>=1 && colVal<=9)
				s_board[tid].possValues[colVal-1] = 0;

			if (blockVal>=1 && blockVal<=9)
				s_board[tid].possValues[blockVal-1] = 0;


/*			if (cur==NULL)
				break;

			// check if another Square in the row/col/block makes cur
				// invalid for the current Square
			if (!validNum(cur, localBlockValues, localRowValues,
					localColValues)) {

				//if there is a conflict, pop it off
				//isPossibleNum checks if it's even in the
				//array of possValues
				popoff(i, s_board[i].possValues);
*/


		}
	}

	__syncthreads();

	if (threadIdx.x == 0) {
		for (int i=0; i<81; i++) {
			board[i].value = s_board[i].value;
			board[i].isLocked = s_board[i].isLocked;

			for (int j=0; j<9; j++)
				board[i].possValues[j] = s_board[i].possValues[j];

		}
	}

}
#endif

	.text
	.file	"populate.hip"
	.globl	_Z23__device_stub__populateP6Square # -- Begin function _Z23__device_stub__populateP6Square
	.type	_Z23__device_stub__populateP6Square,@function
_Z23__device_stub__populateP6Square:    # @_Z23__device_stub__populateP6Square
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z8populateP6Square, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z23__device_stub__populateP6Square, .Lfunc_end0-_Z23__device_stub__populateP6Square
	.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:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB1_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB1_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z8populateP6Square, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end1:
	.size	__hip_module_ctor, .Lfunc_end1-__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	.LBB2_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
.LBB2_2:
	retq
.Lfunc_end2:
	.size	__hip_module_dtor, .Lfunc_end2-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z8populateP6Square,@object     # @_Z8populateP6Square
	.section	.rodata,"a",@progbits
	.globl	_Z8populateP6Square
	.p2align	3, 0x0
_Z8populateP6Square:
	.quad	_Z23__device_stub__populateP6Square
	.size	_Z8populateP6Square, 8

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

	.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 _Z23__device_stub__populateP6Square
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z8populateP6Square
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z8populateP6Square     ; -- Begin function _Z8populateP6Square
	.globl	_Z8populateP6Square
	.p2align	8
	.type	_Z8populateP6Square,@function
_Z8populateP6Square:                    ; @_Z8populateP6Square
; %bb.0:
	s_load_b64 s[4:5], s[0:1], 0x0
	v_cmp_eq_u32_e64 s2, 0, v0
	s_mov_b32 s10, 0
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB0_5
; %bb.1:                                ; %.preheader78.preheader
	s_waitcnt lgkmcnt(0)
	s_add_u32 s6, s4, 8
	s_addc_u32 s7, s5, 0
	s_mov_b32 s11, 0
.LBB0_2:                                ; %.preheader78
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s12, s11, 44
	s_mul_hi_u32 s9, s11, 44
	s_add_u32 s8, s4, s12
	s_addc_u32 s9, s5, s9
	s_load_b64 s[8:9], s[8:9], 0x0
	v_mov_b32_e32 v1, s12
	s_mov_b32 s12, 8
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v2, s8 :: v_dual_mov_b32 v3, s9
	s_mov_b64 s[8:9], s[6:7]
	ds_store_2addr_b32 v1, v2, v3 offset1:1
.LBB0_3:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_load_b32 s13, s[8:9], 0x0
	s_add_i32 s14, s10, s12
	s_add_i32 s12, s12, 4
	v_mov_b32_e32 v1, s14
	s_add_u32 s8, s8, 4
	s_addc_u32 s9, s9, 0
	s_cmp_eq_u32 s12, 44
	s_waitcnt lgkmcnt(0)
	v_mov_b32_e32 v2, s13
	ds_store_b32 v1, v2
	s_cbranch_scc0 .LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	s_add_i32 s11, s11, 1
	s_add_u32 s6, s6, 44
	s_addc_u32 s7, s7, 0
	s_add_i32 s10, s10, 44
	s_cmpk_eq_i32 s11, 0x51
	s_cbranch_scc0 .LBB0_2
.LBB0_5:                                ; %Flow202
	s_or_b32 exec_lo, exec_lo, s3
	s_waitcnt lgkmcnt(0)
	s_barrier
	buffer_gl0_inv
	s_load_b32 s0, s[0:1], 0x14
	s_mov_b32 s3, exec_lo
	s_waitcnt lgkmcnt(0)
	s_and_b32 s0, s0, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s0, s15, s0
	v_add_nc_u32_e32 v27, s0, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_i32_e32 0x51, v27
	s_cbranch_execz .LBB0_33
; %bb.6:
	v_mul_hi_i32 v1, 0x38e38e39, v27
	s_mul_i32 s0, s0, 44
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mad_u32_u24 v0, v0, 44, s0
	s_mov_b32 s0, 0
	v_lshrrev_b32_e32 v2, 31, v1
	v_ashrrev_i32_e32 v1, 1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, v1, v2
	v_lshl_add_u32 v2, v1, 3, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v1, v27, v2
	v_mul_lo_u32 v3, v1, 44
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v4, v0, v3
	v_or_b32_e64 v0, 16, 8
	v_add_nc_u32_e32 v4, 8, v4
.LBB0_7:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	v_add_nc_u32_e32 v5, s0, v2
	s_mul_i32 s1, s0, 44
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_add_i32 s6, s1, 16
	s_mov_b32 s1, 0
	v_mul_lo_u32 v5, v5, 44
	ds_load_2addr_b32 v[5:6], v5 offset1:1
	s_waitcnt lgkmcnt(0)
	scratch_store_b64 off, v[5:6], s6
.LBB0_8:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_nc_u32_e32 v5, s1, v4
	v_add_nc_u32_e32 v6, s1, v0
	s_add_i32 s1, s1, 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 36
	ds_load_b32 v5, v5
	s_waitcnt lgkmcnt(0)
	scratch_store_b32 v6, v5, off
	s_cbranch_scc0 .LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	v_add_nc_u32_e32 v0, 44, v0
	v_add_nc_u32_e32 v4, 44, v4
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, 9
	s_cbranch_scc0 .LBB0_7
; %bb.10:                               ; %_Z6getRowiP6SquareS0_.exit
	v_or_b32_e64 v0, 0x1a0, 8
	v_add_nc_u32_e32 v2, 8, v3
	s_mov_b32 s0, 0
.LBB0_11:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[3:4], null, s0, 9, v[1:2]
	s_mul_i32 s1, s0, 44
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_add_i32 s6, s1, 0x1a0
	s_mov_b32 s1, 0
	v_mul_lo_u32 v3, v3, 44
	ds_load_2addr_b32 v[3:4], v3 offset1:1
	s_waitcnt lgkmcnt(0)
	scratch_store_b64 off, v[3:4], s6
.LBB0_12:                               ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_nc_u32_e32 v3, s1, v2
	v_add_nc_u32_e32 v4, s1, v0
	s_add_i32 s1, s1, 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 36
	ds_load_b32 v3, v3
	s_waitcnt lgkmcnt(0)
	scratch_store_b32 v4, v3, off
	s_cbranch_scc0 .LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	v_add_nc_u32_e32 v0, 44, v0
	v_add_nc_u32_e32 v2, 0x18c, v2
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, 9
	s_cbranch_scc0 .LBB0_11
; %bb.14:                               ; %_Z6getColiP6SquareS0_.exit
	v_cmp_gt_u32_e32 vcc_lo, 54, v27
	s_mov_b32 s0, 0
	v_cndmask_b32_e64 v0, 54, 27, vcc_lo
	v_cmp_gt_u32_e32 vcc_lo, 6, v1
	v_cndmask_b32_e64 v2, 6, 3, vcc_lo
	v_cmp_lt_i32_e32 vcc_lo, 26, v27
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_cndmask_b32_e32 v0, 0, v0, vcc_lo
	v_cmp_lt_i32_e32 vcc_lo, 2, v1
	v_cndmask_b32_e32 v1, 0, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v1, 0x330 :: v_dual_add_nc_u32 v0, v1, v0
.LBB0_15:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	s_cmp_lt_u32 s0, 3
	s_mov_b32 s1, s0
	s_cbranch_scc1 .LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	s_cmp_gt_u32 s0, 5
	s_mov_b32 s6, -1
                                        ; implicit-def: $sgpr1
	s_cbranch_scc0 .LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	s_add_i32 s1, s0, 12
	s_mov_b32 s6, 0
.LBB0_18:                               ; %Flow198
                                        ;   in Loop: Header=BB0_15 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s6
	s_cbranch_vccnz .LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	s_add_i32 s1, s0, 6
.LBB0_20:                               ;   in Loop: Header=BB0_15 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v2, s1, v0
	s_mul_i32 s1, s0, 44
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_add_i32 s6, s1, 0x330
	s_mov_b32 s1, 8
	v_mul_lo_u32 v2, v2, 44
	ds_load_2addr_b32 v[3:4], v2 offset1:1
	s_waitcnt lgkmcnt(0)
	scratch_store_b64 off, v[3:4], s6
.LBB0_21:                               ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_add_nc_u32_e32 v3, s1, v2
	v_add_nc_u32_e32 v4, s1, v1
	s_add_i32 s1, s1, 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 44
	ds_load_b32 v3, v3
	s_waitcnt lgkmcnt(0)
	scratch_store_b32 v4, v3, off
	s_cbranch_scc0 .LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	v_add_nc_u32_e32 v1, 44, v1
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s0, 9
	s_cbranch_scc1 .LBB0_15
; %bb.23:                               ; %_Z8getBlockiP6SquareS0_.exit.preheader
	s_mov_b64 s[0:1], 0
	s_mov_b32 s6, 0
                                        ; implicit-def: $vgpr0
                                        ; implicit-def: $vgpr9
                                        ; implicit-def: $vgpr18
.LBB0_24:                               ; %_Z8getBlockiP6SquareS0_.exit
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s7, s6, 16
	s_mov_b32 m0, s0
	scratch_load_b32 v28, off, s7
	s_add_i32 s7, s6, 0x1a0
	s_waitcnt vmcnt(0)
	v_movreld_b32_e32 v0, v28
	scratch_load_b32 v28, off, s7
	s_add_i32 s7, s6, 0x330
	s_add_u32 s0, s0, 1
	s_addc_u32 s1, s1, 0
	s_add_i32 s6, s6, 44
	s_cmp_lg_u32 s0, 9
	s_waitcnt vmcnt(0)
	v_movreld_b32_e32 v9, v28
	scratch_load_b32 v28, off, s7
	s_waitcnt vmcnt(0)
	v_movreld_b32_e32 v18, v28
	s_cbranch_scc1 .LBB0_24
; %bb.25:                               ; %.preheader77.preheader
	v_mul_lo_u32 v27, v27, 44
	v_mov_b32_e32 v28, 0
	s_mov_b64 s[0:1], 0
.LBB0_26:                               ; %.preheader77
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_mov_b32 m0, s0
	s_mov_b32 s6, exec_lo
	v_movrels_b32_e32 v29, v0
	v_add_nc_u32_e32 v29, -1, v29
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u32_e32 9, v29
	s_cbranch_execz .LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	v_lshl_add_u32 v29, v29, 2, v27
	ds_store_b32 v29, v28 offset:8
.LBB0_28:                               ;   in Loop: Header=BB0_26 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
	s_mov_b32 m0, s0
	s_mov_b32 s6, exec_lo
	v_movrels_b32_e32 v29, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v29, -1, v29
	v_cmpx_gt_u32_e32 9, v29
	s_cbranch_execz .LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	v_lshl_add_u32 v29, v29, 2, v27
	ds_store_b32 v29, v28 offset:8
.LBB0_30:                               ;   in Loop: Header=BB0_26 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
	s_mov_b32 m0, s0
	s_mov_b32 s6, exec_lo
	v_movrels_b32_e32 v29, v18
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v29, -1, v29
	v_cmpx_gt_u32_e32 9, v29
	s_cbranch_execz .LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=1
	v_lshl_add_u32 v29, v29, 2, v27
	ds_store_b32 v29, v28 offset:8
.LBB0_32:                               ;   in Loop: Header=BB0_26 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
	s_add_u32 s0, s0, 1
	s_addc_u32 s1, s1, 0
	s_cmp_eq_u32 s0, 9
	s_cbranch_scc0 .LBB0_26
.LBB0_33:                               ; %Flow200
	s_or_b32 exec_lo, exec_lo, s3
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_and_saveexec_b32 s0, s2
	s_cbranch_execz .LBB0_38
; %bb.34:                               ; %.preheader.preheader
	v_mov_b32_e32 v0, 0
	s_add_u32 s0, s4, 8
	s_addc_u32 s1, s5, 0
	s_mov_b32 s6, 0
	s_mov_b32 s7, 0
.LBB0_35:                               ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_36 Depth 2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s2, s7, 44
	s_mul_hi_u32 s3, s7, 44
	v_mov_b32_e32 v1, s2
	s_add_u32 s10, s4, s2
	s_addc_u32 s11, s5, s3
	s_mov_b32 s8, 8
	s_mov_b64 s[2:3], s[0:1]
	ds_load_2addr_b32 v[1:2], v1 offset1:1
	s_waitcnt lgkmcnt(0)
	global_store_b64 v0, v[1:2], s[10:11]
.LBB0_36:                               ;   Parent Loop BB0_35 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_add_i32 s9, s6, s8
	s_add_i32 s8, s8, 4
	v_mov_b32_e32 v1, s9
	ds_load_b32 v1, v1
	s_waitcnt lgkmcnt(0)
	global_store_b32 v0, v1, s[2:3]
	s_add_u32 s2, s2, 4
	s_addc_u32 s3, s3, 0
	s_cmp_eq_u32 s8, 44
	s_cbranch_scc0 .LBB0_36
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
	s_add_i32 s7, s7, 1
	s_add_u32 s0, s0, 44
	s_addc_u32 s1, s1, 0
	s_add_i32 s6, s6, 44
	s_cmpk_eq_i32 s7, 0x51
	s_cbranch_scc0 .LBB0_35
.LBB0_38:                               ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8populateP6Square
		.amdhsa_group_segment_fixed_size 3564
		.amdhsa_private_segment_fixed_size 1216
		.amdhsa_kernarg_size 264
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 30
		.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	_Z8populateP6Square, .Lfunc_end0-_Z8populateP6Square
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1320
; NumSgprs: 18
; NumVgprs: 30
; ScratchSize: 1216
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 3564 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 30
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

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

	.end_amdgpu_metadata
