	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_getstackbuf                ## -- Begin function _bt_getstackbuf
	.p2align	4, 0x90
__bt_getstackbuf:                       ## @_bt_getstackbuf
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r12), %edx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	__bt_finish_split
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	__bt_getbuf
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_P_IGNORE
	testl	%eax, %eax
	je	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	__bt_relbuf
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r12, %rax
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	cmovleq	%r12, %rax
	cmpq	%rcx, %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_OffsetNumberNext
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	jg	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	_BTreeInnerTupleGetDownLink
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r12, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r12
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_OffsetNumberPrev
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	_BTreeInnerTupleGetDownLink
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	callq	_OffsetNumberPrev
	movq	%rax, %r12
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_13
	jmp	LBB0_15
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r12, 8(%rax)
LBB0_17:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	__bt_relbuf
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.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_getstackbuf                ; -- Begin function _bt_getstackbuf
	.p2align	2
__bt_getstackbuf:                       ; @_bt_getstackbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x1
	mov	x20, x0
	ldp	x22, x28, [x1]
Lloh0:
	adrp	x21, _BT_WRITE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BT_WRITE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x19, #16]
	mov	x0, x20
	mov	x1, x23
	bl	__bt_finish_split
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x22
	bl	__bt_getbuf
	mov	x23, x0
	bl	_BufferGetPage
	mov	x25, x0
	bl	_PageGetSpecialPointer
	mov	x24, x0
	bl	_P_INCOMPLETE_SPLIT
	cbnz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_P_IGNORE
	cbz	w0, LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_P_RIGHTMOST
	cbnz	x0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x24]
Lloh2:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh3:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh4:
	ldr	x28, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	__bt_relbuf
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_P_FIRSTDATAKEY
	mov	x26, x0
	mov	x0, x25
	bl	_PageGetMaxOffsetNumber
	mov	x27, x0
	cmp	x28, x26
	csel	x0, x28, x26, gt
	cmp	x0, x27
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x27
	bl	_OffsetNumberNext
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [sp]                        ; 8-byte Folded Spill
	cmp	x0, x27
	b.gt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x28, [sp]                       ; 8-byte Folded Reload
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	mov	x1, x28
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItem
	bl	_BTreeInnerTupleGetDownLink
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
	bl	_OffsetNumberNext
	mov	x28, x0
	cmp	x0, x27
	b.le	LBB0_10
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_OffsetNumberPrev
	cmp	x0, x26
	b.lt	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x0
LBB0_14:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	mov	x1, x27
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItem
	bl	_BTreeInnerTupleGetDownLink
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x27
	bl	_OffsetNumberPrev
	mov	x27, x0
	cmp	x0, x26
	b.ge	LBB0_14
	b	LBB0_4
LBB0_16:
	stp	x22, x28, [x19]
	b	LBB0_19
LBB0_17:
	stp	x22, x27, [x19]
	b	LBB0_19
LBB0_18:
	mov	x0, x20
	mov	x1, x23
	bl	__bt_relbuf
Lloh5:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
LBB0_19:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
.subsections_via_symbols
