	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gunzip                         ## -- Begin function gunzip
	.p2align	4, 0x90
_gunzip:                                ## @gunzip
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movb	2(%rdx), %al
	movq	_DEFLATED@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_16
## %bb.1:
	movq	%rdx, %rbx
	movzbl	3(%rdx), %eax
	movq	_RESERVED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.2:
	movq	_EXTRA_FIELD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movzwl	10(%rbx), %ecx
	addl	$12, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	$10, %ecx
LBB0_5:
	movq	_ORIG_NAME@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.6:
	movl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx,%rcx)
	leaq	1(%rcx), %rcx
	jne	LBB0_7
LBB0_8:
	movq	_COMMENT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.9:
	movslq	%ecx, %rdx
	addq	%rbx, %rdx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	cmpb	$0, (%rdx)
	leaq	1(%rdx), %rdx
	jne	LBB0_10
LBB0_11:
	movq	_HEAD_CRC@GOTPCREL(%rip), %rdx
	leal	2(%rcx), %r15d
	testl	%eax, (%rdx)
	cmovel	%ecx, %r15d
	cmpl	(%r12), %r15d
	jge	LBB0_16
## %bb.12:
	movl	%esi, %r14d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_zlib_inflate_workspacesize
	movl	%eax, %edi
	callq	_zalloc
	movl	%eax, -44(%rbp)
	movq	_MAX_WBITS@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	leaq	-72(%rbp), %rdi
	movl	%r13d, %esi
	callq	_zlib_inflateInit2
	movq	_Z_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_16
## %bb.13:
	movslq	%r15d, %rax
	addq	%rax, %rbx
	movq	%rbx, -72(%rbp)
	movl	(%r12), %eax
	subl	%r15d, %eax
	movl	%eax, -64(%rbp)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, -56(%rbp)
	movl	%r14d, -48(%rbp)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdi
	callq	_zlib_inflate
	cmpl	(%r13), %eax
	je	LBB0_15
## %bb.14:
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
LBB0_15:
	movl	-56(%rbp), %eax
	subl	%ebx, %eax
	movl	%eax, (%r12)
	leaq	-72(%rbp), %rdi
	callq	_zlib_inflateEnd
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFLATED,1,0                   ## @DEFLATED
	.comm	_RESERVED,4,2                   ## @RESERVED
	.comm	_EXTRA_FIELD,4,2                ## @EXTRA_FIELD
	.comm	_ORIG_NAME,4,2                  ## @ORIG_NAME
	.comm	_COMMENT,4,2                    ## @COMMENT
	.comm	_HEAD_CRC,4,2                   ## @HEAD_CRC
	.comm	_MAX_WBITS,4,2                  ## @MAX_WBITS
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gunzip                         ; -- Begin function gunzip
	.p2align	2
_gunzip:                                ; @gunzip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldrb	w8, [x2, #2]
Lloh0:
	adrp	x9, _DEFLATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEFLATED@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.1:
	mov	x22, x2
	ldrb	w8, [x2, #3]
Lloh2:
	adrp	x9, _RESERVED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RESERVED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.2:
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
Lloh5:
	adrp	x9, _EXTRA_FIELD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EXTRA_FIELD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldrh	w9, [x22, #10]
	add	w9, w9, #12
	b	LBB0_5
LBB0_4:
	mov	w9, #10
LBB0_5:
Lloh8:
	adrp	x10, _ORIG_NAME@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ORIG_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.6:
	mov	w9, w9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x22, x9]
	add	x9, x9, #1
	cbnz	w10, LBB0_7
LBB0_8:
Lloh11:
	adrp	x10, _COMMENT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _COMMENT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_11
; %bb.9:
	add	x10, x22, w9, sxtw
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #1
	add	w9, w9, #1
	cbnz	w11, LBB0_10
LBB0_11:
Lloh14:
	adrp	x10, _HEAD_CRC@GOTPAGE
Lloh15:
	ldr	x10, [x10, _HEAD_CRC@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	add	w11, w9, #2
	tst	w10, w8
	csel	w23, w9, w11, eq
	ldr	w8, [x19]
	cmp	w23, w8
	b.ge	LBB0_15
; %bb.12:
	bl	_zlib_inflate_workspacesize
	bl	_zalloc
	str	w0, [sp, #28]
Lloh17:
	adrp	x8, _MAX_WBITS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_WBITS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, sp
	bl	_zlib_inflateInit2
Lloh20:
	adrp	x24, _Z_OK@GOTPAGE
Lloh21:
	ldr	x24, [x24, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.13:
	add	x8, x22, w23, sxtw
	str	x8, [sp]
	ldr	w8, [x19]
	sub	w8, w8, w23
	str	w8, [sp, #8]
	str	x20, [sp, #16]
	str	w21, [sp, #24]
Lloh22:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_zlib_inflate
	ldr	w8, [x24]
Lloh25:
	adrp	x9, _Z_STREAM_END@GOTPAGE
Lloh26:
	ldr	x9, [x9, _Z_STREAM_END@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [sp, #16]
	sub	w8, w8, w20
	str	w8, [x19]
	mov	x0, sp
	bl	_zlib_inflateEnd
	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
	add	sp, sp, #96
	ret
LBB0_15:
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFLATED,1,0                   ; @DEFLATED
	.comm	_RESERVED,4,2                   ; @RESERVED
	.comm	_EXTRA_FIELD,4,2                ; @EXTRA_FIELD
	.comm	_ORIG_NAME,4,2                  ; @ORIG_NAME
	.comm	_COMMENT,4,2                    ; @COMMENT
	.comm	_HEAD_CRC,4,2                   ; @HEAD_CRC
	.comm	_MAX_WBITS,4,2                  ; @MAX_WBITS
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
.subsections_via_symbols
