	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entryLocateEntry
_entryLocateEntry:                      ## @entryLocateEntry
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	8(%rsi), %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_GinPageIsLeaf
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	%ebx, %r14d
	movl	%ebx, %edi
	callq	_GinPageIsData
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	cmpq	$0, 24(%r12)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	je	LBB0_1
## %bb.13:
	movl	%ebx, (%r15)
	movl	%r14d, %edi
	callq	_PageGetMaxOffsetNumber
	imull	4(%r15), %eax
	movl	%eax, 4(%r15)
	movq	(%r12), %rax
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_PageGetMaxOffsetNumber
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setge	%dil
	callq	_Assert
	movl	%ebx, %ecx
	leal	1(%r15), %ebx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %r15d
	jl	LBB0_11
## %bb.2:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ebx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %ebx
	jle	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	subl	%ecx, %eax
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	addl	%ecx, %r13d
	cmpl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	callq	_GinPageRightMost
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r15d
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r12
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	20(%r14), %edi
	movq	%rax, %rsi
	callq	_gintuple_get_attrnum
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	20(%r14), %edi
	movq	%r12, %rsi
	leaq	-56(%rbp), %rdx
	callq	_gintuple_get_key
	movl	20(%r14), %edi
	movl	16(%r14), %esi
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	movl	-56(%rbp), %ebx
	movl	%ebx, (%rsp)
	movl	%r15d, %r14d
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_ginCompareAttEntries
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movl	%r13d, %ecx
	cmpl	%ecx, %ebx
	jg	LBB0_3
LBB0_11:
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setge	%al
	cmpl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GinGetDownlink
	movq	_GIN_ROOT_BLKNO@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	%rbx, %rdi
	jmp	LBB0_12
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	%r12, %rdi
	callq	_GinGetDownlink
	movq	_GIN_ROOT_BLKNO@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	%r12, %rdi
LBB0_12:
	callq	_GinGetDownlink
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.comm	_GIN_ROOT_BLKNO,8,3             ## @GIN_ROOT_BLKNO
	.no_dead_strip	_entryLocateEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entryLocateEntry
_entryLocateEntry:                      ; @entryLocateEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #8]
	bl	_BufferGetPage
	mov	x19, x0
	bl	_GinPageIsLeaf
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_GinPageIsData
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x27, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FirstOffsetNumber@GOTPAGEOFF]
	ldr	w28, [x27]
	cbz	x8, LBB0_2
; %bb.1:
	str	w28, [x20]
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
	ldr	w8, [x20, #4]
	mul	w8, w8, w0
	str	w8, [x20, #4]
	ldr	x2, [x21]
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	br	x2
LBB0_2:
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
	mov	x23, x0
	cmp	w0, w28
	cset	w0, ge
	bl	_Assert
	add	w22, w23, #1
	cmp	w23, w28
	b.ge	LBB0_6
LBB0_3:
	ldr	w8, [x27]
	cmp	w22, w8
	ccmp	w22, w23, #0, ge
	cset	w0, le
	bl	_Assert
	str	w22, [x20]
	mov	x0, x19
	mov	x1, x22
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x19
	bl	_PageGetItem
	mov	x19, x0
	bl	_GinGetDownlink
Lloh2:
	adrp	x8, _GIN_ROOT_BLKNO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GIN_ROOT_BLKNO@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_Assert
	mov	x0, x19
	b	LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x19
	bl	_PageGetItem
	mov	x25, x0
	ldr	w0, [x21, #20]
	mov	x1, x25
	bl	_gintuple_get_attrnum
	mov	x26, x0
	ldr	w0, [x21, #20]
	add	x2, sp, #12
	mov	x1, x25
	bl	_gintuple_get_key
	mov	x5, x0
	ldp	w1, w0, [x21, #16]
	ldp	w3, w2, [x21, #8]
	ldr	w6, [sp, #12]
	mov	x4, x26
	bl	_ginCompareAttEntries
	cbz	w0, LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #0
	csel	w22, w22, w24, gt
	csinc	w28, w28, w24, le
	cmp	w22, w28
	b.le	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w22, w28
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w24, w28, w8, asr #1
	cmp	w24, w23
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_GinPageRightMost
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #-1
	b	LBB0_5
LBB0_9:
	str	w24, [x20]
	mov	x0, x25
	bl	_GinGetDownlink
Lloh5:
	adrp	x8, _GIN_ROOT_BLKNO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GIN_ROOT_BLKNO@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_Assert
	mov	x0, x25
LBB0_10:
	bl	_GinGetDownlink
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.comm	_GIN_ROOT_BLKNO,8,3             ; @GIN_ROOT_BLKNO
	.no_dead_strip	_entryLocateEntry
.subsections_via_symbols
