	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virt_start_ap
_virt_start_ap:                         ## @virt_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_running_cpus@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_mp_ncpus@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rsi
	jge	LBB0_2
## %bb.1:
	incq	%rsi
	movq	%rsi, (%rdx)
	movl	(%rcx), %r14d
	movq	_mpentry@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pmap_kextract
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_psci_cpu_on
	movl	%eax, %ecx
	movq	_PSCI_RETVAL_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	sete	%al
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_running_cpus,8,3               ## @running_cpus
	.comm	_mp_ncpus,8,3                   ## @mp_ncpus
	.comm	_mpentry,8,3                    ## @mpentry
	.comm	_PSCI_RETVAL_SUCCESS,4,2        ## @PSCI_RETVAL_SUCCESS
	.no_dead_strip	_virt_start_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virt_start_ap
_virt_start_ap:                         ; @virt_start_ap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _running_cpus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _running_cpus@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _mp_ncpus@GOTPAGE
Lloh3:
	ldr	x10, [x10, _mp_ncpus@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_2
; %bb.1:
	mov	x19, x0
	add	x9, x9, #1
	str	x9, [x8]
	ldr	w20, [x3]
Lloh5:
	adrp	x8, _mpentry@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mpentry@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_pmap_kextract
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_psci_cpu_on
Lloh8:
	adrp	x8, _PSCI_RETVAL_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PSCI_RETVAL_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_running_cpus,8,3               ; @running_cpus
	.comm	_mp_ncpus,8,3                   ; @mp_ncpus
	.comm	_mpentry,8,3                    ; @mpentry
	.comm	_PSCI_RETVAL_SUCCESS,4,2        ; @PSCI_RETVAL_SUCCESS
	.no_dead_strip	_virt_start_ap
.subsections_via_symbols
