	.file	"412610.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	tail
	.align 8
	.type	tail, @object
	.size	tail, 8
tail:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%s.bak"
.LC1:
	.string	".csv"
.LC2:
	.string	"r"
.LC3:
	.string	"w"
.LC4:
	.string	"Cannot open config file %s\n"
.LC5:
	.string	"Cannot create backup file %s\n"
.LC6:
	.string	" \t\r\n"
.LC7:
	.string	"Cannot open template file %s\n"
.LC8:
	.string	"Cannot create config file %s\n"
.LC9:
	.string	"Adding new entry to %s: %s"
	.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
	lea	r11, -32768[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 288
	mov	DWORD PTR -33044[rbp], edi
	mov	QWORD PTR -33056[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -33029[rbp], 61
	mov	DWORD PTR -33028[rbp], 1
	mov	rax, QWORD PTR -33056[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -33016[rbp], rax
	mov	rax, QWORD PTR -33056[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -33008[rbp], rax
	mov	rax, QWORD PTR -33008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 5
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -33000[rbp], rax
	mov	rdx, QWORD PTR -33008[rbp]
	mov	rax, QWORD PTR -33000[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -33016[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L2
	mov	BYTE PTR -33029[rbp], 59
.L2:
	lea	rdx, -32928[rbp]
	mov	rax, QWORD PTR -33008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L3
	mov	DWORD PTR -33028[rbp], 0
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -33008[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32992[rbp], rax
	mov	rax, QWORD PTR -33000[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	rax, QWORD PTR -33000[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32984[rbp], rax
	cmp	QWORD PTR -32992[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -33008[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L28
.L5:
	cmp	QWORD PTR -32984[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -33000[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L28
.L12:
	mov	rdx, QWORD PTR -32984[rbp]
	lea	rax, -32784[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rax, -32784[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strspn@PLT
	lea	rdx, -32784[rbp]
	add	rax, rdx
	mov	QWORD PTR -32976[rbp], rax
	mov	rax, QWORD PTR -32976[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	je	.L8
	mov	rax, QWORD PTR -32976[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L10
	jmp	.L8
.L10:
	movsx	edx, BYTE PTR -33029[rbp]
	mov	rax, QWORD PTR -32976[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -32968[rbp], rax
	cmp	QWORD PTR -32968[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -32968[rbp]
	mov	BYTE PTR [rax], 0
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -32960[rbp], rax
	mov	rax, QWORD PTR -32976[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32960[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32968[rbp]
	movzx	edx, BYTE PTR -33029[rbp]
	mov	BYTE PTR [rax], dl
	lea	rax, -32784[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32960[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -32960[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR tail[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -32960[rbp]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR tail[rip], rax
	jmp	.L8
.L11:
	mov	rax, QWORD PTR tail[rip]
	mov	rdx, QWORD PTR -32960[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -32960[rbp]
	mov	QWORD PTR tail[rip], rax
.L8:
	mov	rdx, QWORD PTR -32992[rbp]
	lea	rax, -32784[rbp]
	mov	esi, 32768
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR -32992[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32984[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L4:
	mov	rax, QWORD PTR -33016[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32952[rbp], rax
	mov	rax, QWORD PTR -33008[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	rax, QWORD PTR -33008[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32992[rbp], rax
	cmp	QWORD PTR -32952[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -33016[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L28
.L13:
	cmp	QWORD PTR -32992[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR -33008[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L28
.L24:
	lea	rax, -32784[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strspn@PLT
	lea	rdx, -32784[rbp]
	add	rax, rdx
	mov	QWORD PTR -32944[rbp], rax
	mov	rax, QWORD PTR -32944[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	je	.L16
	mov	rax, QWORD PTR -32944[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L17
.L16:
	mov	rdx, QWORD PTR -32992[rbp]
	lea	rax, -32784[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L15
.L17:
	movsx	edx, BYTE PTR -33029[rbp]
	mov	rax, QWORD PTR -32944[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -32936[rbp], rax
	cmp	QWORD PTR -32936[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -32936[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -33024[rbp], rax
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -33024[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -33024[rbp], rax
.L19:
	cmp	QWORD PTR -33024[rbp], 0
	je	.L20
	mov	rax, QWORD PTR -33024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32944[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
.L20:
	mov	rax, QWORD PTR -32936[rbp]
	movzx	edx, BYTE PTR -33029[rbp]
	mov	BYTE PTR [rax], dl
	cmp	QWORD PTR -33024[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -33024[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -32992[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -33024[rbp]
	mov	DWORD PTR 16[rax], 1
	jmp	.L15
.L22:
	cmp	DWORD PTR -33028[rbp], 0
	je	.L23
	lea	rdx, -32784[rbp]
	mov	rax, QWORD PTR -33008[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	mov	rdx, QWORD PTR -32992[rbp]
	lea	rax, -32784[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	jmp	.L15
.L18:
	mov	rdx, QWORD PTR -32992[rbp]
	lea	rax, -32784[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L15:
	mov	rdx, QWORD PTR -32952[rbp]
	lea	rax, -32784[rbp]
	mov	esi, 32768
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L24
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -33024[rbp], rax
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -33024[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L26
	mov	rax, QWORD PTR -33024[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -32992[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L26:
	mov	rax, QWORD PTR -33024[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -33024[rbp], rax
.L25:
	cmp	QWORD PTR -33024[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -32992[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32952[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L28:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"412610.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s.bak\000"
	.align	2
.LC1:
	.ascii	".csv\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"Cannot open config file %s\012\000"
	.align	2
.LC5:
	.ascii	"Cannot create backup file %s\012\000"
	.align	2
.LC6:
	.ascii	" \011\015\012\000"
	.align	2
.LC7:
	.ascii	"Cannot open template file %s\012\000"
	.align	2
.LC8:
	.ascii	"Cannot create config file %s\012\000"
	.align	2
.LC9:
	.ascii	"Adding new entry to %s: %s\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32928
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #32768
	sub	sp, sp, #164
	sub	r3, fp, #32768
	sub	r3, r3, #12
	str	r0, [r3, #-156]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	str	r1, [r3, #-160]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, #61
	strb	r2, [r3, #-149]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-144]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [r4, #-140]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [r4, #-136]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-136]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #5
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-132]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r2, #-136]
	ldr	r1, .L30+4
	ldr	r0, [r3, #-132]
	bl	sprintf
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, .L30+8
	ldr	r0, [r3, #-140]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, #59
	strb	r2, [r3, #-149]
.L2:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #96
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-136]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-144]
	b	.L4
.L3:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, .L30+12
	ldr	r0, [r3, #-136]
	bl	fopen
	str	r0, [r4, #-128]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-132]
	bl	unlink
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, .L30+16
	ldr	r0, [r3, #-132]
	bl	fopen
	str	r0, [r4, #-124]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-128]
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, [r3, #-136]
	ldr	r0, .L30+20
	bl	printf
	mov	r3, #1
	b	.L28
.L5:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, [r3, #-132]
	ldr	r0, .L30+24
	bl	printf
	mov	r3, #1
	b	.L28
.L12:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-124]
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L30+28
	mov	r0, r3
	bl	strspn
	mov	r2, r0
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	str	r3, [r1, #-120]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L8
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	b	.L8
.L10:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldrb	r3, [r3, #-149]	@ zero_extendqisi2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-120]
	bl	strchr
	str	r0, [r4, #-116]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-112]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-120]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	str	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldrb	r2, [r2, #-149]
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	str	r2, [r3, #4]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L30+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r2, .L30+36
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	str	r3, [r2]
	ldr	r3, .L30+36
	ldr	r3, [r3]
	ldr	r2, .L30+32
	str	r3, [r2]
	b	.L8
.L11:
	ldr	r3, .L30+32
	ldr	r3, [r3]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r2, [r2, #-112]
	str	r2, [r3, #12]
	ldr	r2, .L30+32
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	str	r3, [r2]
.L8:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-128]
	mov	r1, #32768
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-128]
	bl	fclose
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-124]
	bl	fclose
.L4:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, .L30+12
	ldr	r0, [r3, #-140]
	bl	fopen
	str	r0, [r4, #-108]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-136]
	bl	unlink
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, .L30+16
	ldr	r0, [r3, #-136]
	bl	fopen
	str	r0, [r4, #-128]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, [r3, #-140]
	ldr	r0, .L30+40
	bl	printf
	mov	r3, #1
	b	.L28
.L13:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-128]
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, [r3, #-136]
	ldr	r0, .L30+44
	bl	printf
	mov	r3, #1
	b	.L28
.L24:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L30+28
	mov	r0, r3
	bl	strspn
	mov	r2, r0
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	str	r3, [r1, #-104]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L16
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
.L16:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-128]
	mov	r0, r3
	bl	fputs
	b	.L15
.L17:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldrb	r3, [r3, #-149]	@ zero_extendqisi2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-104]
	bl	strchr
	str	r0, [r4, #-100]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L30+36
	ldr	r3, [r3]
	str	r3, [r2, #-148]
	b	.L19
.L21:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	ldr	r3, [r3, #12]
	str	r3, [r2, #-148]
.L19:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	cmp	r3, #0
	beq	.L20
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	ldr	r3, [r3]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r1, [r2, #-104]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
.L20:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldrb	r2, [r2, #-149]
	strb	r2, [r3]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	ldr	r3, [r3, #4]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r1, [r2, #-128]
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	mov	r2, #1
	str	r2, [r3, #8]
	b	.L15
.L22:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-136]
	ldr	r0, .L30+48
	bl	printf
.L23:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-128]
	mov	r0, r3
	bl	fputs
	b	.L15
.L18:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-128]
	mov	r0, r3
	bl	fputs
.L15:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-108]
	mov	r1, #32768
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L30+36
	ldr	r3, [r3]
	str	r3, [r2, #-148]
	b	.L25
.L27:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L26
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	ldr	r3, [r3, #4]
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r1, [r2, #-128]
	mov	r0, r3
	bl	fputs
.L26:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	ldr	r3, [r3, #12]
	str	r3, [r2, #-148]
.L25:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	cmp	r3, #0
	bne	.L27
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-128]
	bl	fclose
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r0, [r3, #-108]
	bl	fclose
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	tail
	.word	head
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
