	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, %edi
	jne	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	_inbuf@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_M_BLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$1, %esi
	movq	%rax, %rcx
	callq	_fread
	movq	_nIn@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %eax
	movq	_nZ@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_zbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	movl	(%r14), %ecx
	movl	$30, (%rsp)
	movq	%rbx, %rsi
	movl	$9, %r8d
	xorl	%r9d, %r9d
	callq	_BZ2_bzBuffToBuffCompress
	movq	_BZ_OK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movl	(%r15), %edi
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$0, (%rbx)
	jle	LBB0_14
## %bb.3:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r15d, %edi
	callq	_flip_bit
	movq	_M_BLOCK_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_nOut@GOTPCREL(%rip), %rsi
	movl	%eax, (%rsi)
	movq	_outbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_zbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r14
	movl	(%rbx), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_BZ2_bzBuffToBuffDecompress
	movl	%eax, %r13d
	movl	(%r12), %edi
	movq	_bzerrorstrings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	negl	%ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str.6(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.7(%rip), %rsi
	movq	_BZ_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_nOut@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_nIn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	jne	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_inbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_outbuf@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rdx,8), %rdi
	cmpq	(%rsi,%rdx,8), %rdi
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.10(%rip), %rsi
	testq	%rcx, %rcx
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_flip_bit
	incl	%r15d
	movq	%r14, %rbx
	movl	(%r14), %eax
	shll	$3, %eax
	cmpl	%eax, %r15d
	jl	LBB0_4
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	movl	$1, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: unzcrash filename\n"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"unzcrash: can't open %s\n"

	.comm	_inbuf,8,3                      ## @inbuf
	.comm	_M_BLOCK,4,2                    ## @M_BLOCK
	.comm	_nIn,4,2                        ## @nIn
L_.str.3:                               ## @.str.3
	.asciz	"%d bytes read\n"

	.comm	_nZ,4,2                         ## @nZ
	.comm	_zbuf,4,2                       ## @zbuf
	.comm	_BZ_OK,4,2                      ## @BZ_OK
L_.str.4:                               ## @.str.4
	.asciz	"%d after compression\n"

L_.str.5:                               ## @.str.5
	.asciz	"bit %d  "

	.comm	_M_BLOCK_OUT,4,2                ## @M_BLOCK_OUT
	.comm	_nOut,4,2                       ## @nOut
	.comm	_outbuf,8,3                     ## @outbuf
L_.str.6:                               ## @.str.6
	.asciz	" %d  %s "

	.comm	_bzerrorstrings,8,3             ## @bzerrorstrings
L_.str.7:                               ## @.str.7
	.asciz	"\n"

L_.str.8:                               ## @.str.8
	.asciz	"nIn/nOut mismatch %d %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"mismatch at %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"really ok!\n"

L_.str.11:                              ## @.str.11
	.asciz	"all ok\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w0, #2
	b.ne	LBB0_15
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_16
; %bb.2:
	mov	x3, x0
Lloh2:
	adrp	x20, _inbuf@GOTPAGE
Lloh3:
	ldr	x20, [x20, _inbuf@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh4:
	adrp	x19, _M_BLOCK@GOTPAGE
Lloh5:
	ldr	x19, [x19, _M_BLOCK@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	w1, #1
	bl	_fread
                                        ; kill: def $w0 killed $w0 def $x0
Lloh6:
	adrp	x21, _nIn@GOTPAGE
Lloh7:
	ldr	x21, [x21, _nIn@GOTPAGEOFF]
	str	w0, [x21]
Lloh8:
	adrp	x26, _stderr@GOTPAGE
Lloh9:
	ldr	x26, [x26, _stderr@GOTPAGEOFF]
	ldr	w8, [x26]
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_fprintf
	ldr	w8, [x19]
Lloh12:
	adrp	x19, _nZ@GOTPAGE
Lloh13:
	ldr	x19, [x19, _nZ@GOTPAGEOFF]
	str	w8, [x19]
Lloh14:
	adrp	x28, _zbuf@GOTPAGE
Lloh15:
	ldr	x28, [x28, _zbuf@GOTPAGEOFF]
	ldr	w0, [x28]
	ldr	x2, [x20]
	ldr	w3, [x21]
	mov	x1, x19
	mov	w4, #9
	mov	w5, #0
	mov	w6, #30
	bl	_BZ2_bzBuffToBuffCompress
Lloh16:
	adrp	x25, _BZ_OK@GOTPAGE
Lloh17:
	ldr	x25, [x25, _BZ_OK@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	ldr	w0, [x26]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.3:
	mov	w20, #0
Lloh20:
	adrp	x22, _nOut@GOTPAGE
Lloh21:
	ldr	x22, [x22, _nOut@GOTPAGEOFF]
Lloh22:
	adrp	x27, _outbuf@GOTPAGE
Lloh23:
	ldr	x27, [x27, _outbuf@GOTPAGEOFF]
Lloh24:
	adrp	x23, l_.str.6@PAGE
Lloh25:
	add	x23, x23, l_.str.6@PAGEOFF
Lloh26:
	adrp	x21, l_.str.7@PAGE
Lloh27:
	add	x21, x21, l_.str.7@PAGEOFF
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w0, [x26]
	str	x20, [sp]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	x0, x20
	bl	_flip_bit
Lloh30:
	adrp	x8, _M_BLOCK_OUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _M_BLOCK_OUT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	x0, [x27]
	ldr	w2, [x28]
	ldr	w3, [x19]
	mov	x1, x22
	mov	w4, #0
	mov	w5, #0
	bl	_BZ2_bzBuffToBuffDecompress
	mov	x24, x0
	ldr	w0, [x26]
Lloh33:
	adrp	x8, _bzerrorstrings@GOTPAGE
Lloh34:
	ldr	x8, [x8, _bzerrorstrings@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	neg	w9, w24
	ldr	x8, [x8, w9, sxtw #3]
	stp	x24, x8, [sp]
	mov	x1, x23
	bl	_fprintf
	ldr	w8, [x25]
	mov	x1, x21
	cmp	w24, w8
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
Lloh36:
	adrp	x9, _nIn@GOTPAGE
Lloh37:
	ldr	x9, [x9, _nIn@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
Lloh39:
	adrp	x10, _inbuf@GOTPAGE
Lloh40:
	ldr	x10, [x10, _inbuf@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	ldr	x11, [x27]
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x12, x9, #3
	ldr	x13, [x10, x12]
	ldr	x12, [x11, x12]
	cmp	x13, x12
	b.ne	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w8, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	bl	_fprintf
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_flip_bit
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8, lsl #3
	b.lt	LBB0_4
LBB0_14:
	ldr	w0, [x26]
Lloh44:
	adrp	x1, l_.str.11@PAGE
Lloh45:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_fprintf
	mov	w0, #0
	b	LBB0_19
LBB0_15:
Lloh46:
	adrp	x8, _stderr@GOTPAGE
Lloh47:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str@PAGE
Lloh50:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh51:
	adrp	x8, _stderr@GOTPAGE
Lloh52:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh54:
	adrp	x1, l_.str.2@PAGE
Lloh55:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_17:
	ldr	w0, [x26]
	str	x9, [sp]
Lloh56:
	adrp	x1, l_.str.9@PAGE
Lloh57:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_18:
	bl	_fprintf
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	ldr	w0, [x26]
	stp	x9, x8, [sp]
Lloh58:
	adrp	x1, l_.str.8@PAGE
Lloh59:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: unzcrash filename\n"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"unzcrash: can't open %s\n"

	.comm	_inbuf,8,3                      ; @inbuf
	.comm	_M_BLOCK,4,2                    ; @M_BLOCK
	.comm	_nIn,4,2                        ; @nIn
l_.str.3:                               ; @.str.3
	.asciz	"%d bytes read\n"

	.comm	_nZ,4,2                         ; @nZ
	.comm	_zbuf,4,2                       ; @zbuf
	.comm	_BZ_OK,4,2                      ; @BZ_OK
l_.str.4:                               ; @.str.4
	.asciz	"%d after compression\n"

l_.str.5:                               ; @.str.5
	.asciz	"bit %d  "

	.comm	_M_BLOCK_OUT,4,2                ; @M_BLOCK_OUT
	.comm	_nOut,4,2                       ; @nOut
	.comm	_outbuf,8,3                     ; @outbuf
l_.str.6:                               ; @.str.6
	.asciz	" %d  %s "

	.comm	_bzerrorstrings,8,3             ; @bzerrorstrings
l_.str.7:                               ; @.str.7
	.asciz	"\n"

l_.str.8:                               ; @.str.8
	.asciz	"nIn/nOut mismatch %d %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"mismatch at %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"really ok!\n"

l_.str.11:                              ; @.str.11
	.asciz	"all ok\n"

.subsections_via_symbols
