	.file	"103890.c"
	.intel_syntax noprefix
	.text
	.globl	inbuf
	.bss
	.align 32
	.type	inbuf, @object
	.size	inbuf, 1000000
inbuf:
	.zero	1000000
	.globl	outbuf
	.align 32
	.type	outbuf, @object
	.size	outbuf, 2000000
outbuf:
	.zero	2000000
	.globl	zbuf
	.align 32
	.type	zbuf, @object
	.size	zbuf, 1010600
zbuf:
	.zero	1010600
	.globl	nIn
	.align 4
	.type	nIn, @object
	.size	nIn, 4
nIn:
	.zero	4
	.globl	nOut
	.align 4
	.type	nOut, @object
	.size	nOut, 4
nOut:
	.zero	4
	.globl	nZ
	.align 4
	.type	nZ, @object
	.size	nZ, 4
nZ:
	.zero	4
	.section	.rodata
.LC0:
	.string	"OK"
.LC1:
	.string	"SEQUENCE_ERROR"
.LC2:
	.string	"PARAM_ERROR"
.LC3:
	.string	"MEM_ERROR"
.LC4:
	.string	"DATA_ERROR"
.LC5:
	.string	"DATA_ERROR_MAGIC"
.LC6:
	.string	"IO_ERROR"
.LC7:
	.string	"UNEXPECTED_EOF"
.LC8:
	.string	"OUTBUFF_FULL"
.LC9:
	.string	"???"
	.section	.data.rel.local,"aw"
	.align 32
	.type	bzerrorstrings, @object
	.size	bzerrorstrings, 120
bzerrorstrings:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC9
	.quad	.LC9
	.quad	.LC9
	.quad	.LC9
	.quad	.LC9
	.text
	.globl	flip_bit
	.type	flip_bit, @function
flip_bit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	BYTE PTR -9[rbp], al
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, zbuf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	xor	al, BYTE PTR -9[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, zbuf[rip]
	mov	BYTE PTR [rax+rcx], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	flip_bit, .-flip_bit
	.section	.rodata
.LC10:
	.string	"usage: unzcrash filename\n"
.LC11:
	.string	"r"
.LC12:
	.string	"unzcrash: can't open %s\n"
.LC13:
	.string	"%d bytes read\n"
.LC14:
	.string	"the_stack_data/103890.c"
.LC15:
	.string	"r == BZ_OK"
.LC16:
	.string	"%d after compression\n"
.LC17:
	.string	"bit %d  "
.LC18:
	.string	" %d  %s "
.LC19:
	.string	"nIn/nOut mismatch %d %d\n"
.LC20:
	.string	"mismatch at %d\n"
.LC21:
	.string	"really ok!\n"
.LC22:
	.string	"all ok\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1000000
	mov	esi, 1
	lea	rdi, inbuf[rip]
	call	fread@PLT
	mov	DWORD PTR nIn[rip], eax
	mov	edx, DWORD PTR nIn[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR nZ[rip], 1000000
	mov	eax, DWORD PTR nIn[rip]
	sub	rsp, 8
	push	30
	mov	r9d, 0
	mov	r8d, 9
	mov	ecx, eax
	lea	rdx, inbuf[rip]
	lea	rsi, nZ[rip]
	lea	rdi, zbuf[rip]
	call	BZ2_bzBuffToBuffCompress@PLT
	add	rsp, 16
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 99
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L6:
	mov	edx, DWORD PTR nZ[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L7
.L14:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	flip_bit
	mov	DWORD PTR nOut[rip], 2000000
	mov	eax, DWORD PTR nZ[rip]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, eax
	lea	rdx, zbuf[rip]
	lea	rsi, nOut[rip]
	lea	rdi, outbuf[rip]
	call	BZ2_bzBuffToBuffDecompress@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	neg	eax
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, bzerrorstrings[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -12[rbp], 0
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L9
.L8:
	mov	edx, DWORD PTR nOut[rip]
	mov	eax, DWORD PTR nIn[rip]
	cmp	edx, eax
	je	.L10
	mov	ecx, DWORD PTR nOut[rip]
	mov	edx, DWORD PTR nIn[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L4
.L10:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, inbuf[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, outbuf[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	je	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L4
.L12:
	add	DWORD PTR -16[rbp], 1
.L11:
	mov	eax, DWORD PTR nOut[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L13
	mov	eax, DWORD PTR nOut[rip]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
.L9:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	flip_bit
	add	DWORD PTR -20[rbp], 1
.L7:
	mov	eax, DWORD PTR nZ[rip]
	sal	eax, 3
	cmp	DWORD PTR -20[rbp], eax
	jl	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"103890.c"
	.text
	.comm	inbuf,1000000,4
	.comm	outbuf,2000000,4
	.comm	zbuf,1010600,4
	.comm	nIn,4,4
	.comm	nOut,4,4
	.comm	nZ,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"OK\000"
	.align	2
.LC1:
	.ascii	"SEQUENCE_ERROR\000"
	.align	2
.LC2:
	.ascii	"PARAM_ERROR\000"
	.align	2
.LC3:
	.ascii	"MEM_ERROR\000"
	.align	2
.LC4:
	.ascii	"DATA_ERROR\000"
	.align	2
.LC5:
	.ascii	"DATA_ERROR_MAGIC\000"
	.align	2
.LC6:
	.ascii	"IO_ERROR\000"
	.align	2
.LC7:
	.ascii	"UNEXPECTED_EOF\000"
	.align	2
.LC8:
	.ascii	"OUTBUFF_FULL\000"
	.align	2
.LC9:
	.ascii	"???\000"
	.data
	.align	2
	.type	bzerrorstrings, %object
	.size	bzerrorstrings, 60
bzerrorstrings:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC9
	.word	.LC9
	.word	.LC9
	.word	.LC9
	.word	.LC9
	.text
	.align	2
	.global	flip_bit
	.syntax unified
	.arm
	.fpu softvfp
	.type	flip_bit, %function
flip_bit:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	str	r3, [fp, #-8]
	mov	r2, #1
	ldr	r3, [fp, #-8]
	lsl	r3, r2, r3
	strb	r3, [fp, #-13]
	ldr	r2, .L2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]
	eor	r3, r3, r2
	and	r1, r3, #255
	ldr	r2, .L2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	zbuf
	.size	flip_bit, .-flip_bit
	.section	.rodata
	.align	2
.LC10:
	.ascii	"usage: unzcrash filename\012\000"
	.align	2
.LC11:
	.ascii	"r\000"
	.align	2
.LC12:
	.ascii	"unzcrash: can't open %s\012\000"
	.align	2
.LC13:
	.ascii	"%d bytes read\012\000"
	.align	2
.LC14:
	.ascii	"the_stack_data/103890.c\000"
	.align	2
.LC15:
	.ascii	"r == BZ_OK\000"
	.align	2
.LC16:
	.ascii	"%d after compression\012\000"
	.align	2
.LC17:
	.ascii	"bit %d  \000"
	.align	2
.LC18:
	.ascii	" %d  %s \000"
	.align	2
.LC19:
	.ascii	"nIn/nOut mismatch %d %d\012\000"
	.align	2
.LC20:
	.ascii	"mismatch at %d\012\000"
	.align	2
.LC21:
	.ascii	"really ok!\012\000"
	.align	2
.LC22:
	.ascii	"all ok\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L5
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L17+4
	bl	fwrite
	mov	r3, #1
	b	.L6
.L5:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L17+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L17
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L17+12
	bl	fprintf
	mov	r3, #1
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	ldr	r2, .L17+16
	mov	r1, #1
	ldr	r0, .L17+20
	bl	fread
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L17+24
	str	r2, [r3]
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+24
	ldr	r2, [r2]
	ldr	r1, .L17+28
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L17+32
	ldr	r2, .L17+16
	str	r2, [r3]
	ldr	r3, .L17+24
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, #30
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #9
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L17+20
	ldr	r1, .L17+32
	ldr	r0, .L17+36
	bl	BZ2_bzBuffToBuffCompress
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L17+40
	mov	r2, #99
	ldr	r1, .L17+44
	ldr	r0, .L17+48
	bl	__assert_fail
.L8:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+32
	ldr	r2, [r2]
	ldr	r1, .L17+52
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L9
.L16:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L17+56
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-20]
	bl	flip_bit
	ldr	r3, .L17+60
	ldr	r2, .L17+64
	str	r2, [r3]
	ldr	r3, .L17+32
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L17+36
	ldr	r1, .L17+60
	ldr	r0, .L17+68
	bl	BZ2_bzBuffToBuffDecompress
	str	r0, [fp, #-8]
	ldr	r3, .L17
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	ldr	r2, .L17+72
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	ldr	r1, .L17+76
	bl	fprintf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	b	.L11
.L10:
	ldr	r3, .L17+60
	ldr	r2, [r3]
	ldr	r3, .L17+24
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L12
	ldr	r3, .L17
	ldr	r0, [r3]
	ldr	r3, .L17+24
	ldr	r2, [r3]
	ldr	r3, .L17+60
	ldr	r3, [r3]
	ldr	r1, .L17+80
	bl	fprintf
	mov	r3, #1
	b	.L6
.L12:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L15:
	ldr	r2, .L17+20
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L17+68
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L14
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L17+84
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L6
.L14:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r3, .L17+60
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L15
	ldr	r3, .L17+60
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L11
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L17+88
	bl	fwrite
.L11:
	ldr	r0, [fp, #-20]
	bl	flip_bit
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r3, .L17+32
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L16
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L17+92
	bl	fwrite
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1000000
	.word	inbuf
	.word	nIn
	.word	.LC13
	.word	nZ
	.word	zbuf
	.word	__PRETTY_FUNCTION__.4755
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	nOut
	.word	2000000
	.word	outbuf
	.word	bzerrorstrings
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4755, %object
	.size	__PRETTY_FUNCTION__.4755, 5
__PRETTY_FUNCTION__.4755:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
