	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt_right_page_check_scankey
_bt_right_page_check_scankey:           ## @bt_right_page_check_scankey
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movl	4(%rbx), %r15d
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_palloc_btree_page
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_P_IGNORE
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %r15d
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_NO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movslq	(%rbx), %rbx
	movl	(%r14), %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail_internal
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%r12d, %edi
	callq	_pfree
	jmp	LBB0_2
LBB0_5:
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_P_FIRSTDATAKEY
	cmpq	%rax, %r13
	jge	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %rdi
	callq	_OffsetNumberNext
	cmpq	%rax, %r13
	jge	LBB0_10
LBB0_12:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_NO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%rbx, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rbx
	cmoveq	%rax, %rbx
	movl	(%r14), %edi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_P_FIRSTDATAKEY
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_P_FIRSTDATAKEY
	movq	%rax, %rdi
	callq	_OffsetNumberNext
LBB0_11:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%rax, %rcx
	callq	_PageGetItemIdCareful
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movl	(%r14), %edi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bt_mkscankey_pivotsearch       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.comm	_ERRCODE_NO_DATA,4,2            ## @ERRCODE_NO_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"level %u leftmost page of index \"%s\" was found deleted or half dead"

L_.str.1:                               ## @.str.1
	.asciz	"Deleted page found when building scankey from right sibling."

L_.str.2:                               ## @.str.2
	.asciz	"%s block %u of index \"%s\" has no first data item"

L_.str.3:                               ## @.str.3
	.asciz	"leaf"

L_.str.4:                               ## @.str.4
	.asciz	"internal"

	.no_dead_strip	_bt_right_page_check_scankey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt_right_page_check_scankey
_bt_right_page_check_scankey:           ; @bt_right_page_check_scankey
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_PageGetSpecialPointer
	mov	x20, x0
	bl	_P_RIGHTMOST
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	w20, [x20, #4]
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x19
	mov	x1, x20
	bl	_palloc_btree_page
	mov	x21, x0
	bl	_PageGetSpecialPointer
	mov	x22, x0
	bl	_P_IGNORE
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_P_RIGHTMOST
	cbnz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x26, _DEBUG1@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DEBUG1@GOTPAGEOFF]
Lloh2:
	adrp	x27, _ERRCODE_NO_DATA@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ERRCODE_NO_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x22, #4]
	ldr	w25, [x26]
	ldr	w0, [x27]
	bl	_errcode
	ldrsw	x22, [x22]
	ldr	w0, [x19]
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_errmsg
	mov	x0, x24
	bl	_errdetail_internal
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	mov	x0, x21
	bl	_pfree
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x19
	mov	x1, x20
	bl	_palloc_btree_page
	mov	x21, x0
	bl	_PageGetSpecialPointer
	mov	x22, x0
	bl	_P_IGNORE
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_P_RIGHTMOST
	cbz	x0, LBB0_4
LBB0_6:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	mov	x23, x0
	mov	x0, x22
	bl	_P_ISLEAF
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_P_FIRSTDATAKEY
	cmp	x23, x0
	b.ge	LBB0_12
LBB0_8:
	mov	x0, x22
	bl	_P_ISLEAF
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_P_FIRSTDATAKEY
	bl	_OffsetNumberNext
	cmp	x23, x0
	b.ge	LBB0_13
LBB0_10:
Lloh8:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x8, _ERRCODE_NO_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_NO_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_P_ISLEAF
Lloh14:
	adrp	x8, l_.str.3@PAGE
Lloh15:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh16:
	adrp	x9, l_.str.4@PAGE
Lloh17:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x22, x9, x8, eq
	ldr	w0, [x19]
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_11:
	mov	x0, #0
	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
LBB0_12:
	mov	x0, x22
	bl	_P_FIRSTDATAKEY
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_P_FIRSTDATAKEY
	bl	_OffsetNumberNext
LBB0_14:
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_PageGetItemIdCareful
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	mov	x1, x0
	ldr	w0, [x19]
	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
	b	_bt_mkscankey_pivotsearch
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.comm	_ERRCODE_NO_DATA,4,2            ; @ERRCODE_NO_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"level %u leftmost page of index \"%s\" was found deleted or half dead"

l_.str.1:                               ; @.str.1
	.asciz	"Deleted page found when building scankey from right sibling."

l_.str.2:                               ; @.str.2
	.asciz	"%s block %u of index \"%s\" has no first data item"

l_.str.3:                               ; @.str.3
	.asciz	"leaf"

l_.str.4:                               ; @.str.4
	.asciz	"internal"

	.no_dead_strip	_bt_right_page_check_scankey
.subsections_via_symbols
