	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_moveright                  ## -- Begin function _bt_moveright
	.p2align	4, 0x90
__bt_moveright:                         ## @_bt_moveright
	.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	%r9d, %ebx
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%edi, %r14d
	movl	16(%rbp), %r12d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rsi)
	sete	-44(%rbp)                       ## 1-byte Folded Spill
	movl	%edx, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movl	%r13d, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	movq	%r12, %rdi
	callq	_P_IGNORE
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	movb	-44(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_P_IGNORE
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	__bt_relandgetbuf
	movl	%eax, %r15d
	movl	16(%rbp), %ebx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movl	%r13d, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_BufferGetBlockNumber
	movl	%eax, %r13d
	movq	_BT_READ@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_P_INCOMPLETE_SPLIT
	movl	%r14d, %edi
	movl	%r15d, %esi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	__bt_finish_split
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	__bt_compare
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_16
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	__bt_relbuf
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbp), %ebx
	movl	%r14d, %edi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	__bt_getbuf
	movl	%eax, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_READ,4,2                    ## @BT_READ
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_P_HIKEY,4,2                    ## @P_HIKEY
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fell off the end of index \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_moveright                  ; -- Begin function _bt_moveright
	.p2align	2
__bt_moveright:                         ; @_bt_moveright
	.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, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x8, [x1]
	cmp	x8, #0
	cset	w28, eq
	mov	x0, x2
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_P_IGNORE
	cbz	x0, LBB0_11
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	__bt_relandgetbuf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_BufferGetPage
	mov	x27, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x27
	bl	_TestForOldSnapshot
	mov	x0, x27
	bl	_PageGetSpecialPointer
	mov	x26, x0
	bl	_P_RIGHTMOST
	cbnz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w24, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_P_INCOMPLETE_SPLIT
	cbz	x0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_BufferGetBlockNumber
	mov	x27, x0
Lloh0:
	adrp	x8, _BT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh3:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
Lloh6:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_P_INCOMPLETE_SPLIT
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	__bt_finish_split
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	bl	__bt_compare
	cmp	w0, w28
	b.ge	LBB0_2
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	__bt_relbuf
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x27
	mov	x2, x22
	bl	__bt_getbuf
	b	LBB0_3
LBB0_14:
	mov	x0, x26
	bl	_P_IGNORE
	cbz	x0, LBB0_16
; %bb.15:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_elog
LBB0_16:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_READ,4,2                    ; @BT_READ
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_P_HIKEY,4,2                    ; @P_HIKEY
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fell off the end of index \"%s\""

.subsections_via_symbols
