	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_startup
_cpu_startup:                           ## @cpu_startup
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_thread0@GOTPCREL(%rip), %r15
	movq	8(%r15), %r14
	xorl	%eax, %eax
	callq	_identify_arm_cpu
	movq	_kmi@GOTPCREL(%rip), %rdi
	callq	_vm_ksubmap_init
	movq	_realmem@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_arm32_ptob
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_arm32_ptob
	shrl	$20, %eax
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_printf
	xorl	%eax, %eax
	callq	_vm_free_count
	movl	%eax, %edi
	callq	_arm32_ptob
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_vm_free_count
	movl	%eax, %edi
	callq	_arm32_ptob
	shrl	$20, %eax
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_printf
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_arm_physmem_print_tables
	xorl	%eax, %eax
	callq	_devmap_print_table
LBB0_2:
	xorl	%eax, %eax
	callq	_bufinit
	xorl	%eax, %eax
	callq	_vm_pager_bufferinit
	movq	_USPACE_SVC_STACK_TOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r15), %rax
	movq	%rax, (%r14)
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_pmap_set_pcb_pagedir
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vector_page_setprot
	xorl	%eax, %eax
	callq	_pmap_postinit
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %rax
	movq	_VM_ALLOC_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_vm_page_alloc
	movq	_ARM_TP_ADDRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pmap_kenter_user
	movq	_ARM_RAS_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	movq	_ARM_RAS_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thread0,16,3                   ## @thread0
	.comm	_kmi,4,2                        ## @kmi
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"real memory  = %ju (%ju MB)\n"

	.comm	_realmem,4,2                    ## @realmem
L_.str.1:                               ## @.str.1
	.asciz	"avail memory = %ju (%ju MB)\n"

	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_USPACE_SVC_STACK_TOP,8,3       ## @USPACE_SVC_STACK_TOP
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_ZERO,4,2              ## @VM_ALLOC_ZERO
	.comm	_ARM_TP_ADDRESS,4,2             ## @ARM_TP_ADDRESS
	.comm	_ARM_RAS_START,8,3              ## @ARM_RAS_START
	.comm	_ARM_RAS_END,8,3                ## @ARM_RAS_END
	.no_dead_strip	_cpu_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_startup
_cpu_startup:                           ; @cpu_startup
	.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
Lloh0:
	adrp	x21, _thread0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _thread0@GOTPAGEOFF]
	ldr	x19, [x21, #8]
	bl	_identify_arm_cpu
Lloh2:
	adrp	x0, _kmi@GOTPAGE
Lloh3:
	ldr	x0, [x0, _kmi@GOTPAGEOFF]
	bl	_vm_ksubmap_init
Lloh4:
	adrp	x22, _realmem@GOTPAGE
Lloh5:
	ldr	x22, [x22, _realmem@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_arm32_ptob
	mov	x20, x0
	ldr	w0, [x22]
	bl	_arm32_ptob
	ubfx	x2, x0, #20, #12
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_printf
	bl	_vm_free_count
	bl	_arm32_ptob
	mov	x20, x0
	bl	_vm_free_count
	bl	_arm32_ptob
	ubfx	x2, x0, #20, #12
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_printf
Lloh10:
	adrp	x8, _bootverbose@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_arm_physmem_print_tables
	bl	_devmap_print_table
LBB0_2:
	bl	_bufinit
	bl	_vm_pager_bufferinit
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _USPACE_SVC_STACK_TOP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USPACE_SVC_STACK_TOP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19]
Lloh16:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh17:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, 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
	b	_pmap_set_pcb_pagedir
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_thread0,16,3                   ; @thread0
	.comm	_kmi,4,2                        ; @kmi
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"real memory  = %ju (%ju MB)\n"

	.comm	_realmem,4,2                    ; @realmem
l_.str.1:                               ; @.str.1
	.asciz	"avail memory = %ju (%ju MB)\n"

	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_USPACE_SVC_STACK_TOP,8,3       ; @USPACE_SVC_STACK_TOP
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_ARM_RAS_END,8,3                ; @ARM_RAS_END
	.comm	_ARM_RAS_START,8,3              ; @ARM_RAS_START
	.comm	_ARM_TP_ADDRESS,4,2             ; @ARM_TP_ADDRESS
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_ZERO,4,2              ; @VM_ALLOC_ZERO
	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.no_dead_strip	_cpu_startup
.subsections_via_symbols
