	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadMatchDistances
_ReadMatchDistances:                    ## @ReadMatchDistances
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	incl	48(%rdi)
	movl	20(%rdi), %edi
	callq	*24(%r15)
	movq	%rax, (%r15)
	movl	20(%r15), %edi
	movq	8(%r15), %rsi
	callq	*32(%r15)
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	movl	%eax, %r12d
	movl	-8(%rcx,%r12,4), %r14d
	cmpl	16(%r15), %r14d
	jne	LBB0_9
## %bb.3:
	movq	(%r15), %rax
	movq	_LZMA_MATCH_LEN_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, %rax
	cmovlq	%rax, %rbx
	movl	20(%r15), %edi
	callq	*40(%r15)
	leaq	-8(%rax), %rdx
	leaq	(%rax,%r14,8), %rcx
	addq	$-8, %rcx
	cmpq	%r14, %rbx
	je	LBB0_8
## %bb.4:
	movq	8(%r15), %rsi
	movslq	-4(%rsi,%r12,4), %rsi
	notq	%rsi
	leaq	(%rax,%rbx,8), %rax
	addq	$-8, %rax
	shlq	$3, %rbx
	shlq	$3, %r14
	subq	%r14, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdi
	cmpq	(%rcx,%rsi,8), %rdi
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rcx
	addq	$-8, %rbx
	jne	LBB0_5
## %bb.7:
	movq	%rax, %rcx
LBB0_8:
	subq	%rdx, %rcx
	shrq	$3, %rcx
	movl	%ecx, %r14d
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_MATCH_LEN_MAX,8,3         ## @LZMA_MATCH_LEN_MAX
	.comm	_g_STAT_OFFSET,4,2              ## @g_STAT_OFFSET
	.no_dead_strip	_ReadMatchDistances
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadMatchDistances
_ReadMatchDistances:                    ; @ReadMatchDistances
	.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	x19, x0
	ldr	w8, [x0, #48]
	add	w8, w8, #1
	str	w8, [x0, #48]
	ldr	x8, [x0, #24]
	ldr	w0, [x0, #20]
	blr	x8
	str	x0, [x19]
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #20]
	ldr	x1, [x19, #8]
	blr	x8
	str	w0, [x21]
	cbz	w0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x8, x8, w0, uxtw #2
	ldur	w21, [x8, #-8]
	ldr	w8, [x19, #16]
	mov	x0, x21
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _LZMA_MATCH_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZMA_MATCH_LEN_MAX@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	csel	x22, x9, x8, lt
	ldr	x8, [x19, #40]
	ldr	w0, [x19, #20]
	blr	x8
	sub	x8, x0, #8
	add	x9, x8, x21, lsl #3
	cmp	x22, x21
	b.eq	LBB0_7
; %bb.3:
	mov	w10, w20
	ldr	x11, [x19, #8]
	add	x10, x11, x10, lsl #2
	ldur	w10, [x10, #-4]
	mvn	w10, w10
	sxtw	x11, w10
	add	x10, x8, x22, lsl #3
	lsl	x12, x22, #3
	sub	x12, x12, x21, lsl #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9]
	ldr	x14, [x9, x11, lsl #3]
	cmp	x13, x14
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.6:
	mov	x9, x10
LBB0_7:
	sub	x8, x9, x8
	lsr	x0, x8, #3
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_MATCH_LEN_MAX,8,3         ; @LZMA_MATCH_LEN_MAX
	.comm	_g_STAT_OFFSET,4,2              ; @g_STAT_OFFSET
	.no_dead_strip	_ReadMatchDistances
.subsections_via_symbols
