	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_get_endpoint               ## -- Begin function _bt_get_endpoint
	.p2align	4, 0x90
__bt_get_endpoint:                      ## @_bt_get_endpoint
	.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	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%r13d, %edi
	callq	__bt_gettrueroot
	jmp	LBB0_3
LBB0_1:
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	__bt_getroot
LBB0_3:
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_BufferIsValid
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%r12d, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	__bt_relandgetbuf
	movl	%eax, %r12d
	movl	%eax, %edi
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	callq	_BufferGetPage
	movl	%eax, %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movl	%r15d, %edi
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_PageGetSpecialPointer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_P_IGNORE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r14, %rdi
	callq	_P_RIGHTMOST
	testl	%eax, %eax
	je	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%r14)
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r13d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%r15d, %edi
	callq	_PageGetMaxOffsetNumber
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%r14, %rdi
	callq	_P_FIRSTDATAKEY
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%eax, %esi
	movl	%r15d, %edi
	callq	_PageGetItemId
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	_BTreeInnerTupleGetDownLink
	movq	_BT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	__bt_relandgetbuf
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %r15d
	movl	%eax, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rbx
	movq	_P_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_RelationGetRelationName
	movl	%r14d, %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_elog
	jmp	LBB0_13
LBB0_4:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_READ,4,2                    ## @BT_READ
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_P_NONE,8,3                     ## @P_NONE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fell off the end of index \"%s\""

	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
L_.str.1:                               ## @.str.1
	.asciz	"btree level %u not found in index \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_get_endpoint               ; -- Begin function _bt_get_endpoint
	.p2align	2
__bt_get_endpoint:                      ; @_bt_get_endpoint
	.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, x3
	mov	x20, x2
	mov	x22, x0
Lloh0:
	adrp	x24, _BT_READ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BT_READ@GOTPAGEOFF]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	__bt_gettrueroot
	b	LBB0_3
LBB0_2:
	ldr	w1, [x24]
	mov	x0, x22
	bl	__bt_getroot
LBB0_3:
	mov	x23, x0
	bl	_BufferIsValid
	cbz	w0, LBB0_19
; %bb.4:
	mov	x0, x23
	bl	_BufferGetPage
	mov	x26, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	bl	_TestForOldSnapshot
	mov	x0, x26
	bl	_PageGetSpecialPointer
	mov	x27, x0
Lloh2:
	adrp	x28, _ERROR@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x25, _P_NONE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _P_NONE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	str	w19, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x26
	bl	__bt_relandgetbuf
	mov	x23, x0
	bl	_BufferGetPage
	mov	x26, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	bl	_TestForOldSnapshot
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_PageGetSpecialPointer
	mov	x27, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	bl	_P_IGNORE
	cbz	x0, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x26, [x27]
	ldr	x8, [x25]
	cmp	x26, x8
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w27, [x28]
	mov	x0, x22
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x27
	mov	x1, x21
	bl	_elog
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w20, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_P_RIGHTMOST
	cbz	w0, LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x19, x20
	mov	x20, x24
	mov	x24, x25
	mov	x25, x21
	ldr	w21, [x28]
Lloh8:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_RelationGetRelationName
	mov	x2, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x21
	mov	x21, x25
	mov	x25, x24
	mov	x24, x20
	mov	x20, x19
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
	bl	_ereport
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w20, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_PageGetMaxOffsetNumber
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_P_FIRSTDATAKEY
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x0
	mov	x0, x26
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x26
	bl	_PageGetItem
	bl	_BTreeInnerTupleGetDownLink
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	__bt_relandgetbuf
	mov	x23, x0
	bl	_BufferGetPage
	mov	x26, x0
	b	LBB0_6
LBB0_19:
Lloh13:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
LBB0_20:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_READ,4,2                    ; @BT_READ
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_P_NONE,8,3                     ; @P_NONE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fell off the end of index \"%s\""

	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
l_.str.1:                               ; @.str.1
	.asciz	"btree level %u not found in index \"%s\""

.subsections_via_symbols
