	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_stepright
__bt_stepright:                         ## @_bt_stepright
	.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, %r15d
	movl	%edi, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r14
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_BT_WRITE@GOTPCREL(%rip), %r12
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%r14), %edx
	movl	(%r12), %ecx
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	__bt_relandgetbuf
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r12d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	__bt_finish_split
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movl	%r15d, %edx
	callq	__bt_relandgetbuf
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %r15d
	movq	_BT_WRITE@GOTPCREL(%rip), %r12
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_P_IGNORE
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %r15
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r13d, %edi
	callq	_RelationGetRelationName
	movl	%r12d, %edi
	movq	%r15, %r12
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_elog
	jmp	LBB0_1
LBB0_8:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movl	%r13d, %edi
	callq	__bt_relbuf
	movl	%ebx, 4(%r14)
	movl	$0, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fell off the end of index \"%s\""

	.no_dead_strip	__bt_stepright
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_stepright
__bt_stepright:                         ; @_bt_stepright
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #4]
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x24, x0
Lloh0:
	adrp	x26, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x26, [x26, _InvalidBuffer@GOTPAGEOFF]
	ldr	w23, [x26]
Lloh2:
	adrp	x27, _BT_WRITE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BT_WRITE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _ERROR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	ldr	w25, [x24]
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x23
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x2, x25
	bl	__bt_relandgetbuf
	mov	x23, x0
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x24, x0
	bl	_P_INCOMPLETE_SPLIT
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	__bt_finish_split
	ldr	w1, [x26]
	ldr	w3, [x27]
	mov	x0, x20
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_P_IGNORE
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_P_RIGHTMOST
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w25, [x28]
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x25
	mov	x1, x22
	bl	_elog
	b	LBB0_1
LBB0_7:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	__bt_relbuf
	stp	wzr, w23, [x19]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fell off the end of index \"%s\""

	.no_dead_strip	__bt_stepright
.subsections_via_symbols
