	.file	"42031.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	read_file
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L3
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L2
.L3:
	mov	DWORD PTR -20[rbp], -2
.L2:
	cmp	QWORD PTR -16[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -16[rbp], 0
.L4:
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	get_filename
	.type	get_filename, @function
get_filename:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_args
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	validate_arg
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_filename, .-get_filename
	.section	.rodata
.LC1:
	.string	"a"
.LC2:
	.string	"source05_log.txt"
	.text
	.globl	log_it
	.type	log_it, @function
log_it:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L9
	cmp	QWORD PTR -24[rbp], 0
	je	.L9
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L9:
	cmp	QWORD PTR -8[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -8[rbp], 0
	nop
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	log_it, .-log_it
	.section	.rodata
.LC3:
	.string	"Invalid number of arguments!\n"
.LC4:
	.string	"source05_bad.bin"
.LC5:
	.string	"Invalid binary name!\n"
	.text
	.globl	parse_args
	.type	parse_args, @function
parse_args:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -24[rbp], 0
	cmp	DWORD PTR -36[rbp], 2
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 16
	add	rax, r12
	cmp	rbx, rax
	je	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
.L15:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L17
	call	print_usage
.L17:
	mov	rax, QWORD PTR -24[rbp]
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	parse_args, .-parse_args
	.section	.rodata
	.align 8
.LC6:
	.string	"usage: %s [options] input_file\n"
.LC7:
	.string	"\toptions:\n"
.LC8:
	.string	"\t\t-h, --help\t\tprint usage\n"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC9:
	.string	"r"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -8[rbp], 64
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	BYTE PTR -33[rbp], 0
	cmp	QWORD PTR -56[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L21
	cmp	QWORD PTR -8[rbp], 0
	js	.L21
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -33[rbp], al
	cmp	BYTE PTR -33[rbp], -1
	je	.L27
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR -33[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -16[rbp], 1
	cmp	BYTE PTR -33[rbp], 0
	je	.L28
	jmp	.L24
.L27:
	nop
	jmp	.L21
.L28:
	nop
.L21:
	cmp	QWORD PTR -24[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -24[rbp], 0
.L25:
	mov	rax, QWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	read_file, .-read_file
	.globl	size_file
	.type	size_file, @function
size_file:
.LFB12:
	.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
	mov	QWORD PTR -168[rbp], -1
	cmp	QWORD PTR -184[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L30
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -168[rbp], rax
.L30:
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	size_file, .-size_file
	.section	.rodata
.LC10:
	.string	"-h"
.LC11:
	.string	"--help"
	.text
	.globl	validate_arg
	.type	validate_arg, @function
validate_arg:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L34
.L37:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	cmp	QWORD PTR -56[rbp], rax
	jne	.L35
	mov	QWORD PTR -48[rbp], 0
	call	print_usage
	jmp	.L36
.L35:
	add	QWORD PTR -40[rbp], 8
.L34:
	cmp	QWORD PTR -40[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L37
.L36:
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	validate_arg, .-validate_arg
	.globl	verify_filename
	.type	verify_filename, @function
verify_filename:
.LFB14:
	.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
	mov	DWORD PTR -164[rbp], 0
	cmp	QWORD PTR -184[rbp], 0
	je	.L41
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L42
.L41:
	mov	DWORD PTR -164[rbp], -1
	jmp	.L43
.L42:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L43
	mov	DWORD PTR -164[rbp], 1
.L43:
	mov	eax, DWORD PTR -164[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	verify_filename, .-verify_filename
	.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	"42031.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-h\000"
	.align	2
.LC1:
	.ascii	"--help\000"
	.text
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-8]
	bl	read_file
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L6+4
	mov	r0, r3
	bl	fprintf
	b	.L2
.L3:
	mvn	r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stdout
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	get_filename
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_filename, %function
get_filename:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	parse_args
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	validate_arg
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_filename, .-get_filename
	.section	.rodata
	.align	2
.LC4:
	.ascii	"a\000"
	.align	2
.LC5:
	.ascii	"source05_log.txt\000"
	.text
	.align	2
	.global	log_it
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_it, %function
log_it:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L15
	ldr	r0, .L15+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L11
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fputs
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-8]
	nop
.L14:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	.LC5
	.size	log_it, .-log_it
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Invalid number of arguments!\012\000"
	.align	2
.LC7:
	.ascii	"source05_bad.bin\000"
	.align	2
.LC8:
	.ascii	"Invalid binary name!\012\000"
	.text
	.align	2
	.global	parse_args
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_args, %function
parse_args:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L18
	ldr	r3, .L23
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L23+4
	bl	fwrite
	b	.L19
.L18:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r1, .L23+8
	mov	r0, r3
	bl	strstr
	mov	r5, r0
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #16
	add	r3, r4, r3
	cmp	r5, r3
	beq	.L20
	ldr	r3, .L23
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L23+12
	bl	fwrite
	b	.L19
.L20:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L19:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	bl	print_usage
.L21:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L24:
	.align	2
.L23:
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	parse_args, .-parse_args
	.section	.rodata
	.align	2
.LC9:
	.ascii	"usage: %s [options] input_file\012\000"
	.align	2
.LC10:
	.ascii	"\011options:\012\000"
	.align	2
.LC11:
	.ascii	"\011\011-h, --help\011\011print usage\012\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r2, .L26+4
	ldr	r1, .L26+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L26+12
	bl	fwrite
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L26+16
	bl	fwrite
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	nop
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	stderr
	.word	.LC7
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC12:
	.ascii	"r\000"
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #64
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L29
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L29
	ldr	r1, .L35
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
.L31:
	ldr	r0, [fp, #-16]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-12]
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L34
	b	.L31
.L34:
	nop
.L29:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L32
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-16]
.L32:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC12
	.size	read_file, .-read_file
	.section	.rodata
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	size_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	size_file, %function
size_file:
	@ 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, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L38
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-104]
.L38:
	ldr	r3, [fp, #-104]
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC13
	.size	size_file, .-size_file
	.section	.rodata
	.align	2
.LC14:
	.word	.LC0
	.word	.LC1
	.word	0
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	validate_arg
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_arg, %function
validate_arg:
	@ 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]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r2, .L50+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #20
	str	r3, [fp, #-24]
	b	.L44
.L47:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	strstr
	mov	r2, r0
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bne	.L45
	mov	r3, #0
	str	r3, [fp, #-28]
	bl	print_usage
	b	.L46
.L45:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
.L44:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L47
.L46:
	ldr	r3, [fp, #-28]
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC15
	.word	.LC14
	.size	validate_arg, .-validate_arg
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	verify_filename
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_filename, %function
verify_filename:
	@ 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, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L54
.L53:
	mvn	r3, #0
	str	r3, [fp, #-104]
	b	.L55
.L54:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	mov	r3, #1
	str	r3, [fp, #-104]
.L55:
	ldr	r3, [fp, #-104]
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC16
	.size	verify_filename, .-verify_filename
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
