	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_finish_split               ## -- Begin function _bt_finish_split
	.p2align	4, 0x90
__bt_finish_split:                      ## @_bt_finish_split
	.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
	movl	%edx, %ebx
	movl	%edi, %r13d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_P_INCOMPLETE_SPLIT
	movl	%eax, %edi
	callq	_Assert
	movl	(%r14), %esi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	__bt_getbuf
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r15d
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_BTREE_METAPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	__bt_getbuf
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_BTPageGetMeta
	movl	(%rax), %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetBlockNumber
	xorl	%r15d, %r15d
	cmpl	%eax, %ebx
	sete	%r15b
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	__bt_relbuf
LBB0_2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_P_LEFTMOST
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_P_RIGHTMOST
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
LBB0_4:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_BufferGetBlockNumber
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_BufferGetBlockNumber
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_elog
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__bt_insert_parent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_BTREE_METAPAGE,4,2             ## @BTREE_METAPAGE
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"finishing incomplete split of %u/%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_finish_split               ; -- Begin function _bt_finish_split
	.p2align	2
__bt_finish_split:                      ; @_bt_finish_split
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x23, x0
	bl	_P_INCOMPLETE_SPLIT
	bl	_Assert
	ldr	w1, [x23]
Lloh0:
	adrp	x24, _BT_WRITE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BT_WRITE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	bl	__bt_getbuf
	mov	x22, x0
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x25, x0
	cbz	w19, LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _BTREE_METAPAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BTREE_METAPAGE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x21
	bl	__bt_getbuf
	mov	x26, x0
	bl	_BufferGetPage
	bl	_BTPageGetMeta
	ldr	w24, [x0]
	mov	x0, x20
	bl	_BufferGetBlockNumber
	cmp	w24, w0
	cset	w24, eq
	mov	x0, x21
	mov	x1, x26
	bl	__bt_relbuf
LBB0_3:
	mov	x0, x23
	bl	_P_LEFTMOST
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x25
	bl	_P_RIGHTMOST
	cmp	x0, #0
	cset	w23, ne
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
Lloh5:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	mov	x0, x20
	bl	_BufferGetBlockNumber
	mov	x26, x0
	mov	x0, x22
	bl	_BufferGetBlockNumber
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	mov	x2, x26
	bl	_elog
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x24
	mov	x5, 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	__bt_insert_parent
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_BTREE_METAPAGE,4,2             ; @BTREE_METAPAGE
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"finishing incomplete split of %u/%u"

.subsections_via_symbols
