	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgstat_index_page
_pgstat_index_page:                     ## @pgstat_index_page
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_PageGetFreeSpace
	addl	%eax, 16(%r15)
	cmpq	%r14, %r12
	jg	LBB0_3
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_ItemIdIsDead
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	incl	4(%r15,%r14,8)
	movl	%r13d, %edi
	callq	_ItemIdGetLength
	addl	%eax, (%r15,%r14,8)
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	%r12, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r12
	cmpq	%r14, %rax
	jle	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pgstat_index_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgstat_index_page
_pgstat_index_page:                     ; @pgstat_index_page
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_PageGetFreeSpace
	ldr	w8, [x21, #16]
	add	w8, w8, w0
	str	w8, [x21, #16]
	cmp	x22, x19
	b.gt	LBB0_3
; %bb.1:
	mov	w24, #12
	mov	w25, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_PageGetItemId
	mov	x23, x0
	bl	_ItemIdIsDead
	cmp	x0, #0
	csel	x8, x25, x24, eq
	cset	w9, ne
	lsl	x26, x9, #3
	ldr	w9, [x21, x8]
	add	w9, w9, #1
	str	w9, [x21, x8]
	mov	x0, x23
	bl	_ItemIdGetLength
	ldr	w8, [x21, x26]
	add	w8, w8, w0
	str	w8, [x21, x26]
	mov	x0, x22
	bl	_OffsetNumberNext
	mov	x22, x0
	cmp	x0, x19
	b.le	LBB0_2
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pgstat_index_page
.subsections_via_symbols
