	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt_downlink_check
_bt_downlink_check:                     ## @bt_downlink_check
	.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	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	callq	_Assert
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_palloc_btree_page
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movq	%r14, %rbx
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_P_ISDELETED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%rbx), %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	(%rbx), %r8d
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_errdetail_internal
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r13, %rdi
	callq	_P_FIRSTDATAKEY
	cmpq	%r14, %rax
	jle	LBB0_3
LBB0_8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
LBB0_3:
	movq	%rax, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r12
	cmpq	%r14, %rax
	jg	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_offset_is_negative_infinity
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_invariant_l_nontarget_offset
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%rbx), %edi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	(%rbx), %r9d
	movl	4(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_errdetail_internal
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"downlink to deleted page found in index \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"Parent block=%u child block=%u parent page lsn=%X/%X."

L_.str.2:                               ## @.str.2
	.asciz	"down-link lower bound invariant violated for index \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"Parent block=%u child index tid=(%u,%u) parent page lsn=%X/%X."

	.no_dead_strip	_bt_downlink_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt_downlink_check
_bt_downlink_check:                     ; @bt_downlink_check
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #12]
	bl	_Assert
	mov	x0, x21
	mov	x1, x19
	bl	_palloc_btree_page
	mov	x22, x0
	bl	_PageGetSpecialPointer
	mov	x23, x0
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	mov	x24, x0
	mov	x0, x23
	bl	_P_ISDELETED
Lloh0:
	adrp	x28, _ERROR@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x27, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w25, [x28]
	ldr	w0, [x27]
	bl	_errcode
	ldr	w0, [x21, #8]
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	ldp	w4, w1, [x21]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_errdetail_internal
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_2:
	mov	x0, x23
	bl	_P_FIRSTDATAKEY
	cmp	x0, x24
	b.le	LBB0_4
LBB0_3:
	mov	x0, x22
	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	_pfree
LBB0_4:
	mov	x25, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_OffsetNumberNext
	mov	x25, x0
	cmp	x0, x24
	b.gt	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_offset_is_negative_infinity
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x25
	bl	_invariant_l_nontarget_offset
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w26, [x28]
	ldr	w0, [x27]
	bl	_errcode
	ldr	w0, [x21, #8]
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	ldp	w8, w1, [x21]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x19
	mov	x3, x25
	bl	_errdetail_internal
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"downlink to deleted page found in index \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"Parent block=%u child block=%u parent page lsn=%X/%X."

l_.str.2:                               ; @.str.2
	.asciz	"down-link lower bound invariant violated for index \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"Parent block=%u child index tid=(%u,%u) parent page lsn=%X/%X."

	.no_dead_strip	_bt_downlink_check
.subsections_via_symbols
