	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_mp_start                   ## -- Begin function cpu_mp_start
	.p2align	4, 0x90
_cpu_mp_start:                          ## @cpu_mp_start
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-80(%rbp), %rdi
	callq	_platform_smp_get_bsp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	leaq	-56(%rbp), %rdi
	callq	_platform_smp_first_cpu
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MAXCPU@GOTPCREL(%rip), %r15
	movq	_all_cpus@GOTPCREL(%rip), %r12
	movq	_vm_ndomains@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %rbx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_printf
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_platform_smp_next_cpu
	testl	%eax, %eax
	jne	LBB0_1
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %esi
	cmpl	(%r15), %esi
	jge	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, %edi
	movq	%r12, %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-56(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	cmpl	$2, (%r13)
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-52(%rbp), %r14d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	-56(%rbp), %rdi
	cmpl	-80(%rbp), %edi
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_pcpup@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rdi, (%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	___pcpu@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rdi,2), %r13
	leaq	(%rax,%r13,8), %rbx
	movl	%r14d, %edi
	callq	_DOMAINSET_PREF
	movq	_DPCPU_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%eax, %edi
	callq	_kmem_malloc_domainset
	movq	%r12, %r15
	movq	%rax, %r12
	movslq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$24, %edx
	callq	_pcpu_init
	movslq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %r12
	callq	_dpcpu_init
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdi
	movq	_vm_ndomains@GOTPCREL(%rip), %r13
	movq	_MAXCPU@GOTPCREL(%rip), %r15
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, 12(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 16(%rbx)
	movslq	%r14d, %rsi
	shlq	$2, %rsi
	movq	_cpuset_domain@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_CPU_SET
	movslq	12(%rbx), %rsi
	xorl	%edi, %edi
	movq	_MAXMEMDOM@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	seta	%dil
	callq	_KASSERT
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_CPU_SET
	leaq	-56(%rbp), %rbx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Don't know BSP"

	.comm	_MAXCPU,4,2                     ## @MAXCPU
L_.str.1:                               ## @.str.1
	.asciz	"SMP: cpu%d: skipped -- ID out of range\n"

	.comm	_all_cpus,4,2                   ## @all_cpus
L_.str.2:                               ## @.str.2
	.asciz	"SMP: cpu%d: skipped - duplicate ID\n"

	.comm	_vm_ndomains,4,2                ## @vm_ndomains
	.comm	___pcpu,8,3                     ## @__pcpu
	.comm	_DPCPU_SIZE,4,2                 ## @DPCPU_SIZE
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_pcpup,8,3                      ## @pcpup
	.comm	_cpuset_domain,8,3              ## @cpuset_domain
	.comm	_MAXMEMDOM,8,3                  ## @MAXMEMDOM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_mp_start                   ; -- Begin function cpu_mp_start
	.p2align	2
_cpu_mp_start:                          ; @cpu_mp_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	add	x0, sp, #16
	bl	_platform_smp_get_bsp
	cmp	w0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, sp
	bl	_platform_smp_first_cpu
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
Lloh2:
	adrp	x25, _MAXCPU@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MAXCPU@GOTPAGEOFF]
Lloh4:
	adrp	x19, _all_cpus@GOTPAGE
Lloh5:
	ldr	x19, [x19, _all_cpus@GOTPAGEOFF]
Lloh6:
	adrp	x26, _vm_ndomains@GOTPAGE
Lloh7:
	ldr	x26, [x26, _vm_ndomains@GOTPAGEOFF]
Lloh8:
	adrp	x27, _cpuset_domain@GOTPAGE
Lloh9:
	ldr	x27, [x27, _cpuset_domain@GOTPAGEOFF]
Lloh10:
	adrp	x28, _MAXMEMDOM@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MAXMEMDOM@GOTPAGEOFF]
Lloh12:
	adrp	x20, l_.str.2@PAGE
Lloh13:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh14:
	adrp	x21, l_.str.1@PAGE
Lloh15:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_printf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, sp
	bl	_platform_smp_next_cpu
	cbnz	w0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp]
	ldr	w8, [x25]
	cmp	w1, w8
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x1
	mov	x1, x19
	bl	_CPU_ISSET
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [sp]
	mov	x0, x20
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
	ldp	w0, w9, [sp]
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	cmp	w8, #1
	csel	w23, w9, wzr, gt
	ldr	w8, [sp, #16]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x8, _pcpup@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pcpup@GOTPAGEOFF]
Lloh18:
	ldr	x22, [x8]
	str	x0, [x22]
	mov	w8, #1
	str	w8, [x22, #8]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh19:
	adrp	x8, ___pcpu@GOTPAGE
Lloh20:
	ldr	x8, [x8, ___pcpu@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x22, x0, x9, x8
	mov	x0, x23
	bl	_DOMAINSET_PREF
Lloh22:
	adrp	x8, _DPCPU_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DPCPU_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh29:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_kmem_malloc_domainset
	mov	x24, x0
	ldrsw	x1, [sp]
	mov	x0, x22
	mov	w2, #24
	bl	_pcpu_init
	ldrsw	x1, [sp]
	mov	x0, x24
	bl	_dpcpu_init
	ldr	x0, [x22]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #8]
	stp	w23, w8, [x22, #12]
	ldr	x8, [x27]
	add	x1, x8, w23, sxtw #2
	bl	_CPU_SET
	ldrsw	x1, [x22, #12]
	ldr	x8, [x28]
	cmp	x8, x1
	cset	w0, hi
	bl	_KASSERT
	ldr	x0, [x22]
	mov	x1, x19
	bl	_CPU_SET
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Don't know BSP"

	.comm	_MAXCPU,4,2                     ; @MAXCPU
l_.str.1:                               ; @.str.1
	.asciz	"SMP: cpu%d: skipped -- ID out of range\n"

	.comm	_all_cpus,4,2                   ; @all_cpus
l_.str.2:                               ; @.str.2
	.asciz	"SMP: cpu%d: skipped - duplicate ID\n"

	.comm	_vm_ndomains,4,2                ; @vm_ndomains
	.comm	___pcpu,8,3                     ; @__pcpu
	.comm	_DPCPU_SIZE,4,2                 ; @DPCPU_SIZE
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_pcpup,8,3                      ; @pcpup
	.comm	_cpuset_domain,8,3              ; @cpuset_domain
	.comm	_MAXMEMDOM,8,3                  ; @MAXMEMDOM
.subsections_via_symbols
