	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_binsrch_insert             ## -- Begin function _bt_binsrch_insert
	.p2align	4, 0x90
__bt_binsrch_insert:                    ## @_bt_binsrch_insert
	.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, %rbx
	movl	%edi, %r15d
	movq	32(%rsi), %r13
	movl	24(%rsi), %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_P_ISLEAF
	movl	%eax, %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	sete	%dil
	callq	_Assert
	cmpl	$0, (%rbx)
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %r14
	movq	16(%rbx), %r12
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %r14
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r12
LBB0_3:
	xorl	%edi, %edi
	cmpq	%r14, %r12
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	%rax, %r12
	jmp	LBB0_10
LBB0_5:
	cmpl	$1, (%rbx)
	adcq	$0, %r12
	movl	$1, %ecx
	cmpq	%r14, %r12
	jle	LBB0_6
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %r15
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r13
	movq	%r12, %rax
	subq	%r14, %rax
	movq	%rax, %rbx
	shrq	$63, %rbx
	addq	%rax, %rbx
	sarq	%rbx
	addq	%rbx, %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	callq	__bt_compare
	testl	%eax, %eax
	cmovsq	%r14, %r15
	cmovleq	%r14, %r12
	leaq	1(%rbx,%r13), %r14
	cmovleq	%r13, %r14
	cmpq	%r14, %r12
	jg	LBB0_8
## %bb.9:
	movq	%r14, %rax
	movq	%r15, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, %ecx
	jmp	LBB0_10
LBB0_6:
	movq	%r14, %rax
LBB0_10:
	movq	%rax, 8(%rbx)
	movq	%r12, 16(%rbx)
	movl	%ecx, (%rbx)
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_binsrch_insert             ; -- Begin function _bt_binsrch_insert
	.p2align	2
__bt_binsrch_insert:                    ; @_bt_binsrch_insert
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #32]
	ldr	w0, [x1, #24]
	bl	_BufferGetPage
	mov	x23, x0
	bl	_PageGetSpecialPointer
	mov	x22, x0
	bl	_P_ISLEAF
	bl	_Assert
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x22, x24, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_P_FIRSTDATAKEY
	mov	x22, x0
	mov	x0, x23
	bl	_PageGetMaxOffsetNumber
	mov	x24, x0
LBB0_3:
	cmp	x24, x22
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #0
Lloh0:
	adrp	x9, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x9, [x9, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x25, x9
	b	LBB0_10
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	x25, x24, eq
	cmp	x25, x22
	b.le	LBB0_9
; %bb.6:
	mov	x26, x25
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x25, x22
	cmp	x8, #0
	cinc	x8, x8, lt
	add	x24, x22, x8, asr #1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	__bt_compare
	cmp	w0, #0
	csel	x26, x24, x26, lt
	csel	x25, x25, x24, gt
	csinc	x22, x22, x24, le
	cmp	x25, x22
	b.gt	LBB0_7
; %bb.8:
	mov	w8, #1
	mov	x9, x22
	mov	x25, x26
	b	LBB0_10
LBB0_9:
	mov	w8, #1
	mov	x9, x22
LBB0_10:
	stp	x9, x25, [x19, #8]
	str	w8, [x19]
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
.subsections_via_symbols
