	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MatchFinder_Create             ## -- Begin function MatchFinder_Create
	.p2align	4, 0x90
_MatchFinder_Create:                    ## @MatchFinder_Create
	.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	%r9, %r14
                                        ## kill: def $r8d killed $r8d def $r8
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %rbx
	movq	_LzFindkMaxHistorySize@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_13
## %bb.1:
	movl	%ecx, %r12d
	movl	%esi, %r15d
	cmpl	$-1073741824, %esi              ## imm = 0xC0000000
	setge	%cl
	orb	$2, %cl
	movl	%esi, %eax
	sarl	%cl, %eax
	addl	%r12d, %r8d
	leal	(%r8,%rdx), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	addl	%eax, %esi
	addl	$524288, %esi                   ## imm = 0x80000
	leal	1(%r15,%rdx), %eax
	movl	%eax, (%rbx)
	movl	%r8d, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_LzInWindow_Create
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	leal	1(%r15), %eax
	movl	%r12d, 8(%rbx)
	movq	$0, 64(%rbx)
	movl	12(%rbx), %ecx
	cmpl	$2, %ecx
	jne	LBB0_4
## %bb.3:
	movl	$65535, 16(%rbx)                ## imm = 0xFFFF
	movl	$65536, %esi                    ## imm = 0x10000
	jmp	LBB0_8
LBB0_4:
	leal	-1(%r15), %edx
	movl	%edx, %esi
	sarl	%esi
	orl	%edx, %esi
	movl	%esi, %edx
	sarl	$2, %edx
	orl	%esi, %edx
	movl	%edx, %esi
	sarl	$4, %esi
	orl	%edx, %esi
	movl	%esi, %edx
	sarl	$9, %edx
	sarl	%esi
	orl	%edx, %esi
	orl	$65535, %esi                    ## imm = 0xFFFF
	movl	%esi, %edx
	shrl	%edx
	cmpl	$3, %ecx
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	cmovnel	%edx, %edi
	cmpl	$16777217, %esi                 ## imm = 0x1000001
	cmovll	%esi, %edi
	leal	1(%rdi), %esi
	movl	%edi, 16(%rbx)
	cmpl	$3, %ecx
	jl	LBB0_8
## %bb.5:
	movq	_kHash2Size@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 64(%rbx)
	je	LBB0_9
## %bb.6:
	movq	_kHash3Size@GOTPCREL(%rip), %rdi
	addq	(%rdi), %rdx
	movq	%rdx, 64(%rbx)
	cmpl	$5, %ecx
	jb	LBB0_9
## %bb.7:
	movq	_kHash4Size@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdx
	movq	%rdx, 64(%rbx)
	jmp	LBB0_9
LBB0_8:
	xorl	%edx, %edx
LBB0_9:
	addl	%esi, %edx
	movl	%r15d, 20(%rbx)
	movl	%edx, 24(%rbx)
	movl	%eax, 28(%rbx)
	cltq
	cmpq	$0, 56(%rbx)
	setne	%cl
	shlq	%cl, %rax
	movslq	%edx, %r15
	addq	%rax, %r15
	cmpl	$0, 40(%rbx)
	je	LBB0_11
## %bb.10:
	movl	$1, %eax
	cmpq	%r15, 32(%rbx)
	je	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_MatchFinder_FreeThisClassMemory
	movq	%r15, 32(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_AllocRefs
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movslq	24(%rbx), %rcx
	cltq
	addq	%rcx, %rax
	movq	%rax, 48(%rbx)
	movl	$1, %eax
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_MatchFinder_Free
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LzFindkMaxHistorySize,4,2      ## @LzFindkMaxHistorySize
	.comm	_kHash2Size,8,3                 ## @kHash2Size
	.comm	_kHash3Size,8,3                 ## @kHash3Size
	.comm	_kHash4Size,8,3                 ## @kHash4Size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MatchFinder_Create             ; -- Begin function MatchFinder_Create
	.p2align	2
_MatchFinder_Create:                    ; @MatchFinder_Create
	.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	x19, x5
	mov	x20, x0
Lloh0:
	adrp	x8, _LzFindkMaxHistorySize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LzFindkMaxHistorySize@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_14
; %bb.1:
	mov	x22, x3
	mov	x21, x1
	mov	w8, #-1073741825
	cmp	w1, w8
	mov	w8, #2
	cinc	w8, w8, gt
	asr	w8, w1, w8
	add	w9, w4, w3
	add	w10, w9, w2
	cmp	w10, #0
	cinc	w10, w10, lt
	add	w8, w8, w10, asr #1
	add	w1, w8, #128, lsl #12           ; =524288
	add	w23, w21, #1
	add	w8, w23, w2
	stp	w8, w9, [x20]
	mov	x0, x20
	mov	x2, x19
	bl	_LzInWindow_Create
	cbz	x0, LBB0_14
; %bb.2:
	str	w22, [x20, #8]
	str	xzr, [x20, #64]
	ldr	w10, [x20, #12]
	cmp	w10, #2
	b.ne	LBB0_4
; %bb.3:
	mov	x9, #0
	mov	w8, #65535
	str	w8, [x20, #16]
	mov	w8, #65536
	b	LBB0_9
LBB0_4:
	sub	w8, w21, #1
	orr	w8, w8, w8, asr #1
	orr	w8, w8, w8, asr #2
	orr	w8, w8, w8, asr #4
	asr	w9, w8, #1
	orr	w8, w9, w8, asr #9
	orr	w8, w8, #0xffff
	lsr	w9, w8, #1
	mov	w11, #16777215
	cmp	w10, #3
	csel	w9, w11, w9, eq
	mov	w11, #16777216
	cmp	w8, w11
	csel	w8, w9, w8, gt
	str	w8, [x20, #16]
	add	w8, w8, #1
	cmp	w10, #3
	b.lt	LBB0_8
; %bb.5:
Lloh3:
	adrp	x9, _kHash2Size@GOTPAGE
Lloh4:
	ldr	x9, [x9, _kHash2Size@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x9, [x20, #64]
	cmp	w10, #3
	b.eq	LBB0_9
; %bb.6:
Lloh6:
	adrp	x11, _kHash3Size@GOTPAGE
Lloh7:
	ldr	x11, [x11, _kHash3Size@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	add	x9, x9, x11
	str	x9, [x20, #64]
	cmp	w10, #5
	b.lo	LBB0_9
; %bb.7:
Lloh9:
	adrp	x10, _kHash4Size@GOTPAGE
Lloh10:
	ldr	x10, [x10, _kHash4Size@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x9, x9, x10
	str	x9, [x20, #64]
	b	LBB0_9
LBB0_8:
	mov	x9, #0
LBB0_9:
	add	w8, w8, w9
	stp	w21, w8, [x20, #20]
	str	w23, [x20, #28]
	sxtw	x9, w23
	ldr	x10, [x20, #56]
	cmp	x10, #0
	cset	w10, ne
	lsl	x9, x9, x10
	add	x21, x9, w8, sxtw
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_12
; %bb.10:
	ldr	x8, [x20, #32]
	cmp	x8, x21
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #1
	b	LBB0_15
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_MatchFinder_FreeThisClassMemory
	str	x21, [x20, #32]
	mov	x0, x21
	mov	x1, x19
	bl	_AllocRefs
	str	w0, [x20, #40]
	cbz	w0, LBB0_14
; %bb.13:
	ldrsw	x8, [x20, #24]
	add	x8, x8, w0, sxtw
	str	x8, [x20, #48]
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_MatchFinder_Free
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LzFindkMaxHistorySize,4,2      ; @LzFindkMaxHistorySize
	.comm	_kHash2Size,8,3                 ; @kHash2Size
	.comm	_kHash3Size,8,3                 ; @kHash3Size
	.comm	_kHash4Size,8,3                 ; @kHash4Size
.subsections_via_symbols
