	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MTX_SPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ap_boot_mtx@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_mp_ncpus@GOTPCREL(%rip), %r14
	cmpl	$2, (%r14)
	jl	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	movq	_M_ZERO@GOTPCREL(%rip), %r13
	movq	_dpcpu@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DPCPU_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	orl	(%r12), %esi
	callq	_kmem_malloc
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_dcache_wbinv_poc_all
	xorl	%eax, %eax
	callq	_platform_mp_start_ap
	xorl	%eax, %eax
	callq	_check_ap
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:
	leaq	L_str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_4:
	cmpl	$2, (%r14)
	jl	LBB0_7
## %bb.5:
	movq	%r14, %r15
	movl	$1, %ebx
	movq	_all_cpus@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_CPU_SET
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ap_boot_mtx,4,2                ## @ap_boot_mtx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ap boot"

	.comm	_MTX_SPIN,4,2                   ## @MTX_SPIN
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.comm	_DPCPU_SIZE,4,2                 ## @DPCPU_SIZE
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_dpcpu,8,3                      ## @dpcpu
	.comm	_all_cpus,4,2                   ## @all_cpus
L_str:                                  ## @str
	.asciz	"WARNING: Some AP's failed to start"

.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _MTX_SPIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTX_SPIN@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, _ap_boot_mtx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ap_boot_mtx@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh7:
	adrp	x21, _mp_ncpus@GOTPAGE
Lloh8:
	ldr	x21, [x21, _mp_ncpus@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x19, #0
Lloh9:
	adrp	x20, _DPCPU_SIZE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _DPCPU_SIZE@GOTPAGEOFF]
Lloh11:
	adrp	x22, _M_WAITOK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _M_WAITOK@GOTPAGEOFF]
Lloh13:
	adrp	x23, _M_ZERO@GOTPAGE
Lloh14:
	ldr	x23, [x23, _M_ZERO@GOTPAGEOFF]
Lloh15:
	adrp	x24, _dpcpu@GOTPAGE
Lloh16:
	ldr	x24, [x24, _dpcpu@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
	bl	_kmem_malloc
	ldr	x8, [x24]
	str	x0, [x8, x19, lsl #3]
	add	x19, x19, #1
	ldrsw	x8, [x21]
	sub	x8, x8, #1
	cmp	x19, x8
	b.lt	LBB0_2
LBB0_3:
	bl	_dcache_wbinv_poc_all
	bl	_platform_mp_start_ap
	bl	_check_ap
	cbz	w0, LBB0_5
; %bb.4:
Lloh17:
	adrp	x0, l_str@PAGE
Lloh18:
	add	x0, x0, l_str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_puts
LBB0_5:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	mov	w19, #1
Lloh19:
	adrp	x20, _all_cpus@GOTPAGE
Lloh20:
	ldr	x20, [x20, _all_cpus@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_CPU_SET
	add	w19, w19, #1
	ldr	w8, [x21]
	cmp	w19, w8
	b.lt	LBB0_7
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ap_boot_mtx,4,2                ; @ap_boot_mtx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ap boot"

	.comm	_MTX_SPIN,4,2                   ; @MTX_SPIN
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.comm	_DPCPU_SIZE,4,2                 ; @DPCPU_SIZE
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_dpcpu,8,3                      ; @dpcpu
	.comm	_all_cpus,4,2                   ; @all_cpus
l_str:                                  ; @str
	.asciz	"WARNING: Some AP's failed to start"

.subsections_via_symbols
