	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heapam_scan_bitmap_next_block
_heapam_scan_bitmap_next_block:         ## @heapam_scan_bitmap_next_block
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r15
	movq	$0, 40(%rdi)
	movl	$0, (%rdi)
	xorl	%eax, %eax
	cmpq	8(%rdi), %r15
	jge	LBB0_16
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	movq	(%r14), %rsi
	movq	%r15, %rdx
	callq	_ReleaseAndReadBuffer
	movl	%eax, %r12d
	movl	%eax, 24(%r14)
	movq	%r15, 32(%r14)
	movl	8(%r14), %r13d
	movq	(%r14), %rdi
	movl	%eax, %esi
	callq	_heap_page_prune_opt
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockBuffer
	movq	8(%rbx), %rax
	testq	%rax, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	js	LBB0_8
## %bb.2:
	je	LBB0_3
## %bb.4:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	leaq	-108(%rbp), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	%r15, 8(%rbx)
	jle	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rdx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ItemPointerSet
	movq	(%r14), %rsi
	movl	$1, (%rsp)
	movq	%r13, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	leaq	-88(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_heap_hot_search_buffer
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	16(%r14), %rcx
	movslq	%r12d, %rdx
	incl	%r12d
	movq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_7
LBB0_8:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_BufferGetPage
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PageGetMaxOffsetNumber
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	xorl	%r12d, %r12d
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpq	%rax, %r13
	jg	LBB0_15
## %bb.9:
	xorl	%r12d, %r12d
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	-88(%rbp), %rdx
	movq	(%r14), %rsi
	movl	%ebx, %edi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_CheckForSerializableConflictOut
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r13
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	jg	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_PageGetItemId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ItemIdIsNormal
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_PageGetItem
	movq	%rax, -72(%rbp)
	movl	%ebx, %edi
	callq	_ItemIdGetLength
	movl	%eax, -80(%rbp)
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_ItemPointerSet
	movq	%rbx, %rdi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_HeapTupleSatisfiesVisibility
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r14), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	incl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, (%rax,%rcx,8)
	movq	(%r14), %rdi
	leaq	-88(%rbp), %rsi
	movl	%r12d, %edx
	callq	_PredicateLockTuple
	jmp	LBB0_13
LBB0_3:
	xorl	%r12d, %r12d
LBB0_15:
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_LockBuffer
	movq	_MaxHeapTuplesPerPage@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r12d
	setle	%dil
	callq	_Assert
	movl	%r12d, (%r14)
	xorl	%eax, %eax
	testl	%r12d, %r12d
	setg	%al
LBB0_16:
	addq	$88, %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	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_MaxHeapTuplesPerPage,4,2       ## @MaxHeapTuplesPerPage
	.no_dead_strip	_heapam_scan_bitmap_next_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heapam_scan_bitmap_next_block
_heapam_scan_bitmap_next_block:         ; @heapam_scan_bitmap_next_block
	.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, x0
	mov	w0, #0
	ldr	x20, [x1]
	str	xzr, [x19, #40]
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.ge	LBB0_10
; %bb.1:
	mov	x23, x1
	ldr	w0, [x19, #24]
	ldr	x1, [x19]
	mov	x2, x20
	bl	_ReleaseAndReadBuffer
	mov	x21, x0
	str	w0, [x19, #24]
	str	x20, [x19, #32]
	ldr	w22, [x19, #8]
	ldr	x0, [x19]
	mov	x1, x21
	bl	_heap_page_prune_opt
Lloh0:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LockBuffer
	ldr	x8, [x23, #8]
	tbnz	x8, #63, LBB0_7
; %bb.2:
	cbz	x8, LBB0_8
; %bb.3:
	mov	x24, #0
	mov	w27, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23, #8]
	cmp	x8, x24
	b.le	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	ldr	x2, [x8, x24, lsl #3]
	add	x0, sp, #28
	mov	x1, x20
	bl	_ItemPointerSet
	ldr	x1, [x19]
	add	x0, sp, #28
	mov	x4, sp
	mov	x2, x21
	mov	x3, x22
	mov	x5, #0
	mov	w6, #1
	bl	_heap_hot_search_buffer
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #28
	bl	_ItemPointerGetOffsetNumber
	ldr	x8, [x19, #16]
	str	x0, [x8, w27, sxtw #3]
	add	w27, w27, #1
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	bl	_BufferGetPage
	mov	x23, x0
	bl	_PageGetMaxOffsetNumber
Lloh3:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	cmp	x25, x0
	b.le	LBB0_11
LBB0_8:
	mov	w27, #0
LBB0_9:
Lloh6:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LockBuffer
Lloh9:
	adrp	x8, _MaxHeapTuplesPerPage@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MaxHeapTuplesPerPage@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w27, w8
	cset	w0, le
	bl	_Assert
	str	w27, [x19]
	cmp	w27, #0
	cset	w0, gt
LBB0_10:
	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_11:
	mov	x24, x0
	mov	w27, #0
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x19]
	mov	x2, sp
	mov	x0, x26
	mov	x3, x21
	mov	x4, x22
	bl	_CheckForSerializableConflictOut
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x25
	bl	_OffsetNumberNext
	mov	x25, x0
	cmp	x0, x24
	b.gt	LBB0_9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_PageGetItemId
	mov	x26, x0
	bl	_ItemIdIsNormal
	cbz	w0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_PageGetItem
	str	x0, [sp, #16]
	mov	x0, x26
	bl	_ItemIdGetLength
	str	w0, [sp, #8]
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [sp, #4]
	mov	x0, sp
	mov	x1, x20
	mov	x2, x25
	bl	_ItemPointerSet
	mov	x0, sp
	mov	x1, x22
	mov	x2, x21
	bl	_HeapTupleSatisfiesVisibility
	mov	x26, x0
	cbz	w0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #16]
	add	w28, w27, #1
	str	x25, [x8, w27, sxtw #3]
	ldr	x0, [x19]
	mov	x1, sp
	mov	x2, x22
	bl	_PredicateLockTuple
	mov	x27, x28
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	_MaxHeapTuplesPerPage,4,2       ; @MaxHeapTuplesPerPage
	.no_dead_strip	_heapam_scan_bitmap_next_block
.subsections_via_symbols
