	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zlib_deflate_trans
_zlib_deflate_trans:                    ## @zlib_deflate_trans
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	8(%rdi), %r13
	cmpl	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	4(%r15), %esi
	movq	%r13, %rdi
	movq	%r8, %r14
	callq	_deflateInit
	movq	%r14, %r8
	movl	$1, (%r15)
LBB0_2:
	testl	%ebx, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	jne	LBB0_3
## %bb.4:
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
LBB0_5:
	movq	8(%r15), %r14
	movq	16(%r15), %rbx
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_deflate
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.6:
	testq	%r12, %r12
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	movq	_TRANS_STREAM_ERROR_AGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_16:
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.17:
	testq	%r12, %r12
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_9
## %bb.18:
	movq	_TRANS_STREAM_ERROR_NONE@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	movl	%ecx, (%r12)
LBB0_9:
	movq	%r13, %rdi
	movl	$1, %r13d
	cmpq	$0, 16(%r15)
	jne	LBB0_13
## %bb.10:
	cmpq	$0, (%rdi)
	je	LBB0_13
## %bb.11:
	xorl	%r13d, %r13d
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	movq	_TRANS_STREAM_ERROR_BUFFER_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r12)
LBB0_13:
	subq	8(%r15), %r14
	movq	%r14, (%rsi)
	subq	16(%r15), %rbx
	movq	%rbx, (%r8)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_21
## %bb.14:
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.15:
	callq	_deflateEnd
	movl	$0, (%r15)
	jmp	LBB0_21
LBB0_19:
	xorl	%r13d, %r13d
	testq	%r12, %r12
	je	LBB0_21
## %bb.20:
	movq	_TRANS_STREAM_ERROR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_TRANS_STREAM_ERROR_AGAIN,4,2   ## @TRANS_STREAM_ERROR_AGAIN
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_TRANS_STREAM_ERROR_NONE,4,2    ## @TRANS_STREAM_ERROR_NONE
	.comm	_TRANS_STREAM_ERROR_OTHER,4,2   ## @TRANS_STREAM_ERROR_OTHER
	.comm	_TRANS_STREAM_ERROR_BUFFER_FULL,4,2 ## @TRANS_STREAM_ERROR_BUFFER_FULL
	.no_dead_strip	_zlib_deflate_trans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zlib_deflate_trans
_zlib_deflate_trans:                    ; @zlib_deflate_trans
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	x20, x0
	ldr	w8, [x20], #8
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_deflateInit
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
Lloh0:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
	ldp	x27, x26, [x19, #8]
Lloh2:
	adrp	x9, _Z_NO_FLUSH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Z_NO_FLUSH@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_deflate
Lloh4:
	adrp	x8, _Z_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
Lloh7:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
	cmp	w0, w9
	b.ne	LBB0_5
; %bb.3:
	cbz	x24, LBB0_9
; %bb.4:
Lloh9:
	adrp	x9, _TRANS_STREAM_ERROR_AGAIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TRANS_STREAM_ERROR_AGAIN@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w9, [x8]
	cmp	w0, w9
	b.ne	LBB0_17
; %bb.6:
	cbz	x24, LBB0_9
; %bb.7:
Lloh11:
	adrp	x9, _TRANS_STREAM_ERROR_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TRANS_STREAM_ERROR_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	str	w9, [x24]
LBB0_9:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_14
LBB0_10:
	mov	w25, #1
LBB0_11:
	ldr	x9, [x19, #8]
	sub	x9, x27, x9
	str	x9, [x23]
	ldr	x9, [x19, #16]
	sub	x9, x26, x9
	str	x9, [x21]
	cbz	w22, LBB0_19
; %bb.12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.13:
	mov	x0, x20
	bl	_deflateEnd
	str	wzr, [x19]
	b	LBB0_19
LBB0_14:
	ldr	x9, [x20]
	cbz	x9, LBB0_10
; %bb.15:
	mov	w25, #0
	cbz	x24, LBB0_11
; %bb.16:
Lloh13:
	adrp	x9, _TRANS_STREAM_ERROR_BUFFER_FULL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TRANS_STREAM_ERROR_BUFFER_FULL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x24]
	b	LBB0_11
LBB0_17:
	mov	w25, #0
	cbz	x24, LBB0_19
; %bb.18:
Lloh16:
	adrp	x8, _TRANS_STREAM_ERROR_OTHER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRANS_STREAM_ERROR_OTHER@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x24]
LBB0_19:
	mov	x0, x25
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_TRANS_STREAM_ERROR_AGAIN,4,2   ; @TRANS_STREAM_ERROR_AGAIN
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_TRANS_STREAM_ERROR_NONE,4,2    ; @TRANS_STREAM_ERROR_NONE
	.comm	_TRANS_STREAM_ERROR_OTHER,4,2   ; @TRANS_STREAM_ERROR_OTHER
	.comm	_TRANS_STREAM_ERROR_BUFFER_FULL,4,2 ; @TRANS_STREAM_ERROR_BUFFER_FULL
	.no_dead_strip	_zlib_deflate_trans
.subsections_via_symbols
