	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_fetch                     ## -- Begin function heap_fetch
	.p2align	4, 0x90
_heap_fetch:                            ## @heap_fetch
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rdx), %rbx
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%r13d, %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, %r14d
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, %rbx
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rax, %rbx
	jg	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ItemIdIsNormal
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movl	%ebx, %edi
	callq	_ItemIdGetLength
	movl	%eax, 4(%r15)
	movl	%r13d, %edi
	callq	_RelationGetRelid
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_HeapTupleSatisfiesVisibility
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_PredicateLockTuple
	movl	%ebx, %edi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_CheckForSerializableConflictOut
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%r12d, %edi
	callq	_ReleaseBuffer
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_CheckForSerializableConflictOut
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movl	%r12d, %edi
	callq	_ReleaseBuffer
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_fetch                     ; -- Begin function heap_fetch
	.p2align	2
_heap_fetch:                            ; @heap_fetch
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	add	x25, x2, #16
	mov	x0, x25
	bl	_ItemPointerGetBlockNumber
	mov	x1, x0
	mov	x0, x23
	bl	_ReadBuffer
	mov	x21, x0
Lloh0:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x21
	bl	_BufferGetPage
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_TestForOldSnapshot
	mov	x0, x25
	bl	_ItemPointerGetOffsetNumber
Lloh3:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.1:
	mov	x25, x0
	mov	x0, x24
	bl	_PageGetMaxOffsetNumber
	cmp	x25, x0
	b.gt	LBB0_5
; %bb.2:
	mov	x0, x24
	mov	x1, x25
	bl	_PageGetItemId
	mov	x25, x0
	bl	_ItemIdIsNormal
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x24
	mov	x1, x25
	bl	_PageGetItem
	str	x0, [x20, #8]
	mov	x0, x25
	bl	_ItemIdGetLength
	str	w0, [x20, #4]
	mov	x0, x23
	bl	_RelationGetRelid
	str	w0, [x20]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_HeapTupleSatisfiesVisibility
	cbz	w0, LBB0_7
; %bb.4:
	mov	x24, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_PredicateLockTuple
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_CheckForSerializableConflictOut
Lloh6:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LockBuffer
	str	w21, [x19]
	mov	w0, #1
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LockBuffer
	mov	x0, x21
	bl	_ReleaseBuffer
	mov	w0, #0
Lloh12:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh13:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	str	xzr, [x20, #8]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_CheckForSerializableConflictOut
Lloh15:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LockBuffer
	mov	x0, x21
	bl	_ReleaseBuffer
	mov	w0, #0
Lloh18:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh19:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
.subsections_via_symbols
