	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bzf_read
_bzf_read:                              ## @bzf_read
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	leaq	8(%rbx), %r12
	movq	%rsi, 24(%rbx)
	movq	%rdx, 8(%rbx)
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r15
	movq	_BZ_STREAM_END@GOTPCREL(%rip), %r13
	movq	_BZ_OK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_bzf_fill
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_BZ2_bzDecompress
	cmpl	(%r13), %eax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r14), %eax
	jne	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_3
	jmp	LBB0_13
LBB0_12:
	movl	$1, (%rbx)
LBB0_13:
	xorl	%eax, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.14:
	movq	(%r12), %rcx
	movq	%rcx, (%rdx)
	jmp	LBB0_10
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_9
LBB0_6:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	jmp	LBB0_9
LBB0_8:
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpq	%r15, (%r12)
	jne	LBB0_13
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BZ_STREAM_END,4,2              ## @BZ_STREAM_END
	.comm	_BZ_OK,4,2                      ## @BZ_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"bzf_read: BZ2_bzDecompress returned %d\n"

L_str:                                  ## @str
	.asciz	"bzf_read: unexpected EOF"

L_str.3:                                ## @str.3
	.asciz	"bzf_read: fill error"

	.no_dead_strip	_bzf_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bzf_read
_bzf_read:                              ; @bzf_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	ldr	x22, [x0]
	mov	x20, x22
	str	x2, [x20, #8]!
	str	x1, [x22, #24]
	cbz	x2, LBB0_10
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x23, _BZ_STREAM_END@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BZ_STREAM_END@GOTPAGEOFF]
Lloh2:
	adrp	x24, _BZ_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BZ_OK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cbnz	w8, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_bzf_fill
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_BZ2_bzDecompress
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
	b	LBB0_10
LBB0_9:
	mov	w8, #1
	str	w8, [x22]
LBB0_10:
	mov	w0, #0
	cbz	x19, LBB0_16
; %bb.11:
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_16
LBB0_12:
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_15
LBB0_13:
Lloh6:
	adrp	x0, l_str.3@PAGE
Lloh7:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
	b	LBB0_15
LBB0_14:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x8, [x20]
	cmp	x8, x21
	b.ne	LBB0_10
LBB0_15:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BZ_STREAM_END,4,2              ; @BZ_STREAM_END
	.comm	_BZ_OK,4,2                      ; @BZ_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"bzf_read: BZ2_bzDecompress returned %d\n"

l_str:                                  ; @str
	.asciz	"bzf_read: unexpected EOF"

l_str.3:                                ; @str.3
	.asciz	"bzf_read: fill error"

	.no_dead_strip	_bzf_read
.subsections_via_symbols
