	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_get_latest_tid            ## -- Begin function heap_get_latest_tid
	.p2align	4, 0x90
_heap_get_latest_tid:                   ## @heap_get_latest_tid
	.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	%rsi, %rbx
	movl	(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %r14d
	movq	%rsi, %rdi
	callq	_ItemPointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ReadBuffer
	movl	%eax, %r12d
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%r12d, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, %rbx
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rax, %rbx
	jg	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ItemIdIsNormal
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, -72(%rbp)
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_PageGetItem
	movq	%rax, -80(%rbp)
	movl	%r15d, %edi
	callq	_ItemIdGetLength
	movl	%eax, -64(%rbp)
	movl	%r14d, %edi
	callq	_RelationGetRelid
	movl	%eax, -68(%rbp)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi
	callq	_HeapTupleHeaderGetXmin
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_TransactionIdEquals
	testl	%eax, %eax
	je	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_HeapTupleSatisfiesVisibility
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_CheckForSerializableConflictOut
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi
	movq	_HEAP_XMAX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_HeapTupleHeaderIsOnlyLocked
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi
	callq	_HeapTupleHeaderIndicatesMovedPartitions
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rsi
	addq	$4, %rsi
	leaq	-72(%rbp), %rdi
	callq	_ItemPointerEquals
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi
	movl	4(%rdi), %eax
	movl	%eax, -44(%rbp)
	callq	_HeapTupleHeaderGetUpdateXid
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_UnlockReleaseBuffer
	jmp	LBB0_1
LBB0_13:
	movl	%r12d, %edi
	callq	_UnlockReleaseBuffer
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_HEAP_XMAX_INVALID,4,2          ## @HEAP_XMAX_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_get_latest_tid            ; -- Begin function heap_get_latest_tid
	.p2align	2
_heap_get_latest_tid:                   ; @heap_get_latest_tid
	.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, x1
	ldp	w21, w20, [x0]
	mov	x0, x1
	bl	_ItemPointerIsValid
	bl	_Assert
	ldr	w8, [x19]
	str	w8, [sp, #28]
Lloh0:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x8, sp
	add	x22, x8, #8
Lloh3:
	adrp	x27, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh5:
	adrp	x28, _FirstOffsetNumber@GOTPAGE
Lloh6:
	ldr	x28, [x28, _FirstOffsetNumber@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #28
	bl	_ItemPointerGetBlockNumber
	mov	x1, x0
	mov	x0, x20
	bl	_ReadBuffer
	mov	x23, x0
	ldr	w1, [x27]
	bl	_LockBuffer
	mov	x0, x23
	bl	_BufferGetPage
	mov	x25, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	bl	_TestForOldSnapshot
	add	x0, sp, #28
	bl	_ItemPointerGetOffsetNumber
	ldr	x8, [x28]
	cmp	x0, x8
	b.lt	LBB0_13
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, x0
	mov	x0, x25
	bl	_PageGetMaxOffsetNumber
	cmp	x26, x0
	b.gt	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_PageGetItemId
	mov	x26, x0
	bl	_ItemIdIsNormal
	cbz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #28]
	str	w8, [sp, #8]
	mov	x0, x25
	mov	x1, x26
	bl	_PageGetItem
	str	x0, [sp]
	mov	x0, x26
	bl	_ItemIdGetLength
	str	w0, [sp, #16]
	mov	x0, x20
	bl	_RelationGetRelid
	str	w0, [sp, #12]
	mov	x0, x24
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp]
	bl	_HeapTupleHeaderGetXmin
	mov	x1, x0
	mov	x0, x24
	bl	_TransactionIdEquals
	cbz	w0, LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, sp
	mov	x1, x21
	mov	x2, x23
	bl	_HeapTupleSatisfiesVisibility
	mov	x24, x0
	mov	x2, sp
	mov	x1, x20
	mov	x3, x23
	mov	x4, x21
	bl	_CheckForSerializableConflictOut
	cbz	w24, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #28]
	str	w8, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp]
	ldr	w8, [x0]
Lloh7:
	adrp	x9, _HEAP_XMAX_INVALID@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HEAP_XMAX_INVALID@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_HeapTupleHeaderIsOnlyLocked
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp]
	bl	_HeapTupleHeaderIndicatesMovedPartitions
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp]
	add	x1, x8, #4
	mov	x0, x22
	bl	_ItemPointerEquals
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp]
	ldr	w8, [x0, #4]
	str	w8, [sp, #28]
	bl	_HeapTupleHeaderGetUpdateXid
	mov	x24, x0
	mov	x0, x23
	bl	_UnlockReleaseBuffer
	b	LBB0_1
LBB0_13:
	mov	x0, x23
	bl	_UnlockReleaseBuffer
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_HEAP_XMAX_INVALID,4,2          ; @HEAP_XMAX_INVALID
.subsections_via_symbols
