#include<stdio.h>

long int getimageinfo(FILE *fp,long int start, long int total_bytes)
{
	int j;
	long int i;
	unsigned char c;
	long int total=0;

	fseek(fp,start,SEEK_SET);


	for(j=0,i=start;i<(start+total_bytes);i++,j++)
	{
		fread(&c,sizeof(unsigned char),1,fp);
		total+=pow(256,j)*(int)c;
	}

return total;
}

void copy_info(FILE *fpi, FILE *fpo, long int total_bytes)
{
	int j;
	unsigned char c;

	fseek(fpi,0,SEEK_SET);

	for(j=0;j<total_bytes;j++)
	{
		fread(&c,sizeof(unsigned char),1,fpi);
		fwrite(&c,sizeof(unsigned char),1,fpo);
	}
}

void fetch_image_data(FILE *fpi, unsigned char *data, long int row, long int column)
{
	int i;
	int j;
	

	for(i=0;i<row;i++)
	for(j=0;j<column;j++)
	{
        fscanf(fpi,"%c",(data+i*column+j));
	}

}



void print_read_data(unsigned char *data,long int row, long int column)
{
	int i;
	int j;
	FILE *fp=fopen("matrix","w");


	for(i=0;i<row;i++){
	for(j=0;j<column;j++)
		fprintf(fp,"\n(%u,%u)=%u",i,j,*(data+i*column+j));
	
	}
fclose(fp);	
}
	
	
void copy_fetch_data(FILE *fpo,unsigned char *data,long int row, long int column)
{
	int i;
	int j;

	for(i=0;i<row;i++)
	for(j=0;j<column;j++)
		fwrite((data+i*column+j),sizeof(unsigned char),1,fpo);


}


	.file	"tmpxft_0027322c_00000000-6_parse.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2034:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2034:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z12getimageinfoP8_IO_FILEll
	.type	_Z12getimageinfoP8_IO_FILEll, @function
_Z12getimageinfoP8_IO_FILEll:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rdx, %r14
	xorl	%edx, %edx
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rsi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	fseek@PLT
.L3:
	leaq	(%rbx,%r14), %rdx
	leaq	(%rbx,%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L8
	leaq	7(%rsp), %rdi
	movq	%r12, %r8
	movl	$1, %ecx
	movl	$1, %edx
	movl	$1, %esi
	call	__fread_chk@PLT
	cvtsi2sdl	%ebp, %xmm1
	incq	%rbp
	movsd	.LC0(%rip), %xmm0
	call	pow@PLT
	movzbl	7(%rsp), %eax
	movaps	%xmm0, %xmm1
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	cvtsi2sdq	%r13, %xmm1
	addsd	%xmm1, %xmm0
	cvttsd2siq	%xmm0, %r13
	jmp	.L3
.L8:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%r13, %rax
	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
.LFE2027:
	.size	_Z12getimageinfoP8_IO_FILEll, .-_Z12getimageinfoP8_IO_FILEll
	.globl	_Z9copy_infoP8_IO_FILES0_l
	.type	_Z9copy_infoP8_IO_FILES0_l, @function
_Z9copy_infoP8_IO_FILES0_l:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rsi, %r13
	xorl	%esi, %esi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdx, %r12
	xorl	%edx, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	7(%rsp), %r14
	call	fseek@PLT
.L10:
	cmpq	%rbp, %r12
	jle	.L14
	movq	%rbx, %r8
	movl	$1, %ecx
	movl	$1, %edx
	movq	%r14, %rdi
	movl	$1, %esi
	incq	%rbp
	call	__fread_chk@PLT
	movq	%r13, %rcx
	movl	$1, %edx
	movq	%r14, %rdi
	movl	$1, %esi
	call	fwrite@PLT
	jmp	.L10
.L14:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	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
.LFE2028:
	.size	_Z9copy_infoP8_IO_FILES0_l, .-_Z9copy_infoP8_IO_FILES0_l
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%c"
	.text
	.globl	_Z16fetch_image_dataP8_IO_FILEPhll
	.type	_Z16fetch_image_dataP8_IO_FILEPhll, @function
_Z16fetch_image_dataP8_IO_FILEPhll:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rcx, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdi, 8(%rsp)
.L16:
	cmpq	%r12, %r13
	jle	.L21
	xorl	%ebp, %ebp
.L18:
	cmpq	%rbp, %rbx
	jle	.L22
	movq	8(%rsp), %rdi
	leaq	(%r15,%r14), %rdx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	addq	%rbp, %rdx
	incq	%rbp
	call	__isoc23_fscanf@PLT
	jmp	.L18
.L22:
	incq	%r12
	addq	%rbx, %r14
	jmp	.L16
.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	_Z16fetch_image_dataP8_IO_FILEPhll, .-_Z16fetch_image_dataP8_IO_FILEPhll
	.section	.rodata.str1.1
.LC2:
	.string	"w"
.LC3:
	.string	"matrix"
.LC4:
	.string	"\n(%u,%u)=%u"
	.text
	.globl	_Z15print_read_dataPhll
	.type	_Z15print_read_dataPhll, @function
_Z15print_read_dataPhll:
.LFB2030:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	leaq	.LC3(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	leaq	.LC2(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	fopen@PLT
	movq	%rax, %rdi
.L24:
	movl	%r14d, 4(%rsp)
	cmpq	%r14, %r12
	jle	.L29
	xorl	%ebx, %ebx
.L26:
	cmpq	%rbx, %rbp
	jle	.L30
	leaq	0(%r13,%r15), %rax
	movl	4(%rsp), %ecx
	movl	%ebx, %r8d
	leaq	.LC4(%rip), %rdx
	movzbl	(%rax,%rbx), %r9d
	movl	$2, %esi
	xorl	%eax, %eax
	incq	%rbx
	movq	%rdi, 8(%rsp)
	call	__fprintf_chk@PLT
	movq	8(%rsp), %rdi
	jmp	.L26
.L30:
	incq	%r14
	addq	%rbp, %r15
	jmp	.L24
.L29:
	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
.LFE2030:
	.size	_Z15print_read_dataPhll, .-_Z15print_read_dataPhll
	.globl	_Z15copy_fetch_dataP8_IO_FILEPhll
	.type	_Z15copy_fetch_dataP8_IO_FILEPhll, @function
_Z15copy_fetch_dataP8_IO_FILEPhll:
.LFB2031:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rcx, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdi, (%rsp)
	movq	%rdx, 8(%rsp)
.L32:
	cmpq	%r12, 8(%rsp)
	jle	.L37
	xorl	%ebp, %ebp
	leaq	(%r14,%r15), %r13
.L34:
	cmpq	%rbp, %rbx
	jle	.L38
	movq	(%rsp), %rcx
	leaq	0(%r13,%rbp), %rdi
	movl	$1, %edx
	incq	%rbp
	movl	$1, %esi
	call	fwrite@PLT
	jmp	.L34
.L38:
	incq	%r12
	addq	%rbx, %r15
	jmp	.L32
.L37:
	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
.LFE2031:
	.size	_Z15copy_fetch_dataP8_IO_FILEPhll, .-_Z15copy_fetch_dataP8_IO_FILEPhll
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2057:
	.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
.LFE2057:
	.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.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1081081856
	.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>

long int getimageinfo(FILE *fp,long int start, long int total_bytes)
{
	int j;
	long int i;
	unsigned char c;
	long int total=0;

	fseek(fp,start,SEEK_SET);


	for(j=0,i=start;i<(start+total_bytes);i++,j++)
	{
		fread(&c,sizeof(unsigned char),1,fp);
		total+=pow(256,j)*(int)c;
	}

return total;
}

void copy_info(FILE *fpi, FILE *fpo, long int total_bytes)
{
	int j;
	unsigned char c;

	fseek(fpi,0,SEEK_SET);

	for(j=0;j<total_bytes;j++)
	{
		fread(&c,sizeof(unsigned char),1,fpi);
		fwrite(&c,sizeof(unsigned char),1,fpo);
	}
}

void fetch_image_data(FILE *fpi, unsigned char *data, long int row, long int column)
{
	int i;
	int j;
	

	for(i=0;i<row;i++)
	for(j=0;j<column;j++)
	{
        fscanf(fpi,"%c",(data+i*column+j));
	}

}



void print_read_data(unsigned char *data,long int row, long int column)
{
	int i;
	int j;
	FILE *fp=fopen("matrix","w");


	for(i=0;i<row;i++){
	for(j=0;j<column;j++)
		fprintf(fp,"\n(%u,%u)=%u",i,j,*(data+i*column+j));
	
	}
fclose(fp);	
}
	
	
void copy_fetch_data(FILE *fpo,unsigned char *data,long int row, long int column)
{
	int i;
	int j;

	for(i=0;i<row;i++)
	for(j=0;j<column;j++)
		fwrite((data+i*column+j),sizeof(unsigned char),1,fpo);


}


	.text
	.file	"parse.hip"
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z12getimageinfoP8_IO_FILEll
.LCPI0_0:
	.quad	0x4020000000000000              # double 8
.LCPI0_1:
	.quad	0x3ff0000000000000              # double 1
	.text
	.globl	_Z12getimageinfoP8_IO_FILEll
	.type	_Z12getimageinfoP8_IO_FILEll,@function
_Z12getimageinfoP8_IO_FILEll:           # @_Z12getimageinfoP8_IO_FILEll
	.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	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	fseek
	testq	%rbx, %rbx
	jle	.LBB0_3
# %bb.1:                                # %.lr.ph.preheader
	addq	%r14, %rbx
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
	leaq	7(%rsp), %r13
.LBB0_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	movl	$1, %edx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	fread
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	.LCPI0_0(%rip), %xmm0
	callq	exp2@PLT
	movzbl	7(%rsp), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sd	%r12, %xmm2
	mulsd	%xmm0, %xmm1
	addsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %r12
	incq	%r14
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	.LCPI0_1(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	cmpq	%rbx, %r14
	jl	.LBB0_2
.LBB0_3:                                # %._crit_edge
	movq	%r12, %rax
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	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	_Z12getimageinfoP8_IO_FILEll, .Lfunc_end0-_Z12getimageinfoP8_IO_FILEll
	.cfi_endproc
                                        # -- End function
	.globl	_Z9copy_infoP8_IO_FILES0_l      # -- Begin function _Z9copy_infoP8_IO_FILES0_l
	.type	_Z9copy_infoP8_IO_FILES0_l,@function
_Z9copy_infoP8_IO_FILES0_l:             # @_Z9copy_infoP8_IO_FILES0_l
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	fseek
	testq	%rbx, %rbx
	jle	.LBB1_3
# %bb.1:                                # %.lr.ph.preheader
	leaq	7(%rsp), %r12
.LBB1_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	movl	$1, %edx
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	fread
	movsbl	7(%rsp), %edi
	movq	%r14, %rsi
	callq	fputc@PLT
	decq	%rbx
	jne	.LBB1_2
.LBB1_3:                                # %._crit_edge
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z9copy_infoP8_IO_FILES0_l, .Lfunc_end1-_Z9copy_infoP8_IO_FILES0_l
	.cfi_endproc
                                        # -- End function
	.globl	_Z16fetch_image_dataP8_IO_FILEPhll # -- Begin function _Z16fetch_image_dataP8_IO_FILEPhll
	.type	_Z16fetch_image_dataP8_IO_FILEPhll,@function
_Z16fetch_image_dataP8_IO_FILEPhll:     # @_Z16fetch_image_dataP8_IO_FILEPhll
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	testq	%rdx, %rdx
	jle	.LBB2_6
# %bb.1:                                # %.preheader.lr.ph
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%ebp, %ebp
.LBB2_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_4 Depth 2
	testq	%r14, %r14
	jle	.LBB2_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB2_2 Depth=1
	movq	%r14, %rbx
	movq	%r15, %r13
.LBB2_4:                                #   Parent Loop BB2_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$.L.str, %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	incq	%r13
	decq	%rbx
	jne	.LBB2_4
.LBB2_5:                                # %._crit_edge
                                        #   in Loop: Header=BB2_2 Depth=1
	incq	%rbp
	addq	%r14, %r15
	cmpq	(%rsp), %rbp                    # 8-byte Folded Reload
	jne	.LBB2_2
.LBB2_6:                                # %._crit_edge16
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z16fetch_image_dataP8_IO_FILEPhll, .Lfunc_end2-_Z16fetch_image_dataP8_IO_FILEPhll
	.cfi_endproc
                                        # -- End function
	.globl	_Z15print_read_dataPhll         # -- Begin function _Z15print_read_dataPhll
	.type	_Z15print_read_dataPhll,@function
_Z15print_read_dataPhll:                # @_Z15print_read_dataPhll
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	callq	fopen
	movq	%rax, %r12
	testq	%r14, %r14
	jle	.LBB3_6
# %bb.1:                                # %.preheader.lr.ph
	xorl	%r13d, %r13d
.LBB3_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_4 Depth 2
	testq	%rbx, %rbx
	jle	.LBB3_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB3_2 Depth=1
	xorl	%ebp, %ebp
.LBB3_4:                                #   Parent Loop BB3_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movzbl	(%r15,%rbp), %r8d
	movl	$.L.str.3, %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%ebp, %ecx
	xorl	%eax, %eax
	callq	fprintf
	incq	%rbp
	cmpq	%rbp, %rbx
	jne	.LBB3_4
.LBB3_5:                                # %._crit_edge
                                        #   in Loop: Header=BB3_2 Depth=1
	incq	%r13
	addq	%rbx, %r15
	cmpq	%r14, %r13
	jne	.LBB3_2
.LBB3_6:                                # %._crit_edge19
	movq	%r12, %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	fclose                          # TAILCALL
.Lfunc_end3:
	.size	_Z15print_read_dataPhll, .Lfunc_end3-_Z15print_read_dataPhll
	.cfi_endproc
                                        # -- End function
	.globl	_Z15copy_fetch_dataP8_IO_FILEPhll # -- Begin function _Z15copy_fetch_dataP8_IO_FILEPhll
	.type	_Z15copy_fetch_dataP8_IO_FILEPhll,@function
_Z15copy_fetch_dataP8_IO_FILEPhll:      # @_Z15copy_fetch_dataP8_IO_FILEPhll
	.cfi_startproc
# %bb.0:
	testq	%rdx, %rdx
	jle	.LBB4_7
# %bb.1:                                # %.preheader.lr.ph
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%r13d, %r13d
.LBB4_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_4 Depth 2
	testq	%rbx, %rbx
	jle	.LBB4_5
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB4_2 Depth=1
	xorl	%ebp, %ebp
.LBB4_4:                                #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsbl	(%r15,%rbp), %edi
	movq	%r12, %rsi
	callq	fputc@PLT
	incq	%rbp
	cmpq	%rbp, %rbx
	jne	.LBB4_4
.LBB4_5:                                # %._crit_edge
                                        #   in Loop: Header=BB4_2 Depth=1
	incq	%r13
	addq	%rbx, %r15
	cmpq	%r14, %r13
	jne	.LBB4_2
# %bb.6:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
	.cfi_restore %rbp
.LBB4_7:                                # %._crit_edge16
	retq
.Lfunc_end4:
	.size	_Z15copy_fetch_dataP8_IO_FILEPhll, .Lfunc_end4-_Z15copy_fetch_dataP8_IO_FILEPhll
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"%c"
	.size	.L.str, 3

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"matrix"
	.size	.L.str.1, 7

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"\n(%u,%u)=%u"
	.size	.L.str.3, 12

	.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
