	.file	"154361.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s/%s"
.LC1:
	.string	"trying to open file %s\n"
	.text
	.globl	openfile
	.type	openfile, @function
openfile:
.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, 1088
	mov	QWORD PTR -1064[rbp], rdi
	mov	QWORD PTR -1072[rbp], rsi
	mov	QWORD PTR -1080[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1072[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	openfile, .-openfile
	.section	.rodata
.LC2:
	.string	"Offset past TOC: 0x%08x\n"
.LC3:
	.string	"Couldn't find directory"
	.align 8
.LC4:
	.string	"Found non-file (directory?) %s, skipping for now\n"
.LC5:
	.string	"%s"
.LC6:
	.string	"writing file %s at 0x%x\n"
.LC7:
	.string	"Offset of %s: 0x%08x\n"
.LC8:
	.string	"rb"
.LC9:
	.string	"Error: file not found: %s\n"
.LC10:
	.string	"length is %d\n"
.LC11:
	.string	"w"
.LC12:
	.string	"./initrd.img"
.LC13:
	.string	"writing %d headers to initrd\n"
.LC14:
	.string	"r"
.LC15:
	.string	"Couldn't find file %s!\n"
	.text
	.globl	write_dir
	.type	write_dir, @function
write_dir:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1896
	.cfi_offset 3, -24
	mov	QWORD PTR -5992[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -5976[rbp], 4868
	mov	eax, DWORD PTR -5976[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -5992[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -5968[rbp], rax
	cmp	QWORD PTR -5968[rbp], 0
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	jmp	.L4
.L5:
	mov	DWORD PTR -5980[rbp], 0
	jmp	.L7
.L10:
	mov	rax, QWORD PTR -5960[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 8
	je	.L8
	mov	rax, QWORD PTR -5960[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -5960[rbp]
	lea	rdx, 19[rax]
	lea	rax, -1056[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, DWORD PTR -5976[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -5980[rbp]
	lea	rcx, -5920[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 1[rax]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	ebx, DWORD PTR -5980[rbp]
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	movsx	rdx, ebx
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	add	rax, rcx
	sub	rax, 5903
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -5980[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	lea	rdx, -5836[rax]
	mov	eax, DWORD PTR -5976[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -5976[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR -5960[rbp]
	mov	rax, QWORD PTR -5992[rbp]
	lea	rdx, .LC8[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	openfile
	mov	QWORD PTR -5928[rbp], rax
	cmp	QWORD PTR -5928[rbp], 0
	jne	.L9
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -5928[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -5928[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	edx, DWORD PTR -5980[rbp]
	mov	ecx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 5832
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR -5980[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 5832
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -5928[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -5980[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 5832
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -5976[rbp], eax
	mov	eax, DWORD PTR -5980[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 5904
	mov	BYTE PTR [rax], -65
	mov	eax, DWORD PTR -5980[rbp]
	add	eax, 1
	mov	DWORD PTR -5980[rbp], eax
.L7:
	mov	rax, QWORD PTR -5968[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -5960[rbp], rax
	cmp	QWORD PTR -5960[rbp], 0
	jne	.L10
	lea	rsi, .LC11[rip]
	lea	rdi, .LC12[rip]
	call	fopen@PLT
	mov	QWORD PTR -5952[rbp], rax
	mov	rdx, QWORD PTR -5952[rbp]
	lea	rax, -5980[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -5952[rbp]
	lea	rax, -5920[rbp]
	mov	rcx, rdx
	mov	edx, 64
	mov	esi, 76
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -5980[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -5972[rbp], 0
	jmp	.L11
.L14:
	lea	rcx, -5920[rbp]
	mov	eax, DWORD PTR -5972[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 1
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -5944[rbp], rax
	cmp	QWORD PTR -5944[rbp], 0
	jne	.L12
	lea	rcx, -5920[rbp]
	mov	eax, DWORD PTR -5972[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -5972[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 5832
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -5936[rbp], rax
	mov	eax, DWORD PTR -5972[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 5832
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rdx, QWORD PTR -5944[rbp]
	mov	rax, QWORD PTR -5936[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -5972[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 5832
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rdx, QWORD PTR -5952[rbp]
	mov	rax, QWORD PTR -5936[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -5944[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -5936[rbp]
	mov	rdi, rax
	call	free@PLT
.L13:
	add	DWORD PTR -5972[rbp], 1
.L11:
	mov	eax, DWORD PTR -5980[rbp]
	cmp	DWORD PTR -5972[rbp], eax
	jl	.L14
	mov	rax, QWORD PTR -5952[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L4:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	write_dir, .-write_dir
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	write_dir
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L18
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"154361.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s/%s\000"
	.align	2
.LC1:
	.ascii	"trying to open file %s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	openfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	openfile, %function
openfile:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1040]
	str	r1, [fp, #-1044]
	str	r2, [fp, #-1048]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1044]
	add	r3, r3, #11
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r2, [fp, #-1040]
	ldr	r1, .L4+4
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L4+8
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1048]
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	openfile, .-openfile
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Offset past TOC: 0x%08x\012\000"
	.align	2
.LC4:
	.ascii	"Couldn't find directory\000"
	.align	2
.LC5:
	.ascii	"Found non-file (directory?) %s, skipping for now\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"writing file %s at 0x%x\012\000"
	.align	2
.LC8:
	.ascii	"Offset of %s: 0x%08x\012\000"
	.align	2
.LC9:
	.ascii	"rb\000"
	.align	2
.LC10:
	.ascii	"Error: file not found: %s\012\000"
	.align	2
.LC11:
	.ascii	"length is %d\012\000"
	.align	2
.LC12:
	.ascii	"w\000"
	.align	2
.LC13:
	.ascii	"./initrd.img\000"
	.align	2
.LC14:
	.ascii	"writing %d headers to initrd\012\000"
	.align	2
.LC15:
	.ascii	"r\000"
	.align	2
.LC16:
	.ascii	"Couldn't find file %s!\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_dir, %function
write_dir:
	@ args = 0, pretend = 0, frame = 5936
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #5888
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-1836]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L18+4
	str	r3, [r2, #-1828]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-1828]
	ldr	r0, .L18+8
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1836]
	bl	opendir
	str	r0, [r4, #-1820]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1820]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L18+12
	bl	perror
	b	.L6
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1832]
	b	.L9
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1816]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #8
	beq	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1816]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L18+16
	bl	printf
	b	.L9
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1816]
	add	r2, r3, #11
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L18+20
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-1828]
	mov	r1, r3
	ldr	r0, .L18+24
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-1832]
	sub	r2, fp, #5888
	sub	r2, r2, #12
	sub	r2, r2, #4
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r2, r3, #1
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r4, [r3, #-1832]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, r2
	sub	r3, r3, #1792
	sub	r3, r3, #3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1832]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #1728
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1828]
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-1828]
	mov	r1, r3
	ldr	r0, .L18+28
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L18+32
	ldr	r1, [r1, #-1816]
	ldr	r0, [r3, #-1836]
	bl	openfile
	str	r0, [r4, #-1800]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1800]
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L18+36
	bl	printf
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-1800]
	bl	fseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1800]
	bl	ftell
	mov	r1, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1832]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	sub	r3, r3, #1712
	sub	r3, r3, #12
	str	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1832]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #1712
	sub	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+40
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1800]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1832]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #1712
	sub	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1828]
	add	r3, r2, r3
	str	r3, [r1, #-1828]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1832]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #1792
	sub	r3, r3, #4
	mvn	r2, #64
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1832]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-1832]
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1820]
	bl	readdir
	str	r0, [r4, #-1816]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1816]
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L18+44
	ldr	r0, .L18+48
	bl	fopen
	str	r0, [r4, #-1812]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #5888
	sub	r0, r0, #12
	sub	r0, r0, #40
	ldr	r3, [r3, #-1812]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #5888
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-1812]
	mov	r2, #64
	mov	r1, #76
	bl	fwrite
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1832]
	mov	r1, r3
	ldr	r0, .L18+52
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1824]
	b	.L13
.L16:
	sub	r2, fp, #5888
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-1824]
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L18+56
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-1808]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1808]
	cmp	r3, #0
	bne	.L14
	sub	r2, fp, #5888
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-1824]
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L18+60
	bl	printf
	b	.L15
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1824]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #1712
	sub	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-1804]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1824]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #1712
	sub	r3, r3, #12
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r3, [r3, #-1808]
	mov	r1, #1
	ldr	r0, [r0, #-1804]
	bl	fread
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-1824]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	r3, r3, #1712
	sub	r3, r3, #12
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r3, [r3, #-1812]
	mov	r1, #1
	ldr	r0, [r0, #-1804]
	bl	fwrite
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1808]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1804]
	bl	free
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	str	r3, [r2, #-1824]
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1832]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-1824]
	cmp	r2, r3
	blt	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-1812]
	bl	fclose
.L6:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC17
	.word	4868
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	write_dir, .-write_dir
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #1
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	write_dir
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L22
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
