	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_get_root_tuples           ## -- Begin function heap_get_root_tuples
	.p2align	4, 0x90
_heap_get_root_tuples:                  ## @heap_get_root_tuples
	.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
	movl	%edi, %ebx
	movq	_MaxHeapTuplesPerPage@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_MemSet
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r13d
	jle	LBB0_1
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	callq	_OffsetNumberNext
	movl	%eax, %r13d
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_15
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_PageGetItemId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ItemIdIsUsed
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_ItemIdIsDead
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_ItemIdIsNormal
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleHeaderIsHeapOnly
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r13d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, -4(%rcx,%rax,4)
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderIsHotUpdated
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %r12d
	movq	%rbx, %rdi
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_ItemIdIsRedirected
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, %edi
	callq	_ItemIdGetRedirect
	movl	%eax, %r12d
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_HeapTupleHeaderGetUpdateXid
	movl	%eax, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_PageGetItemId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ItemIdIsNormal
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_HeapTupleHeaderGetXmin
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_TransactionIdEquals
	testl	%eax, %eax
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, -4(%rcx,%rax,4)
	movq	%r15, %rdi
	callq	_HeapTupleHeaderIsHotUpdated
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_HeapTupleHeaderIndicatesMovedPartitions
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r15, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %r12d
	movq	%r15, %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxHeapTuplesPerPage,4,2       ## @MaxHeapTuplesPerPage
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_get_root_tuples           ; -- Begin function heap_get_root_tuples
	.p2align	2
_heap_get_root_tuples:                  ; @heap_get_root_tuples
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MaxHeapTuplesPerPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MaxHeapTuplesPerPage@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x1
	mov	w1, #0
	bl	_MemSet
	mov	x0, x20
	bl	_PageGetMaxOffsetNumber
Lloh3:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	cmp	w22, w0
	b.le	LBB0_2
LBB0_1:
	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_2:
	mov	x21, x0
Lloh6:
	adrp	x26, _InvalidTransactionId@GOTPAGE
Lloh7:
	ldr	x26, [x26, _InvalidTransactionId@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_OffsetNumberNext
	mov	x22, x0
	cmp	w0, w21
	b.gt	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_PageGetItemId
	mov	x23, x0
	bl	_ItemIdIsUsed
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ItemIdIsDead
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ItemIdIsNormal
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_PageGetItem
	mov	x24, x0
	bl	_HeapTupleHeaderIsHeapOnly
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w22, #1
	str	w22, [x19, w8, sxtw #2]
	mov	x0, x24
	bl	_HeapTupleHeaderIsHotUpdated
	cbz	w0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_ItemPointerGetOffsetNumber
	mov	x23, x0
	mov	x0, x24
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ItemIdIsRedirected
	bl	_Assert
	mov	x0, x23
	bl	_ItemIdGetRedirect
	mov	x23, x0
	ldr	w24, [x26]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_HeapTupleHeaderGetUpdateXid
	mov	x24, x0
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_PageGetItemId
	mov	x25, x0
	bl	_ItemIdIsNormal
	cbz	x0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_PageGetItem
	mov	x25, x0
	mov	x0, x24
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_HeapTupleHeaderGetXmin
	mov	x1, x0
	mov	x0, x24
	bl	_TransactionIdEquals
	cbz	w0, LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w23, #1
	str	w22, [x19, w8, sxtw #2]
	mov	x0, x25
	bl	_HeapTupleHeaderIsHotUpdated
	cbz	w0, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_HeapTupleHeaderIndicatesMovedPartitions
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x25
	bl	_ItemPointerGetOffsetNumber
	mov	x23, x0
	mov	x0, x25
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxHeapTuplesPerPage,4,2       ; @MaxHeapTuplesPerPage
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
.subsections_via_symbols
