	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zf_read
_zf_read:                               ## @zf_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, 32(%rbx)
	movq	%rdx, 8(%rbx)
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r15
	movq	_Z_STREAM_END@GOTPCREL(%rip), %r14
	movq	_Z_OK@GOTPCREL(%rip), %r13
	.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	_zf_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	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_inflate
	cmpl	(%r14), %eax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r13), %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:
	movq	24(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	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	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_Z_OK,4,2                       ## @Z_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"inflate: %s\n"

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

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

	.no_dead_strip	_zf_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zf_read
_zf_read:                               ; @zf_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	ldr	x22, [x0]
	mov	x20, x22
	str	x2, [x20, #8]!
	str	x1, [x22, #32]
	cbz	x2, LBB0_10
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x23, _Z_SYNC_FLUSH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Z_SYNC_FLUSH@GOTPAGEOFF]
Lloh2:
	adrp	x24, _Z_STREAM_END@GOTPAGE
Lloh3:
	ldr	x24, [x24, _Z_STREAM_END@GOTPAGEOFF]
Lloh4:
	adrp	x25, _Z_OK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _Z_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	_zf_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
	ldr	w1, [x23]
	mov	x0, x20
	bl	_inflate
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	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:
	ldr	x8, [x22, #24]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_15
LBB0_13:
Lloh8:
	adrp	x0, l_str.3@PAGE
Lloh9:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
	b	LBB0_15
LBB0_14:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x8, [x20]
	cmp	x8, x21
	b.ne	LBB0_10
LBB0_15:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_Z_OK,4,2                       ; @Z_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"inflate: %s\n"

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

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

	.no_dead_strip	_zf_read
.subsections_via_symbols
