	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_pagestate
__bt_pagestate:                         ## @_bt_pagestate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$56, %edi
	callq	_palloc0
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	__bt_blnewpage
	movl	%eax, 48(%rbx)
	movslq	4(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r14)
	movq	%rax, 40(%rbx)
	movq	$0, 32(%rbx)
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, 16(%rbx)
	testq	%r15, %r15
	jle	LBB0_2
## %bb.1:
	movq	_BTREE_NONLEAF_FILLFACTOR@GOTPCREL(%rip), %rax
	movl	$100, %ecx
	subl	(%rax), %ecx
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movslq	%ecx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %edi
	movq	_BTREE_DEFAULT_FILLFACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RelationGetTargetPageFreeSpace
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movl	%eax, (%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_HIKEY,4,2                    ## @P_HIKEY
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_BTREE_NONLEAF_FILLFACTOR,4,2   ## @BTREE_NONLEAF_FILLFACTOR
	.comm	_BTREE_DEFAULT_FILLFACTOR,4,2   ## @BTREE_DEFAULT_FILLFACTOR
	.no_dead_strip	__bt_pagestate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_pagestate
__bt_pagestate:                         ; @_bt_pagestate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	mov	w0, #56
	bl	_palloc0
	mov	x19, x0
	mov	x0, x21
	bl	__bt_blnewpage
	str	w0, [x19, #48]
	ldrsw	x8, [x20, #4]
	add	w9, w8, #1
	str	w9, [x20, #4]
	stp	xzr, x8, [x19, #32]
Lloh0:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	x21, [x19, #16]
	cmp	x21, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BTREE_NONLEAF_FILLFACTOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTREE_NONLEAF_FILLFACTOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	w10, #100
	sub	w9, w10, w9
	mul	w8, w9, w8
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _BTREE_DEFAULT_FILLFACTOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTREE_DEFAULT_FILLFACTOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_RelationGetTargetPageFreeSpace
LBB0_3:
	str	w0, [x19]
	str	xzr, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_P_HIKEY,4,2                    ; @P_HIKEY
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_BTREE_NONLEAF_FILLFACTOR,4,2   ; @BTREE_NONLEAF_FILLFACTOR
	.comm	_BTREE_DEFAULT_FILLFACTOR,4,2   ; @BTREE_DEFAULT_FILLFACTOR
	.no_dead_strip	__bt_pagestate
.subsections_via_symbols
