	.file	"939695.c"
	.intel_syntax noprefix
	.text
	.globl	pnp
	.bss
	.align 8
	.type	pnp, @object
	.size	pnp, 8
pnp:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"\nBOR PAK extractor/builder v0.1\noriginally by Luigi Auriemma\ne-mail: aluigi@autistici.org\nweb:    aluigi.org\n\nUpdated to v0.2 by SX\ne-mail: sumolx@gmail.com\nweb:    http://www.lavalit.com\n\nUpdated to v0.3 by Plombo\nweb:    http://www.lavalit.com\n\n"
	.align 8
.LC1:
	.string	"\nUsage: %s [options] <file.PAK>\n\n-d DIR   files folder, default is the current\n-b       build a PAK from the files folder, default is extraction\n-l       list files without extracting\n-p PAT   extract only the files which contain PAT in their name\n\n"
	.align 8
.LC2:
	.string	"\nError: wrong command-line argument (%s)\n\n"
	.align 8
.LC3:
	.string	"\nError: please specify the files directory with the -d option and don't specify\n       the current\n"
.LC4:
	.string	"- create file: %s\n"
.LC5:
	.string	"- directory: %s\n\n"
.LC6:
	.string	"rb"
	.align 8
.LC7:
	.string	"- a file with the same name already exists, overwrite? (y/N)\n  "
.LC8:
	.string	"wb"
.LC9:
	.string	"PACK"
	.align 8
.LC10:
	.string	"    offset       size   filename\n--------------------------------"
	.align 8
.LC11:
	.string	"\nError: an error occurred during the directory scanning"
.LC12:
	.string	"- files info offset: %08x\n"
.LC13:
	.string	"- open file: %s\n"
.LC14:
	.string	"- change directory: %s\n"
.LC15:
	.string	"  %s\n"
.LC16:
	.string	"- finished: %d files\n"
.LC17:
	.string	"- current directory: %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, 656
	mov	DWORD PTR -644[rbp], edi
	mov	QWORD PTR -656[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -628[rbp], 0
	mov	DWORD PTR -624[rbp], 0
	mov	DWORD PTR -616[rbp], 0
	mov	DWORD PTR -620[rbp], 0
	mov	QWORD PTR -592[rbp], 0
	mov	QWORD PTR -584[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 247
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -644[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR -656[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	sub	DWORD PTR -644[rbp], 1
	mov	DWORD PTR -632[rbp], 1
	jmp	.L3
.L11:
	mov	eax, DWORD PTR -632[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -656[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L38
	mov	eax, DWORD PTR -632[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -656[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 112
	je	.L6
	cmp	eax, 112
	jg	.L7
	cmp	eax, 108
	je	.L8
	cmp	eax, 108
	jg	.L7
	cmp	eax, 98
	je	.L9
	cmp	eax, 100
	jne	.L7
	add	DWORD PTR -632[rbp], 1
	mov	eax, DWORD PTR -632[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -656[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -592[rbp], rax
	jmp	.L10
.L9:
	mov	DWORD PTR -624[rbp], 1
	jmp	.L10
.L8:
	mov	DWORD PTR -628[rbp], 1
	jmp	.L10
.L6:
	add	DWORD PTR -632[rbp], 1
	mov	eax, DWORD PTR -632[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -656[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -584[rbp], rax
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -632[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -656[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	add	DWORD PTR -632[rbp], 1
.L3:
	mov	eax, DWORD PTR -632[rbp]
	cmp	eax, DWORD PTR -644[rbp]
	jl	.L11
	jmp	.L5
.L38:
	nop
.L5:
	mov	eax, DWORD PTR -644[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -656[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -576[rbp], rax
	cmp	DWORD PTR -624[rbp], 0
	je	.L12
	cmp	QWORD PTR -592[rbp], 0
	jne	.L13
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -576[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -592[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -576[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -600[rbp], rax
	cmp	QWORD PTR -600[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -600[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 121
	je	.L14
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -576[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -600[rbp], rax
	cmp	QWORD PTR -600[rbp], 0
	jne	.L15
	call	std_err
.L15:
	mov	rax, QWORD PTR -600[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	cmp	rax, 1
	je	.L16
	call	write_err
.L16:
	mov	ecx, DWORD PTR -616[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 32
	mov	esi, ecx
	mov	rdi, rax
	call	fdwinum
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -592[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	recursive_dir
	test	eax, eax
	jns	.L17
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -600[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -636[rbp], eax
	mov	eax, DWORD PTR -636[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR pnp[rip]
	mov	QWORD PTR -608[rbp], rax
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -608[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 32
	mov	esi, ecx
	mov	rdi, rax
	call	fdwinum
	mov	rax, QWORD PTR -608[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 32
	mov	esi, ecx
	mov	rdi, rax
	call	fdwinum
	mov	rax, QWORD PTR -608[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 32
	mov	esi, ecx
	mov	rdi, rax
	call	fdwinum
	mov	rax, QWORD PTR -608[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 12
	mov	esi, eax
	mov	rax, QWORD PTR -608[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -600[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L20
	call	write_err
.L20:
	mov	rax, QWORD PTR -608[rbp]
	mov	QWORD PTR -568[rbp], rax
	mov	rax, QWORD PTR -608[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -608[rbp], rax
	mov	rax, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -568[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -620[rbp], 1
.L19:
	cmp	QWORD PTR -608[rbp], 0
	jne	.L21
	mov	ecx, DWORD PTR -636[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 32
	mov	esi, ecx
	mov	rdi, rax
	call	fdwinum
	jmp	.L18
.L12:
	mov	rax, QWORD PTR -576[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -576[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -600[rbp], rax
	cmp	QWORD PTR -600[rbp], 0
	jne	.L22
	call	std_err
.L22:
	cmp	QWORD PTR -592[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -592[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -592[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L23
	call	std_err
.L23:
	mov	rdx, QWORD PTR -600[rbp]
	lea	rax, -532[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	je	.L39
	lea	rax, -532[rbp]
	mov	edx, 4
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fdrinum
	mov	DWORD PTR -616[rbp], eax
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 2
	mov	rsi, -4
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L26
	call	std_err
.L26:
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fdrinum
	mov	DWORD PTR -636[rbp], eax
	mov	ecx, DWORD PTR -636[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L35
	call	std_err
.L35:
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fdrinum
	mov	DWORD PTR -560[rbp], eax
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fdrinum
	mov	DWORD PTR -556[rbp], eax
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	fdrinum
	mov	DWORD PTR -552[rbp], eax
	mov	eax, DWORD PTR -560[rbp]
	sub	eax, 12
	mov	DWORD PTR -612[rbp], eax
	cmp	DWORD PTR -612[rbp], 0
	jle	.L41
	mov	eax, DWORD PTR -612[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR -544[rbp]
	test	rax, rax
	jne	.L29
	call	std_err
.L29:
	mov	eax, DWORD PTR -612[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -600[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	je	.L42
	cmp	QWORD PTR -584[rbp], 0
	je	.L31
	cmp	QWORD PTR -584[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -584[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	strcasestr@PLT
	test	eax, eax
	je	.L32
.L31:
	mov	rax, QWORD PTR -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -628[rbp], 0
	jne	.L33
	mov	ecx, DWORD PTR -552[rbp]
	mov	edx, DWORD PTR -556[rbp]
	mov	rsi, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	rdi, rax
	call	get_file
.L33:
	add	DWORD PTR -620[rbp], 1
.L32:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -560[rbp]
	add	DWORD PTR -636[rbp], eax
	mov	ecx, DWORD PTR -636[rbp]
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L35
	call	std_err
	jmp	.L35
.L39:
	nop
	jmp	.L18
.L40:
	nop
	jmp	.L18
.L41:
	nop
	jmp	.L18
.L42:
	nop
.L18:
	mov	rax, QWORD PTR -600[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -620[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	getcwd@PLT
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC18:
	.string	"  %08x %10u   %s\n"
	.text
	.globl	put_file
	.type	put_file, @function
put_file:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	QWORD PTR -8264[rbp], rdi
	mov	QWORD PTR -8272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -8272[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8216[rbp], rax
	cmp	QWORD PTR -8216[rbp], 0
	jne	.L44
	call	std_err
.L44:
	mov	rax, QWORD PTR -8272[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L45
	add	QWORD PTR -8272[rbp], 2
.L45:
	mov	rax, QWORD PTR -8272[rbp]
	mov	QWORD PTR -8224[rbp], rax
	jmp	.L46
.L48:
	mov	rax, QWORD PTR -8224[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L47
	mov	rax, QWORD PTR -8224[rbp]
	mov	BYTE PTR [rax], 92
.L47:
	add	QWORD PTR -8224[rbp], 1
.L46:
	mov	rax, QWORD PTR -8224[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L48
	mov	rax, QWORD PTR -8264[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -8240[rbp], eax
	mov	DWORD PTR -8244[rbp], 0
	jmp	.L49
.L51:
	mov	eax, DWORD PTR -8236[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -8264[rbp]
	lea	rax, -8208[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L50
	call	write_err
.L50:
	mov	eax, DWORD PTR -8236[rbp]
	add	DWORD PTR -8244[rbp], eax
.L49:
	mov	rdx, QWORD PTR -8216[rbp]
	lea	rax, -8208[rbp]
	mov	rcx, rdx
	mov	edx, 8192
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8236[rbp], eax
	cmp	DWORD PTR -8236[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR -8216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR pnp[rip]
	mov	QWORD PTR -8232[rbp], rax
	jmp	.L52
.L54:
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8232[rbp], rax
.L52:
	cmp	QWORD PTR -8232[rbp], 0
	je	.L53
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L54
.L53:
	cmp	QWORD PTR -8232[rbp], 0
	je	.L55
	mov	edi, 32
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8232[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L56
	call	std_err
.L56:
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8232[rbp], rax
	jmp	.L57
.L55:
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR pnp[rip], rax
	mov	rax, QWORD PTR pnp[rip]
	test	rax, rax
	jne	.L58
	call	std_err
.L58:
	mov	rax, QWORD PTR pnp[rip]
	mov	QWORD PTR -8232[rbp], rax
.L57:
	mov	rax, QWORD PTR -8232[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 1
	mov	DWORD PTR -8236[rbp], eax
	mov	eax, DWORD PTR -8236[rbp]
	add	eax, 12
	mov	edx, eax
	mov	rax, QWORD PTR -8232[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8232[rbp]
	mov	edx, DWORD PTR -8240[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8232[rbp]
	mov	edx, DWORD PTR -8244[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR -8236[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8232[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L59
	call	std_err
.L59:
	mov	eax, DWORD PTR -8236[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8232[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR -8272[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rcx, QWORD PTR -8272[rbp]
	mov	edx, DWORD PTR -8244[rbp]
	mov	eax, DWORD PTR -8240[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	put_file, .-put_file
	.globl	get_file
	.type	get_file, @function
get_file:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	QWORD PTR -8248[rbp], rdi
	mov	QWORD PTR -8256[rbp], rsi
	mov	DWORD PTR -8260[rbp], edx
	mov	DWORD PTR -8264[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	ecx, DWORD PTR -8260[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L63
	call	std_err
.L63:
	mov	rax, QWORD PTR -8256[rbp]
	mov	QWORD PTR -8224[rbp], rax
	jmp	.L64
.L68:
	mov	rax, QWORD PTR -8224[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	je	.L65
	mov	rax, QWORD PTR -8224[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L66
.L65:
	mov	rax, QWORD PTR -8224[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8256[rbp]
	mov	esi, 493
	mov	rdi, rax
	call	mkdir@PLT
	mov	rax, QWORD PTR -8224[rbp]
	mov	BYTE PTR [rax], 47
	jmp	.L67
.L66:
	mov	rax, QWORD PTR -8224[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8224[rbp]
	mov	BYTE PTR [rax], dl
.L67:
	add	QWORD PTR -8224[rbp], 1
.L64:
	mov	rax, QWORD PTR -8224[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L68
	mov	rax, QWORD PTR -8256[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8216[rbp], rax
	cmp	QWORD PTR -8216[rbp], 0
	jne	.L69
	call	std_err
.L69:
	mov	DWORD PTR -8232[rbp], 8192
	jmp	.L70
.L75:
	mov	eax, DWORD PTR -8232[rbp]
	cmp	DWORD PTR -8264[rbp], eax
	jnb	.L71
	mov	eax, DWORD PTR -8264[rbp]
	mov	DWORD PTR -8232[rbp], eax
.L71:
	mov	eax, DWORD PTR -8232[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8248[rbp]
	lea	rax, -8208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8228[rbp], eax
	cmp	DWORD PTR -8228[rbp], 0
	je	.L77
	mov	eax, DWORD PTR -8228[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -8216[rbp]
	lea	rax, -8208[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L74
	call	write_err
.L74:
	mov	eax, DWORD PTR -8228[rbp]
	sub	DWORD PTR -8264[rbp], eax
.L70:
	cmp	DWORD PTR -8264[rbp], 0
	jne	.L75
	jmp	.L73
.L77:
	nop
.L73:
	mov	rax, QWORD PTR -8216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_file, .-get_file
	.globl	fdrinum
	.type	fdrinum, @function
fdrinum:
.LFB9:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	sar	DWORD PTR -44[rbp], 3
	mov	eax, DWORD PTR -44[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -12[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L79
.L80:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, BYTE PTR -12[rbp+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -16[rbp]
	sal	eax, 3
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -20[rbp], eax
	add	DWORD PTR -16[rbp], 1
.L79:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L80
	mov	eax, DWORD PTR -20[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fdrinum, .-fdrinum
	.globl	fdwinum
	.type	fdwinum, @function
fdwinum:
.LFB10:
	.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
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	sar	DWORD PTR -32[rbp], 3
	mov	DWORD PTR -16[rbp], 0
	jmp	.L84
.L85:
	mov	eax, DWORD PTR -16[rbp]
	sal	eax, 3
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	BYTE PTR -12[rbp+rax], dl
	add	DWORD PTR -16[rbp], 1
.L84:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L85
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -12[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L88
	call	write_err
.L88:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fdwinum, .-fdwinum
	.section	.rodata
.LC19:
	.string	"**** %s"
.LC20:
	.string	"."
.LC21:
	.string	".."
.LC22:
	.string	"%s/%s"
	.text
	.globl	recursive_dir
	.type	recursive_dir, @function
recursive_dir:
.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, 1216
	mov	QWORD PTR -1208[rbp], rdi
	mov	QWORD PTR -1216[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, -1192[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdx, QWORD PTR alphasort@GOTPCREL[rip]
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	scandir@PLT
	mov	DWORD PTR -1196[rbp], eax
	cmp	DWORD PTR -1196[rbp], 0
	jns	.L90
	lea	rdx, -1184[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L91
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	call	std_err
.L91:
	mov	rdx, QWORD PTR -1216[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	put_file
	test	eax, eax
	jns	.L92
	mov	eax, -1
	jmp	.L105
.L90:
	mov	DWORD PTR -1200[rbp], 0
	jmp	.L94
.L102:
	mov	rdx, QWORD PTR -1192[rbp]
	mov	eax, DWORD PTR -1200[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 19
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L107
	mov	rdx, QWORD PTR -1192[rbp]
	mov	eax, DWORD PTR -1200[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 19
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L107
	mov	rdx, QWORD PTR -1192[rbp]
	mov	eax, DWORD PTR -1200[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -1184[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L98
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	call	std_err
.L98:
	mov	eax, DWORD PTR -1160[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L99
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	recursive_dir
	test	eax, eax
	jns	.L100
	jmp	.L101
.L99:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	put_file
	test	eax, eax
	js	.L108
.L100:
	mov	rdx, QWORD PTR -1192[rbp]
	mov	eax, DWORD PTR -1200[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	jmp	.L97
.L107:
	nop
.L97:
	add	DWORD PTR -1200[rbp], 1
.L94:
	mov	eax, DWORD PTR -1200[rbp]
	cmp	eax, DWORD PTR -1196[rbp]
	jl	.L102
	mov	rax, QWORD PTR -1192[rbp]
	mov	rdi, rax
	call	free@PLT
.L92:
	mov	eax, 0
	jmp	.L105
.L108:
	nop
.L101:
	jmp	.L103
.L104:
	mov	rdx, QWORD PTR -1192[rbp]
	mov	eax, DWORD PTR -1200[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -1200[rbp], 1
.L103:
	mov	eax, DWORD PTR -1200[rbp]
	cmp	eax, DWORD PTR -1196[rbp]
	jl	.L104
	mov	rax, QWORD PTR -1192[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
.L105:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L106
	call	__stack_chk_fail@PLT
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	recursive_dir, .-recursive_dir
	.section	.rodata
	.align 8
.LC23:
	.string	"\nError: write error; probably out of disk space\n"
	.text
	.globl	write_err
	.type	write_err, @function
write_err:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	write_err, .-write_err
	.section	.rodata
.LC24:
	.string	"\nError"
	.text
	.globl	std_err
	.type	std_err, @function
std_err:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	std_err, .-std_err
	.section	.rodata
.LC25:
	.string	"pause"
	.text
	.globl	winpause
	.type	winpause, @function
winpause:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC25[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	winpause, .-winpause
	.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	"939695.c"
	.text
	.global	pnp
	.bss
	.align	2
	.type	pnp, %object
	.size	pnp, 4
pnp:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012BOR PAK extractor/builder v0.1\012originally by"
	.ascii	" Luigi Auriemma\012e-mail: aluigi@autistici.org\012"
	.ascii	"web:    aluigi.org\012\012Updated to v0.2 by SX\012"
	.ascii	"e-mail: sumolx@gmail.com\012web:    http://www.lava"
	.ascii	"lit.com\012\012Updated to v0.3 by Plombo\012web:   "
	.ascii	" http://www.lavalit.com\012\012\000"
	.align	2
.LC1:
	.ascii	"\012Usage: %s [options] <file.PAK>\012\012-d DIR   "
	.ascii	"files folder, default is the current\012-b       bu"
	.ascii	"ild a PAK from the files folder, default is extract"
	.ascii	"ion\012-l       list files without extracting\012-p"
	.ascii	" PAT   extract only the files which contain PAT in "
	.ascii	"their name\012\012\000"
	.align	2
.LC2:
	.ascii	"\012Error: wrong command-line argument (%s)\012\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"\012Error: please specify the files directory with "
	.ascii	"the -d option and don't specify\012       the curre"
	.ascii	"nt\012\000"
	.align	2
.LC4:
	.ascii	"- create file: %s\012\000"
	.align	2
.LC5:
	.ascii	"- directory: %s\012\012\000"
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	"- a file with the same name already exists, overwri"
	.ascii	"te? (y/N)\012  \000"
	.align	2
.LC8:
	.ascii	"wb\000"
	.align	2
.LC9:
	.ascii	"PACK\000"
	.align	2
.LC10:
	.ascii	"    offset       size   filename\012---------------"
	.ascii	"-----------------\000"
	.align	2
.LC11:
	.ascii	"\012Error: an error occurred during the directory s"
	.ascii	"canning\000"
	.align	2
.LC12:
	.ascii	"- files info offset: %08x\012\000"
	.align	2
.LC13:
	.ascii	"- open file: %s\012\000"
	.align	2
.LC14:
	.ascii	"- change directory: %s\012\000"
	.align	2
.LC15:
	.ascii	"  %s\012\000"
	.align	2
.LC16:
	.ascii	"- finished: %d files\012\000"
	.align	2
.LC17:
	.ascii	"- current directory: %s\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #600
	str	r0, [fp, #-600]
	str	r1, [fp, #-604]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-576]
	mov	r3, #0
	str	r3, [fp, #-572]
	mov	r3, #0
	str	r3, [fp, #-556]
	mov	r3, #0
	str	r3, [fp, #-568]
	mov	r3, #0
	str	r3, [fp, #-564]
	mov	r3, #0
	str	r3, [fp, #-560]
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r2, #247
	mov	r1, #1
	ldr	r0, .L45+8
	bl	fwrite
	ldr	r3, [fp, #-600]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, [fp, #-604]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L45+12
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-600]
	sub	r3, r3, #1
	str	r3, [fp, #-600]
	mov	r3, #1
	str	r3, [fp, #-580]
	b	.L3
.L13:
	ldr	r3, [fp, #-580]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L40
	ldr	r3, [fp, #-580]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #98
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L6
	.word	.L10
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L9
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L7
.L10:
	ldr	r3, [fp, #-580]
	add	r3, r3, #1
	str	r3, [fp, #-580]
	ldr	r3, [fp, #-580]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-564]
	b	.L12
.L11:
	mov	r3, #1
	str	r3, [fp, #-572]
	b	.L12
.L9:
	mov	r3, #1
	str	r3, [fp, #-576]
	b	.L12
.L7:
	ldr	r3, [fp, #-580]
	add	r3, r3, #1
	str	r3, [fp, #-580]
	ldr	r3, [fp, #-580]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-560]
	b	.L12
.L6:
	ldr	r3, [fp, #-580]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L45+16
	bl	printf
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-580]
	add	r3, r3, #1
	str	r3, [fp, #-580]
.L3:
	ldr	r2, [fp, #-580]
	ldr	r3, [fp, #-600]
	cmp	r2, r3
	blt	.L13
	b	.L5
.L40:
	nop
.L5:
	ldr	r3, [fp, #-600]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-604]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-552]
	ldr	r3, [fp, #-572]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L45+20
	bl	puts
	mov	r0, #1
	bl	exit
.L15:
	ldr	r1, [fp, #-552]
	ldr	r0, .L45+24
	bl	printf
	ldr	r1, [fp, #-564]
	ldr	r0, .L45+28
	bl	printf
	ldr	r1, .L45+32
	ldr	r0, [fp, #-552]
	bl	fopen
	str	r0, [fp, #-588]
	ldr	r3, [fp, #-588]
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-588]
	bl	fclose
	ldr	r0, .L45+36
	bl	printf
	ldr	r3, .L45+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L45+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	cmp	r3, #121
	beq	.L16
	mov	r0, #1
	bl	exit
.L16:
	ldr	r1, .L45+44
	ldr	r0, [fp, #-552]
	bl	fopen
	str	r0, [fp, #-588]
	ldr	r3, [fp, #-588]
	cmp	r3, #0
	bne	.L17
	bl	std_err
.L17:
	ldr	r3, [fp, #-588]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, .L45+48
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L18
	bl	write_err
.L18:
	ldr	r3, [fp, #-556]
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-588]
	bl	fdwinum
	ldr	r0, .L45+52
	bl	puts
	ldr	r1, [fp, #-564]
	ldr	r0, [fp, #-588]
	bl	recursive_dir
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L45+56
	bl	puts
	b	.L20
.L19:
	ldr	r0, [fp, #-588]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-584]
	ldr	r1, [fp, #-584]
	ldr	r0, .L45+60
	bl	printf
	ldr	r3, .L45+64
	ldr	r3, [r3]
	str	r3, [fp, #-592]
	b	.L21
.L23:
	ldr	r3, [fp, #-592]
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-588]
	bl	fdwinum
	ldr	r3, [fp, #-592]
	ldr	r3, [r3, #4]
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-588]
	bl	fdwinum
	ldr	r3, [fp, #-592]
	ldr	r3, [r3, #8]
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-588]
	bl	fdwinum
	ldr	r3, [fp, #-592]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-592]
	ldr	r3, [r3]
	sub	r1, r3, #12
	ldr	r3, [fp, #-588]
	mov	r2, #1
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L22
	bl	write_err
.L22:
	ldr	r3, [fp, #-592]
	str	r3, [fp, #-544]
	ldr	r3, [fp, #-592]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-592]
	ldr	r3, [fp, #-544]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-544]
	bl	free
	ldr	r3, [fp, #-568]
	add	r3, r3, #1
	str	r3, [fp, #-568]
.L21:
	ldr	r3, [fp, #-592]
	cmp	r3, #0
	bne	.L23
	mov	r2, #32
	ldr	r1, [fp, #-584]
	ldr	r0, [fp, #-588]
	bl	fdwinum
	b	.L20
.L14:
	ldr	r1, [fp, #-552]
	ldr	r0, .L45+68
	bl	printf
	ldr	r1, .L45+32
	ldr	r0, [fp, #-552]
	bl	fopen
	str	r0, [fp, #-588]
	ldr	r3, [fp, #-588]
	cmp	r3, #0
	bne	.L24
	bl	std_err
.L24:
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	beq	.L25
	ldr	r1, [fp, #-564]
	ldr	r0, .L45+72
	bl	printf
	ldr	r0, [fp, #-564]
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L25
	bl	std_err
.L25:
	sub	r0, fp, #524
	ldr	r3, [fp, #-588]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #524
	mov	r2, #4
	ldr	r1, .L45+48
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	mov	r1, #32
	ldr	r0, [fp, #-588]
	bl	fdrinum
	mov	r3, r0
	str	r3, [fp, #-556]
	mov	r2, #2
	mvn	r1, #3
	ldr	r0, [fp, #-588]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L28
	bl	std_err
.L28:
	mov	r1, #32
	ldr	r0, [fp, #-588]
	bl	fdrinum
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-588]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L37
	bl	std_err
.L37:
	mov	r1, #32
	ldr	r0, [fp, #-588]
	bl	fdrinum
	mov	r3, r0
	str	r3, [fp, #-540]
	mov	r1, #32
	ldr	r0, [fp, #-588]
	bl	fdrinum
	mov	r3, r0
	str	r3, [fp, #-536]
	mov	r1, #32
	ldr	r0, [fp, #-588]
	bl	fdrinum
	mov	r3, r0
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-540]
	sub	r3, r3, #12
	str	r3, [fp, #-548]
	ldr	r3, [fp, #-548]
	cmp	r3, #0
	ble	.L43
	ldr	r3, [fp, #-548]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L31
	bl	std_err
.L31:
	ldr	r0, [fp, #-528]
	ldr	r1, [fp, #-548]
	ldr	r3, [fp, #-588]
	mov	r2, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-560]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-560]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-528]
	ldr	r1, [fp, #-560]
	mov	r0, r3
	bl	strcasestr
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
.L33:
	ldr	r3, [fp, #-528]
	mov	r1, r3
	ldr	r0, .L45+76
	bl	printf
	ldr	r3, [fp, #-576]
	cmp	r3, #0
	bne	.L35
	ldr	r1, [fp, #-528]
	ldr	r2, [fp, #-536]
	ldr	r3, [fp, #-532]
	ldr	r0, [fp, #-588]
	bl	get_file
.L35:
	ldr	r3, [fp, #-568]
	add	r3, r3, #1
	str	r3, [fp, #-568]
.L34:
	ldr	r3, [fp, #-528]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-540]
	ldr	r2, [fp, #-584]
	add	r3, r2, r3
	str	r3, [fp, #-584]
	ldr	r3, [fp, #-584]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-588]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L37
	bl	std_err
	b	.L37
.L41:
	nop
	b	.L20
.L42:
	nop
	b	.L20
.L43:
	nop
	b	.L20
.L44:
	nop
.L20:
	ldr	r0, [fp, #-588]
	bl	fclose
	ldr	r1, [fp, #-568]
	ldr	r0, .L45+80
	bl	printf
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	getcwd
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L45+84
	bl	printf
	mov	r3, #0
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC18
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stdin
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	pnp
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.section	.rodata
	.align	2
.LC19:
	.ascii	"  %08x %10u   %s\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	put_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	put_file, %function
put_file:
	@ args = 0, pretend = 0, frame = 8232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L66+4
	ldr	r0, [r3, #-40]
	bl	fopen
	str	r0, [r4, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L48
	bl	std_err
.L48:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L49
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #2
	str	r3, [r2, #-40]
.L49:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	str	r3, [r2, #-20]
	b	.L50
.L52:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L51
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	mov	r2, #92
	strb	r2, [r3]
.L51:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
.L50:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L52
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	ftell
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	b	.L53
.L55:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-36]
	mov	r2, #1
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L54
	bl	write_err
.L54:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	add	r3, r2, r3
	str	r3, [r1, #-24]
.L53:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-16]
	mov	r2, #8192
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L55
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L66+8
	ldr	r3, [r3]
	str	r3, [r2, #-28]
	b	.L56
.L58:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldr	r3, [r3, #16]
	str	r3, [r2, #-28]
.L56:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	beq	.L57
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L58
.L57:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	beq	.L59
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	str	r2, [r3, #16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L60
	bl	std_err
.L60:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldr	r3, [r3, #16]
	str	r3, [r2, #-28]
	b	.L61
.L59:
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L66+8
	str	r2, [r3]
	ldr	r3, .L66+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L62
	bl	std_err
.L62:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L66+8
	ldr	r3, [r3]
	str	r3, [r2, #-28]
.L61:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	mov	r2, #0
	str	r2, [r3, #16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-40]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-12]
	str	r2, [r3, #4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	str	r2, [r3, #8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	str	r2, [r3, #12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L63
	bl	std_err
.L63:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	ldr	r3, [r3, #12]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-8]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r1, [r1, #-40]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r3, [r3, #-40]
	ldr	r2, [r2, #-24]
	ldr	r1, [r1, #-12]
	ldr	r0, .L66+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC20
	.word	.LC6
	.word	pnp
	.word	.LC19
	.size	put_file, .-put_file
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_file, %function
get_file:
	@ args = 0, pretend = 0, frame = 8232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	sub	ip, fp, #8192
	sub	ip, ip, #12
	str	r0, [ip, #-28]
	sub	r0, fp, #8192
	sub	r0, r0, #12
	str	r1, [r0, #-32]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	str	r2, [r1, #-36]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L69
	bl	std_err
.L69:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	str	r3, [r2, #-16]
	b	.L70
.L74:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L71
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L72
.L71:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L84+4
	ldr	r0, [r3, #-32]
	bl	mkdir
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	mov	r2, #47
	strb	r2, [r3]
	b	.L73
.L72:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r2, r3, #255
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	strb	r2, [r3]
.L73:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L70:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L74
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L84+8
	ldr	r0, [r3, #-32]
	bl	fopen
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L75
	bl	std_err
.L75:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #8192
	str	r3, [r2, #-20]
	b	.L76
.L81:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	cmp	r2, r3
	bcs	.L77
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	str	r3, [r2, #-20]
.L77:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L83
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-12]
	mov	r2, #1
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L80
	bl	write_err
.L80:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	sub	r3, r2, r3
	str	r3, [r1, #-40]
.L76:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	bne	.L81
	b	.L79
.L83:
	nop
.L79:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	fclose
	nop
	ldr	r3, .L84
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC21
	.word	493
	.word	.LC8
	.size	get_file, .-get_file
	.section	.rodata
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fdrinum
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdrinum, %function
fdrinum:
	@ 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]
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	asr	r3, r3, #3
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	sub	r0, fp, #12
	ldr	r3, [fp, #-24]
	mov	r2, #1
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L87
.L88:
	sub	r2, fp, #12
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	orr	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L87:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L88
	ldr	r3, [fp, #-20]
	ldr	r2, .L91
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC22
	.size	fdrinum, .-fdrinum
	.section	.rodata
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fdwinum
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdwinum, %function
fdwinum:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L99
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	asr	r3, r3, #3
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L94
.L95:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	lsr	r3, r2, r3
	and	r1, r3, #255
	sub	r2, fp, #12
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L94:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L95
	ldr	r1, [fp, #-32]
	sub	r0, fp, #12
	ldr	r3, [fp, #-24]
	mov	r2, #1
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L98
	bl	write_err
.L98:
	nop
	ldr	r3, .L99
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L97
	bl	__stack_chk_fail
.L97:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC23
	.size	fdwinum, .-fdwinum
	.section	.rodata
	.align	2
.LC24:
	.ascii	"**** %s\000"
	.align	2
.LC25:
	.ascii	".\000"
	.align	2
.LC26:
	.ascii	"..\000"
	.align	2
.LC27:
	.ascii	"%s/%s\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	recursive_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	recursive_dir, %function
recursive_dir:
	@ args = 0, pretend = 0, frame = 1144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1136
	sub	sp, sp, #8
	str	r0, [fp, #-1144]
	str	r1, [fp, #-1148]
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #1120
	sub	r1, r1, #4
	sub	r1, r1, #12
	ldr	r3, .L121+4
	mov	r2, #0
	ldr	r0, [fp, #-1148]
	bl	scandir
	str	r0, [fp, #-1128]
	ldr	r3, [fp, #-1128]
	cmp	r3, #0
	bge	.L102
	sub	r3, fp, #1120
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L103
	ldr	r1, [fp, #-1148]
	ldr	r0, .L121+8
	bl	printf
	bl	std_err
.L103:
	ldr	r1, [fp, #-1148]
	ldr	r0, [fp, #-1144]
	bl	put_file
	mov	r3, r0
	cmp	r3, #0
	bge	.L104
	mvn	r3, #0
	b	.L117
.L102:
	mov	r3, #0
	str	r3, [fp, #-1132]
	b	.L106
.L114:
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #11
	ldr	r1, .L121+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L119
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #11
	ldr	r1, .L121+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L119
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #11
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r2, [fp, #-1148]
	ldr	r1, .L121+20
	bl	sprintf
	sub	r2, fp, #1120
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L110
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L121+8
	bl	printf
	bl	std_err
.L110:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L111
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1144]
	bl	recursive_dir
	mov	r3, r0
	cmp	r3, #0
	bge	.L112
	b	.L113
.L111:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1144]
	bl	put_file
	mov	r3, r0
	cmp	r3, #0
	blt	.L120
.L112:
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	b	.L109
.L119:
	nop
.L109:
	ldr	r3, [fp, #-1132]
	add	r3, r3, #1
	str	r3, [fp, #-1132]
.L106:
	ldr	r2, [fp, #-1132]
	ldr	r3, [fp, #-1128]
	cmp	r2, r3
	blt	.L114
	ldr	r3, [fp, #-1136]
	mov	r0, r3
	bl	free
.L104:
	mov	r3, #0
	b	.L117
.L120:
	nop
.L113:
	b	.L115
.L116:
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-1132]
	add	r3, r3, #1
	str	r3, [fp, #-1132]
.L115:
	ldr	r2, [fp, #-1132]
	ldr	r3, [fp, #-1128]
	cmp	r2, r3
	blt	.L116
	ldr	r3, [fp, #-1136]
	mov	r0, r3
	bl	free
	mvn	r3, #0
.L117:
	ldr	r2, .L121
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L118
	bl	__stack_chk_fail
.L118:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC28
	.word	alphasort
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	recursive_dir, .-recursive_dir
	.section	.rodata
	.align	2
.LC29:
	.ascii	"\012Error: write error; probably out of disk space\012"
	.ascii	"\000"
	.text
	.align	2
	.global	write_err
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_err, %function
write_err:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L124
	bl	puts
	mov	r0, #1
	bl	exit
.L125:
	.align	2
.L124:
	.word	.LC29
	.size	write_err, .-write_err
	.section	.rodata
	.align	2
.LC30:
	.ascii	"\012Error\000"
	.text
	.align	2
	.global	std_err
	.syntax unified
	.arm
	.fpu softvfp
	.type	std_err, %function
std_err:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L127
	bl	perror
	mov	r0, #1
	bl	exit
.L128:
	.align	2
.L127:
	.word	.LC30
	.size	std_err, .-std_err
	.section	.rodata
	.align	2
.LC31:
	.ascii	"pause\000"
	.text
	.align	2
	.global	winpause
	.syntax unified
	.arm
	.fpu softvfp
	.type	winpause, %function
winpause:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L130
	bl	system
	nop
	pop	{fp, pc}
.L131:
	.align	2
.L130:
	.word	.LC31
	.size	winpause, .-winpause
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
