#include "FileWriter.cuh"
#include "Empire.cuh"

void writeFile(char* fileName, float** contents, int width, int height) {
	FILE* f = fopen(fileName, "w");
	fprintf(f, "P3\n%d %d\n255\n\n", width, height);
	for (int y = 0; y < height; y++) {
		for (int x = 0; x < width; x++) {
			if (contents[y][x]>=0) {
				fprintf(f, "0, %d, 0\t", (int)(contents[y][x]));
			}
			else {
				fprintf(f, "0, 0, %d\t", (int)(contents[y][x]*-1));
			}
		}
		fprintf(f, "\n");
	}
	fclose(f);
}

void writeEmpireFile(char* fileName, empire* empires, float** empireMap, float** map, int width, int height) {
	FILE* f = fopen(fileName, "w");
	fprintf(f, "P3\n%d %d\n255\n\n", width, height);
	for (int y = 0; y < height; y++) {
		for (int x = 0; x < width; x++) {
			if (map[y][x] >= 0) {
				if (empireMap[y][x]>0) {
					empire emp = empires[int(empireMap[y][x]) - 1];
					fprintf(f, "%d, %d, %d\t", emp.r, emp.b, emp.g);
				}
				else {
					fprintf(f, "255, 255, 255\t");
				}
			}
			else {
				fprintf(f, "0, 0, %d\t", (int)(map[y][x] * -1));
			}
		}
		fprintf(f, "\n");
	}
	fclose(f);
}
	.file	"tmpxft_002e604b_00000000-6_FileWriter.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2031:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"w"
.LC1:
	.string	"P3\n%d %d\n255\n\n"
.LC3:
	.string	"0, %d, 0\t"
.LC5:
	.string	"0, 0, %d\t"
.LC6:
	.string	"\n"
	.text
	.globl	_Z9writeFilePcPPfii
	.type	_Z9writeFilePcPPfii, @function
_Z9writeFilePcPPfii:
.LFB2027:
	.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
	movq	%rsi, %r14
	leaq	.LC0(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%ecx, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	pushq	%r8
	.cfi_def_cfa_offset 64
	call	fopen@PLT
	movl	%r12d, %r8d
	movl	%r13d, %ecx
	movl	$2, %esi
	movq	%rax, %rdi
	movq	%rax, %rbx
	leaq	.LC1(%rip), %rdx
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
.L3:
	cmpl	%ebp, %r12d
	jle	.L15
	xorl	%r15d, %r15d
.L8:
	cmpl	%r15d, %r13d
	jle	.L16
	movq	(%r14,%rbp,8), %rax
	xorps	%xmm1, %xmm1
	movss	(%rax,%r15,4), %xmm0
	comiss	%xmm1, %xmm0
	jb	.L11
	cvttss2sil	%xmm0, %ecx
	leaq	.LC3(%rip), %rdx
	jmp	.L13
.L11:
	xorps	.LC4(%rip), %xmm0
	leaq	.LC5(%rip), %rdx
	cvttss2sil	%xmm0, %ecx
.L13:
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	incq	%r15
	call	__fprintf_chk@PLT
	jmp	.L8
.L16:
	leaq	.LC6(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	incq	%rbp
	movl	$2, %esi
	call	__fprintf_chk@PLT
	jmp	.L3
.L15:
	popq	%rax
	.cfi_def_cfa_offset 56
	movq	%rbx, %rdi
	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
	jmp	fclose@PLT
	.cfi_endproc
.LFE2027:
	.size	_Z9writeFilePcPPfii, .-_Z9writeFilePcPPfii
	.section	.rodata.str1.1
.LC7:
	.string	"%d, %d, %d\t"
.LC8:
	.string	"255, 255, 255\t"
	.text
	.globl	_Z15writeEmpireFilePcP3empPPfS3_ii
	.type	_Z15writeEmpireFilePcP3empPPfS3_ii, @function
_Z15writeEmpireFilePcP3empPPfS3_ii:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rcx, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	leaq	.LC0(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%r8d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%r9d, 12(%rsp)
	call	fopen@PLT
	movl	12(%rsp), %r8d
	movl	%r12d, %ecx
	leaq	.LC1(%rip), %rdx
	movq	%rax, (%rsp)
	movq	%rax, %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
.L18:
	cmpl	%ebx, 12(%rsp)
	jle	.L32
	xorl	%ebp, %ebp
.L25:
	cmpl	%ebp, %r12d
	jle	.L33
	movq	(%r15,%rbx,8), %rax
	xorps	%xmm1, %xmm1
	movss	(%rax,%rbp,4), %xmm0
	comiss	%xmm1, %xmm0
	jb	.L29
	movq	(%r14,%rbx,8), %rax
	movss	(%rax,%rbp,4), %xmm0
	comiss	%xmm1, %xmm0
	jbe	.L30
	cvttss2sil	%xmm0, %eax
	movq	(%rsp), %rdi
	movl	$2, %esi
	leaq	.LC7(%rip), %rdx
	cltq
	salq	$5, %rax
	leaq	-32(%r13,%rax), %rax
	movl	20(%rax), %ecx
	movl	24(%rax), %r9d
	movl	28(%rax), %r8d
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	jmp	.L23
.L30:
	movq	(%rsp), %rdi
	leaq	.LC8(%rip), %rdx
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	jmp	.L23
.L29:
	xorps	.LC4(%rip), %xmm0
	movq	(%rsp), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rdx
	cvttss2sil	%xmm0, %ecx
	call	__fprintf_chk@PLT
.L23:
	incq	%rbp
	jmp	.L25
.L33:
	movq	(%rsp), %rdi
	leaq	.LC6(%rip), %rdx
	xorl	%eax, %eax
	incq	%rbx
	movl	$2, %esi
	call	__fprintf_chk@PLT
	jmp	.L18
.L32:
	movq	(%rsp), %rdi
	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
	jmp	fclose@PLT
	.cfi_endproc
.LFE2028:
	.size	_Z15writeEmpireFilePcP3empPPfS3_ii, .-_Z15writeEmpireFilePcP3empPPfS3_ii
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2054:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2054:
	.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
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.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 "FileWriter.cuh"
#include "Empire.cuh"

void writeFile(char* fileName, float** contents, int width, int height) {
	FILE* f = fopen(fileName, "w");
	fprintf(f, "P3\n%d %d\n255\n\n", width, height);
	for (int y = 0; y < height; y++) {
		for (int x = 0; x < width; x++) {
			if (contents[y][x]>=0) {
				fprintf(f, "0, %d, 0\t", (int)(contents[y][x]));
			}
			else {
				fprintf(f, "0, 0, %d\t", (int)(contents[y][x]*-1));
			}
		}
		fprintf(f, "\n");
	}
	fclose(f);
}

void writeEmpireFile(char* fileName, empire* empires, float** empireMap, float** map, int width, int height) {
	FILE* f = fopen(fileName, "w");
	fprintf(f, "P3\n%d %d\n255\n\n", width, height);
	for (int y = 0; y < height; y++) {
		for (int x = 0; x < width; x++) {
			if (map[y][x] >= 0) {
				if (empireMap[y][x]>0) {
					empire emp = empires[int(empireMap[y][x]) - 1];
					fprintf(f, "%d, %d, %d\t", emp.r, emp.b, emp.g);
				}
				else {
					fprintf(f, "255, 255, 255\t");
				}
			}
			else {
				fprintf(f, "0, 0, %d\t", (int)(map[y][x] * -1));
			}
		}
		fprintf(f, "\n");
	}
	fclose(f);
}
	.text
	.file	"FileWriter.hip"
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z9writeFilePcPPfii
.LCPI0_0:
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.text
	.globl	_Z9writeFilePcPPfii
	.type	_Z9writeFilePcPPfii,@function
_Z9writeFilePcPPfii:                    # @_Z9writeFilePcPPfii
	.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	%ecx, %ebp
	movl	%edx, %ebx
	movq	%rsi, %r14
	movl	$.L.str, %esi
	callq	fopen
	movq	%rax, %r15
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	movl	%ebx, 12(%rsp)                  # 4-byte Spill
	movl	%ebx, %edx
	movl	%ebp, %ecx
	xorl	%eax, %eax
	callq	fprintf
	testl	%ebp, %ebp
	jle	.LBB0_8
# %bb.1:                                # %.preheader.lr.ph
	movl	%ebp, %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	12(%rsp), %r13d                 # 4-byte Reload
	movl	$.L.str.3, %ebp
	xorl	%ebx, %ebx
.LBB0_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_4 Depth 2
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	jle	.LBB0_7
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
.LBB0_4:                                #   Parent Loop BB0_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	(%r14,%rbx,8), %rax
	movss	(%rax,%r12,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	xorps	.LCPI0_0(%rip), %xmm0
	ucomiss	%xmm0, %xmm1
	jb	.LBB0_6
# %bb.5:                                #   in Loop: Header=BB0_4 Depth=2
	movaps	%xmm1, %xmm0
.LBB0_6:                                #   in Loop: Header=BB0_4 Depth=2
	movl	$.L.str.2, %esi
	cmovbq	%rbp, %rsi
	cvttss2si	%xmm0, %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	fprintf
	incq	%r12
	cmpq	%r12, %r13
	jne	.LBB0_4
.LBB0_7:                                # %._crit_edge
                                        #   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	movq	%r15, %rsi
	callq	fputc@PLT
	incq	%rbx
	cmpq	16(%rsp), %rbx                  # 8-byte Folded Reload
	jne	.LBB0_2
.LBB0_8:                                # %._crit_edge26
	movq	%r15, %rdi
	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
	jmp	fclose                          # TAILCALL
.Lfunc_end0:
	.size	_Z9writeFilePcPPfii, .Lfunc_end0-_Z9writeFilePcPPfii
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z15writeEmpireFilePcP3empPPfS3_ii
.LCPI1_0:
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.long	0x80000000                      # float -0
	.text
	.globl	_Z15writeEmpireFilePcP3empPPfS3_ii
	.type	_Z15writeEmpireFilePcP3empPPfS3_ii,@function
_Z15writeEmpireFilePcP3empPPfS3_ii:     # @_Z15writeEmpireFilePcP3empPPfS3_ii
	.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	%r9d, %ebp
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, 16(%rsp)                  # 8-byte Spill
	movq	%rsi, %r12
	movl	$.L.str, %esi
	callq	fopen
	movq	%rax, %r13
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	movl	%ebx, 4(%rsp)                   # 4-byte Spill
	movl	%ebx, %edx
	movl	%ebp, %ecx
	xorl	%eax, %eax
	callq	fprintf
	testl	%ebp, %ebp
	jle	.LBB1_8
# %bb.1:                                # %.preheader.lr.ph
	movl	%ebp, %eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movl	4(%rsp), %ebx                   # 4-byte Reload
	xorps	%xmm1, %xmm1
	xorl	%ebp, %ebp
.LBB1_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_4 Depth 2
	cmpl	$0, 4(%rsp)                     # 4-byte Folded Reload
	jle	.LBB1_7
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB1_2 Depth=1
	xorl	%r15d, %r15d
.LBB1_4:                                #   Parent Loop BB1_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	(%r14,%rbp,8), %rax
	movss	(%rax,%r15,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jae	.LBB1_5
# %bb.10:                               #   in Loop: Header=BB1_4 Depth=2
	xorps	.LCPI1_0(%rip), %xmm0
	cvttss2si	%xmm0, %edx
	movl	$.L.str.3, %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	fprintf
	jmp	.LBB1_11
.LBB1_5:                                #   in Loop: Header=BB1_4 Depth=2
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	(%rax,%rbp,8), %rax
	movss	(%rax,%r15,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	.LBB1_9
# %bb.6:                                #   in Loop: Header=BB1_4 Depth=2
	cvttss2si	%xmm0, %eax
	cltq
	shlq	$5, %rax
	movl	-12(%r12,%rax), %edx
	movl	-8(%r12,%rax), %r8d
	movl	-4(%r12,%rax), %ecx
	movl	$.L.str.5, %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	fprintf
	jmp	.LBB1_11
.LBB1_9:                                #   in Loop: Header=BB1_4 Depth=2
	movl	$.L.str.6, %edi
	movl	$14, %esi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	fwrite@PLT
.LBB1_11:                               #   in Loop: Header=BB1_4 Depth=2
	incq	%r15
	cmpq	%r15, %rbx
	xorps	%xmm1, %xmm1
	jne	.LBB1_4
.LBB1_7:                                # %._crit_edge
                                        #   in Loop: Header=BB1_2 Depth=1
	movl	$10, %edi
	movq	%r13, %rsi
	callq	fputc@PLT
	xorps	%xmm1, %xmm1
	incq	%rbp
	cmpq	8(%rsp), %rbp                   # 8-byte Folded Reload
	jne	.LBB1_2
.LBB1_8:                                # %._crit_edge31
	movq	%r13, %rdi
	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
	jmp	fclose                          # TAILCALL
.Lfunc_end1:
	.size	_Z15writeEmpireFilePcP3empPPfS3_ii, .Lfunc_end1-_Z15writeEmpireFilePcP3empPPfS3_ii
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"w"
	.size	.L.str, 2

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"P3\n%d %d\n255\n\n"
	.size	.L.str.1, 15

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"0, %d, 0\t"
	.size	.L.str.2, 10

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"0, 0, %d\t"
	.size	.L.str.3, 10

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"%d, %d, %d\t"
	.size	.L.str.5, 12

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"255, 255, 255\t"
	.size	.L.str.6, 15

	.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 __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
