	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_read
_compress_read:                         ## @compress_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, %r14
	movq	(%rsi), %rcx
	movl	$-1, %eax
	cmpq	$0, (%rcx)
	je	LBB0_1
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	16(%rsi), %r15
	movq	%rdx, 48(%rsi)
	movq	%r14, 16(%rsi)
	movl	$6, %r13d
	jmp	LBB0_4
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	56(%rbx), %rcx
	movq	%rcx, 32(%rbx)
	movl	%eax, %eax
	movq	%rax, 24(%rbx)
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_deflate
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	ja	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	btl	%ecx, %r13d
	jae	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 8(%rbx)
	je	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_4
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$6, %ecx
	jne	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 8(%rbx)
	jne	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	56(%rbx), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_zip_source_read
	testl	%eax, %eax
	js	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, 8(%rbx)
	movl	40(%rbx), %eax
	movl	%eax, 64(%rbx)
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_19:
	movq	_ZIP_ER_ZLIB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %rdx
	movq	%rcx, (%rdx)
	movl	%eax, %eax
	movq	%rax, 8(%rdx)
LBB0_20:
	movq	(%r15), %rax
	cmpq	%r14, %rax
	jge	LBB0_22
## %bb.21:
	subl	%eax, %r14d
	movl	%r14d, %eax
	jmp	LBB0_23
LBB0_22:
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rax
	sbbl	%eax, %eax
	jmp	LBB0_23
LBB0_12:
	movq	(%rbx), %rsi
	leaq	8(%rsi), %rdx
	movq	%r12, %rdi
	callq	_zip_source_error
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_ZIP_ER_ZLIB,8,3                ## @ZIP_ER_ZLIB
	.no_dead_strip	_compress_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_read
_compress_read:                         ; @compress_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x3
	cbz	x3, LBB0_17
; %bb.4:
	mov	x20, x1
	mov	x22, x0
	mov	x21, x1
	str	x19, [x21, #16]!
	str	x2, [x21, #32]
Lloh0:
	adrp	x23, _Z_FINISH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Z_FINISH@GOTPAGEOFF]
	mov	w24, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #56]
	mov	w9, w0
	stp	x9, x8, [x20, #24]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #8]
	ldr	w9, [x23]
	cmp	w8, #0
	csel	w1, wzr, w9, eq
	mov	x0, x21
	bl	_deflate
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w9, w24, w8
	tst	w9, #0x6
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_6
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #6
	b.ne	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x20, #56]
	mov	x0, x22
	mov	w2, #8
	bl	_zip_source_read
	tbnz	w0, #31, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w0, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w24, [x20, #8]
	ldr	w8, [x20, #40]
	str	w8, [x20, #64]
	b	LBB0_6
LBB0_17:
	mov	w0, #0
	b	LBB0_2
LBB0_18:
Lloh2:
	adrp	x8, _ZIP_ER_ZLIB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZIP_ER_ZLIB@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x20]
	mov	w10, w0
	stp	x8, x10, [x9]
LBB0_19:
	ldr	x8, [x21]
	cmp	x8, x19
	b.ge	LBB0_21
; %bb.20:
	sub	w0, w19, w8
	b	LBB0_2
LBB0_21:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, #0
	csetm	w0, ne
	b	LBB0_2
LBB0_22:
	ldr	x1, [x20]
	add	x2, x1, #8
	mov	x0, x22
	bl	_zip_source_error
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_ZIP_ER_ZLIB,8,3                ; @ZIP_ER_ZLIB
	.no_dead_strip	_compress_read
.subsections_via_symbols
