	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compress2                      ## -- Begin function compress2
	.p2align	4, 0x90
_compress2:                             ## @compress2
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdx, -32(%rbp)
	movq	%rcx, -40(%rbp)
	movq	%rdi, -48(%rbp)
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)
	movq	_Z_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, -72(%rbp)
	movq	$0, -80(%rbp)
	leaq	-88(%rbp), %rdi
	movl	%r8d, %esi
	callq	_deflateInit
	movl	%eax, %ebx
	movq	_Z_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_5
## %bb.1:
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	callq	_deflate
	movl	%eax, %ebx
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.4:
	movq	-88(%rbp), %rax
	movq	%rax, (%r14)
	leaq	-88(%rbp), %rdi
	callq	_deflateEnd
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	leaq	-88(%rbp), %rdi
	callq	_deflateEnd
	cmpl	(%r15), %ebx
	jne	LBB0_5
## %bb.3:
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_BUF_ERROR,4,2                ## @Z_BUF_ERROR
	.comm	_Z_NULL,8,3                     ## @Z_NULL
	.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	_compress2                      ; -- Begin function compress2
	.p2align	2
_compress2:                             ; @compress2
	.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, x1
	stp	x3, x2, [sp, #48]
	str	x0, [sp, #40]
Lloh0:
	adrp	x8, _Z_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z_NULL@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x9, [sp, #24]
	stp	xzr, x8, [sp, #8]
	mov	x0, sp
	mov	x1, x4
	bl	_deflateInit
Lloh3:
	adrp	x21, _Z_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_deflate
Lloh8:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [sp]
	str	x8, [x19]
	mov	x0, sp
	bl	_deflateEnd
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	mov	x0, sp
	bl	_deflateEnd
	ldr	w8, [x21]
Lloh11:
	adrp	x9, _Z_BUF_ERROR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _Z_BUF_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w20, w8
	csel	w0, w9, w20, eq
LBB0_4:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_BUF_ERROR,4,2                ; @Z_BUF_ERROR
	.comm	_Z_NULL,8,3                     ; @Z_NULL
	.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
