	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_vlapic_init
_vmx_vlapic_init:                       ## @vmx_vlapic_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_M_VLAPIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	16(%r14), %eax
	movl	%eax, 40(%rbx)
	movslq	%r15d, %rax
	shlq	$2, %rax
	movq	8(%r14), %rcx
	addq	%rax, %rcx
	movq	%rcx, 32(%rbx)
	addq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	%r14, (%rbx)
	movq	_virtual_interrupt_delivery@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_vmx_set_intr_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_vmx_pending_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_vmx_intr_accepted@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_vmx_set_tmr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_vmx_enable_x2apic_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	_posted_interrupts@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_vmx_post_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_vlapic_init
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VLAPIC,4,2                   ## @M_VLAPIC
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_virtual_interrupt_delivery,8,3 ## @virtual_interrupt_delivery
	.comm	_vmx_set_intr_ready,4,2         ## @vmx_set_intr_ready
	.comm	_vmx_pending_intr,4,2           ## @vmx_pending_intr
	.comm	_vmx_intr_accepted,4,2          ## @vmx_intr_accepted
	.comm	_vmx_set_tmr,4,2                ## @vmx_set_tmr
	.comm	_vmx_enable_x2apic_mode,4,2     ## @vmx_enable_x2apic_mode
	.comm	_posted_interrupts,8,3          ## @posted_interrupts
	.comm	_vmx_post_intr,4,2              ## @vmx_post_intr
	.no_dead_strip	_vmx_vlapic_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_vlapic_init
_vmx_vlapic_init:                       ; @vmx_vlapic_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _M_VLAPIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_VLAPIC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #16
	bl	_malloc
	mov	x19, x0
	ldr	w8, [x21, #16]
	str	w8, [x0, #40]
	sbfiz	x8, x20, #2, #32
	ldp	x10, x9, [x21]
	add	x9, x9, x8
	str	x9, [x0, #32]
	add	x8, x10, x8
	stp	x21, x8, [x0]
Lloh9:
	adrp	x8, _virtual_interrupt_delivery@GOTPAGE
Lloh10:
	ldr	x8, [x8, _virtual_interrupt_delivery@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _vmx_set_intr_ready@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vmx_set_intr_ready@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh15:
	adrp	x8, _vmx_pending_intr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vmx_pending_intr@GOTPAGEOFF]
Lloh17:
	adrp	x9, _vmx_intr_accepted@GOTPAGE
Lloh18:
	ldr	x9, [x9, _vmx_intr_accepted@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh21:
	adrp	x8, _vmx_set_tmr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _vmx_set_tmr@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _vmx_enable_x2apic_mode@GOTPAGE
Lloh25:
	ldr	x9, [x9, _vmx_enable_x2apic_mode@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_2:
Lloh27:
	adrp	x8, _posted_interrupts@GOTPAGE
Lloh28:
	ldr	x8, [x8, _posted_interrupts@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh30:
	adrp	x8, _vmx_post_intr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _vmx_post_intr@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_4:
	mov	x0, x19
	bl	_vlapic_init
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VLAPIC,4,2                   ; @M_VLAPIC
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_virtual_interrupt_delivery,8,3 ; @virtual_interrupt_delivery
	.comm	_vmx_set_intr_ready,4,2         ; @vmx_set_intr_ready
	.comm	_vmx_pending_intr,4,2           ; @vmx_pending_intr
	.comm	_vmx_intr_accepted,4,2          ; @vmx_intr_accepted
	.comm	_vmx_set_tmr,4,2                ; @vmx_set_tmr
	.comm	_vmx_enable_x2apic_mode,4,2     ; @vmx_enable_x2apic_mode
	.comm	_posted_interrupts,8,3          ; @posted_interrupts
	.comm	_vmx_post_intr,4,2              ; @vmx_post_intr
	.no_dead_strip	_vmx_vlapic_init
.subsections_via_symbols
