	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt_rootdescend
_bt_rootdescend:                        ## @bt_rootdescend
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	__bt_mkscankey
	movq	%rax, %r14
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax)
	movl	$0, %edi
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
LBB0_2:
	callq	_Assert
	cmpq	$0, 16(%r13)
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r13)
	setne	%bl
LBB0_4:
	movl	%ebx, %edi
	callq	_Assert
	movl	(%r13), %edi
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	__bt_search
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -52(%rbp)
	movl	%r15d, %edi
	callq	_IndexTupleSize
	movl	%eax, %edi
	callq	_MAXALIGN
	movl	%eax, -56(%rbp)
	movq	%r14, -64(%rbp)
	movl	$0, -72(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	(%r13), %edi
	leaq	-72(%rbp), %rsi
	callq	__bt_binsrch_insert
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_PageGetMaxOffsetNumber
	xorl	%r12d, %r12d
	cmpq	%rax, %rbx
	jg	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	__bt_compare
	xorl	%r12d, %r12d
	testq	%rax, %rax
	sete	%r12b
LBB0_7:
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	callq	__bt_relbuf
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_8:
	movl	%ebx, %edi
	callq	__bt_freestack
	movq	%r14, %rdi
	callq	_pfree
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_READ,4,2                    ## @BT_READ
	.no_dead_strip	_bt_rootdescend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt_rootdescend
_bt_rootdescend:                        ; @bt_rootdescend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	__bt_mkscankey
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_Assert
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _BT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #28
	mov	x1, x19
	mov	x4, #0
	bl	__bt_search
	mov	x21, x0
	ldr	w0, [sp, #28]
	bl	_BufferIsValid
	cbz	x0, LBB0_10
; %bb.7:
	str	w22, [sp, #20]
	mov	x0, x22
	bl	_IndexTupleSize
	bl	_MAXALIGN
	str	w0, [sp, #16]
	str	x19, [sp, #8]
	ldr	w8, [sp, #28]
	stp	wzr, w8, [sp]
	ldr	w0, [x20]
	mov	x1, sp
	bl	__bt_binsrch_insert
	mov	x23, x0
	ldr	w0, [sp, #28]
	bl	_BufferGetPage
	mov	x24, x0
	bl	_PageGetMaxOffsetNumber
	mov	w22, #0
	cmp	x23, x0
	b.gt	LBB0_9
; %bb.8:
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	bl	__bt_compare
	cmp	x0, #0
	cset	w22, eq
LBB0_9:
	ldr	w0, [x20]
	ldr	w1, [sp, #28]
	bl	__bt_relbuf
	b	LBB0_11
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x21
	bl	__bt_freestack
	mov	x0, x19
	bl	_pfree
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_READ,4,2                    ; @BT_READ
	.no_dead_strip	_bt_rootdescend
.subsections_via_symbols
