	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matchQuality
_matchQuality:                          ## @matchQuality
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$-2, %esi
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.2:
	movq	_FUNC_PERFECT_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rdi), %ecx
	cmpl	%esi, %ecx
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	js	LBB0_5
LBB0_8:
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	sete	%al
	leal	(%rax,%rax,2), %eax
	incl	%eax
	movl	12(%rdi), %ecx
	movq	_SQLITE_FUNC_ENCMASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ecx, %esi
	cmpl	%edx, %esi
	jne	LBB0_7
## %bb.6:
	orl	$2, %eax
	popq	%rbp
	retq
LBB0_7:
	andl	%edx, %ecx
	btl	$1, %ecx
	adcl	$0, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNC_PERFECT_MATCH,4,2         ## @FUNC_PERFECT_MATCH
	.comm	_SQLITE_FUNC_ENCMASK,4,2        ## @SQLITE_FUNC_ENCMASK
	.no_dead_strip	_matchQuality
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matchQuality
_matchQuality:                          ; @matchQuality
	.cfi_startproc
; %bb.0:
	cmn	w1, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FUNC_PERFECT_MATCH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FUNC_PERFECT_MATCH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w0, wzr, w9, eq
	ret
LBB0_2:
	ldr	w8, [x0, #8]
	cmp	w8, w1
	b.eq	LBB0_5
; %bb.3:
	tbnz	w8, #31, LBB0_5
; %bb.4:
	mov	w0, #0
	ret
LBB0_5:
	cmp	w8, w1
	mov	w8, #4
	csinc	w8, w8, wzr, eq
	ldr	w9, [x0, #12]
Lloh3:
	adrp	x10, _SQLITE_FUNC_ENCMASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SQLITE_FUNC_ENCMASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w10, w10, w9
	and	w9, w9, w2
	ubfx	w9, w9, #1, #1
	add	w9, w9, w8
	orr	w8, w8, #0x2
	cmp	w10, w2
	csel	w0, w9, w8, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNC_PERFECT_MATCH,4,2         ; @FUNC_PERFECT_MATCH
	.comm	_SQLITE_FUNC_ENCMASK,4,2        ; @SQLITE_FUNC_ENCMASK
	.no_dead_strip	_matchQuality
.subsections_via_symbols
