	.file	"554554.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"wb"
.LC1:
	.string	"%s: couldn't gzdopen\n"
.LC2:
	.string	"%s: couldn't gzwrite\n"
.LC3:
	.string	"%s: gzclose error\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
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 64
	mov	DWORD PTR -65588[rbp], edi
	mov	QWORD PTR -65600[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 1
	call	dup@PLT
	mov	DWORD PTR -65576[rbp], eax
	cmp	DWORD PTR -65576[rbp], 0
	jns	.L2
	mov	rax, QWORD PTR -65600[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -65576[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	gzdopen@PLT
	mov	QWORD PTR -65560[rbp], rax
	cmp	QWORD PTR -65560[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -65600[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L9:
	cmp	DWORD PTR -65580[rbp], 0
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L4
	mov	rax, QWORD PTR -65600[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -65552[rbp]
	mov	QWORD PTR -65568[rbp], rax
	jmp	.L6
.L8:
	mov	edx, DWORD PTR -65580[rbp]
	mov	rcx, QWORD PTR -65568[rbp]
	mov	rax, QWORD PTR -65560[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	gzwrite@PLT
	mov	DWORD PTR -65572[rbp], eax
	cmp	DWORD PTR -65572[rbp], 0
	jg	.L7
	mov	rax, QWORD PTR -65600[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -65572[rbp]
	cdqe
	add	QWORD PTR -65568[rbp], rax
	mov	eax, DWORD PTR -65572[rbp]
	sub	DWORD PTR -65580[rbp], eax
.L6:
	cmp	DWORD PTR -65580[rbp], 0
	jg	.L8
	mov	rax, QWORD PTR -65560[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	gzflush@PLT
.L4:
	lea	rax, -65552[rbp]
	mov	edx, 65536
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -65580[rbp], eax
	cmp	DWORD PTR -65580[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -65560[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -65600[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L10:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"554554.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"%s: couldn't gzdopen\012\000"
	.align	2
.LC2:
	.ascii	"%s: couldn't gzwrite\012\000"
	.align	2
.LC3:
	.ascii	"%s: gzclose error\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 65568
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #36
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #1
	bl	dup
	str	r0, [r4, #-16]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bge	.L2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #3
	bl	exit
.L2:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r1, .L12+4
	ldr	r0, [r3, #-16]
	bl	gzdopen
	str	r0, [r4, #-12]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L12+8
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+12
	bl	fprintf
	mov	r0, #4
	bl	exit
.L9:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bge	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L4
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-20]
	b	.L6
.L8:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-20]
	ldr	r0, [r0, #-12]
	bl	gzwrite
	str	r0, [r4, #-8]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, .L12+8
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+16
	bl	fprintf
	mov	r0, #2
	bl	exit
.L7:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-20]
	add	r3, r2, r3
	str	r3, [r1, #-20]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r2, #-24]
	ldr	r3, [r3, #-8]
	sub	r3, r2, r3
	str	r3, [r1, #-24]
.L6:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bgt	.L8
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, #2
	ldr	r0, [r3, #-12]
	bl	gzflush
.L4:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #65536
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [r4, #-24]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	gzclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L12+8
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+20
	bl	fprintf
.L10:
	mov	r0, #0
	bl	exit
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
