	.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	%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
	xorl	%eax, %eax
	callq	_decr_init
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	%eax, %edi
	callq	_cpu_setup
	movq	_physmem@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ptoa
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_ptoa
                                        ## kill: def $eax killed $eax def $rax
	leal	1048575(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$20, %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r14), %rax
	movq	_realmem@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_bootverbose@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_virtual_end@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_virtual_avail@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	leal	1048575(%rsi), %edx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	sarl	$20, %edx
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_phys_avail@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	leaq	L_.str.3(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%r13), %esi
	movl	%ecx, %ebx
	subl	%esi, %ebx
	decl	%ecx
	movl	%ebx, %eax
	cltd
	idivl	(%r12)
	movq	%r14, %rdi
	movl	%ecx, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	movq	24(%rax,%r13), %rcx
	addq	$16, %r13
	testq	%rcx, %rcx
	jne	LBB0_4
LBB0_5:
	movq	_kmi@GOTPCREL(%rip), %rdi
	callq	_vm_ksubmap_init
	xorl	%eax, %eax
	callq	_vm_free_count
	movl	%eax, %edi
	callq	_ptoa
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_vm_free_count
	movl	%eax, %edi
	callq	_ptoa
                                        ## kill: def $eax killed $eax def $rax
	leal	1048575(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$20, %edx
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_bufinit
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_pager_bufferinit            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cpuid,4,2                      ## @cpuid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"real memory  = %ju (%ju MB)\n"

	.comm	_physmem,8,3                    ## @physmem
	.comm	_realmem,8,3                    ## @realmem
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"available KVA = %zu (%zu MB)\n"

	.comm	_virtual_end,4,2                ## @virtual_end
	.comm	_virtual_avail,4,2              ## @virtual_avail
	.comm	_phys_avail,8,3                 ## @phys_avail
L_.str.3:                               ## @.str.3
	.asciz	"0x%09jx - 0x%09jx, %ju bytes (%ju pages)\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_kmi,4,2                        ## @kmi
L_.str.4:                               ## @.str.4
	.asciz	"avail memory = %ju (%ju MB)\n"

L_str:                                  ## @str
	.asciz	"Physical memory chunk(s):"

	.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_decr_init
Lloh0:
	adrp	x8, _cpuid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PCPU_GET
	bl	_cpu_setup
Lloh3:
	adrp	x21, _physmem@GOTPAGE
Lloh4:
	ldr	x21, [x21, _physmem@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_ptoa
	mov	x19, x0
	ldr	w0, [x21]
	bl	_ptoa
	mov	w20, #1048575
	add	w8, w0, w20
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #20
	stp	x19, x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _realmem@GOTPAGE
Lloh8:
	ldr	x9, [x9, _realmem@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
Lloh10:
	adrp	x19, _bootverbose@GOTPAGE
Lloh11:
	ldr	x19, [x19, _bootverbose@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
Lloh12:
	adrp	x8, _virtual_end@GOTPAGE
Lloh13:
	ldr	x8, [x8, _virtual_end@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _virtual_avail@GOTPAGE
Lloh16:
	ldr	x9, [x9, _virtual_avail@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	sub	w8, w8, w9
	add	w9, w8, w20
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #20
	stp	x8, x9, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.2:
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh22:
	adrp	x21, _phys_avail@GOTPAGE
Lloh23:
	ldr	x21, [x21, _phys_avail@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.3:
	mov	x22, #0
Lloh24:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh25:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
Lloh26:
	adrp	x19, l_.str.3@PAGE
Lloh27:
	add	x19, x19, l_.str.3@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x22]
	sub	x10, x9, x8
	sub	w9, w9, #1
	ldr	w11, [x23]
	sdiv	w11, w10, w11
	stp	x8, x9, [sp]
	stp	x10, x11, [sp, #16]
	mov	x0, x19
	bl	_printf
	ldr	x8, [x21]
	add	x9, x8, x22
	ldr	x9, [x9, #24]
	add	x22, x22, #16
	cbnz	x9, LBB0_4
LBB0_5:
Lloh28:
	adrp	x0, _kmi@GOTPAGE
Lloh29:
	ldr	x0, [x0, _kmi@GOTPAGEOFF]
	bl	_vm_ksubmap_init
	bl	_vm_free_count
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ptoa
	mov	x19, x0
	bl	_vm_free_count
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ptoa
	add	w8, w0, w20
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #20
	stp	x19, x8, [sp]
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	bl	_bufinit
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_vm_pager_bufferinit
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_cpuid,4,2                      ; @cpuid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"real memory  = %ju (%ju MB)\n"

	.comm	_physmem,8,3                    ; @physmem
	.comm	_realmem,8,3                    ; @realmem
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"available KVA = %zu (%zu MB)\n"

	.comm	_virtual_end,4,2                ; @virtual_end
	.comm	_virtual_avail,4,2              ; @virtual_avail
	.comm	_phys_avail,8,3                 ; @phys_avail
l_.str.3:                               ; @.str.3
	.asciz	"0x%09jx - 0x%09jx, %ju bytes (%ju pages)\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_kmi,4,2                        ; @kmi
l_.str.4:                               ; @.str.4
	.asciz	"avail memory = %ju (%ju MB)\n"

l_str:                                  ; @str
	.asciz	"Physical memory chunk(s):"

	.no_dead_strip	_cpu_startup
.subsections_via_symbols
