	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress
_compress:                              ## @compress
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %r15d
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movl	%r9d, %r13d
	movq	%rcx, %r14
	movl	(%rcx), %ecx
	leal	(%rcx,%r13), %eax
	cmpl	%r15d, %eax
	jbe	LBB0_6
LBB0_5:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_36:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	16(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	8(%rsi), %r12
	movl	4(%r14), %esi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%ebx, %edi
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_round_up
	movl	%eax, %edi
	movl	(%r14), %ecx
LBB0_8:
	cmpl	%ecx, %ebx
	cmovbl	%ecx, %edi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %r14d
	cmpl	%r14d, %ebx
	cmoval	%r14d, %edi
	cmovbl	%ebx, %r14d
	cmpl	%r14d, %edi
	ja	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	LBB0_10
LBB0_11:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	movq	_BOUNCE_BUFFER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_min
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_min
	movl	%eax, %r14d
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	subl	%eax, %r15d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jbe	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	shlq	$2, %rdi
	addq	24(%rbx), %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
LBB0_13:
	movq	24(%rbx), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movq	24(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_pr_debug
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	12(%r14), %esi
	movl	%r12d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_14:
	movl	%r13d, %eax
	movq	%r13, %rcx
	leaq	(%r12,%rax,4), %r13
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	subl	%ecx, %r15d
	movl	%r15d, -44(%rbp)
	movl	%r13d, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	LBB0_15
## %bb.16:
	movq	%r13, %rdi
	callq	_PTR_ALIGN
	movq	%rax, %rbx
	subq	%r13, %rbx
	shrq	$2, %rbx
	movslq	%ebx, %rax
	leaq	(%r13,%rax,4), %r13
	subl	%eax, %r15d
	movl	%r15d, -44(%rbp)
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
LBB0_17:
	movl	4(%r14), %esi
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
	testl	%edx, %edx
	je	LBB0_19
## %bb.18:
	movl	%r15d, %edi
	callq	_round_down
	movl	%eax, %r15d
	movl	%eax, -44(%rbp)
LBB0_19:
	cmpl	(%r14), %r15d
	jae	LBB0_22
## %bb.20:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
LBB0_21:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	movq	_BOUNCE_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movl	%eax, -44(%rbp)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_round_down
	movl	%eax, -44(%rbp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-44(%rbp), %r15d
	movq	%r14, %r13
	movq	%r12, %r14
LBB0_22:
	movl	8(%r14), %eax
	cmpl	%eax, %r15d
	jbe	LBB0_24
## %bb.23:
	movl	%eax, -44(%rbp)
	movl	%eax, %r15d
LBB0_24:
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ktime_get
	movq	_COMP_BUSY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ktime_add_ms
	movl	%eax, %r13d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -44(%rbp)
	movq	16(%rbx), %rax
	movl	8(%rbx), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	leaq	-44(%rbp), %rcx
	callq	*(%rax)
	movl	%eax, %r15d
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%rbx), %r14
	cmpq	%r14, %r12
	jne	LBB0_21
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_ktime_before
	testq	%rax, %rax
	jne	LBB0_25
LBB0_29:
	testl	%r15d, %r15d
	jne	LBB0_36
## %bb.30:
	movq	-128(%rbp), %r12                ## 8-byte Reload
	addl	-112(%rbp), %r12d               ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpq	(%rax), %rsi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_32
## %bb.31:
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movl	-44(%rbp), %edx
	callq	_memcpy
LBB0_32:
	movl	%r12d, %edi
	callq	_cpu_to_be16
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, 16(%rbx)
	movl	-44(%rbp), %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, (%rbx)
	movl	%r15d, %edx
	subl	(%r14), %edx
	jbe	LBB0_33
## %bb.34:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movl	(%r14), %r15d
	jmp	LBB0_35
LBB0_10:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_33:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
LBB0_35:
	movl	-44(%rbp), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
	addl	-44(%rbp), %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_update_param
	movl	%eax, %r15d
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_BOUNCE_BUFFER_SIZE,4,2         ## @BOUNCE_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using comp sbounce buffer, len %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"using comp dbounce buffer, len %x\n"

	.comm	_COMP_BUSY_TIMEOUT,4,2          ## @COMP_BUSY_TIMEOUT
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"compress slen %x ignore %x dlen %x padding %x\n"

	.no_dead_strip	_compress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress
_compress:                              ; @compress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	w25, [x1]
	cbz	w25, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w21, [x1, #4]
	cbz	w21, LBB0_3
; %bb.2:
	mov	x22, x5
	mov	x24, x3
	ldr	w8, [x3]
	add	w9, w8, w5
	cmp	w9, w21
	b.ls	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	mov	x23, x0
	str	x2, [sp, #48]                   ; 8-byte Folded Spill
	str	x4, [sp, #32]                   ; 8-byte Folded Spill
	ldp	x27, x26, [x19, #8]
	ldr	w1, [x24, #4]
	udiv	w9, w25, w1
	mov	x0, x25
	msub	w9, w9, w1, w25
	cbz	w9, LBB0_9
; %bb.8:
	bl	_round_up
	ldr	w8, [x24]
LBB0_9:
	cmp	w25, w8
	csel	w8, w8, w0, lo
	ldr	w9, [x24, #8]
	cmp	w25, w9
	csel	w0, w9, w8, hi
	csel	w20, w25, w9, lo
Lloh4:
	adrp	x28, _BOUNCE_BUFFER_SIZE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _BOUNCE_BUFFER_SIZE@GOTPAGEOFF]
	cmp	w0, w20
	b.hi	LBB0_11
; %bb.10:
	ldr	w1, [x24, #12]
	sdiv	w8, w26, w1
	msub	w8, w8, w1, w26
	cbz	w8, LBB0_21
LBB0_11:
	ldr	w1, [x28]
	bl	_min
	mov	x25, x0
	ldr	w1, [x28]
	mov	x0, x20
	bl	_min
	mov	x20, x0
	subs	w2, w25, w0
	b.ls	LBB0_13
; %bb.12:
	ldr	x8, [x23, #24]
	add	x0, x8, w20, uxtw #2
	mov	w1, #0
	bl	_memset
LBB0_13:
	ldr	x0, [x23, #24]
	mov	x1, x26
	mov	x2, x20
	bl	_memcpy
	ldr	x26, [x23, #24]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_pr_debug
	ldr	w1, [x24, #12]
LBB0_14:
	add	x27, x27, w22, uxtw #2
	str	w22, [sp, #44]                  ; 4-byte Folded Spill
	sub	w28, w21, w22
	str	w28, [sp, #76]
	sdiv	w8, w27, w1
	msub	w8, w8, w1, w27
	cbz	w8, LBB0_16
; %bb.15:
	mov	x0, x27
	bl	_PTR_ALIGN
	sub	x8, x0, x27
	lsr	x20, x8, #2
	add	x27, x27, w20, sxtw #2
	sub	w28, w28, w20
	str	w28, [sp, #76]
	b	LBB0_17
LBB0_16:
	mov	w20, #0
LBB0_17:
	ldr	w1, [x24, #4]
	udiv	w8, w28, w1
	msub	w8, w8, w1, w28
	cbz	w8, LBB0_19
; %bb.18:
	mov	x0, x28
	bl	_round_down
	mov	x28, x0
	str	w0, [sp, #76]
LBB0_19:
	ldr	w8, [x24]
	cmp	w28, w8
	str	x19, [sp, #64]                  ; 8-byte Folded Spill
	b.hs	LBB0_23
; %bb.20:
	ldr	x27, [x23]
	b	LBB0_22
LBB0_21:
	mov	x25, x20
	b	LBB0_14
LBB0_22:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _BOUNCE_BUFFER_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BOUNCE_BUFFER_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_min
	str	w0, [sp, #76]
	ldr	w1, [x24, #4]
	bl	_round_down
	mov	x1, x0
	str	w0, [sp, #76]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w20, #0
	ldr	w28, [sp, #76]
LBB0_23:
	ldr	w8, [x24, #8]
	cmp	w28, w8
	b.ls	LBB0_25
; %bb.24:
	str	w8, [sp, #76]
	mov	x28, x8
LBB0_25:
	str	x20, [sp, #56]                  ; 8-byte Folded Spill
	bl	_ktime_get
Lloh13:
	adrp	x8, _COMP_BUSY_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMP_BUSY_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_ktime_add_ms
	mov	x20, x0
Lloh16:
	adrp	x22, _ENOSPC@GOTPAGE
Lloh17:
	ldr	x22, [x22, _ENOSPC@GOTPAGEOFF]
Lloh18:
	adrp	x19, _EBUSY@GOTPAGE
Lloh19:
	ldr	x19, [x19, _EBUSY@GOTPAGEOFF]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	str	w28, [sp, #76]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	w4, [x23, #8]
	add	x3, sp, #76
	mov	x0, x26
	mov	x1, x25
	mov	x2, x27
	blr	x8
	mov	x21, x0
	ldr	w8, [x22]
	cmn	w0, w8
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	b.ne	LBB0_35
LBB0_28:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [x19]
	cmn	w21, w8
	b.ne	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	bl	_ktime_get
	mov	x1, x20
	bl	_ktime_before
	cbnz	x0, LBB0_26
LBB0_30:
	ldr	x19, [sp, #64]                  ; 8-byte Folded Reload
	cbnz	w21, LBB0_6
; %bb.31:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	add	w22, w9, w8
	ldr	x8, [x23]
	cmp	x27, x8
	b.ne	LBB0_33
; %bb.32:
	ldr	x8, [x19, #8]
	add	x0, x8, w22, sxtw #2
	ldr	w2, [sp, #76]
	mov	x1, x27
	bl	_memcpy
LBB0_33:
	mov	x0, x22
	bl	_cpu_to_be16
	ldr	x20, [sp, #48]                  ; 8-byte Folded Reload
	str	w0, [x20, #16]
	ldr	w0, [sp, #76]
	bl	_cpu_to_be32
	str	x0, [x20, #8]
	mov	x0, x25
	bl	_cpu_to_be32
	str	x0, [x20]
	ldr	w8, [x19]
	subs	w8, w25, w8
	b.ls	LBB0_36
; %bb.34:
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w25, [x19]
	b	LBB0_37
LBB0_35:
	mov	x27, x8
	ldr	x19, [sp, #64]                  ; 8-byte Folded Reload
	b	LBB0_22
LBB0_36:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
LBB0_37:
	ldr	w9, [sp, #76]
	stp	x9, x22, [sp, #8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x25
	bl	_pr_debug
	ldr	w8, [sp, #76]
	add	w2, w8, w22
	mov	x0, x19
	mov	x1, x25
	bl	_update_param
	mov	x21, x0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_BOUNCE_BUFFER_SIZE,4,2         ; @BOUNCE_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using comp sbounce buffer, len %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"using comp dbounce buffer, len %x\n"

	.comm	_COMP_BUSY_TIMEOUT,4,2          ; @COMP_BUSY_TIMEOUT
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"compress slen %x ignore %x dlen %x padding %x\n"

	.no_dead_strip	_compress
.subsections_via_symbols
