	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hash_binsearch_last           ## -- Begin function _hash_binsearch_last
	.p2align	4, 0x90
__hash_binsearch_last:                  ## @_hash_binsearch_last
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	callq	_PageGetMaxOffsetNumber
	movl	%eax, %r13d
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %r12d
	cmpl	%eax, %r13d
	jge	LBB0_1
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %r12d
	cmpl	%r12d, %r13d
	jle	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %eax
	leal	(%r12,%r13), %ecx
	incl	%ecx
	shrl	$31, %ecx
	leal	(%rcx,%rax), %ebx
	incl	%ebx
	sarl	%ebx
	movl	%ebx, %edi
	callq	_OffsetNumberIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_PageGetItemId
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	__hash_get_indextuple_hashkey
	cmpq	%r14, %rax
	jle	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	movl	%ebx, %r13d
	cmpl	%r12d, %r13d
	jg	LBB0_1
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hash_binsearch_last           ; -- Begin function _hash_binsearch_last
	.p2align	2
__hash_binsearch_last:                  ; @_hash_binsearch_last
	.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, x1
	mov	x20, x0
	bl	_PageGetMaxOffsetNumber
Lloh0:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w21, w8, #1
	cmp	w0, w8
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w21, w22
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w23, w8, #1
	mov	x0, x23
	bl	_OffsetNumberIsValid
	bl	_Assert
	mov	x0, x20
	mov	x1, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x20
	bl	_PageGetItem
	bl	__hash_get_indextuple_hashkey
	sub	w8, w23, #1
	cmp	x0, x19
	csel	w21, w21, w23, gt
	csel	w22, w8, w22, gt
	cmp	w22, w21
	b.gt	LBB0_2
LBB0_3:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
.subsections_via_symbols
