	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entryLocateLeafEntry
_entryLocateLeafEntry:                  ## @entryLocateLeafEntry
	.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, %r14
	movq	%rdi, %r12
	movl	8(%rsi), %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_GinPageIsLeaf
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, %edi
	callq	_GinPageIsData
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	cmpq	$0, 16(%r12)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r14)
LBB0_11:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_2:
	movl	%ebx, %edi
	movq	%rax, %r13
	callq	_PageGetMaxOffsetNumber
	cmpq	%r13, %rax
	jge	LBB0_5
## %bb.3:
	movq	(%r15), %rax
LBB0_4:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, %rcx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	incq	%rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, %ebx
	movq	%r15, %rcx
	cmpq	%rcx, %rax
	jle	LBB0_4
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	subq	%rcx, %rax
	movq	%rax, %r12
	shrq	$63, %r12
	addq	%rax, %r12
	sarq	%r12
	movq	%rcx, %r15
	addq	%rcx, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%ebx, %r13d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%rbx), %edi
	movq	%rax, %rsi
	callq	_gintuple_get_attrnum
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	leaq	-52(%rbp), %rdx
	callq	_gintuple_get_key
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	-52(%rbp), %ebx
	movl	%ebx, (%rsp)
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	callq	_ginCompareAttEntries
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	jle	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movq	%r12, %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rcx, %rax
	jg	LBB0_7
	jmp	LBB0_4
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.no_dead_strip	_entryLocateLeafEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entryLocateLeafEntry
_entryLocateLeafEntry:                  ; @entryLocateLeafEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w0, [x1, #8]
	bl	_BufferGetPage
	mov	x21, x0
	bl	_GinPageIsLeaf
	bl	_Assert
	mov	x0, x21
	bl	_GinPageIsData
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x22, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FirstOffsetNumber@GOTPAGEOFF]
	ldr	x25, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	str	x25, [x19]
LBB0_2:
	mov	w0, #1
	b	LBB0_9
LBB0_3:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x25
	b.ge	LBB0_5
; %bb.4:
	mov	w0, #0
	ldr	x8, [x22]
	str	x8, [x19]
	b	LBB0_9
LBB0_5:
	add	x26, x0, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x26, x25
	cmp	x8, #0
	cinc	x8, x8, lt
	add	x22, x25, x8, asr #1
	mov	x0, x21
	mov	x1, x22
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	mov	x23, x0
	ldr	w0, [x20, #12]
	mov	x1, x23
	bl	_gintuple_get_attrnum
	mov	x24, x0
	ldr	w0, [x20, #12]
	add	x2, sp, #12
	mov	x1, x23
	bl	_gintuple_get_key
	mov	x5, x0
	ldp	w1, w0, [x20, #8]
	ldp	w3, w2, [x20]
	ldr	w6, [sp, #12]
	mov	x4, x24
	bl	_ginCompareAttEntries
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #0
	csel	x26, x26, x22, gt
	csinc	x25, x25, x22, le
	cmp	x26, x25
	b.gt	LBB0_6
; %bb.8:
	mov	w0, #0
	str	x26, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	str	x22, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.no_dead_strip	_entryLocateLeafEntry
.subsections_via_symbols
