	.file	"50136498.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"syntax: [file]"
.LC1:
	.string	"rt"
.LC2:
	.string	"stubtext.conf"
.LC3:
	.string	"couldn't open stubtext.conf"
.LC4:
	.string	"message.conf"
.LC5:
	.string	"couldn't open message.conf"
.LC6:
	.string	"rb"
.LC7:
	.string	"couldn't open %s\n"
.LC8:
	.string	"couldn't alloc memory"
.LC9:
	.string	"wb"
.LC10:
	.string	"%s: %d written\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, 2640
	mov	DWORD PTR -2628[rbp], edi
	mov	QWORD PTR -2640[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2592[rbp], 0
	cmp	DWORD PTR -2628[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	lea	rax, -2576[rbp]
	mov	edx, 512
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -2600[rbp], rax
	mov	rax, QWORD PTR -2600[rbp]
	test	rax, rax
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	lea	rcx, -2576[rbp]
	lea	rax, -2600[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	rdi, rax
	call	parsefile
	mov	rax, QWORD PTR -2600[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -2064[rbp]
	mov	edx, 2048
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -2600[rbp], rax
	mov	rax, QWORD PTR -2600[rbp]
	test	rax, rax
	jne	.L6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L1
.L6:
	lea	rcx, -2064[rbp]
	lea	rax, -2600[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	rdi, rax
	call	parsefile
	mov	rax, QWORD PTR -2600[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -2640[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2600[rbp], rax
	mov	rax, QWORD PTR -2600[rbp]
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR -2640[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L1
.L7:
	mov	rax, QWORD PTR -2600[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -2600[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -2616[rbp], eax
	mov	rax, QWORD PTR -2600[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -2616[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -2584[rbp], rax
	cmp	QWORD PTR -2584[rbp], 0
	jne	.L8
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L1
.L8:
	mov	rax, QWORD PTR -2584[rbp]
	mov	QWORD PTR -2592[rbp], rax
	mov	rcx, QWORD PTR -2600[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2584[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -2600[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -2640[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2600[rbp], rax
	mov	rax, QWORD PTR -2600[rbp]
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -2640[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L9:
	mov	DWORD PTR -2612[rbp], 0
	lea	rax, -2576[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -2608[rbp], eax
	mov	rdx, QWORD PTR -2600[rbp]
	mov	rax, QWORD PTR -2584[rbp]
	mov	rcx, rdx
	mov	edx, 64
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -2612[rbp]
	add	eax, edx
	mov	DWORD PTR -2612[rbp], eax
	mov	rcx, QWORD PTR -2600[rbp]
	mov	eax, DWORD PTR -2608[rbp]
	movsx	rdx, eax
	lea	rax, -2576[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -2612[rbp]
	add	eax, edx
	mov	DWORD PTR -2612[rbp], eax
	mov	eax, DWORD PTR -2608[rbp]
	add	eax, 64
	cdqe
	add	QWORD PTR -2584[rbp], rax
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -2604[rbp], eax
	mov	rcx, QWORD PTR -2600[rbp]
	mov	eax, DWORD PTR -2616[rbp]
	sub	eax, 64
	sub	eax, DWORD PTR -2608[rbp]
	sub	eax, DWORD PTR -2604[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -2584[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -2612[rbp]
	add	eax, edx
	mov	DWORD PTR -2612[rbp], eax
	mov	rcx, QWORD PTR -2600[rbp]
	mov	eax, DWORD PTR -2604[rbp]
	movsx	rdx, eax
	lea	rax, -2064[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -2612[rbp]
	add	eax, edx
	mov	DWORD PTR -2612[rbp], eax
	mov	rax, QWORD PTR -2584[rbp]
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -2600[rbp]
	mov	rax, QWORD PTR -2584[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -2612[rbp]
	add	eax, edx
	mov	DWORD PTR -2612[rbp], eax
	mov	rax, QWORD PTR -2640[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -2612[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2600[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L5:
	cmp	QWORD PTR -2592[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -2592[rbp]
	mov	rdi, rax
	call	free@PLT
.L13:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	parsefile
	.type	parsefile, @function
parsefile:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L17
.L28:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L30
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	jne	.L30
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	BYTE PTR -33[rbp], al
	cmp	BYTE PTR -33[rbp], 47
	jle	.L19
	cmp	BYTE PTR -33[rbp], 57
	jg	.L19
	movsx	eax, BYTE PTR -33[rbp]
	sub	eax, 48
	sal	eax, 4
	mov	DWORD PTR -32[rbp], eax
	jmp	.L20
.L19:
	cmp	BYTE PTR -33[rbp], 96
	jle	.L31
	cmp	BYTE PTR -33[rbp], 102
	jg	.L31
	movsx	eax, BYTE PTR -33[rbp]
	sub	eax, 87
	sal	eax, 4
	mov	DWORD PTR -32[rbp], eax
.L20:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	BYTE PTR -33[rbp], al
	cmp	BYTE PTR -33[rbp], 47
	jle	.L22
	cmp	BYTE PTR -33[rbp], 57
	jg	.L22
	movsx	eax, BYTE PTR -33[rbp]
	sub	eax, 48
	add	DWORD PTR -32[rbp], eax
	jmp	.L23
.L22:
	cmp	BYTE PTR -33[rbp], 96
	jle	.L32
	cmp	BYTE PTR -33[rbp], 102
	jg	.L32
	movsx	eax, BYTE PTR -33[rbp]
	sub	eax, 87
	add	DWORD PTR -32[rbp], eax
.L23:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, DWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jge	.L33
	add	QWORD PTR -24[rbp], 4
	jmp	.L17
.L30:
	nop
	jmp	.L18
.L31:
	nop
	jmp	.L18
.L32:
	nop
.L18:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L27
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	je	.L27
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L27
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L27:
	add	QWORD PTR -24[rbp], 1
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jge	.L34
.L17:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L28
	jmp	.L26
.L33:
	nop
	jmp	.L26
.L34:
	nop
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L14
.L29:
	nop
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parsefile, .-parsefile
	.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	"50136498.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"syntax: [file]\000"
	.align	2
.LC1:
	.ascii	"rt\000"
	.align	2
.LC2:
	.ascii	"stubtext.conf\000"
	.align	2
.LC3:
	.ascii	"couldn't open stubtext.conf\000"
	.align	2
.LC4:
	.ascii	"message.conf\000"
	.align	2
.LC5:
	.ascii	"couldn't open message.conf\000"
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	"couldn't open %s\012\000"
	.align	2
.LC8:
	.ascii	"couldn't alloc memory\000"
	.align	2
.LC9:
	.ascii	"wb\000"
	.align	2
.LC10:
	.ascii	"%s: %d written\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2592
	sub	sp, sp, #8
	str	r0, [fp, #-2600]
	str	r1, [fp, #-2604]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2592]
	ldr	r3, [fp, #-2600]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L14+4
	bl	puts
	b	.L1
.L2:
	sub	r3, fp, #2560
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L14+8
	ldr	r0, .L14+12
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-2596]
	ldr	r3, [fp, #-2596]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L14+16
	bl	puts
	b	.L5
.L4:
	sub	r3, fp, #2560
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r0, fp, #2592
	sub	r0, r0, #4
	mov	r2, #512
	mov	r1, r3
	bl	parsefile
	ldr	r3, [fp, #-2596]
	mov	r0, r3
	bl	fclose
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L14+8
	ldr	r0, .L14+20
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-2596]
	ldr	r3, [fp, #-2596]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L14+24
	bl	puts
	b	.L1
.L6:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r0, fp, #2592
	sub	r0, r0, #4
	mov	r2, #2048
	mov	r1, r3
	bl	parsefile
	ldr	r3, [fp, #-2596]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-2604]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+28
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-2596]
	ldr	r3, [fp, #-2596]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-2604]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+32
	bl	printf
	b	.L1
.L7:
	ldr	r3, [fp, #-2596]
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, [fp, #-2596]
	mov	r0, r3
	bl	ftell
	str	r0, [fp, #-2588]
	ldr	r3, [fp, #-2596]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, [fp, #-2588]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2584]
	ldr	r3, [fp, #-2584]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L14+36
	bl	puts
	b	.L1
.L8:
	ldr	r3, [fp, #-2584]
	str	r3, [fp, #-2592]
	ldr	r2, [fp, #-2588]
	ldr	r3, [fp, #-2596]
	mov	r1, #1
	ldr	r0, [fp, #-2584]
	bl	fread
	ldr	r3, [fp, #-2596]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-2604]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+40
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-2596]
	ldr	r3, [fp, #-2596]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-2604]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+32
	bl	printf
	b	.L5
.L9:
	mov	r3, #0
	str	r3, [fp, #-2580]
	sub	r3, fp, #2560
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-2576]
	ldr	r3, [fp, #-2596]
	mov	r2, #64
	mov	r1, #1
	ldr	r0, [fp, #-2584]
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-2580]
	add	r3, r2, r3
	str	r3, [fp, #-2580]
	ldr	r2, [fp, #-2576]
	ldr	r3, [fp, #-2596]
	sub	r0, fp, #2560
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r1, #1
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-2580]
	add	r3, r2, r3
	str	r3, [fp, #-2580]
	ldr	r3, [fp, #-2576]
	add	r3, r3, #64
	mov	r2, r3
	ldr	r3, [fp, #-2584]
	add	r3, r3, r2
	str	r3, [fp, #-2584]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-2572]
	ldr	r3, [fp, #-2588]
	sub	r2, r3, #64
	ldr	r3, [fp, #-2576]
	sub	r2, r2, r3
	ldr	r3, [fp, #-2572]
	sub	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-2596]
	mov	r1, #1
	ldr	r0, [fp, #-2584]
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-2580]
	add	r3, r2, r3
	str	r3, [fp, #-2580]
	ldr	r2, [fp, #-2572]
	ldr	r3, [fp, #-2596]
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	mov	r1, #1
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-2580]
	add	r3, r2, r3
	str	r3, [fp, #-2580]
	ldr	r3, [fp, #-2584]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-2596]
	mov	r2, #1
	mov	r1, #1
	ldr	r0, [fp, #-2584]
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-2580]
	add	r3, r2, r3
	str	r3, [fp, #-2580]
	ldr	r3, [fp, #-2604]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-2580]
	mov	r1, r3
	ldr	r0, .L14+44
	bl	printf
	ldr	r3, [fp, #-2596]
	mov	r0, r3
	bl	fclose
.L5:
	ldr	r3, [fp, #-2592]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-2592]
	bl	free
.L13:
	nop
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.align	2
	.global	parsefile
	.syntax unified
	.arm
	.fpu softvfp
	.type	parsefile, %function
parsefile:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L31
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	b	.L19
.L30:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L32
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	bne	.L32
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L21
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L21
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	sub	r3, r3, #48
	lsl	r3, r3, #4
	str	r3, [fp, #-24]
	b	.L22
.L21:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L33
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L33
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	sub	r3, r3, #87
	lsl	r3, r3, #4
	str	r3, [fp, #-24]
.L22:
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L24
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L24
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L25
.L24:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L34
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L34
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	sub	r3, r3, #87
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L25:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L35
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	str	r3, [fp, #-16]
	b	.L19
.L32:
	nop
	b	.L20
.L33:
	nop
	b	.L20
.L34:
	nop
.L20:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L29
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L29
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L29
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L29:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L36
.L19:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L30
	b	.L28
.L35:
	nop
	b	.L28
.L36:
	nop
.L28:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	free
	b	.L16
.L31:
	nop
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parsefile, .-parsefile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
