	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gz_look
_gz_look:                               ## @gz_look
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	64(%rdi), %r14
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_10:
	movl	(%r14), %edx
	cmpl	$1, %edx
	jg	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_gz_avail
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.13:
	movl	(%r14), %edx
	testl	%edx, %edx
	je	LBB0_23
## %bb.14:
	cmpl	$2, %edx
	jl	LBB0_18
LBB0_15:
	movq	72(%rbx), %rax
	cmpl	$31, (%rax)
	jne	LBB0_18
## %bb.16:
	cmpl	$139, 4(%rax)
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_inflateReset
	movq	_MODE_GZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	$0, 32(%rbx)
	jmp	LBB0_23
LBB0_18:
	cmpl	$0, 32(%rbx)
	je	LBB0_19
## %bb.20:
	movq	24(%rbx), %rdi
	movq	%rdi, 56(%rbx)
	testl	%edx, %edx
	je	LBB0_22
## %bb.21:
	movq	72(%rbx), %rsi
	callq	_memcpy
	movl	64(%rbx), %eax
	movl	%eax, 48(%rbx)
	movl	$0, 64(%rbx)
LBB0_22:
	movq	_MODE_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	$1, 32(%rbx)
	jmp	LBB0_23
LBB0_1:
	movl	16(%rbx), %edi
	callq	_malloc
	movq	%rax, 8(%rbx)
	movl	16(%rbx), %edi
	addl	%edi, %edi
	callq	_malloc
	movq	%rax, 24(%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movl	16(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_Z_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 96(%rbx)
	movq	%rax, 88(%rbx)
	movq	%rax, 80(%rbx)
	movl	$0, 64(%rbx)
	movq	%rax, 72(%rbx)
	movq	%r14, %rdi
	movl	$31, %esi
	callq	_inflateInit2
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	24(%rbx), %rdi
	callq	_free
	movq	8(%rbx), %rdi
	callq	_free
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_free
	movq	8(%rbx), %rdi
LBB0_5:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_free
LBB0_7:
	movq	_Z_MEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gz_error
	movl	$-1, %eax
	jmp	LBB0_24
LBB0_19:
	movl	$0, 64(%rbx)
	movl	$1, 36(%rbx)
	movl	$0, 48(%rbx)
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movl	$-1, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_MEM_ERROR,4,2                ## @Z_MEM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_Z_NULL,8,3                     ## @Z_NULL
	.comm	_Z_OK,8,3                       ## @Z_OK
	.comm	_MODE_GZIP,4,2                  ## @MODE_GZIP
	.comm	_MODE_COPY,4,2                  ## @MODE_COPY
	.no_dead_strip	_gz_look
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gz_look
_gz_look:                               ; @gz_look
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x20, x0
	ldr	w8, [x20], #64
	cbz	w8, LBB0_12
LBB0_1:
	ldr	w2, [x20]
	cmp	w2, #1
	b.gt	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_gz_avail
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.3:
	ldr	w2, [x20]
	cbz	w2, LBB0_21
; %bb.4:
	cmp	w2, #2
	b.lt	LBB0_8
LBB0_5:
	ldr	x8, [x19, #72]
	ldr	w9, [x8]
	cmp	w9, #31
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x8, #4]
	cmp	w8, #139
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_inflateReset
	mov	w0, #0
Lloh0:
	adrp	x8, _MODE_GZIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_GZIP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	wzr, [x19, #32]
	b	LBB0_22
LBB0_8:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_20
; %bb.9:
	ldr	x0, [x19, #24]
	str	x0, [x19, #56]
	cbz	w2, LBB0_11
; %bb.10:
	ldr	x1, [x19, #72]
	bl	_memcpy
	ldr	w8, [x19, #64]
	str	w8, [x19, #48]
	str	wzr, [x19, #64]
LBB0_11:
	mov	w0, #0
Lloh3:
	adrp	x8, _MODE_COPY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_COPY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	w8, #1
	str	w8, [x19, #32]
	b	LBB0_22
LBB0_12:
	ldr	w0, [x19, #16]
	bl	_malloc
	str	x0, [x19, #8]
	ldr	w8, [x19, #16]
	lsl	w0, w8, #1
	bl	_malloc
	mov	x8, x0
	str	x0, [x19, #24]
	ldr	x0, [x19, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_17
; %bb.13:
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x8
	bl	_free
	ldr	x0, [x19, #8]
LBB0_15:
	cbz	x0, LBB0_19
; %bb.16:
	bl	_free
	b	LBB0_19
LBB0_17:
	ldr	w8, [x19, #16]
	str	w8, [x19]
Lloh6:
	adrp	x8, _Z_NULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Z_NULL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #88]
	str	wzr, [x19, #64]
	stp	x8, x8, [x19, #72]
	mov	x0, x20
	mov	w1, #31
	bl	_inflateInit2
Lloh9:
	adrp	x8, _Z_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.18:
	ldr	x0, [x19, #24]
	bl	_free
	ldr	x0, [x19, #8]
	bl	_free
	str	wzr, [x19]
LBB0_19:
Lloh12:
	adrp	x8, _Z_MEM_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Z_MEM_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gz_error
	mov	w0, #-1
	b	LBB0_22
LBB0_20:
	mov	w0, #0
	str	wzr, [x19, #64]
	mov	w8, #1
	str	w8, [x19, #36]
	str	wzr, [x19, #48]
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_MEM_ERROR,4,2                ; @Z_MEM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_Z_NULL,8,3                     ; @Z_NULL
	.comm	_Z_OK,8,3                       ; @Z_OK
	.comm	_MODE_GZIP,4,2                  ; @MODE_GZIP
	.comm	_MODE_COPY,4,2                  ; @MODE_COPY
	.no_dead_strip	_gz_look
.subsections_via_symbols
