	.file	"277642.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"#include <stdint.h>\n\nuint8_t gameData[] = {"
	.section	.data.rel.local,"aw"
	.align 8
	.type	outFileHeader, @object
	.size	outFileHeader, 8
outFileHeader:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"};\n"
	.section	.data.rel.local
	.align 8
	.type	outFileFooter, @object
	.size	outFileFooter, 8
outFileFooter:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"File Length %d\n"
.LC3:
	.string	"%.2hhX"
.LC4:
	.string	"%s, "
	.text
	.globl	writeFile
	.type	writeFile, @function
writeFile:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -13[rbp], 808482864
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR outFileHeader[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 15
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L3:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -25[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	lea	rdx, -13[rbp]
	lea	rcx, 2[rdx]
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -13[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -24[rbp], 1
.L2:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L4
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, -2
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR outFileFooter[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	writeFile, .-writeFile
	.section	.rodata
.LC5:
	.string	"Usage: %s gameboyFilename\n"
.LC6:
	.string	"rb"
.LC7:
	.string	"Unable to open %s\n"
.LC8:
	.string	"w"
	.align 8
.LC9:
	.string	"Unable to open %s for writing\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 1
	jg	.L7
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 2
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rbx, QWORD PTR [rax]
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	mov	WORD PTR [rax], 25390
	mov	BYTE PTR 2[rax], 0
	mov	QWORD PTR -32[rbp], rbx
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	writeFile
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"277642.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"#include <stdint.h>\012\012uint8_t gameData[] = {\000"
	.data
	.align	2
	.type	outFileHeader, %object
	.size	outFileHeader, 4
outFileHeader:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"};\012\000"
	.data
	.align	2
	.type	outFileFooter, %object
	.size	outFileFooter, 4
outFileFooter:
	.word	.LC1
	.section	.rodata
	.align	2
.LC3:
	.ascii	"File Length %d\012\000"
	.align	2
.LC4:
	.ascii	"%.2hhX\000"
	.align	2
.LC5:
	.ascii	"%s, \000"
	.align	2
.LC2:
	.ascii	"0x00\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	writeFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeFile, %function
writeFile:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L6+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	fseek
	ldr	r0, [fp, #-32]
	bl	ftell
	str	r0, [fp, #-20]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	fseek
	ldr	r1, [fp, #-20]
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L4:
	ldr	r3, [fp, #-24]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L3
	ldr	r1, [fp, #-36]
	mov	r0, #10
	bl	fputc
.L3:
	sub	r0, fp, #25
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #16
	add	r3, r3, #2
	ldr	r1, .L6+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L6+20
	ldr	r0, [fp, #-36]
	bl	fprintf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L4
	mov	r2, #1
	mvn	r1, #1
	ldr	r0, [fp, #-32]
	bl	fseek
	ldr	r3, .L6+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	fprintf
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	outFileHeader
	.word	.LC4
	.word	.LC5
	.word	outFileFooter
	.size	writeFile, .-writeFile
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Usage: %s gameboyFilename\012\000"
	.align	2
.LC8:
	.ascii	"rb\000"
	.align	2
.LC9:
	.ascii	"Unable to open %s\012\000"
	.align	2
.LC10:
	.ascii	".c\000"
	.align	2
.LC11:
	.ascii	"w\000"
	.align	2
.LC12:
	.ascii	"Unable to open %s for writing\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L9
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13
	bl	printf
.L9:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+8
	bl	printf
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r4, [r3]
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L13+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	str	r4, [fp, #-20]
	ldr	r1, .L13+16
	ldr	r0, [fp, #-20]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	ldr	r1, [fp, #-20]
	ldr	r0, .L13+20
	bl	printf
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r0, #1
	bl	exit
.L11:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	writeFile
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
