	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzma_match
_lzma_match:                            ## @lzma_match
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	addq	$52, %rdi
	callq	_lzma_state_match
	movq	4(%rbx), %rax
	movq	%rax, (%rbx)
	leaq	12(%rbx), %r14
	movl	12(%rbx), %eax
	movl	%eax, 8(%rbx)
	leaq	48(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_lzma_len
	movq	40(%rbx), %r15
	movl	32(%rbx), %edi
	callq	_lzma_get_dist_state
	movq	(%r15,%rax,8), %rsi
	leaq	56(%rbx), %r15
	movq	_DIST_SLOTS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_rc_bittree
	subl	(%r12), %eax
	movq	_DIST_MODEL_START@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_1
## %bb.5:
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %ecx
	sarl	%ecx
	decl	%ecx
	movl	%eax, %edx
	andl	$1, %edx
	orl	$2, %edx
	movl	%edx, (%r14)
	movq	_DIST_MODEL_END@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jge	LBB0_4
## %bb.2:
	shll	%cl, %edx
	movl	%edx, 12(%rbx)
	notl	%eax
	addl	%edx, %eax
	addl	16(%rbx), %eax
	movslq	%eax, %rsi
	jmp	LBB0_3
LBB0_4:
	movq	_ALIGN_BITS@GOTPCREL(%rip), %r12
	subl	(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ecx, %edx
	callq	_rc_direct
	movl	(%r12), %ecx
	shll	%cl, 12(%rbx)
	movq	24(%rbx), %rsi
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_bittree_reverse             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIST_SLOTS,4,2                 ## @DIST_SLOTS
	.comm	_DIST_MODEL_START,4,2           ## @DIST_MODEL_START
	.comm	_DIST_MODEL_END,4,2             ## @DIST_MODEL_END
	.comm	_ALIGN_BITS,4,2                 ## @ALIGN_BITS
	.no_dead_strip	_lzma_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzma_match
_lzma_match:                            ; @lzma_match
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	add	x0, x0, #52
	bl	_lzma_state_match
	ldur	d0, [x20, #4]
	str	d0, [x20]
	mov	x19, x20
	ldr	w8, [x19, #12]!
	str	w8, [x20, #8]
	add	x1, x20, #48
	mov	x0, x20
	mov	x2, x21
	bl	_lzma_len
	ldr	x21, [x20, #40]
	ldr	w0, [x20, #32]
	bl	_lzma_get_dist_state
	ldr	x1, [x21, x0, lsl #3]
	add	x21, x20, #56
Lloh0:
	adrp	x22, _DIST_SLOTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DIST_SLOTS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_rc_bittree
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _DIST_MODEL_START@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DIST_MODEL_START@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	asr	w9, w8, #1
	sub	w3, w9, #1
	mov	w9, #2
	bfxil	w9, w8, #0, #1
	str	w9, [x19]
Lloh5:
	adrp	x10, _DIST_MODEL_END@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DIST_MODEL_END@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ge	LBB0_4
; %bb.3:
	lsl	w9, w9, w3
	str	w9, [x20, #12]
	ldr	w10, [x20, #16]
	mvn	w8, w8
	add	w8, w9, w8
	add	w8, w8, w10
	sxtw	x1, w8
	mov	x0, x21
	mov	x2, x19
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x22, _ALIGN_BITS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ALIGN_BITS@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w2, w3, w8
	mov	x0, x21
	mov	x1, x19
	bl	_rc_direct
	ldr	w3, [x22]
	ldr	w8, [x20, #12]
	lsl	w8, w8, w3
	str	w8, [x20, #12]
	ldr	x1, [x20, #24]
	mov	x0, x21
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rc_bittree_reverse
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DIST_SLOTS,4,2                 ; @DIST_SLOTS
	.comm	_DIST_MODEL_START,4,2           ; @DIST_MODEL_START
	.comm	_DIST_MODEL_END,4,2             ; @DIST_MODEL_END
	.comm	_ALIGN_BITS,4,2                 ; @ALIGN_BITS
	.no_dead_strip	_lzma_match
.subsections_via_symbols
