	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HeapTupleHeaderAdvanceLatestRemovedXid ## -- Begin function HeapTupleHeaderAdvanceLatestRemovedXid
	.p2align	4, 0x90
_HeapTupleHeaderAdvanceLatestRemovedXid: ## @HeapTupleHeaderAdvanceLatestRemovedXid
	.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	%rsi, %r12
	movq	%rdi, %rbx
	callq	_HeapTupleHeaderGetXmin
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderGetUpdateXid
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderGetXvac
	movq	%rax, %r13
	movq	_HEAP_MOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rdi
	movq	%r13, %rsi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, (%r12)
LBB0_3:
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderXminCommitted
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	cmpq	%r15, %r14
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_TransactionIdFollows
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, (%r12)
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderXminInvalid
	testl	%eax, %eax
	je	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_MOVED,4,2                 ## @HEAP_MOVED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HeapTupleHeaderAdvanceLatestRemovedXid ; -- Begin function HeapTupleHeaderAdvanceLatestRemovedXid
	.p2align	2
_HeapTupleHeaderAdvanceLatestRemovedXid: ; @HeapTupleHeaderAdvanceLatestRemovedXid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x22, x0
	bl	_HeapTupleHeaderGetXmin
	mov	x21, x0
	mov	x0, x22
	bl	_HeapTupleHeaderGetUpdateXid
	mov	x20, x0
	mov	x0, x22
	bl	_HeapTupleHeaderGetXvac
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _HEAP_MOVED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEAP_MOVED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	x0, [x19]
	mov	x1, x23
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_3
; %bb.2:
	str	x23, [x19]
LBB0_3:
	mov	x0, x22
	bl	_HeapTupleHeaderXminCommitted
	cbz	x0, LBB0_7
LBB0_4:
	cmp	x20, x21
	b.eq	LBB0_8
; %bb.5:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_TransactionIdFollows
	cbz	x0, LBB0_8
; %bb.6:
	str	x20, [x19]
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	bl	_HeapTupleHeaderXminInvalid
	cbz	w0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x21
	bl	_TransactionIdDidCommit
	cbnz	x0, LBB0_4
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_MOVED,4,2                 ; @HEAP_MOVED
.subsections_via_symbols
