	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsdirBestIndex
_fsdirBestIndex:                        ## @fsdirBestIndex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.1:
	movq	32(%rsi), %rdx
	movq	_SQLITE_INDEX_CONSTRAINT_EQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$12, %rdx
	movl	$-1, %r8d
	xorl	%r11d, %r11d
	movl	$1, %r9d
	xorl	%r14d, %r14d
	movl	$-1, %r10d
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r8d, %r8d
	cmovsl	%r9d, %r11d
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	addq	$16, %rdx
	cmpl	%ebx, %ecx
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, -12(%rdx)
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%rdx), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rdx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r10d
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rdx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r8d
	xorl	%r11d, %r11d
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r10d, %r10d
	cmovsl	%r9d, %r14d
	jmp	LBB0_11
LBB0_12:
	orl	%r11d, %r14d
	je	LBB0_14
## %bb.13:
	movq	_SQLITE_CONSTRAINT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_14:
	testl	%r10d, %r10d
	js	LBB0_15
## %bb.16:
	movq	24(%rsi), %rax
	movl	%r10d, %ecx
	movabsq	$4294967297, %rdx               ## imm = 0x100000001
	movq	%rdx, (%rax,%rcx,8)
	testl	%r8d, %r8d
	js	LBB0_18
## %bb.17:
	movl	%r8d, %ecx
	movabsq	$8589934593, %rdx               ## imm = 0x200000001
	movq	%rdx, (%rax,%rcx,8)
	movl	$2, 4(%rsi)
	movabsq	$4621819117588971520, %rax      ## imm = 0x4024000000000000
	jmp	LBB0_19
LBB0_15:
	movabsq	$9223372032559808512, %rax      ## imm = 0x7FFFFFFF00000000
	movq	%rax, 4(%rsi)
	jmp	LBB0_20
LBB0_18:
	movl	$1, 4(%rsi)
	movabsq	$4636737291354636288, %rax      ## imm = 0x4059000000000000
LBB0_19:
	movq	%rax, 16(%rsi)
LBB0_20:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_INDEX_CONSTRAINT_EQ,8,3 ## @SQLITE_INDEX_CONSTRAINT_EQ
	.comm	_SQLITE_CONSTRAINT,4,2          ## @SQLITE_CONSTRAINT
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_fsdirBestIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fsdirBestIndex
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
lCPI0_1:
	.long	0                               ; 0x0
	.long	2147483647                      ; 0x7fffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fsdirBestIndex:                        ; @fsdirBestIndex
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w11, #0
	mov	w12, #0
	mov	w10, #0
	ldr	x8, [x1, #32]
Lloh0:
	adrp	x13, _SQLITE_INDEX_CONSTRAINT_EQ@GOTPAGE
Lloh1:
	ldr	x13, [x13, _SQLITE_INDEX_CONSTRAINT_EQ@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x13]
	add	x14, x8, #12
	mov	w8, #-1
	mov	w15, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w16, [x14]
	cmp	w8, #0
	csinc	w11, w11, wzr, ge
	cmp	w16, #0
	csel	w8, w10, w8, ne
	csel	w11, wzr, w11, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w10, #1
	add	x14, x14, #16
	cmp	w9, w10
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x16, [x14, #-12]
	cmp	x16, x13
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w16, [x14, #-4]
	cmp	w16, #129
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #128
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w16, [x14]
	cmp	w15, #0
	csinc	w12, w12, wzr, ge
	cmp	w16, #0
	csel	w15, w10, w15, ne
	csel	w12, wzr, w12, ne
	b	LBB0_3
LBB0_8:
	orr	w9, w12, w11
	cbz	w9, LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, _SQLITE_CONSTRAINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_CONSTRAINT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_10:
	tbnz	w15, #31, LBB0_13
; %bb.11:
	ldr	x9, [x1, #24]
	movi.2s	v0, #1
	str	d0, [x9, w15, uxtw #3]
	tbnz	w8, #31, LBB0_14
; %bb.12:
Lloh6:
	adrp	x10, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [x9, w8, uxtw #3]
	mov	w8, #2
	str	w8, [x1, #4]
	mov	x8, #4621819117588971520
	b	LBB0_15
LBB0_13:
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x1, #4]
	b	LBB0_16
LBB0_14:
	mov	w8, #1
	str	w8, [x1, #4]
	mov	x8, #4636737291354636288
LBB0_15:
	str	x8, [x1, #16]
LBB0_16:
Lloh10:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_INDEX_CONSTRAINT_EQ,8,3 ; @SQLITE_INDEX_CONSTRAINT_EQ
	.comm	_SQLITE_CONSTRAINT,4,2          ; @SQLITE_CONSTRAINT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_fsdirBestIndex
.subsections_via_symbols
