	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_prepare_freeze_tuple      ## -- Begin function heap_prepare_freeze_tuple
	.p2align	4, 0x90
_heap_prepare_freeze_tuple:             ## @heap_prepare_freeze_tuple
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	$0, 8(%r9)
	movl	(%rdi), %eax
	movl	%eax, (%r9)
	movl	4(%rdi), %eax
	movl	%eax, 4(%r9)
	callq	_HeapTupleHeaderGetRawXmax
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetXmin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TransactionIdIsNormal
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_TransactionIdPrecedes
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdPrecedes
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	_HEAP_XMIN_FROZEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_7:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_8:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_9:
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetRawXmax
	movq	%rax, %r12
	movl	4(%r14), %esi
	movq	_HEAP_XMAX_IS_MULTI@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_13
## %bb.10:
	leaq	-68(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_FreezeMultiXactId
	movq	%rax, %r12
	movl	-68(%rbp), %ebx
	movq	_FRM_INVALIDATE_XMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_FRM_RETURN_IS_XID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_20
## %bb.11:
	movq	_HEAP_XMAX_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	4(%r15), %eax
	movl	%eax, 4(%r15)
	movq	%r12, 16(%r15)
	movq	_FRM_MARK_COMMITTED@GOTPCREL(%rip), %rcx
	movl	$1, %edx
	testl	%ebx, (%rcx)
	je	LBB0_22
## %bb.12:
	movq	_HEAP_XMAX_COMMITTED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_22
LBB0_13:
	movq	%r12, %rdi
	callq	_TransactionIdIsNormal
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_TransactionIdPrecedes
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_16:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_TransactionIdPrecedes
	testl	%eax, %eax
	je	LBB0_27
## %bb.17:
	movl	4(%r14), %edi
	callq	_HEAP_XMAX_IS_LOCKED_ONLY
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	movq	%r12, %rdi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_errmsg_internal
	jmp	LBB0_38
LBB0_20:
	movq	_FRM_RETURN_IS_MULTI@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_22
## %bb.21:
	movq	_HEAP_XMAX_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r15)
	movq	_HEAP_KEYS_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r12, %rdi
	callq	_GetMultiXactIdHintBits
	movl	-64(%rbp), %eax
	orl	%eax, 4(%r15)
	movl	-60(%rbp), %eax
	orl	%eax, (%r15)
	movq	%r12, 16(%r15)
	movl	$1, %edx
LBB0_22:
	testl	%ebx, %r13d
	je	LBB0_24
LBB0_23:
	movl	$1, %ebx
	movl	$1, %edi
	callq	_Assert
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_HEAP_XMAX_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	4(%r15), %eax
	movq	_HEAP_XMAX_INVALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
	movq	_HEAP_HOT_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	movq	_HEAP_KEYS_UPDATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r15)
	xorl	%r13d, %r13d
	movl	$1, %edx
	jmp	LBB0_29
LBB0_24:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_29
LBB0_25:
	movq	_HEAP_XMAX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r13d
	xorl	%ebx, %ebx
	testl	%eax, 4(%r14)
	jne	LBB0_28
## %bb.36:
	movq	%r14, %rdi
	callq	_HeapTupleHeaderGetRawXmax
	movq	%rax, %rdi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_29
## %bb.37:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%r14), %edx
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_errmsg_internal
LBB0_38:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_23
LBB0_27:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_28:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_29:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rbx
	movq	_HEAP_MOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_35
## %bb.30:
	movq	%r14, %rdi
	movl	%edx, %r12d
	callq	_HeapTupleHeaderGetXvac
	movq	%rax, %rdi
	callq	_TransactionIdIsNormal
	movl	%r12d, %edx
	testq	%rax, %rax
	je	LBB0_35
## %bb.31:
	movl	4(%r14), %eax
	movq	_HEAP_MOVED_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_33
## %bb.32:
	movq	_XLH_FREEZE_XVAC@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_33:
	movq	_XLH_INVALID_XVAC@GOTPCREL(%rip), %rcx
LBB0_34:
	movl	(%rcx), %ecx
	orl	%ecx, 8(%r15)
	movq	_HEAP_XMIN_INVALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_Assert
	movq	_HEAP_XMIN_COMMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movl	$1, %edx
LBB0_35:
	orl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%eax, %eax
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	cmovel	%r13d, %eax
	movl	%eax, (%rbx)
	movl	%edx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ## @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found xmin %u from before relfrozenxid %u"

L_.str.1:                               ## @.str.1
	.asciz	"uncommitted xmin %u from before xid cutoff %u needs to be frozen"

	.comm	_HEAP_XMIN_FROZEN,4,2           ## @HEAP_XMIN_FROZEN
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ## @HEAP_XMAX_IS_MULTI
	.comm	_FRM_INVALIDATE_XMAX,4,2        ## @FRM_INVALIDATE_XMAX
	.comm	_FRM_RETURN_IS_XID,4,2          ## @FRM_RETURN_IS_XID
	.comm	_HEAP_XMAX_BITS,4,2             ## @HEAP_XMAX_BITS
	.comm	_FRM_MARK_COMMITTED,4,2         ## @FRM_MARK_COMMITTED
	.comm	_HEAP_XMAX_COMMITTED,4,2        ## @HEAP_XMAX_COMMITTED
	.comm	_FRM_RETURN_IS_MULTI,4,2        ## @FRM_RETURN_IS_MULTI
	.comm	_HEAP_KEYS_UPDATED,4,2          ## @HEAP_KEYS_UPDATED
L_.str.2:                               ## @.str.2
	.asciz	"found xmax %u from before relfrozenxid %u"

L_.str.3:                               ## @.str.3
	.asciz	"cannot freeze committed xmax %u"

	.comm	_HEAP_XMAX_INVALID,4,2          ## @HEAP_XMAX_INVALID
L_.str.4:                               ## @.str.4
	.asciz	"found xmax %u (infomask 0x%04x) not frozen, not multi, not normal"

	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_HEAP_HOT_UPDATED,4,2           ## @HEAP_HOT_UPDATED
	.comm	_HEAP_MOVED,4,2                 ## @HEAP_MOVED
	.comm	_HEAP_MOVED_OFF,4,2             ## @HEAP_MOVED_OFF
	.comm	_XLH_INVALID_XVAC,4,2           ## @XLH_INVALID_XVAC
	.comm	_XLH_FREEZE_XVAC,4,2            ## @XLH_FREEZE_XVAC
	.comm	_HEAP_XMIN_INVALID,4,2          ## @HEAP_XMIN_INVALID
	.comm	_HEAP_XMIN_COMMITTED,4,2        ## @HEAP_XMIN_COMMITTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_prepare_freeze_tuple      ; -- Begin function heap_prepare_freeze_tuple
	.p2align	2
_heap_prepare_freeze_tuple:             ; @heap_prepare_freeze_tuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x6
	mov	x20, x5
	mov	x25, x4
	mov	x23, x3
	mov	x26, x2
	mov	x24, x1
	mov	x21, x0
	str	wzr, [x5, #8]
	ldr	d0, [x0]
	str	d0, [x5]
	bl	_HeapTupleHeaderGetRawXmax
	str	x0, [x20, #16]
	mov	x0, x21
	bl	_HeapTupleHeaderGetXmin
	mov	x22, x0
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x22
	mov	x1, x24
	bl	_TransactionIdPrecedes
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
	str	x24, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_3:
	mov	x0, x22
	mov	x1, x23
	bl	_TransactionIdPrecedes
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x22
	bl	_TransactionIdDidCommit
	cbnz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w27, [x8]
Lloh11:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
	str	x23, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_6:
	mov	w28, #0
Lloh16:
	adrp	x8, _HEAP_XMIN_FROZEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HEAP_XMIN_FROZEN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	mov	w22, #1
	b	LBB0_9
LBB0_7:
	mov	w28, #0
	mov	w22, #0
	b	LBB0_9
LBB0_8:
	mov	w22, #0
	mov	w28, #1
LBB0_9:
	mov	x0, x21
	bl	_HeapTupleHeaderGetRawXmax
	mov	x27, x0
	ldr	w1, [x21, #4]
Lloh19:
	adrp	x8, _HEAP_XMAX_IS_MULTI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HEAP_XMAX_IS_MULTI@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_13
; %bb.10:
	add	x6, sp, #28
	mov	x0, x27
	mov	x2, x24
	mov	x3, x26
	mov	x4, x23
	mov	x5, x25
	bl	_FreezeMultiXactId
	mov	x23, x0
	ldr	w8, [sp, #28]
Lloh22:
	adrp	x9, _FRM_INVALIDATE_XMAX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FRM_INVALIDATE_XMAX@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	and	w24, w9, w8
Lloh25:
	adrp	x9, _FRM_RETURN_IS_XID@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FRM_RETURN_IS_XID@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.11:
Lloh28:
	adrp	x9, _HEAP_XMAX_BITS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _HEAP_XMAX_BITS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	ldr	w10, [x20, #4]
	bic	w9, w10, w9
	str	w9, [x20, #4]
	str	x23, [x20, #16]
Lloh31:
	adrp	x10, _FRM_MARK_COMMITTED@GOTPAGE
Lloh32:
	ldr	x10, [x10, _FRM_MARK_COMMITTED@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_22
; %bb.12:
Lloh34:
	adrp	x8, _HEAP_XMAX_COMMITTED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HEAP_XMAX_COMMITTED@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x20, #4]
	b	LBB0_22
LBB0_13:
	mov	x0, x27
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_26
; %bb.14:
	mov	x0, x27
	mov	x1, x24
	bl	_TransactionIdPrecedes
	cbz	w0, LBB0_16
; %bb.15:
Lloh37:
	adrp	x8, _ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w25, [x8]
Lloh40:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_errcode
	str	x24, [sp]
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x27
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_16:
	mov	x0, x27
	mov	x1, x23
	bl	_TransactionIdPrecedes
	cbz	w0, LBB0_28
; %bb.17:
	ldr	w0, [x21, #4]
	bl	_HEAP_XMAX_IS_LOCKED_ONLY
	cbnz	w0, LBB0_24
; %bb.18:
	mov	x0, x27
	bl	_TransactionIdDidCommit
	cbz	x0, LBB0_24
; %bb.19:
Lloh45:
	adrp	x8, _ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w22, [x8]
Lloh48:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	bl	_errcode
Lloh51:
	adrp	x0, l_.str.3@PAGE
Lloh52:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_35
LBB0_20:
Lloh53:
	adrp	x9, _FRM_RETURN_IS_MULTI@GOTPAGE
Lloh54:
	ldr	x9, [x9, _FRM_RETURN_IS_MULTI@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.21:
Lloh56:
	adrp	x8, _HEAP_XMAX_BITS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _HEAP_XMAX_BITS@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	ldp	w10, w9, [x20]
	bic	w8, w9, w8
Lloh59:
	adrp	x9, _HEAP_KEYS_UPDATED@GOTPAGE
Lloh60:
	ldr	x9, [x9, _HEAP_KEYS_UPDATED@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	bic	w9, w10, w9
	stp	w9, w8, [x20]
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x23
	bl	_GetMultiXactIdHintBits
	ldr	w8, [sp, #24]
	ldp	w10, w9, [x20]
	orr	w8, w9, w8
	ldr	w9, [sp, #20]
	orr	w9, w10, w9
	stp	w9, w8, [x20]
	str	x23, [x20, #16]
LBB0_22:
	mov	w22, #1
LBB0_23:
	cbz	w24, LBB0_25
LBB0_24:
	mov	w23, #1
	mov	w0, #1
	bl	_Assert
	mov	w24, #0
Lloh62:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh63:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	str	x8, [x20, #16]
Lloh65:
	adrp	x8, _HEAP_XMAX_BITS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _HEAP_XMAX_BITS@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	ldp	w10, w9, [x20]
	bic	w8, w9, w8
Lloh68:
	adrp	x9, _HEAP_XMAX_INVALID@GOTPAGE
Lloh69:
	ldr	x9, [x9, _HEAP_XMAX_INVALID@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh71:
	adrp	x9, _HEAP_HOT_UPDATED@GOTPAGE
Lloh72:
	ldr	x9, [x9, _HEAP_HOT_UPDATED@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	bic	w9, w10, w9
	stp	w9, w8, [x20]
Lloh74:
	adrp	x8, _HEAP_KEYS_UPDATED@GOTPAGE
Lloh75:
	ldr	x8, [x8, _HEAP_KEYS_UPDATED@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	w22, #1
	b	LBB0_29
LBB0_25:
	mov	w23, #0
	b	LBB0_29
LBB0_26:
	ldr	w8, [x21, #4]
Lloh77:
	adrp	x9, _HEAP_XMAX_INVALID@GOTPAGE
Lloh78:
	ldr	x9, [x9, _HEAP_XMAX_INVALID@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_33
LBB0_27:
	mov	w23, #0
	mov	w24, #1
	b	LBB0_29
LBB0_28:
	mov	w23, #0
	mov	w24, #0
LBB0_29:
	ldr	w8, [x21, #4]
Lloh80:
	adrp	x9, _HEAP_MOVED@GOTPAGE
Lloh81:
	ldr	x9, [x9, _HEAP_MOVED@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.30:
	mov	x0, x21
	bl	_HeapTupleHeaderGetXvac
	bl	_TransactionIdIsNormal
	cbz	x0, LBB0_32
; %bb.31:
	ldr	w8, [x21, #4]
Lloh83:
	adrp	x9, _HEAP_MOVED_OFF@GOTPAGE
Lloh84:
	ldr	x9, [x9, _HEAP_MOVED_OFF@GOTPAGEOFF]
Lloh85:
	adrp	x10, _XLH_FREEZE_XVAC@GOTPAGE
Lloh86:
	ldr	x10, [x10, _XLH_FREEZE_XVAC@GOTPAGEOFF]
Lloh87:
	adrp	x11, _XLH_INVALID_XVAC@GOTPAGE
Lloh88:
	ldr	x11, [x11, _XLH_INVALID_XVAC@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	str	w9, [x20, #8]
Lloh90:
	adrp	x9, _HEAP_XMIN_INVALID@GOTPAGE
Lloh91:
	ldr	x9, [x9, _HEAP_XMIN_INVALID@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_Assert
Lloh93:
	adrp	x8, _HEAP_XMIN_COMMITTED@GOTPAGE
Lloh94:
	ldr	x8, [x8, _HEAP_XMIN_COMMITTED@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	mov	w22, #1
LBB0_32:
	orr	w8, w24, w23
	cmp	w28, #0
	csel	w8, wzr, w8, ne
	str	w8, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_33:
	mov	x0, x21
	bl	_HeapTupleHeaderGetRawXmax
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_27
; %bb.34:
Lloh96:
	adrp	x8, _ERROR@GOTPAGE
Lloh97:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh98:
	ldr	w22, [x8]
Lloh99:
	adrp	x8, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh100:
	ldr	x8, [x8, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh102:
	adrp	x0, l_.str.4@PAGE
Lloh103:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_35:
	mov	x1, x27
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_24
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh89
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ; @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found xmin %u from before relfrozenxid %u"

l_.str.1:                               ; @.str.1
	.asciz	"uncommitted xmin %u from before xid cutoff %u needs to be frozen"

	.comm	_HEAP_XMIN_FROZEN,4,2           ; @HEAP_XMIN_FROZEN
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ; @HEAP_XMAX_IS_MULTI
	.comm	_FRM_INVALIDATE_XMAX,4,2        ; @FRM_INVALIDATE_XMAX
	.comm	_FRM_RETURN_IS_XID,4,2          ; @FRM_RETURN_IS_XID
	.comm	_HEAP_XMAX_BITS,4,2             ; @HEAP_XMAX_BITS
	.comm	_FRM_MARK_COMMITTED,4,2         ; @FRM_MARK_COMMITTED
	.comm	_HEAP_XMAX_COMMITTED,4,2        ; @HEAP_XMAX_COMMITTED
	.comm	_FRM_RETURN_IS_MULTI,4,2        ; @FRM_RETURN_IS_MULTI
	.comm	_HEAP_KEYS_UPDATED,4,2          ; @HEAP_KEYS_UPDATED
l_.str.2:                               ; @.str.2
	.asciz	"found xmax %u from before relfrozenxid %u"

l_.str.3:                               ; @.str.3
	.asciz	"cannot freeze committed xmax %u"

	.comm	_HEAP_XMAX_INVALID,4,2          ; @HEAP_XMAX_INVALID
l_.str.4:                               ; @.str.4
	.asciz	"found xmax %u (infomask 0x%04x) not frozen, not multi, not normal"

	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_HEAP_HOT_UPDATED,4,2           ; @HEAP_HOT_UPDATED
	.comm	_HEAP_MOVED,4,2                 ; @HEAP_MOVED
	.comm	_HEAP_MOVED_OFF,4,2             ; @HEAP_MOVED_OFF
	.comm	_XLH_INVALID_XVAC,4,2           ; @XLH_INVALID_XVAC
	.comm	_XLH_FREEZE_XVAC,4,2            ; @XLH_FREEZE_XVAC
	.comm	_HEAP_XMIN_INVALID,4,2          ; @HEAP_XMIN_INVALID
	.comm	_HEAP_XMIN_COMMITTED,4,2        ; @HEAP_XMIN_COMMITTED
.subsections_via_symbols
