	.file	"150141023.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 4
	.type	DATA_BUFFER_MAX_SIZE, @object
	.size	DATA_BUFFER_MAX_SIZE, 4
DATA_BUFFER_MAX_SIZE:
	.long	2097152
	.text
	.globl	file_size
	.type	file_size, @function
file_size:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -112[rbp]
	jmp	.L4
.L2:
	mov	eax, -1
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	file_size, .-file_size
	.section	.rodata
.LC0:
	.string	"Magic7.vid"
	.align 8
.LC1:
	.string	"Extracting %s to current directory.\n"
.LC2:
	.string	"rb"
.LC3:
	.string	"Writing %d files.\n"
	.align 8
.LC4:
	.string	"Never seen this few/many file entries before. Something's probably wrong, aborting."
	.align 8
.LC5:
	.string	"Allocating %d bytes for file entries, %d for copy-buffer.\n"
.LC6:
	.string	"smk"
	.align 8
.LC7:
	.string	"Auto-detected MM6 mode, adding file extensions."
	.align 8
.LC8:
	.string	"File '%s' at 0x%x, %lu bytes -- "
.LC9:
	.string	"wb"
.LC10:
	.string	"OK."
.LC11:
	.string	"write failed!"
.LC12:
	.string	"done."
.LC13:
	.string	"Couldn't open file."
	.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, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 1
	jle	.L7
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L8
.L7:
	lea	rax, .LC0[rip]
.L8:
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L9
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -88[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -88[rbp]
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, 255
	jbe	.L11
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	imul	eax, eax, 44
	mov	DWORD PTR -72[rbp], eax
	mov	edx, 2097152
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, 2097152
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	file_size
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	DWORD PTR 40[rax], edx
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 44
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -84[rbp], 1
.L13:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L14
.L20:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 40[rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 40[rax]
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	mov	BYTE PTR [rbx+rax], 46
.L15:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR 40[rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdi, rax
	mov	eax, DWORD PTR -76[rbp]
	mov	ecx, eax
	mov	edx, esi
	mov	rsi, rdi
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 40[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L17
.L18:
	mov	edx, 2097152
	mov	eax, DWORD PTR -76[rbp]
	cmp	edx, eax
	cmovbe	eax, edx
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -68[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -68[rbp]
	sub	DWORD PTR -76[rbp], eax
.L17:
	cmp	DWORD PTR -76[rbp], 0
	jg	.L18
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L19
.L16:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L19:
	add	DWORD PTR -80[rbp], 1
.L14:
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	cmp	edx, eax
	jb	.L20
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L12
.L9:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 1
.L12:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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	"150141023.c"
	.text
	.section	.rodata
	.align	2
	.type	DATA_BUFFER_MAX_SIZE, %object
	.size	DATA_BUFFER_MAX_SIZE, 4
DATA_BUFFER_MAX_SIZE:
	.word	2097152
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	file_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_size, %function
file_size:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-56]
	b	.L4
.L2:
	mvn	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	file_size, .-file_size
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Magic7.vid\000"
	.align	2
.LC2:
	.ascii	"Extracting %s to current directory.\012\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"Writing %d files.\012\000"
	.align	2
.LC5:
	.ascii	"Never seen this few/many file entries before. Somet"
	.ascii	"hing's probably wrong, aborting.\000"
	.align	2
.LC6:
	.ascii	"Allocating %d bytes for file entries, %d for copy-b"
	.ascii	"uffer.\012\000"
	.align	2
.LC7:
	.ascii	"smk\000"
	.align	2
.LC8:
	.ascii	"Auto-detected MM6 mode, adding file extensions.\000"
	.align	2
.LC9:
	.ascii	"File '%s' at 0x%x, %lu bytes -- \000"
	.align	2
.LC10:
	.ascii	"wb\000"
	.align	2
.LC11:
	.ascii	"OK.\000"
	.align	2
.LC12:
	.ascii	"write failed!\000"
	.align	2
.LC13:
	.ascii	"done.\000"
	.align	2
.LC14:
	.ascii	"Couldn't open file.\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	ble	.L9
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	b	.L10
.L9:
	ldr	r3, .L25+4
.L10:
	str	r3, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, .L25+8
	bl	printf
	ldr	r1, .L25+12
	ldr	r0, [fp, #-44]
	bl	fopen
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L11
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r0, fp, #60
	ldr	r3, [fp, #-40]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-60]
	mov	r1, r3
	ldr	r0, .L25+16
	bl	printf
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-60]
	cmp	r3, #255
	bls	.L13
.L12:
	ldr	r0, [fp, #-40]
	bl	fclose
	ldr	r0, .L25+20
	bl	puts
	mov	r3, #1
	b	.L14
.L13:
	ldr	r3, [fp, #-60]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [fp, #-36]
	mov	r3, #2097152
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #2097152
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-44]
	bl	file_size
	mov	r1, r0
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	mov	r2, r1
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #40]
	lsr	r1, r2, #8
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #41]
	lsr	r1, r2, #16
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #42]
	lsr	r2, r2, #24
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #43]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-40]
	mov	r1, #44
	ldr	r0, [fp, #-32]
	bl	fread
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, .L25+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L25+32
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-56]
.L15:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L16
.L22:
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldrb	r1, [r3, #41]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #42]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #43]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r0, r3
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldrb	r1, [r3, #41]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #42]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #43]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	sub	r3, r0, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L17
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r4, r3, r2
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, #46
	strb	r2, [r4, r3]
.L17:
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	mov	r0, r3
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldrb	r1, [r3, #41]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #42]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #43]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-48]
	mov	r1, r0
	ldr	r0, .L25+36
	bl	printf
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r1, .L25+40
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L18
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldrb	r1, [r3, #41]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #42]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #43]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	fseek
	b	.L19
.L20:
	mov	r2, #2097152
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-40]
	mov	r2, #1
	ldr	r0, [fp, #-28]
	bl	fread
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-24]
	mov	r2, #1
	ldr	r0, [fp, #-28]
	bl	fwrite
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-48]
.L19:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L20
	ldr	r0, .L25+44
	bl	puts
	ldr	r0, [fp, #-24]
	bl	fclose
	b	.L21
.L18:
	ldr	r0, .L25+48
	bl	puts
	ldr	r0, [fp, #-24]
	bl	fclose
.L21:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L16:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bcc	.L22
	ldr	r0, .L25+52
	bl	puts
	ldr	r0, [fp, #-40]
	bl	fclose
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	mov	r3, #0
	b	.L14
.L11:
	ldr	r0, .L25+56
	bl	puts
	mov	r3, #1
.L14:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC15
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
