	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_mc_mp_start_ap
_aw_mc_mp_start_ap:                     ## @aw_mc_mp_start_ap
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_mp_ncpus@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	$5, (%r13)
	setl	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	xorl	%eax, %eax
	callq	_dcache_wbinv_poc_all
	movq	_fdtbus_bs_tag@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CPUCFG_P_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_mpentry@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pmap_kextract
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_bus_space_write_4
	cmpl	$2, (%r13)
	jl	LBB0_3
## %bb.1:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_aw_mc_mp_start_cpu
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multiple clusters not yet supported"

	.comm	_fdtbus_bs_tag,4,2              ## @fdtbus_bs_tag
	.comm	_CPUCFG_P_REG0,4,2              ## @CPUCFG_P_REG0
	.comm	_mpentry,8,3                    ## @mpentry
	.no_dead_strip	_aw_mc_mp_start_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_mc_mp_start_ap
_aw_mc_mp_start_ap:                     ; @aw_mc_mp_start_ap
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _mp_ncpus@GOTPAGE
Lloh1:
	ldr	x24, [x24, _mp_ncpus@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #5
	cset	w0, lt
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	bl	_dcache_wbinv_poc_all
Lloh4:
	adrp	x8, _fdtbus_bs_tag@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fdtbus_bs_tag@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
Lloh7:
	adrp	x8, _CPUCFG_P_REG0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CPUCFG_P_REG0@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _mpentry@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mpentry@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_pmap_kextract
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_bus_space_write_4
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	mov	x4, x22
	bl	_aw_mc_mp_start_cpu
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_3:
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multiple clusters not yet supported"

	.comm	_fdtbus_bs_tag,4,2              ; @fdtbus_bs_tag
	.comm	_CPUCFG_P_REG0,4,2              ; @CPUCFG_P_REG0
	.comm	_mpentry,8,3                    ; @mpentry
	.no_dead_strip	_aw_mc_mp_start_ap
.subsections_via_symbols
