	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetBTPageStatistics
_GetBTPageStatistics:                   ## @GetBTPageStatistics
	.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	%rdx, %rbx
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movslq	%eax, %r15
	movl	%eax, %edi
	callq	_PageGetMaxOffsetNumber
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_PageGetSpecialPointer
	movslq	%eax, %r12
	movl	%r14d, 56(%rbx)
	movq	(%r15), %rax
	movq	_SizeOfPageHeaderData@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 48(%rbx)
	movq	$0, (%rbx)
	movl	%r13d, %edi
	callq	_PageGetPageSize
	movl	%eax, 44(%rbx)
	movq	%r12, %rdi
	callq	_P_ISDELETED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$100, 8(%rbx)
	movl	12(%r12), %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_18
LBB0_2:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	%r12, %rdi
	callq	_P_IGNORE
	testq	%rax, %rax
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.3:
	movb	$101, 8(%rbx)
	jmp	LBB0_9
LBB0_4:
	movq	%r12, %rdi
	callq	_P_ISLEAF
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movb	$108, 8(%rbx)
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	callq	_P_ISROOT
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movb	$114, 8(%rbx)
	jmp	LBB0_9
LBB0_8:
	movb	$105, 8(%rbx)
LBB0_9:
	movl	20(%r12), %eax
	movl	%eax, 40(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 36(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 28(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 24(%rbx)
	movl	(%r12), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 20(%rbx)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%r12d, %r12d
	cmpl	%r14d, %r13d
	jle	LBB0_10
LBB0_15:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_PageGetFreeSpace
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 16(%rsi)
	movl	(%rsi), %ecx
	addl	4(%rsi), %ecx
	jle	LBB0_17
## %bb.16:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, 12(%rsi)
	jmp	LBB0_18
LBB0_10:
	incl	%r14d
	xorl	%r12d, %r12d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	%r15d, %r12d
	incl	%r13d
	cmpl	%r13d, %r14d
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_PageGetItemId
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	_IndexTupleSize
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_ItemIdIsDead
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	jmp	LBB0_14
LBB0_17:
	movl	$0, 12(%rsi)
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
	.comm	_SizeOfPageHeaderData,8,3       ## @SizeOfPageHeaderData
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.no_dead_strip	_GetBTPageStatistics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetBTPageStatistics
_GetBTPageStatistics:                   ; @GetBTPageStatistics
	.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, x2
	mov	x23, x0
	mov	x0, x1
	bl	_BufferGetPage
	mov	x20, x0
	sxtw	x24, w20
	bl	_PageGetMaxOffsetNumber
	mov	x21, x0
	mov	x0, x20
	bl	_PageGetSpecialPointer
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	str	w23, [x19, #56]
Lloh0:
	adrp	x8, _SizeOfPageHeaderData@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SizeOfPageHeaderData@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x9, x8
	str	x8, [x19, #48]
	str	xzr, [x19]
	mov	x0, x20
	bl	_PageGetPageSize
	str	w0, [x19, #44]
	mov	x0, x22
	bl	_P_ISDELETED
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #100
	strb	w8, [x19, #8]
	ldr	w8, [x22, #12]
	str	w8, [x19, #32]
	b	LBB0_19
LBB0_2:
	mov	x0, x22
	bl	_P_IGNORE
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #101
	b	LBB0_9
LBB0_4:
	mov	x0, x22
	bl	_P_ISLEAF
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #108
	b	LBB0_9
LBB0_6:
	mov	x0, x22
	bl	_P_ISROOT
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #114
	b	LBB0_9
LBB0_8:
	mov	w8, #105
LBB0_9:
	strb	w8, [x19, #8]
	ldr	d0, [x22, #16]
	stur	d0, [x19, #36]
	ldr	w8, [x22, #8]
	str	w8, [x19, #28]
	ldr	d0, [x22]
	stur	d0, [x19, #20]
Lloh3:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	cmp	w22, w21
	b.le	LBB0_13
; %bb.10:
	mov	w24, #0
LBB0_11:
	mov	x0, x20
	bl	_PageGetFreeSpace
	str	w0, [x19, #16]
	ldp	w9, w8, [x19]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	sdiv	w8, w24, w8
	str	w8, [x19, #12]
	b	LBB0_19
LBB0_13:
	mov	w24, #0
	add	w25, w21, #1
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w24, w24, w21
	add	w22, w22, #1
	cmp	w25, w22
	b.eq	LBB0_11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_PageGetItemId
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_PageGetItem
	bl	_IndexTupleSize
	mov	x21, x0
	mov	x0, x23
	bl	_ItemIdIsDead
	cbnz	w0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_15
LBB0_18:
	str	wzr, [x19, #12]
LBB0_19:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
	.comm	_SizeOfPageHeaderData,8,3       ; @SizeOfPageHeaderData
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.no_dead_strip	_GetBTPageStatistics
.subsections_via_symbols
