	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_buffer
_compress_buffer:                       ## @compress_buffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	(%rdx), %rcx
	movq	8(%rdx), %rax
	movq	%rcx, 40(%rdx)
	subq	%rcx, %rax
	addq	16(%rdx), %rax
	movq	%rax, 24(%rdx)
	movq	%rdi, 48(%rdx)
	movq	%rsi, 32(%rdx)
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %rbx
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %r13
	movq	_Z_OK@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_3:
	movq	%r15, %rdi
	callq	_rbzs_grow
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_deflate
	cmpl	(%r14), %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %edi
	callq	_zError
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_parseterminate
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 32(%r15)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_3
LBB0_8:
	movq	40(%r15), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:
	movq	%rcx, (%r15)
	movq	%rsi, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zlib deflate failed: %s"

	.no_dead_strip	_compress_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_buffer
_compress_buffer:                       ; @compress_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	ldp	x9, x8, [x2]
	ldr	x10, [x2, #16]
	sub	x8, x8, x9
	add	x8, x8, x10
	mov	x21, x2
	str	x8, [x21, #24]!
	stp	x9, x0, [x21, #16]
	str	x1, [x21, #8]
	cbz	x1, LBB0_8
; %bb.1:
Lloh0:
	adrp	x23, _Z_NO_FLUSH@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh2:
	adrp	x24, _Z_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _Z_OK@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	cbnz	x8, LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_rbzs_grow
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	bl	_deflate
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_zError
	mov	x1, x0
	mov	x0, x22
	bl	_parseterminate
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_7:
	ldr	x9, [x20, #40]
LBB0_8:
	str	x9, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zlib deflate failed: %s"

	.no_dead_strip	_compress_buffer
.subsections_via_symbols
