	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzread                         ## -- Begin function gzread
	.p2align	4, 0x90
_gzread:                                ## @gzread
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_GZ_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	8(%rbx), %rax
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.3:
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_8:
	testl	%r14d, %r14d
	js	LBB0_27
## %bb.9:
	je	LBB0_28
## %bb.10:
	cmpq	$0, 64(%rbx)
	je	LBB0_12
## %bb.11:
	movq	$0, 64(%rbx)
	movl	56(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gz_skip
	cmpl	$-1, %eax
	je	LBB0_6
LBB0_12:
	movl	$0, -44(%rbp)
	xorl	%r12d, %r12d
	movq	_LOOK@GOTPCREL(%rip), %r13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	callq	_gz_fetch
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	36(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	%r14d, %edx
	cmovael	%r14d, %edx
	movl	%edx, -44(%rbp)
	movl	40(%rbx), %esi
	movq	%r15, %rdi
	callq	_memcpy
	movl	-44(%rbp), %eax
	addl	%eax, 40(%rbx)
	subl	%eax, 36(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	subl	%eax, %r14d
	movl	%eax, %ecx
	addq	%rcx, %r15
	addl	%eax, %r12d
	addl	%eax, 44(%rbx)
	testl	%r14d, %r14d
	jne	LBB0_15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 48(%rbx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 72(%rbx)
	je	LBB0_31
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	32(%rbx), %ecx
	addl	%ecx, %ecx
	cmpl	%ecx, %r14d
	jb	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_MODE_COPY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	leaq	-44(%rbp), %rcx
	callq	_gz_load
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.24:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_17
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%r14d, 80(%rbx)
	movq	%r15, 88(%rbx)
	movq	%rbx, %rdi
	callq	_gz_decomp
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.26:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	36(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	$0, 36(%rbx)
	jmp	LBB0_17
LBB0_27:
	movq	_Z_DATA_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gz_error
LBB0_6:
	movl	$-1, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_31:
	movl	$1, 16(%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GZ_READ,8,3                    ## @GZ_READ
	.comm	_Z_OK,8,3                       ## @Z_OK
	.comm	_Z_BUF_ERROR,8,3                ## @Z_BUF_ERROR
	.comm	_Z_DATA_ERROR,4,2               ## @Z_DATA_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested length does not fit in int"

	.comm	_LOOK,8,3                       ## @LOOK
	.comm	_MODE_COPY,8,3                  ## @MODE_COPY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzread                         ; -- Begin function gzread
	.p2align	2
_gzread:                                ; @gzread
	.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
	cbz	x0, LBB0_22
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GZ_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GZ_READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _Z_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Z_OK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _Z_BUF_ERROR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _Z_BUF_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_22
; %bb.3:
	mov	x20, x2
	tbnz	w2, #31, LBB0_24
; %bb.4:
	cbz	w20, LBB0_25
; %bb.5:
	mov	x22, x1
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_7
; %bb.6:
	str	xzr, [x19, #64]
	ldr	w1, [x19, #56]
	mov	x0, x19
	bl	_gz_skip
	cmn	w0, #1
	b.eq	LBB0_22
LBB0_7:
	mov	w21, #0
	str	wzr, [sp, #12]
Lloh9:
	adrp	x23, _LOOK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _LOOK@GOTPAGEOFF]
Lloh11:
	adrp	x24, _MODE_COPY@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MODE_COPY@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_gz_fetch
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_10 Depth=1
	cbz	w20, LBB0_23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w8, w20
	csel	w2, w8, w20, lo
	str	w2, [sp, #12]
	ldr	w1, [x19, #40]
	mov	x0, x22
	bl	_memcpy
	ldr	w8, [sp, #12]
	ldp	w10, w9, [x19, #36]
	add	w9, w9, w8
	sub	w10, w10, w8
	stp	w10, w9, [x19, #36]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	w20, w20, w8
	add	x22, x22, w8, uxtw
	add	w21, w8, w21
	ldr	w9, [x19, #44]
	add	w8, w9, w8
	str	w8, [x19, #44]
	cbnz	w20, LBB0_10
	b	LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_26
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x19, #32]
	cmp	w20, w9, lsl #1
	b.lo	LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_gz_load
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #12]
	b	LBB0_12
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	str	w20, [x19, #80]
	str	x22, [x19, #88]
	mov	x0, x19
	bl	_gz_decomp
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19, #36]
	str	w8, [sp, #12]
	str	wzr, [x19, #36]
	b	LBB0_12
LBB0_22:
	mov	w21, #-1
LBB0_23:
	mov	x0, x21
	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
LBB0_24:
Lloh13:
	adrp	x8, _Z_DATA_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Z_DATA_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gz_error
	mov	w21, #-1
	b	LBB0_23
LBB0_25:
	mov	w21, #0
	b	LBB0_23
LBB0_26:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GZ_READ,8,3                    ; @GZ_READ
	.comm	_Z_OK,8,3                       ; @Z_OK
	.comm	_Z_BUF_ERROR,8,3                ; @Z_BUF_ERROR
	.comm	_Z_DATA_ERROR,4,2               ; @Z_DATA_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested length does not fit in int"

	.comm	_LOOK,8,3                       ; @LOOK
	.comm	_MODE_COPY,8,3                  ; @MODE_COPY
.subsections_via_symbols
