	.file	"306420.c"
	.intel_syntax noprefix
	.text
	.globl	spritemap
	.bss
	.align 32
	.type	spritemap, @object
	.size	spritemap, 3840
spritemap:
	.zero	3840
	.globl	xres
	.align 4
	.type	xres, @object
	.size	xres, 4
xres:
	.zero	4
	.globl	yres
	.align 4
	.type	yres, @object
	.size	yres, 4
yres:
	.zero	4
	.text
	.globl	errorsleep
	.type	errorsleep, @function
errorsleep:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 5
	mov	eax, 0
	call	sleep@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	errorsleep, .-errorsleep
	.globl	exitsleep
	.type	exitsleep, @function
exitsleep:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	exitsleep, .-exitsleep
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"file row %d, invalid length: %d\n"
	.align 8
.LC2:
	.string	"file row %d, column %d, invalid character\n"
	.text
	.globl	init
	.type	init, @function
init:
.LFB8:
	.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, 1336
	.cfi_offset 3, -24
	mov	QWORD PTR -1336[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1328[rbp], 0
	jmp	.L4
.L5:
	mov	edi, 641
	call	malloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -1328[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, spritemap[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -1328[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, spritemap[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -1328[rbp], 1
.L4:
	cmp	DWORD PTR -1328[rbp], 479
	jle	.L5
	mov	rax, QWORD PTR -1336[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1320[rbp], rax
	cmp	QWORD PTR -1320[rbp], 0
	jne	.L6
	mov	eax, 1
	jmp	.L24
.L6:
	mov	DWORD PTR -1328[rbp], 0
	jmp	.L8
.L23:
	mov	DWORD PTR -1324[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	movzx	eax, BYTE PTR -1312[rbp+rax]
	cmp	al, 10
	je	.L10
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	movzx	eax, BYTE PTR -1312[rbp+rax]
	cmp	al, 13
	jne	.L11
.L10:
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	mov	BYTE PTR -1312[rbp+rax], 0
.L11:
	add	DWORD PTR -1324[rbp], 1
.L9:
	mov	eax, DWORD PTR -1324[rbp]
	movsx	rbx, eax
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L12
	cmp	DWORD PTR -1328[rbp], 0
	jne	.L13
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR xres[rip], eax
	mov	eax, DWORD PTR xres[rip]
	cmp	eax, 2
	jle	.L14
	mov	eax, DWORD PTR xres[rip]
	cmp	eax, 640
	jle	.L15
.L14:
	mov	eax, 1
	jmp	.L24
.L13:
	cmp	DWORD PTR -1328[rbp], 1
	jne	.L16
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR yres[rip], eax
	mov	eax, DWORD PTR yres[rip]
	cmp	eax, 2
	jle	.L17
	mov	eax, DWORD PTR yres[rip]
	cmp	eax, 480
	jle	.L15
.L17:
	mov	eax, 1
	jmp	.L24
.L16:
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR xres[rip]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L18
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -1328[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L24
.L18:
	mov	DWORD PTR -1324[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	movzx	eax, BYTE PTR -1312[rbp+rax]
	cmp	al, 49
	je	.L20
	mov	eax, DWORD PTR -1324[rbp]
	cdqe
	movzx	eax, BYTE PTR -1312[rbp+rax]
	cmp	al, 48
	je	.L20
	mov	eax, DWORD PTR -1324[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -1328[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L24
.L20:
	add	DWORD PTR -1324[rbp], 1
.L19:
	mov	eax, DWORD PTR -1324[rbp]
	movsx	rbx, eax
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L21
	mov	eax, DWORD PTR -1328[rbp]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, spritemap[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rcx, -1312[rbp]
	mov	edx, 640
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L15:
	add	DWORD PTR -1328[rbp], 1
.L8:
	mov	rdx, QWORD PTR -1320[rbp]
	lea	rax, -1312[rbp]
	mov	esi, 1280
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L22
	cmp	DWORD PTR -1328[rbp], 481
	jle	.L23
.L22:
	mov	rax, QWORD PTR -1320[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1336[rbp]
	mov	rdi, rax
	call	remove@PLT
	mov	eax, 0
.L24:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init, .-init
	.section	.rodata
.LC3:
	.string	"w"
	.align 8
.LC4:
	.string	"Spedito ASM Generatior Module - v. 1.0"
.LC5:
	.string	"; Generated by %s\n"
.LC6:
	.string	"; sprite resolution: %d x %d\n"
.LC7:
	.string	";\n"
.LC8:
	.string	"  defb "
.LC9:
	.string	"$%02x"
.LC10:
	.string	"Error saving to file\n%s"
	.text
	.globl	generatecode
	.type	generatecode, @function
generatecode:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 592
	mov	QWORD PTR -584[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -568[rbp], 0
	mov	rax, QWORD PTR -584[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	je	.L27
	mov	eax, DWORD PTR xres[rip]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	DWORD PTR -540[rbp], eax
	mov	eax, DWORD PTR xres[rip]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -564[rbp], eax
	cmp	DWORD PTR -540[rbp], 0
	je	.L28
	add	DWORD PTR -564[rbp], 1
.L28:
	mov	BYTE PTR -513[rbp], 0
	mov	rax, QWORD PTR -536[rbp]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	ecx, DWORD PTR yres[rip]
	mov	edx, DWORD PTR xres[rip]
	mov	rax, QWORD PTR -536[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	DWORD PTR -552[rbp], 0
	jmp	.L29
.L41:
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	BYTE PTR -523[rbp], 48
	mov	BYTE PTR -522[rbp], 0
	mov	BYTE PTR -512[rbp], 0
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, spritemap[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -560[rbp], 0
	jmp	.L30
.L31:
	lea	rdx, -523[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	add	DWORD PTR -560[rbp], 1
.L30:
	mov	eax, DWORD PTR -560[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	jl	.L31
	mov	DWORD PTR -556[rbp], 0
	jmp	.L32
.L40:
	mov	DWORD PTR -548[rbp], 0
	mov	DWORD PTR -544[rbp], 1
	mov	DWORD PTR -560[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -556[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -560[rbp]
	add	eax, edx
	cdqe
	movzx	edx, BYTE PTR -512[rbp+rax]
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	mov	BYTE PTR -521[rbp+rax], dl
	add	DWORD PTR -560[rbp], 1
.L33:
	cmp	DWORD PTR -560[rbp], 7
	jle	.L34
	mov	DWORD PTR -560[rbp], 7
	jmp	.L35
.L38:
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	movzx	eax, BYTE PTR -521[rbp+rax]
	cmp	al, 49
	jne	.L36
	mov	eax, DWORD PTR -544[rbp]
	jmp	.L37
.L36:
	mov	eax, 0
.L37:
	add	DWORD PTR -548[rbp], eax
	sub	DWORD PTR -560[rbp], 1
	sal	DWORD PTR -544[rbp]
.L35:
	cmp	DWORD PTR -560[rbp], 0
	jns	.L38
	mov	edx, DWORD PTR -548[rbp]
	mov	rax, QWORD PTR -536[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -564[rbp]
	sub	eax, 1
	cmp	DWORD PTR -556[rbp], eax
	je	.L39
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
.L39:
	add	DWORD PTR -556[rbp], 1
.L32:
	mov	eax, DWORD PTR -556[rbp]
	cmp	eax, DWORD PTR -564[rbp]
	jl	.L40
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -552[rbp], 1
.L29:
	mov	eax, DWORD PTR yres[rip]
	cmp	DWORD PTR -552[rbp], eax
	jl	.L41
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L42
.L27:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -584[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -568[rbp], 1
.L42:
	mov	eax, DWORD PTR -568[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	generatecode, .-generatecode
	.section	.rodata
	.align 8
.LC11:
	.string	"Spedito ASM Generatior Module - v. 1.0\n\tthe module is not correctly configured: please\n\tprovide two parameters: the data file name and\n\tthe output file name.\n"
	.align 8
.LC12:
	.string	"Spedito ASM Generatior Module - v. 1.0\n\tthis module cannot open the data file or\n\tthe file has a wrong format.\n"
	.align 8
.LC13:
	.string	"Spedito ASM Generatior Module - v. 1.0\n\tERROR while writing output file.\n"
.LC14:
	.string	"\t...done. Output file: \"%s\"\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 3
	je	.L46
	lea	rax, .LC11[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	call	errorsleep
	mov	edi, 1
	call	exit@PLT
.L46:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	init
	test	eax, eax
	je	.L47
	lea	rax, .LC12[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	call	errorsleep
	mov	edi, 1
	call	exit@PLT
.L47:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	generatecode
	test	eax, eax
	je	.L48
	lea	rax, .LC13[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	call	errorsleep
	mov	edi, 1
	call	exit@PLT
.L48:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	exitsleep
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"306420.c"
	.text
	.comm	spritemap,1920,4
	.global	xres
	.bss
	.align	2
	.type	xres, %object
	.size	xres, 4
xres:
	.space	4
	.global	yres
	.align	2
	.type	yres, %object
	.size	yres, 4
yres:
	.space	4
	.text
	.align	2
	.global	errorsleep
	.syntax unified
	.arm
	.fpu softvfp
	.type	errorsleep, %function
errorsleep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #5
	bl	sleep
	nop
	pop	{fp, pc}
	.size	errorsleep, .-errorsleep
	.align	2
	.global	exitsleep
	.syntax unified
	.arm
	.fpu softvfp
	.type	exitsleep, %function
exitsleep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	bl	sleep
	nop
	pop	{fp, pc}
	.size	exitsleep, .-exitsleep
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"file row %d, invalid length: %d\012\000"
	.align	2
.LC2:
	.ascii	"file row %d, column %d, invalid character\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 1312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1312
	sub	sp, sp, #4
	str	r0, [fp, #-1320]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1312]
	b	.L4
.L5:
	ldr	r0, .L26+4
	bl	malloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L26+8
	ldr	r3, [fp, #-1312]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L26+8
	ldr	r3, [fp, #-1312]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1312]
	add	r3, r3, #1
	str	r3, [fp, #-1312]
.L4:
	ldr	r3, [fp, #-1312]
	cmp	r3, #480
	blt	.L5
	ldr	r1, .L26+12
	ldr	r0, [fp, #-1320]
	bl	fopen
	str	r0, [fp, #-1304]
	ldr	r3, [fp, #-1304]
	cmp	r3, #0
	bne	.L6
	mov	r3, #1
	b	.L24
.L6:
	mov	r3, #0
	str	r3, [fp, #-1312]
	b	.L8
.L23:
	mov	r3, #0
	str	r3, [fp, #-1308]
	b	.L9
.L12:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1308]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L10
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1308]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L11
.L10:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1308]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
.L11:
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	str	r3, [fp, #-1308]
.L9:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1308]
	cmp	r2, r3
	bhi	.L12
	ldr	r3, [fp, #-1312]
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L26+16
	str	r3, [r2]
	ldr	r3, .L26+16
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L14
	ldr	r3, .L26+16
	ldr	r3, [r3]
	cmp	r3, #640
	ble	.L15
.L14:
	mov	r3, #1
	b	.L24
.L13:
	ldr	r3, [fp, #-1312]
	cmp	r3, #1
	bne	.L16
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L26+20
	str	r3, [r2]
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L17
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r3, #480
	ble	.L15
.L17:
	mov	r3, #1
	b	.L24
.L16:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r2, .L26+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L18
	ldr	r3, .L26+24
	ldr	r4, [r3]
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-1312]
	ldr	r1, .L26+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L24
.L18:
	mov	r3, #0
	str	r3, [fp, #-1308]
	b	.L19
.L21:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1308]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	beq	.L20
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1308]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L20
	ldr	r3, .L26+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-1312]
	add	r2, r3, #1
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	ldr	r1, .L26+32
	bl	fprintf
	mov	r3, #1
	b	.L24
.L20:
	ldr	r3, [fp, #-1308]
	add	r3, r3, #1
	str	r3, [fp, #-1308]
.L19:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1308]
	cmp	r2, r3
	bhi	.L21
	ldr	r3, [fp, #-1312]
	sub	r3, r3, #2
	ldr	r2, .L26+8
	ldr	r0, [r2, r3, lsl #2]
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #640
	mov	r1, r3
	bl	strncpy
.L15:
	ldr	r3, [fp, #-1312]
	add	r3, r3, #1
	str	r3, [fp, #-1312]
.L8:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1304]
	mov	r1, #1280
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-1312]
	ldr	r2, .L26+36
	cmp	r3, r2
	ble	.L23
.L22:
	ldr	r0, [fp, #-1304]
	bl	fclose
	ldr	r0, [fp, #-1320]
	bl	remove
	mov	r3, #0
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	641
	.word	spritemap
	.word	.LC0
	.word	xres
	.word	yres
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	481
	.size	init, .-init
	.section	.rodata
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"Spedito ASM Generatior Module - v. 1.0\000"
	.align	2
.LC6:
	.ascii	"; Generated by %s\012\000"
	.align	2
.LC7:
	.ascii	"; sprite resolution: %d x %d\012\000"
	.align	2
.LC8:
	.ascii	";\012\000"
	.align	2
.LC9:
	.ascii	"  defb \000"
	.align	2
.LC10:
	.ascii	"$%02x\000"
	.align	2
.LC11:
	.ascii	"Error saving to file\012%s\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	generatecode
	.syntax unified
	.arm
	.fpu softvfp
	.type	generatecode, %function
generatecode:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #560
	str	r0, [fp, #-560]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-552]
	ldr	r1, .L47+4
	ldr	r0, [fp, #-560]
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L47+8
	ldr	r3, [r3]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	str	r3, [fp, #-520]
	ldr	r3, .L47+8
	ldr	r3, [r3]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-548]
	ldr	r3, [fp, #-520]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-548]
	add	r3, r3, #1
	str	r3, [fp, #-548]
.L30:
	mov	r3, #0
	strb	r3, [fp, #-504]
	ldr	r2, .L47+12
	ldr	r1, .L47+16
	ldr	r0, [fp, #-524]
	bl	fprintf
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, .L47+20
	ldr	r3, [r3]
	ldr	r1, .L47+24
	ldr	r0, [fp, #-524]
	bl	fprintf
	ldr	r3, [fp, #-524]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L47+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L31
.L43:
	ldr	r3, [fp, #-524]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L47+32
	bl	fwrite
	mov	r3, #48
	strb	r3, [fp, #-516]
	mov	r3, #0
	strb	r3, [fp, #-515]
	mov	r3, #0
	strb	r3, [fp, #-500]
	ldr	r2, .L47+36
	ldr	r3, [fp, #-536]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #500
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L32
.L33:
	sub	r2, fp, #516
	sub	r3, fp, #500
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L32:
	ldr	r2, [fp, #-544]
	ldr	r3, [fp, #-520]
	cmp	r2, r3
	blt	.L33
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L34
.L42:
	mov	r3, #0
	str	r3, [fp, #-532]
	mov	r3, #1
	str	r3, [fp, #-528]
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L35
.L36:
	ldr	r3, [fp, #-540]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-544]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-496]	@ zero_extendqisi2
	sub	r2, fp, #512
	ldr	r3, [fp, #-544]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L35:
	ldr	r3, [fp, #-544]
	cmp	r3, #7
	ble	.L36
	mov	r3, #7
	str	r3, [fp, #-544]
	b	.L37
.L40:
	sub	r2, fp, #512
	ldr	r3, [fp, #-544]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L38
	ldr	r3, [fp, #-528]
	b	.L39
.L38:
	mov	r3, #0
.L39:
	ldr	r2, [fp, #-532]
	add	r3, r2, r3
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-544]
	sub	r3, r3, #1
	str	r3, [fp, #-544]
	ldr	r3, [fp, #-528]
	lsl	r3, r3, #1
	str	r3, [fp, #-528]
.L37:
	ldr	r3, [fp, #-544]
	cmp	r3, #0
	bge	.L40
	ldr	r2, [fp, #-532]
	ldr	r1, .L47+40
	ldr	r0, [fp, #-524]
	bl	fprintf
	ldr	r3, [fp, #-548]
	sub	r3, r3, #1
	ldr	r2, [fp, #-540]
	cmp	r2, r3
	beq	.L41
	ldr	r1, [fp, #-524]
	mov	r0, #44
	bl	fputc
.L41:
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L34:
	ldr	r2, [fp, #-540]
	ldr	r3, [fp, #-548]
	cmp	r2, r3
	blt	.L42
	ldr	r1, [fp, #-524]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L31:
	ldr	r3, .L47+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-536]
	cmp	r2, r3
	blt	.L43
	ldr	r1, [fp, #-524]
	mov	r0, #10
	bl	fputc
	ldr	r0, [fp, #-524]
	bl	fclose
	b	.L44
.L29:
	ldr	r3, .L47+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-560]
	ldr	r1, .L47+48
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-552]
.L44:
	ldr	r3, [fp, #-552]
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC12
	.word	.LC4
	.word	xres
	.word	.LC5
	.word	.LC6
	.word	yres
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	spritemap
	.word	.LC10
	.word	stderr
	.word	.LC11
	.size	generatecode, .-generatecode
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Spedito ASM Generatior Module - v. 1.0\012\011the m"
	.ascii	"odule is not correctly configured: please\012\011pr"
	.ascii	"ovide two parameters: the data file name and\012\011"
	.ascii	"the output file name.\012\000"
	.align	2
.LC14:
	.ascii	"Spedito ASM Generatior Module - v. 1.0\012\011this "
	.ascii	"module cannot open the data file or\012\011the file"
	.ascii	" has a wrong format.\012\000"
	.align	2
.LC15:
	.ascii	"Spedito ASM Generatior Module - v. 1.0\012\011ERROR"
	.ascii	" while writing output file.\012\000"
	.align	2
.LC16:
	.ascii	"\011...done. Output file: \"%s\"\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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	beq	.L50
	ldr	r3, .L54
	str	r3, [fp, #-8]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fprintf
	bl	errorsleep
	mov	r0, #1
	bl	exit
.L50:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	init
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L54+8
	str	r3, [fp, #-12]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	fprintf
	bl	errorsleep
	mov	r0, #1
	bl	exit
.L51:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	generatecode
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L54+12
	str	r3, [fp, #-16]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	fprintf
	bl	errorsleep
	mov	r0, #1
	bl	exit
.L52:
	ldr	r0, .L54+16
	bl	puts
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L54+20
	bl	printf
	bl	exitsleep
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC13
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	.LC5
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
