	.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	%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	%rsi, %r14
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	*32(%rbx)
	movl	%eax, (%rbx)
	movl	24(%rbx), %edi
	movq	8(%rbx), %rsi
	callq	*40(%rbx)
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movslq	%r15d, %rcx
	movl	-8(%rax,%rcx,4), %r12d
	cmpl	16(%rbx), %r12d
	jne	LBB0_10
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %r14
	movq	_LZMA_MATCH_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rbx), %eax
	movl	24(%rbx), %edi
	cmpl	%r13d, %eax
	cmovll	%eax, %r13d
	callq	*48(%rbx)
	leaq	-1(%rax), %r9
	leaq	(%rax,%r14), %rdx
	decq	%rdx
	cmpl	%r13d, %r12d
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_5:
	movq	8(%rbx), %rsi
	movl	%r15d, %edi
	decl	%edi
	movslq	(%rsi,%rdi,4), %rsi
	notq	%rsi
	movslq	%r13d, %rdi
	leaq	(%rax,%rdi), %r8
	decq	%r8
	subq	%r14, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx), %eax
	cmpb	(%rdx,%rsi), %al
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rdx
	decq	%rdi
	jne	LBB0_6
## %bb.8:
	movq	%r8, %rdx
LBB0_9:
	subl	%r9d, %edx
	movl	%edx, %r12d
LBB0_10:
	incl	20(%rbx)
	movl	%r15d, (%r14)
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_MATCH_LEN_MAX,4,2         ## @LZMA_MATCH_LEN_MAX
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x0, #24]
	blr	x8
	str	w0, [x20]
	ldr	x8, [x20, #40]
	ldr	w0, [x20, #24]
	ldr	x1, [x20, #8]
	blr	x8
	mov	x21, x0
	subs	w23, w0, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x8, [x20, #8]
	sub	w9, w21, #2
	ldr	w22, [x8, w9, sxtw #2]
	ldr	w8, [x20, #16]
	cmp	w22, w8
	b.ne	LBB0_9
; %bb.2:
	sxtw	x24, w22
Lloh0:
	adrp	x8, _LZMA_MATCH_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZMA_MATCH_LEN_MAX@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, w8
	csel	w25, w9, w8, lt
	ldr	x8, [x20, #48]
	ldr	w0, [x20, #24]
	blr	x8
	sub	x8, x0, #1
	add	x9, x8, x24
	cmp	w22, w25
	b.eq	LBB0_7
; %bb.3:
	ldr	x10, [x20, #8]
	ldr	w10, [x10, w23, uxtw #2]
	mvn	w10, w10
	sxtw	x10, w10
	sxtw	x12, w25
	add	x11, x8, x12
	sub	x12, x12, x24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x9]
	ldrb	w14, [x9, x10]
	cmp	w13, w14
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	subs	x12, x12, #1
	b.ne	LBB0_4
; %bb.6:
	mov	x9, x11
LBB0_7:
	sub	w22, w9, w8
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	str	w21, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_MATCH_LEN_MAX,4,2         ; @LZMA_MATCH_LEN_MAX
	.no_dead_strip	_ReadMatchDistances
.subsections_via_symbols
