	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_nondeletable_pages
_count_nondeletable_pages:              ## @count_nondeletable_pages
	.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	%rsi, %rbx
	movl	%edi, %r12d
	callq	_INSTR_TIME_SET_CURRENT
	movl	(%rbx), %r14d
	movq	_PREFETCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	xorl	%edi, %edi
	testl	%ecx, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_StaticAssertStmt
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %r15d
	cmpl	%r15d, %r14d
	jle	LBB0_18
## %bb.1:
	movl	%r14d, %ecx
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %r13
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	(%r13), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vac_strategy@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %edi
	callq	_ReadBufferExtended
	movl	%eax, %r13d
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_LockBuffer
	movl	%r13d, %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_PageIsNew
	testq	%rax, %rax
	je	LBB0_12
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_UnlockReleaseBuffer
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r15d, %ecx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %r13
	jle	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movl	%ecx, %r15d
	testb	$31, %r15b
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_INSTR_TIME_SET_CURRENT
	callq	_INSTR_TIME_SUBTRACT
	callq	_INSTR_TIME_GET_MICROSEC
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movq	_VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_LockHasWaitersRelation
	testq	%rax, %rax
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	leal	-1(%r15), %edx
	cmpl	%r15d, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jl	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movq	_PREFETCH_SIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	andl	%edx, %r14d
	cmpl	%r15d, %r14d
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movl	%r12d, %edi
	movl	%ebx, %edx
	callq	_PrefetchBuffer
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	incl	%ebx
	cmpl	%r15d, %ebx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_PageIsEmpty
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %rcx
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	%rcx, %r12
	jg	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rbx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%eax, %edi
	callq	_ItemIdIsUsed
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%r12, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r12
	cmpq	%rbx, %rax
	jle	LBB0_15
	jmp	LBB0_17
LBB0_19:
	movl	%r13d, %edi
	callq	_UnlockReleaseBuffer
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_elevel@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 8(%rax)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_PREFETCH_SIZE,4,2              ## @PREFETCH_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prefetch size must be power of 2"

	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.comm	_VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL,4,2 ## @VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_elevel,4,2                     ## @elevel
L_.str.1:                               ## @.str.1
	.asciz	"\"%s\": suspending truncate due to conflicting lock request"

	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.comm	_vac_strategy,4,2               ## @vac_strategy
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.no_dead_strip	_count_nondeletable_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_nondeletable_pages
_count_nondeletable_pages:              ; @count_nondeletable_pages
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	bl	_INSTR_TIME_SET_CURRENT
	ldr	w22, [x19]
Lloh0:
	adrp	x8, _PREFETCH_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PREFETCH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	tst	w8, w9
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_StaticAssertStmt
	ldr	w21, [x19, #4]
	cmp	w22, w21
	b.le	LBB0_17
; %bb.1:
Lloh5:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh7:
	ldr	w28, [x8]
Lloh8:
	adrp	x27, _MAIN_FORKNUM@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MAIN_FORKNUM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
Lloh10:
	adrp	x8, _RBM_NORMAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RBM_NORMAL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _vac_strategy@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vac_strategy@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_ReadBufferExtended
	mov	x23, x0
Lloh16:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x23
	bl	_BufferGetPage
	mov	x24, x0
	bl	_PageIsNew
	cbz	x0, LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_UnlockReleaseBuffer
	ldr	w21, [x19, #4]
	cmp	w22, w21
	b.le	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	mov	x21, x22
	tst	w22, #0x1f
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_INSTR_TIME_SET_CURRENT
	bl	_INSTR_TIME_SUBTRACT
	bl	_INSTR_TIME_GET_MICROSEC
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
Lloh19:
	adrp	x10, _VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w8, w10
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockHasWaitersRelation
	cbnz	x0, LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	sub	w22, w21, #1
	cmp	w28, w21
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh25:
	adrp	x8, _PREFETCH_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PREFETCH_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w8, w8
	and	w28, w22, w8
	cmp	w28, w21
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x28
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x27]
	mov	x0, x20
	mov	x2, x23
	bl	_PrefetchBuffer
	bl	_CHECK_FOR_INTERRUPTS
	add	w23, w23, #1
	cmp	w23, w21
	b.lt	LBB0_10
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_PageIsEmpty
	cbnz	x0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_PageGetMaxOffsetNumber
Lloh28:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh30:
	ldr	x26, [x8]
	cmp	x26, x0
	b.gt	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x26
	bl	_PageGetItemId
	bl	_ItemIdIsUsed
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x26
	bl	_OffsetNumberNext
	mov	x26, x0
	cmp	x0, x25
	b.le	LBB0_14
	b	LBB0_3
LBB0_16:
	mov	x0, x23
	bl	_UnlockReleaseBuffer
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh31:
	adrp	x8, _elevel@GOTPAGE
Lloh32:
	ldr	x8, [x8, _elevel@GOTPAGEOFF]
Lloh33:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PREFETCH_SIZE,4,2              ; @PREFETCH_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prefetch size must be power of 2"

	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL,4,2 ; @VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_elevel,4,2                     ; @elevel
l_.str.1:                               ; @.str.1
	.asciz	"\"%s\": suspending truncate due to conflicting lock request"

	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.comm	_vac_strategy,4,2               ; @vac_strategy
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.no_dead_strip	_count_nondeletable_pages
.subsections_via_symbols
