	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_binsrch
__bt_binsrch:                           ## @_bt_binsrch
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r14
	movl	$1, %ebx
	cmpq	$0, (%r13)
	movl	$1, %edi
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%r13)
	sete	%dil
LBB0_2:
	callq	_Assert
	movq	%r14, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r13)
	sete	%bl
LBB0_4:
	movl	%ebx, %edi
	callq	_Assert
	movq	%r14, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	cmpq	$0, (%r13)
	sete	%al
	cmpq	%rbx, %r15
	jl	LBB0_11
## %bb.6:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movb	%al, %cl
	incq	%r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	%r13, %rbx
	incq	%rbx
	cmpq	%rbx, %r15
	jle	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rax
	subq	%rbx, %rax
	movq	%rax, %r13
	shrq	$63, %r13
	addq	%rax, %r13
	sarq	%r13
	leaq	(%rbx,%r13), %r14
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ecx, %r12d
	movq	%r14, %rcx
	callq	__bt_compare
	movl	%r12d, %ecx
	cmpl	%r12d, %eax
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %r15
	cmpq	%rbx, %r15
	jg	LBB0_7
LBB0_11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	callq	_P_FIRSTDATAKEY
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setg	%dil
	callq	_Assert
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OffsetNumberPrev               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__bt_binsrch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_binsrch
__bt_binsrch:                           ; @_bt_binsrch
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_BufferGetPage
	mov	x22, x0
	bl	_PageGetSpecialPointer
	mov	x19, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_Assert
	mov	x0, x19
	bl	_P_ISLEAF
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	bl	_Assert
	mov	x0, x19
	bl	_P_FIRSTDATAKEY
	mov	x23, x0
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	mov	x24, x0
	cmp	x0, x23
	cset	w0, lt
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w25, eq
	cmp	x24, x23
	b.lt	LBB0_10
; %bb.8:
	add	x26, x24, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x26, x23
	cmp	x8, #0
	cinc	x8, x8, lt
	add	x24, x23, x8, asr #1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	bl	__bt_compare
	cmp	w0, w25
	csel	x26, x24, x26, lt
	csinc	x23, x23, x24, lt
	cmp	x26, x23
	b.gt	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_P_ISLEAF
	cbz	x0, LBB0_12
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	bl	_P_FIRSTDATAKEY
	cmp	x23, x0
	cset	w0, gt
	bl	_Assert
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_OffsetNumberPrev
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__bt_binsrch
.subsections_via_symbols
