	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spinup_ap_realmode
_spinup_ap_realmode:                    ## @spinup_ap_realmode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	sarl	%cl, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$0, (%rdx)
	movq	_VM_REG_GUEST_RIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_vm_set_register
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_VM_REG_GUEST_CS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_get_desc
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movb	(%r12), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	movl	%eax, -52(%rbp)
	movl	(%r13), %edx
	movl	-48(%rbp), %r8d
	movl	-44(%rbp), %r9d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_vm_set_desc
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movb	(%r12), %cl
	shll	%cl, %ebx
	sarl	$4, %ebx
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	callq	_vm_set_register
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_VM_REG_GUEST_RIP,4,2           ## @VM_REG_GUEST_RIP
	.comm	_VM_REG_GUEST_CS,4,2            ## @VM_REG_GUEST_CS
	.no_dead_strip	_spinup_ap_realmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spinup_ap_realmode
_spinup_ap_realmode:                    ; @spinup_ap_realmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x21, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x21]
	asr	w22, w8, w9
	str	wzr, [x2]
Lloh2:
	adrp	x8, _VM_REG_GUEST_RIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VM_REG_GUEST_RIP@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_vm_set_register
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh5:
	adrp	x23, _VM_REG_GUEST_CS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _VM_REG_GUEST_CS@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x20
	mov	x1, x19
	bl	_vm_get_desc
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21]
	lsl	w3, w22, w8
	str	w3, [sp, #12]
	ldr	w2, [x23]
	ldp	w5, w4, [sp, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_vm_set_desc
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21]
	lsl	w8, w22, w8
	asr	w3, w8, #4
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_vm_set_register
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_VM_REG_GUEST_RIP,4,2           ; @VM_REG_GUEST_RIP
	.comm	_VM_REG_GUEST_CS,4,2            ; @VM_REG_GUEST_CS
	.no_dead_strip	_spinup_ap_realmode
.subsections_via_symbols
