	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heapam_index_validate_scan
_heapam_index_validate_scan:            ## @heapam_index_validate_scan
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INDEX_MAX_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	shlq	$2, %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -160(%rbp)                ## 8-byte Spill
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_MaxHeapTuplesPerPage@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -168(%rbp)                ## 8-byte Spill
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_CreateExecutorState
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GetPerTupleExprContext
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_RelationGetDescr
	movq	_TTSOpsHeapTuple@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_MakeSingleTupleTableSlot
	movq	%r15, -192(%rbp)                ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r15)
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	24(%r12), %edi
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_ExecPrepareQual
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_table_beginscan_strat
	movq	%rax, %r15
	movq	_PROGRESS_SCAN_BLOCKS_TOTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_pgstat_progress_update_param
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_heap_getnext
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rax, %r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movq	%r15, -208(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	leaq	-52(%rbp), %rcx
	movq	-144(%rbp), %r8                 ## 8-byte Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_index_insert
	addq	$16, %rsp
	movq	-112(%rbp), %rax                ## 8-byte Reload
	incl	4(%rax)
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-208(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_heap_getnext
	movq	%rax, %r14
	testq	%rax, %rax
	movq	-216(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_28
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	-112(%rbp), %rax                ## 8-byte Reload
	incl	(%rax)
	movq	8(%r15), %rsi
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, %rsi
	je	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PROGRESS_SCAN_BLOCKS_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_progress_update_param
	movq	8(%r15), %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -216(%rbp)                ## 8-byte Spill
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	16(%r15), %edi
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	%r13d, %edi
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	callq	_heap_get_root_tuples
	movl	16(%r15), %edi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	8(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)
	movq	%r14, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_HeapTupleIsHeapOnly
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	movl	-4(%rcx,%rax,4), %r13d
	movl	%r13d, %edi
	callq	_OffsetNumberIsValid
	testl	%eax, %eax
	leaq	-124(%rbp), %r15
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r14, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %ebx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_errmsg_internal
	movl	-116(%rbp), %edi                ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-52(%rbp), %rdi
	movl	%r13d, %esi
	callq	_ItemPointerSetOffsetNumber
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_21
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-124(%rbp), %r15
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_21
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	-60(%rbp), %edi
	callq	_DatumGetInt64
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_itemptr_decode
	movl	-60(%rbp), %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
	movq	%r15, %r12
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r12, %r12
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	leaq	-52(%rbp), %rsi
	callq	_ItemPointerCompare
	movq	%r12, %rdi
	testq	%rax, %rax
	jns	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	callq	_ItemPointerGetBlockNumber
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	callq	_ItemPointerGetOffsetNumber
	cltq
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	$1, -4(%rcx,%rax,4)
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	leaq	-60(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_tuplesort_getdatum
	movl	%eax, %ebx
	testl	%eax, %eax
	sete	%al
	cmpl	$0, -120(%rbp)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	testl	%ebx, %ebx
	jne	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-52(%rbp), %rsi
	callq	_ItemPointerCompare
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	jle	LBB0_27
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpl	$0, -4(%rcx,%rax,4)
	jne	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_MemoryContextReset
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ExecStoreHeapTuple
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	callq	_ExecQual
	testl	%eax, %eax
	je	LBB0_27
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	-152(%rbp), %r8                 ## 8-byte Reload
	callq	_FormIndexDatum
	cmpq	$0, 16(%rbx)
	movq	_UNIQUE_CHECK_YES@GOTPCREL(%rip), %rax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UNIQUE_CHECK_NO@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_28:
	movq	%r15, %rdi
	callq	_table_endscan
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_ExecDropSingleTupleTableSlot
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	callq	_FreeExecutorState
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	$0, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ## @INDEX_MAX_KEYS
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_MaxHeapTuplesPerPage,4,2       ## @MaxHeapTuplesPerPage
	.comm	_TTSOpsHeapTuple,4,2            ## @TTSOpsHeapTuple
	.comm	_PROGRESS_SCAN_BLOCKS_TOTAL,4,2 ## @PROGRESS_SCAN_BLOCKS_TOTAL
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_PROGRESS_SCAN_BLOCKS_DONE,4,2  ## @PROGRESS_SCAN_BLOCKS_DONE
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ## @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find parent tuple for heap-only tuple at (%u,%u) in table \"%s\""

	.comm	_UNIQUE_CHECK_YES,4,2           ## @UNIQUE_CHECK_YES
	.comm	_UNIQUE_CHECK_NO,4,2            ## @UNIQUE_CHECK_NO
	.comm	_NIL,4,2                        ## @NIL
	.no_dead_strip	_heapam_index_validate_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heapam_index_validate_scan
_heapam_index_validate_scan:            ; @heapam_index_validate_scan
	.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
	sub	sp, sp, #128
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _INDEX_MAX_KEYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDEX_MAX_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x9, x9, x12
	stur	x9, [x29, #-192]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x12
	stur	x8, [x29, #-200]                ; 8-byte Folded Spill
	mov	sp, x8
Lloh10:
	adrp	x28, _InvalidBlockNumber@GOTPAGE
Lloh11:
	ldr	x28, [x28, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x25, [x28]
Lloh12:
	adrp	x8, _MaxHeapTuplesPerPage@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MaxHeapTuplesPerPage@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	lsl	x8, x19, #2
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x24, x9, x12
	mov	sp, x24
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x12
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	mov	sp, x8
	stur	x1, [x29, #-184]                ; 8-byte Folded Spill
	ldr	x8, [x1]
	ldr	w0, [x8]
	bl	_OidIsValid
	bl	_Assert
	bl	_CreateExecutorState
	mov	x26, x0
	bl	_GetPerTupleExprContext
	mov	x27, x0
	mov	x0, x23
	bl	_RelationGetDescr
Lloh19:
	adrp	x1, _TTSOpsHeapTuple@GOTPAGE
Lloh20:
	ldr	x1, [x1, _TTSOpsHeapTuple@GOTPAGEOFF]
	bl	_MakeSingleTupleTableSlot
	stur	x27, [x29, #-152]               ; 8-byte Folded Spill
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
	str	x0, [x27, #8]
	stp	x26, x21, [x29, #-176]          ; 16-byte Folded Spill
	ldr	w0, [x21, #24]
	mov	x21, x24
	mov	x1, x26
	bl	_ExecPrepareQual
	stur	x0, [x29, #-160]                ; 8-byte Folded Spill
	stur	x23, [x29, #-128]               ; 8-byte Folded Spill
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	mov	x3, #0
	mov	w4, #1
	mov	w5, #0
	bl	_table_beginscan_strat
	mov	x22, x0
Lloh21:
	adrp	x8, _PROGRESS_SCAN_BLOCKS_TOTAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PROGRESS_SCAN_BLOCKS_TOTAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x1, [x22]
	bl	_pgstat_progress_update_param
Lloh24:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_heap_getnext
	cbz	x0, LBB0_25
; %bb.1:
	mov	x23, x0
	mov	w9, #0
	mov	x24, #0
	lsl	w8, w19, #2
	mov	w19, #0
	stur	w8, [x29, #-140]                ; 4-byte Folded Spill
	mov	x26, x25
	stur	x21, [x29, #-136]               ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x2, x19, [x29, #-176]           ; 16-byte Folded Reload
	mov	x0, x19
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	ldp	x23, x21, [x29, #-200]          ; 16-byte Folded Reload
	mov	x3, x21
	mov	x4, x23
	bl	_FormIndexDatum
	ldr	x8, [x19, #16]
	cmp	x8, #0
Lloh27:
	adrp	x8, _UNIQUE_CHECK_YES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UNIQUE_CHECK_YES@GOTPAGEOFF]
Lloh29:
	adrp	x9, _UNIQUE_CHECK_NO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _UNIQUE_CHECK_NO@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w5, [x8]
	sub	x3, x29, #96
	ldur	x0, [x29, #-184]                ; 8-byte Folded Reload
	mov	x1, x21
	ldp	x21, x4, [x29, #-136]           ; 16-byte Folded Reload
	mov	x2, x23
	mov	x6, x19
	bl	_index_insert
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x27
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh31:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_heap_getnext
	mov	x23, x0
	cbz	x0, LBB0_25
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [x28]
	ldr	x1, [x22, #8]
	cmp	x26, x8
	ccmp	x1, x26, #0, ne
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh34:
	adrp	x8, _PROGRESS_SCAN_BLOCKS_DONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PROGRESS_SCAN_BLOCKS_DONE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_pgstat_progress_update_param
	ldr	x26, [x22, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x26, x25
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #16]
	bl	_BufferGetPage
	mov	x27, x0
	ldr	w0, [x22, #16]
Lloh37:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x27
	mov	x1, x21
	bl	_heap_get_root_tuples
	ldr	w0, [x22, #16]
Lloh40:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_LockBuffer
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	mov	w1, #0
	ldur	w2, [x29, #-140]                ; 4-byte Folded Reload
	bl	_memset
	ldr	x25, [x22, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	stur	w8, [x29, #-96]
	mov	x0, x23
	bl	_ItemPointerGetOffsetNumber
	mov	x27, x0
	mov	x0, x23
	bl	_HeapTupleIsHeapOnly
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w27, #1
	ldr	w27, [x21, w8, sxtw #2]
	mov	x0, x27
	bl	_OffsetNumberIsValid
	cbnz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh43:
	adrp	x8, _ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	stur	w8, [x29, #-144]                ; 4-byte Folded Spill
Lloh46:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x23
	bl	_ItemPointerGetBlockNumber
	mov	x21, x0
	mov	x0, x23
	bl	_ItemPointerGetOffsetNumber
	mov	x28, x19
	mov	x19, x0
	ldur	x0, [x29, #-128]                ; 8-byte Folded Reload
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh49:
	adrp	x0, l_.str@PAGE
Lloh50:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	ldur	x21, [x29, #-136]               ; 8-byte Folded Reload
	mov	x2, x19
	mov	x19, x28
	bl	_errmsg_internal
	mov	x1, x0
	ldur	w0, [x29, #-144]                ; 4-byte Folded Reload
Lloh51:
	adrp	x28, _InvalidBlockNumber@GOTPAGE
Lloh52:
	ldr	x28, [x28, _InvalidBlockNumber@GOTPAGEOFF]
	bl	_ereport
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x29, #96
	mov	x1, x27
	bl	_ItemPointerSetOffsetNumber
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w19, LBB0_22
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	ldur	w0, [x29, #-100]
	bl	_DatumGetInt64
	mov	x1, x0
	sub	x24, x29, #92
	sub	x0, x29, #92
	bl	_itemptr_decode
	ldur	w0, [x29, #-100]
	bl	_DatumGetPointer
	bl	_pfree
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x24, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	sub	x1, x29, #96
	mov	x0, x24
	bl	_ItemPointerCompare
	tbz	x0, #63, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x24
	bl	_ItemPointerGetBlockNumber
	cmp	x0, x25
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x24
	bl	_ItemPointerGetOffsetNumber
	sub	w8, w0, #1
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	mov	w10, #1
	str	w10, [x9, w8, sxtw #2]
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w0, [x20, #8]
	sub	x2, x29, #100
	sub	x3, x29, #104
	mov	w1, #1
	mov	x4, #0
	bl	_tuplesort_getdatum
	mov	x19, x0
	cmp	w0, #0
	ldur	w8, [x29, #-104]
	ccmp	w8, #0, #4, ne
	cset	w0, eq
	bl	_Assert
	cbnz	w19, LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	mov	w19, #1
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x1, x29, #96
	mov	x0, x24
	bl	_ItemPointerCompare
	mov	w19, #0
	cmp	x0, #0
	b.le	LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w27, #1
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	ldr	w8, [x9, w8, sxtw #2]
	cbnz	w8, LBB0_4
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x19
	ldur	x19, [x29, #-152]               ; 8-byte Folded Reload
	ldr	w0, [x19]
	bl	_MemoryContextReset
	mov	x0, x23
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	mov	w2, #0
	bl	_ExecStoreHeapTuple
	ldur	x0, [x29, #-160]                ; 8-byte Folded Reload
	cbz	x0, LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x19
	bl	_ExecQual
	cbnz	w0, LBB0_2
	b	LBB0_3
LBB0_25:
	mov	x0, x22
	bl	_table_endscan
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	bl	_ExecDropSingleTupleTableSlot
	ldur	x0, [x29, #-176]                ; 8-byte Folded Reload
	bl	_FreeExecutorState
Lloh53:
	adrp	x8, _NIL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	ldur	x9, [x29, #-168]                ; 8-byte Folded Reload
	str	w8, [x9, #8]
	str	xzr, [x9]
	ldur	x8, [x29, #-88]
Lloh56:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh57:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	sub	sp, x29, #80
	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
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ; @INDEX_MAX_KEYS
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_MaxHeapTuplesPerPage,4,2       ; @MaxHeapTuplesPerPage
	.comm	_TTSOpsHeapTuple,4,2            ; @TTSOpsHeapTuple
	.comm	_PROGRESS_SCAN_BLOCKS_TOTAL,4,2 ; @PROGRESS_SCAN_BLOCKS_TOTAL
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_PROGRESS_SCAN_BLOCKS_DONE,4,2  ; @PROGRESS_SCAN_BLOCKS_DONE
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ; @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find parent tuple for heap-only tuple at (%u,%u) in table \"%s\""

	.comm	_UNIQUE_CHECK_YES,4,2           ; @UNIQUE_CHECK_YES
	.comm	_UNIQUE_CHECK_NO,4,2            ; @UNIQUE_CHECK_NO
	.comm	_NIL,4,2                        ; @NIL
	.no_dead_strip	_heapam_index_validate_scan
.subsections_via_symbols
