	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zlib_input_filter
_zlib_input_filter:                     ## @zlib_input_filter
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_Z_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	sete	%al
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_evbuffer_get_length
	testq	%rax, %rax
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jle	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	leaq	-64(%rbp), %rcx
	movl	$1, %r8d
	callq	_evbuffer_peek
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %eax
	movl	%eax, (%rbx)
	movq	-56(%rbp), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%rbx)
	xorl	%eax, %eax
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, 16(%rbx)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	$4096, %esi                     ## imm = 0x1000
	leaq	-80(%rbp), %rdx
	movl	$1, %ecx
	callq	_evbuffer_reserve_space
	movq	-72(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	-80(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_getstate
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_inflate
	movl	-64(%rbp), %esi
	subl	(%rbx), %esi
	movl	%eax, %r14d
	movl	-80(%rbp), %r12d
	movl	4(%rbx), %r15d
	movl	%r12d, %r13d
	subl	%r15d, %r13d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_evbuffer_drain
	movl	%r13d, -80(%rbp)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	callq	_evbuffer_commit_space
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r15d, %r12d
	jne	LBB0_8
## %bb.6:
	movq	_BEV_NEED_MORE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_infilter_calls@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_BEV_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_BUF_ERROR,4,2                ## @Z_BUF_ERROR
	.comm	_BEV_NEED_MORE,4,2              ## @BEV_NEED_MORE
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_infilter_calls,4,2             ## @infilter_calls
	.comm	_BEV_OK,4,2                     ## @BEV_OK
	.no_dead_strip	_zlib_input_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zlib_input_filter
_zlib_input_filter:                     ; @zlib_input_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x25, _Z_BUF_ERROR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _Z_BUF_ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x27, _Z_STREAM_END@GOTPAGE
Lloh6:
	ldr	x27, [x27, _Z_STREAM_END@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x8, _Z_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w23, w8
	ldr	w8, [x27]
	ccmp	w23, w8, #4, ne
	cset	w0, eq
	bl	_assert
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_evbuffer_get_length
	cmp	x0, #0
	b.le	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #24
	mov	x0, x22
	mov	w1, #-1
	mov	x2, #0
	mov	w4, #1
	bl	_evbuffer_peek
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #24]
	str	w8, [x19]
	ldr	x8, [sp, #32]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	str	wzr, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x19, #16]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #4096
	mov	w3, #1
	bl	_evbuffer_reserve_space
	ldr	x8, [sp, #16]
	str	x8, [x19, #8]
	ldr	w8, [sp, #8]
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_getstate
	mov	x1, x0
	mov	x0, x19
	bl	_inflate
	mov	x23, x0
	ldr	w8, [sp, #24]
	ldp	w9, w28, [x19]
	sub	w1, w8, w9
	ldr	w24, [sp, #8]
	sub	w26, w24, w28
	mov	x0, x22
	bl	_evbuffer_drain
	str	w26, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_evbuffer_commit_space
	ldr	w8, [x25]
	cmp	w23, w8
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, w28
	b.ne	LBB0_2
; %bb.8:
Lloh10:
	adrp	x8, _BEV_NEED_MORE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BEV_NEED_MORE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _infilter_calls@GOTPAGE
Lloh13:
	ldr	x8, [x8, _infilter_calls@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh14:
	adrp	x8, _BEV_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BEV_OK@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_BUF_ERROR,4,2                ; @Z_BUF_ERROR
	.comm	_BEV_NEED_MORE,4,2              ; @BEV_NEED_MORE
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_infilter_calls,4,2             ; @infilter_calls
	.comm	_BEV_OK,4,2                     ; @BEV_OK
	.no_dead_strip	_zlib_input_filter
.subsections_via_symbols
