	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heapam_index_fetch_tuple
_heapam_index_fetch_tuple:              ## @heapam_index_fetch_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rcx, %rdi
	callq	_TTS_IS_BUFFERTUPLE
	movl	%eax, %edi
	callq	_Assert
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	movq	(%r13), %r12
	movl	8(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_ReleaseAndReadBuffer
	movq	%rax, (%r13)
	cmpq	%rax, %r12
	movl	%ebx, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_3
## %bb.2:
	movl	8(%r13), %edi
	movq	%rax, %rsi
	callq	_heap_page_prune_opt
LBB0_3:
	movq	(%r13), %rdi
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	8(%r13), %esi
	movq	(%r13), %rdx
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %ecx
	movq	%r14, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_heap_hot_search_buffer
	movq	%r15, %rcx
	movl	%r12d, %r15d
	movl	%eax, %r12d
	movl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	(%r13), %rdi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	callq	_IsMVCCSnapshot
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, (%rbx)
	movl	(%r13), %edi
	callq	_RelationGetRelid
	movl	%eax, (%r14)
	movq	(%r13), %rdx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_ExecStoreBufferHeapTuple
	jmp	LBB0_6
LBB0_5:
	movl	$0, (%rbx)
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.no_dead_strip	_heapam_index_fetch_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heapam_index_fetch_tuple
_heapam_index_fetch_tuple:              ; @heapam_index_fetch_tuple
	.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	x24, x5
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x3
	bl	_TTS_IS_BUFFERTUPLE
	bl	_Assert
	ldr	w8, [x21]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x25, [x20]
	ldr	w26, [x20, #8]
	mov	x0, x23
	bl	_ItemPointerGetBlockNumber
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_ReleaseAndReadBuffer
	str	x0, [x20]
	cmp	x25, x0
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x0
	ldr	w0, [x20, #8]
	bl	_heap_page_prune_opt
LBB0_3:
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LockBuffer
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w6, eq
	mov	x0, x23
	mov	x3, x22
	mov	x4, x19
	mov	x5, x24
	bl	_heap_hot_search_buffer
	mov	x24, x0
	ldr	w8, [x23]
	str	w8, [x19]
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LockBuffer
	cbz	w24, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_IsMVCCSnapshot
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x21]
	ldr	w0, [x20]
	bl	_RelationGetRelid
	str	w0, [x19]
	ldr	x2, [x20]
	mov	x0, x19
	mov	x1, x19
	bl	_ExecStoreBufferHeapTuple
	b	LBB0_6
LBB0_5:
	str	wzr, [x21]
LBB0_6:
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.no_dead_strip	_heapam_index_fetch_tuple
.subsections_via_symbols
