	.file	"67640.c"
	.intel_syntax noprefix
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	jg	.L2
	call	usage
.L2:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	zip2tar
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"-"
.LC1:
	.string	"\n"
.LC2:
	.string	"> "
	.text
	.type	zip2tar, @function
zip2tar:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	archive_read_new@PLT
	mov	QWORD PTR -24[rbp], rax
	call	archive_write_new@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	archive_read_support_format_zip@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	archive_write_set_format_ustar@PLT
	cmp	QWORD PTR -56[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	QWORD PTR -56[rbp], 0
.L5:
	cmp	QWORD PTR -64[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	QWORD PTR -64[rbp], 0
.L6:
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 10240
	mov	rsi, rcx
	mov	rdi, rax
	call	archive_read_open_filename@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	archive_error_string@PLT
	mov	rdi, rax
	call	errmsg
	lea	rdi, .LC1[rip]
	call	errmsg
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	exit@PLT
.L7:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	archive_write_open_filename@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	archive_error_string@PLT
	mov	rdi, rax
	call	errmsg
	lea	rdi, .LC1[rip]
	call	errmsg
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	exit@PLT
.L8:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	archive_read_next_header@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 1
	je	.L16
	cmp	DWORD PTR -36[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	archive_error_string@PLT
	mov	rdi, rax
	call	errmsg
	lea	rdi, .LC1[rip]
	call	errmsg
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rdi, .LC2[rip]
	call	msg
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	archive_entry_pathname@PLT
	mov	rdi, rax
	call	msg
	lea	rdi, .LC1[rip]
	call	msg
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	archive_write_header@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	archive_error_string@PLT
	mov	rdi, rax
	call	errmsg
	jmp	.L8
.L12:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copy_data
	jmp	.L8
.L16:
	nop
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	archive_read_close@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	archive_read_finish@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	archive_write_close@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	archive_write_finish@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	zip2tar, .-zip2tar
	.type	copy_data, @function
copy_data:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L22:
	lea	rcx, -16[rbp]
	lea	rdx, -24[rbp]
	lea	rsi, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	archive_read_data_block@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 1
	jne	.L18
	mov	eax, 0
	jmp	.L23
.L18:
	cmp	DWORD PTR -36[rbp], 0
	je	.L20
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L23
.L20:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	archive_write_data@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rdx, rax
	je	.L22
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	archive_error_string@PLT
	mov	rdi, rax
	call	errmsg
	mov	eax, -25
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	copy_data, .-copy_data
	.type	msg, @function
msg:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	msg, .-msg
	.type	errmsg, @function
errmsg:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	errmsg, .-errmsg
	.section	.rodata
	.align 8
.LC3:
	.string	"Usage: zip2tar <zip file> <tar file>\n"
	.text
	.type	usage, @function
usage:
.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, 16
	lea	rax, .LC3[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	errmsg
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	usage, .-usage
	.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	"67640.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L2
	bl	usage
.L2:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	zip2tar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-\000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"> \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zip2tar, %function
zip2tar:
	@ 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	archive_read_new
	str	r0, [fp, #-20]
	bl	archive_write_new
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	archive_read_support_format_zip
	ldr	r0, [fp, #-16]
	bl	archive_write_set_format_ustar
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L17+4
	ldr	r0, [fp, #-32]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L6
	ldr	r1, .L17+4
	ldr	r0, [fp, #-36]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-36]
.L6:
	mov	r2, #10240
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	archive_read_open_filename
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-20]
	bl	archive_error_string
	mov	r3, r0
	mov	r0, r3
	bl	errmsg
	ldr	r0, .L17+8
	bl	errmsg
	ldr	r0, [fp, #-12]
	bl	exit
.L7:
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-16]
	bl	archive_write_open_filename
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r0, [fp, #-16]
	bl	archive_error_string
	mov	r3, r0
	mov	r0, r3
	bl	errmsg
	ldr	r0, .L17+8
	bl	errmsg
	ldr	r0, [fp, #-12]
	bl	exit
.L8:
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	archive_read_next_header
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L16
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-20]
	bl	archive_error_string
	mov	r3, r0
	mov	r0, r3
	bl	errmsg
	ldr	r0, .L17+8
	bl	errmsg
	mov	r0, #1
	bl	exit
.L11:
	ldr	r0, .L17+12
	bl	msg
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	archive_entry_pathname
	mov	r3, r0
	mov	r0, r3
	bl	msg
	ldr	r0, .L17+8
	bl	msg
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	archive_write_header
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L12
	ldr	r0, [fp, #-16]
	bl	archive_error_string
	mov	r3, r0
	mov	r0, r3
	bl	errmsg
	b	.L8
.L12:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	copy_data
	b	.L8
.L16:
	nop
	ldr	r0, [fp, #-20]
	bl	archive_read_close
	ldr	r0, [fp, #-20]
	bl	archive_read_finish
	ldr	r0, [fp, #-16]
	bl	archive_write_close
	ldr	r0, [fp, #-16]
	bl	archive_write_finish
	mov	r0, #0
	bl	exit
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	zip2tar, .-zip2tar
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_data, %function
copy_data:
	@ 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L24:
	sub	r3, fp, #16
	sub	r2, fp, #20
	sub	r1, fp, #24
	ldr	r0, [fp, #-32]
	bl	archive_read_data_block
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L20
	mov	r3, #0
	b	.L25
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-12]
	b	.L25
.L22:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	archive_write_data
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L24
	ldr	r0, [fp, #-36]
	bl	archive_error_string
	mov	r3, r0
	mov	r0, r3
	bl	errmsg
	mvn	r3, #24
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC4
	.size	copy_data, .-copy_data
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msg, %function
msg:
	@ 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	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	write
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	msg, .-msg
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	errmsg, %function
errmsg:
	@ 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	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, #2
	bl	write
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	errmsg, .-errmsg
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: zip2tar <zip file> <tar file>\012\000"
	.text
	.align	2
	.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
	ldr	r3, .L32
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	errmsg
	mov	r0, #1
	bl	exit
.L33:
	.align	2
.L32:
	.word	.LC5
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
