	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_sparc64_nmemreg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_sparc64_memreg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	movdqu	32(%rcx,%rdi,8), %xmm4
	movdqu	48(%rcx,%rdi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %bl
	je	LBB0_10
LBB0_9:
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rdx,8), %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	leal	1048575(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	sarl	$20, %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movslq	%ebx, %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_13
## %bb.14:
	cqto
	idivq	%rcx
	jmp	LBB0_15
LBB0_13:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:
	movq	_realmem@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_kmi@GOTPCREL(%rip), %rdi
	callq	_vm_ksubmap_init
	xorl	%eax, %eax
	callq	_bufinit
	xorl	%eax, %eax
	callq	_vm_pager_bufferinit
	movq	_shutdown_final@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sparc64_shutdown_final@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHUTDOWN_PRI_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_EVENTHANDLER_REGISTER
	xorl	%eax, %eax
	callq	_vm_free_count
	movslq	%eax, %rbx
	imulq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_vm_free_count
	movl	%eax, %ecx
	movslq	%eax, %rsi
	movq	(%r14), %rdi
	movq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_16
## %bb.17:
	movl	$1048576, %eax                  ## imm = 0x100000
	xorl	%edx, %edx
	idivq	%rdi
	movq	%rax, %rdi
	jmp	LBB0_18
LBB0_16:
	movl	$1048576, %eax                  ## imm = 0x100000
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %edi
LBB0_18:
	movq	%rsi, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_19
## %bb.20:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	%rax, %rdx
	jmp	LBB0_21
LBB0_19:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %edx
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.22:
	movq	_sparc64_model@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_23:
	movq	_ver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdpr
	movl	%eax, %ebx
	movq	_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movq	_curcpu@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cpu_identify                   ## TAILCALL
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %bl
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_sparc64_nmemreg,4,2            ## @sparc64_nmemreg
	.comm	_sparc64_memreg,8,3             ## @sparc64_memreg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"real memory  = %lu (%lu MB)\n"

	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_realmem,8,3                    ## @realmem
	.comm	_kmi,4,2                        ## @kmi
	.comm	_shutdown_final,4,2             ## @shutdown_final
	.comm	_sparc64_shutdown_final,4,2     ## @sparc64_shutdown_final
	.comm	_SHUTDOWN_PRI_LAST,4,2          ## @SHUTDOWN_PRI_LAST
L_.str.1:                               ## @.str.1
	.asciz	"avail memory = %lu (%lu MB)\n"

	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.2:                               ## @.str.2
	.asciz	"machine: %s\n"

	.comm	_sparc64_model,8,3              ## @sparc64_model
	.comm	_ver,4,2                        ## @ver
	.comm	_clock,4,2                      ## @clock
	.comm	_curcpu,4,2                     ## @curcpu
	.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, #48
	.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
Lloh0:
	adrp	x8, _sparc64_nmemreg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sparc64_nmemreg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _sparc64_memreg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sparc64_memreg@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w19, #0
	b	LBB0_7
LBB0_3:
	mov	w19, #0
	b	LBB0_9
LBB0_4:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w19, s0
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w19, w19, w10
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w8, #1048575
	add	w8, w19, w8
	cmp	w19, #0
	csel	w8, w8, w19, lt
	asr	w8, w8, #20
	stp	x19, x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh8:
	adrp	x20, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PAGE_SIZE@GOTPAGEOFF]
	sxtw	x8, w19
	ldr	x9, [x20]
	sdiv	x8, x8, x9
Lloh10:
	adrp	x9, _realmem@GOTPAGE
Lloh11:
	ldr	x9, [x9, _realmem@GOTPAGEOFF]
Lloh12:
	str	x8, [x9]
Lloh13:
	adrp	x0, _kmi@GOTPAGE
Lloh14:
	ldr	x0, [x0, _kmi@GOTPAGEOFF]
	bl	_vm_ksubmap_init
	bl	_bufinit
	bl	_vm_pager_bufferinit
Lloh15:
	adrp	x8, _shutdown_final@GOTPAGE
Lloh16:
	ldr	x8, [x8, _shutdown_final@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _sparc64_shutdown_final@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sparc64_shutdown_final@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _SHUTDOWN_PRI_LAST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SHUTDOWN_PRI_LAST@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x2, #0
	bl	_EVENTHANDLER_REGISTER
	bl	_vm_free_count
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x20]
	mul	x19, x9, x8
	bl	_vm_free_count
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x20]
	mov	w10, #1048576
	sdiv	x9, x10, x9
	sdiv	x8, x8, x9
	stp	x19, x8, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh26:
	adrp	x8, _bootverbose@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh29:
	adrp	x8, _sparc64_model@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sparc64_model@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_11:
Lloh34:
	adrp	x8, _ver@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ver@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_rdpr
	mov	x19, x0
Lloh37:
	adrp	x8, _clock@GOTPAGE
Lloh38:
	ldr	x8, [x8, _clock@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_PCPU_GET
	mov	x1, x0
Lloh40:
	adrp	x8, _curcpu@GOTPAGE
Lloh41:
	ldr	x8, [x8, _curcpu@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_cpu_identify
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_sparc64_nmemreg,4,2            ; @sparc64_nmemreg
	.comm	_sparc64_memreg,8,3             ; @sparc64_memreg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"real memory  = %lu (%lu MB)\n"

	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_realmem,8,3                    ; @realmem
	.comm	_kmi,4,2                        ; @kmi
	.comm	_shutdown_final,4,2             ; @shutdown_final
	.comm	_sparc64_shutdown_final,4,2     ; @sparc64_shutdown_final
	.comm	_SHUTDOWN_PRI_LAST,4,2          ; @SHUTDOWN_PRI_LAST
l_.str.1:                               ; @.str.1
	.asciz	"avail memory = %lu (%lu MB)\n"

	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.2:                               ; @.str.2
	.asciz	"machine: %s\n"

	.comm	_sparc64_model,8,3              ; @sparc64_model
	.comm	_ver,4,2                        ; @ver
	.comm	_clock,4,2                      ; @clock
	.comm	_curcpu,4,2                     ; @curcpu
	.no_dead_strip	_cpu_startup
.subsections_via_symbols
