	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_zlibprime
_encode_zlibprime:                      ## @encode_zlibprime
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	-96(%rbp), %rdi
	movl	%r8d, %esi
	callq	_deflateInit
	movl	$-1, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movups	(%r13), %xmm0
	cmpq	$0, 8(%r13)
	movaps	%xmm0, -96(%rbp)
	jle	LBB0_5
## %bb.2:
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %r12
	leaq	-96(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -72(%rbp)
	movl	(%r14), %eax
	movl	%eax, -80(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_deflate
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -88(%rbp)
	jg	LBB0_4
LBB0_5:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	%rax, -96(%rbp)
	movq	24(%rcx), %rcx
	subq	%rax, %rcx
	movq	%rcx, -88(%rbp)
	movq	%rbx, -72(%rbp)
	movl	(%r14), %eax
	movl	%eax, -80(%rbp)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	callq	_deflate
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_deflateEnd
	movl	-80(%rbp), %eax
	subl	%eax, (%r14)
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	(%rax), %ebx
	setne	%r15b
	negl	%r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.no_dead_strip	_encode_zlibprime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_zlibprime
_encode_zlibprime:                      ; @encode_zlibprime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #56]
	add	x0, sp, #8
	mov	x1, x4
	bl	_deflateInit
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldp	x8, x9, [x22]
	stp	x8, x9, [sp, #8]
	cmp	x9, #1
	b.lt	LBB0_5
; %bb.2:
Lloh0:
	adrp	x22, _Z_SYNC_FLUSH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Z_SYNC_FLUSH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x20, [sp, #32]
	ldr	w8, [x19]
	str	w8, [sp, #24]
	ldr	w1, [x22]
	add	x0, sp, #8
	bl	_deflate
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]
	cmp	x8, #1
	b.ge	LBB0_3
LBB0_5:
	ldp	x8, x9, [x21, #16]
	sub	x9, x9, x8
	stp	x8, x9, [sp, #8]
	str	x20, [sp, #32]
	ldr	w8, [x19]
	str	w8, [sp, #24]
Lloh2:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_deflate
	mov	x20, x0
	add	x0, sp, #8
	bl	_deflateEnd
	ldr	w8, [sp, #24]
	ldr	w9, [x19]
	sub	w8, w9, w8
	str	w8, [x19]
Lloh5:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w20, w8
	csetm	w0, ne
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.no_dead_strip	_encode_zlibprime
.subsections_via_symbols
