	.file	"927804.c"
	.intel_syntax noprefix
	.text
	.globl	get_files
	.type	get_files, @function
get_files:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 6
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 6
	cdqe
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, 64
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 40[rax]
	mov	edi, eax
	mov	eax, 0
	call	ntohl@PLT
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 6
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	DWORD PTR 40[rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 44[rax]
	mov	edi, eax
	mov	eax, 0
	call	ntohl@PLT
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 6
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	DWORD PTR 44[rdx], eax
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -28[rbp], eax
	ja	.L5
	mov	rax, QWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_files, .-get_files
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage:\n\t%s libfoo.a outfolder\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
	.align 8
.LC1:
	.string	"HuLIB library extractor (C)2011 trap15"
.LC2:
	.string	"rb"
	.align 8
.LC3:
	.string	"Can't open library for reading"
	.align 8
.LC4:
	.string	"Can't allocate buffer for library data"
.LC5:
	.string	"Can't read library file"
.LC6:
	.string	"Can't decode library"
.LC7:
	.string	"%s/%s"
.LC8:
	.string	"Extracting %s... "
.LC9:
	.string	"wb"
.LC10:
	.string	"Done!"
	.text
	.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, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	cmp	DWORD PTR -324[rbp], 2
	jg	.L8
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	eax, 1
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	jne	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -304[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -312[rbp], eax
	mov	eax, DWORD PTR -312[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L11
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L11:
	mov	rax, QWORD PTR -304[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -312[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR -296[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L12
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L12:
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -296[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	mov	eax, 0
	call	ntohl@PLT
	mov	DWORD PTR -308[rbp], eax
	mov	edx, DWORD PTR -308[rbp]
	mov	rax, QWORD PTR -296[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_files
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L13
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L13:
	mov	DWORD PTR -316[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 255
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 44[rax]
	mov	esi, eax
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 40[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -296[rbp]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	rcx, rax
	mov	edx, 1
	call	fwrite@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	add	DWORD PTR -316[rbp], 1
.L14:
	mov	eax, DWORD PTR -316[rbp]
	cmp	DWORD PTR -308[rbp], eax
	ja	.L15
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"927804.c"
	.text
	.align	2
	.global	get_files
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_files, %function
get_files:
	@ 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]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #6
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-8]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	add	r3, r3, #32
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #64
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldrb	r1, [r3, #41]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #42]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #43]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r0, r3
	bl	ntohl
	mov	r1, r0
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #40]
	lsr	r1, r2, #8
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #41]
	lsr	r1, r2, #16
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #42]
	lsr	r2, r2, #24
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #43]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3, #44]	@ zero_extendqisi2
	ldrb	r1, [r3, #45]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #46]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #47]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r0, r3
	bl	ntohl
	mov	r1, r0
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	and	r1, r2, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #44]
	lsr	r1, r2, #8
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #45]
	lsr	r1, r2, #16
	and	r1, r1, #255
	mov	r0, #0
	orr	r1, r0, r1
	strb	r1, [r3, #46]
	lsr	r2, r2, #24
	mov	r1, #0
	orr	r2, r1, r2
	strb	r2, [r3, #47]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L5
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_files, .-get_files
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:\012\011%s libfoo.a outfolder\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L7+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"HuLIB library extractor (C)2011 trap15\000"
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"Can't open library for reading\000"
	.align	2
.LC4:
	.ascii	"Can't allocate buffer for library data\000"
	.align	2
.LC5:
	.ascii	"Can't read library file\000"
	.align	2
.LC6:
	.ascii	"Can't decode library\000"
	.align	2
.LC7:
	.ascii	"%s/%s\000"
	.align	2
.LC8:
	.ascii	"Extracting %s... \000"
	.align	2
.LC9:
	.ascii	"wb\000"
	.align	2
.LC10:
	.ascii	"Done!\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 = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L19+4
	bl	puts
	ldr	r3, [fp, #-296]
	cmp	r3, #2
	bgt	.L10
	ldr	r3, [fp, #-300]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r3, #1
	b	.L11
.L10:
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L19+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L19+12
	bl	perror
	mov	r3, #1
	b	.L11
.L12:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-288]
	bl	fseek
	ldr	r0, [fp, #-288]
	bl	ftell
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L19+16
	bl	perror
	mov	r3, #1
	b	.L11
.L13:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-288]
	bl	fseek
	ldr	r1, [fp, #-284]
	ldr	r3, [fp, #-288]
	mov	r2, #1
	ldr	r0, [fp, #-280]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	ldr	r0, .L19+20
	bl	perror
	mov	r3, #1
	b	.L11
.L14:
	ldr	r0, [fp, #-288]
	bl	fclose
	ldr	r3, [fp, #-280]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	str	r3, [fp, #-276]
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-280]
	bl	get_files
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L19+24
	bl	perror
	mov	r3, #1
	b	.L11
.L15:
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L16
.L17:
	ldr	r3, [fp, #-300]
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-272]
	add	r3, r2, r3
	sub	r0, fp, #264
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L19+28
	mov	r1, #255
	bl	snprintf
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-272]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+32
	bl	printf
	ldr	r3, .L19+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #264
	ldr	r1, .L19+40
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-272]
	add	r3, r2, r3
	ldrb	r2, [r3, #40]	@ zero_extendqisi2
	ldrb	r1, [r3, #41]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #42]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #43]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-280]
	add	r0, r3, r2
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-272]
	add	r3, r2, r3
	ldrb	r2, [r3, #44]	@ zero_extendqisi2
	ldrb	r1, [r3, #45]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #46]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #47]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-268]
	mov	r2, #1
	bl	fwrite
	ldr	r0, [fp, #-268]
	bl	fclose
	ldr	r0, .L19+44
	bl	puts
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L16:
	ldr	r3, [fp, #-292]
	ldr	r2, [fp, #-276]
	cmp	r2, r3
	bhi	.L17
	ldr	r0, [fp, #-280]
	bl	free
	ldr	r0, [fp, #-272]
	bl	free
	mov	r3, #0
.L11:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC11
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdout
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
