	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mps3_bootstrap
_mps3_bootstrap:                        ## @mps3_bootstrap
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_mps3_table_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_moea64_early_bootstrap
	xorl	%edi, %edi
	callq	_lv1_destruct_virtual_address_space
	movq	_mps3_vas_id@GOTPCREL(%rip), %r12
	movabsq	$1733885856537640960, %rdx      ## imm = 0x1810000000000000
	leaq	-36(%rbp), %r8
	movl	$20, %edi
	movl	$2, %esi
	movq	%r12, %rcx
	callq	_lv1_construct_virtual_address_space
	movl	(%r12), %edi
	callq	_lv1_select_virtual_address_space
	movl	-36(%rbp), %eax
	sarl	$2, %eax
	movq	_moea64_pteg_count@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_moea64_mid_bootstrap
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_moea64_late_bootstrap
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mps3_table_lock,4,2            ## @mps3_table_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"page table"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_mps3_vas_id,4,2                ## @mps3_vas_id
	.comm	_moea64_pteg_count,4,2          ## @moea64_pteg_count
	.no_dead_strip	_mps3_bootstrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mps3_bootstrap
_mps3_bootstrap:                        ; @mps3_bootstrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, _mps3_table_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _mps3_table_lock@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_moea64_early_bootstrap
	mov	w0, #0
	bl	_lv1_destruct_virtual_address_space
Lloh7:
	adrp	x22, _mps3_vas_id@GOTPAGE
Lloh8:
	ldr	x22, [x22, _mps3_vas_id@GOTPAGEOFF]
	add	x4, sp, #12
	mov	w0, #20
	mov	w1, #2
	mov	x2, #1733885856537640960
	mov	x3, x22
	bl	_lv1_construct_virtual_address_space
	ldr	w0, [x22]
	bl	_lv1_select_virtual_address_space
	ldr	w8, [sp, #12]
	asr	w8, w8, #2
Lloh9:
	adrp	x9, _moea64_pteg_count@GOTPAGE
Lloh10:
	ldr	x9, [x9, _moea64_pteg_count@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_moea64_mid_bootstrap
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_moea64_late_bootstrap
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mps3_table_lock,4,2            ; @mps3_table_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"page table"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_mps3_vas_id,4,2                ; @mps3_vas_id
	.comm	_moea64_pteg_count,4,2          ; @moea64_pteg_count
	.no_dead_strip	_mps3_bootstrap
.subsections_via_symbols
