	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_hot_search_buffer         ## -- Begin function heap_hot_search_buffer
	.p2align	4, 0x90
_heap_hot_search_buffer:                ## @heap_hot_search_buffer
	.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, %r14
	movq	%r8, %r13
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	16(%rbp), %r12d
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	_BufferGetPage
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	%r12d, (%r14)
LBB0_2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, %r14
	movq	_RecentGlobalXmin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetBlockNumber
	xorl	%edi, %edi
	cmpq	%r15, %rax
	sete	%dil
	callq	_Assert
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_4
LBB0_30:
	xorl	%r12d, %r12d
LBB0_31:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testl	%r12d, %r12d
	sete	%al
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	8(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	(%rax), %r14
	jl	LBB0_31
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rax, %r14
	jg	LBB0_30
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_PageGetItemId
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ItemIdIsNormal
	testl	%eax, %eax
	je	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_PageGetItem
	movq	%rax, (%r13)
	movl	%r15d, %edi
	callq	_ItemIdGetLength
	movl	%eax, 16(%r13)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelid
	movl	%eax, 12(%r13)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_ItemPointerSet
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_HeapTupleIsHeapOnly
	testq	%rax, %rax
	jne	LBB0_30
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdi
	callq	_HeapTupleHeaderGetXmin
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TransactionIdEquals
	testl	%eax, %eax
	je	LBB0_30
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_HeapTupleSatisfiesVisibility
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_CheckForSerializableConflictOut
	testl	%r12d, %r12d
	jne	LBB0_27
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movq	_RecentGlobalXmin@GOTPCREL(%rip), %rax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_HeapTupleIsSurelyDead
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, (%rbx)
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_HeapTupleIsHotUpdated
	testq	%rax, %rax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdi
	callq	_ItemPointerGetBlockNumber
	xorl	%edi, %edi
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	sete	%dil
	callq	_Assert
	movq	(%r13), %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	%rax, %r14
	movq	(%r13), %rdi
	callq	_HeapTupleHeaderGetUpdateXid
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %edi
	callq	_ItemIdIsRedirected
	testl	%r12d, %r12d
	je	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %edi
	callq	_ItemIdGetRedirect
	movq	%rax, %r14
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_5
LBB0_27:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ItemPointerSetOffsetNumber
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_PredicateLockTuple
	movl	$1, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_31
## %bb.28:
	movl	$0, (%rax)
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_RecentGlobalXmin,4,2           ## @RecentGlobalXmin
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_hot_search_buffer         ; -- Begin function heap_hot_search_buffer
	.p2align	2
_heap_hot_search_buffer:                ; @heap_hot_search_buffer
	.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	x23, x6
	mov	x19, x5
	mov	x21, x4
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x24, x2
	str	w1, [sp, #28]                   ; 4-byte Folded Spill
	mov	x22, x0
	mov	x0, x2
	bl	_BufferGetPage
	mov	x25, x0
Lloh0:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	x19, LBB0_2
; %bb.1:
	str	w23, [x19]
LBB0_2:
	mov	x0, x22
	bl	_ItemPointerGetBlockNumber
	mov	x26, x0
	mov	x0, x22
	bl	_ItemPointerGetOffsetNumber
	mov	x28, x0
Lloh3:
	adrp	x8, _RecentGlobalXmin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RecentGlobalXmin@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_TransactionIdIsValid
	bl	_Assert
	mov	x0, x24
	bl	_BufferGetBlockNumber
	cmp	x0, x26
	cset	w0, eq
	bl	_Assert
Lloh6:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ge	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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_5:
	str	x22, [sp]                       ; 8-byte Folded Spill
	cmp	w23, #0
	cset	w22, eq
	add	x8, x21, #8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
	mov	w23, #0
	mov	w0, #0
Lloh11:
	ldr	x8, [x8]
	cmp	x28, x8
	b.lt	LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_PageGetMaxOffsetNumber
	cmp	x28, x0
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x28
	bl	_PageGetItemId
	mov	x27, x0
	bl	_ItemIdIsNormal
	cbz	w0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x27
	bl	_PageGetItem
	str	x0, [x21]
	mov	x0, x27
	bl	_ItemIdGetLength
	str	w0, [x21, #16]
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	bl	_RelationGetRelid
	str	w0, [x21, #12]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x26
	mov	x2, x28
	bl	_ItemPointerSet
	cbz	w23, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_HeapTupleIsHeapOnly
	cbnz	x0, LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x21]
	bl	_HeapTupleHeaderGetXmin
	mov	x1, x0
	mov	x0, x20
	bl	_TransactionIdEquals
	cbz	w0, LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w22, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	mov	x1, x22
	mov	x2, x24
	bl	_HeapTupleSatisfiesVisibility
	mov	x20, x0
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x24
	mov	x4, x22
	bl	_CheckForSerializableConflictOut
	cbnz	w20, LBB0_24
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x9, _RecentGlobalXmin@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RecentGlobalXmin@GOTPAGEOFF]
	cbz	x19, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x9]
	mov	x0, x21
	bl	_HeapTupleIsSurelyDead
	cbnz	w0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x19]
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_HeapTupleIsHotUpdated
	cbz	x0, LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x21]
	bl	_ItemPointerGetBlockNumber
	cmp	x0, x26
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x21]
	bl	_ItemPointerGetOffsetNumber
	mov	x28, x0
	ldr	x0, [x21]
	bl	_HeapTupleHeaderGetUpdateXid
	mov	x20, x0
	mov	w22, #0
	b	LBB0_6
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_ItemIdIsRedirected
	mov	x8, x0
	mov	w0, #0
	cbz	w23, LBB0_4
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	x8, LBB0_4
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_ItemIdGetRedirect
	mov	x28, x0
	b	LBB0_6
LBB0_24:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x28
	bl	_ItemPointerSetOffsetNumber
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	mov	x1, x21
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_PredicateLockTuple
	cbz	x19, LBB0_26
; %bb.25:
	str	wzr, [x19]
LBB0_26:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_RecentGlobalXmin,4,2           ; @RecentGlobalXmin
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
.subsections_via_symbols
