	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlapic_fire_lvt
_vlapic_fire_lvt:                       ## @vlapic_fire_lvt
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	(,%rsi,4), %rdi
	addq	8(%r15), %rdi
	callq	_atomic_load_acq_32
	movq	_APIC_LVT_M@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.1:
	movq	_APIC_LVT_DM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.2:
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_11
## %bb.4:
	movq	_APIC_LVT_VECTOR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$15, %eax
	jg	LBB0_6
## %bb.5:
	movq	_APIC_ESR_SEND_ILLEGAL_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_APIC_LVT_ERROR@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpq	%rbx, (%rax)
	sete	%dl
	movq	%r15, %rdi
	callq	_vlapic_set_error
	jmp	LBB0_11
LBB0_8:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_vm_inject_nmi
	jmp	LBB0_10
LBB0_9:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_vm_inject_extint
LBB0_10:
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vlapic_set_intr_ready
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movl	$1, %r14d
	movl	$1, %edx
	callq	_vcpu_notify_event
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_LVT_M,4,2                 ## @APIC_LVT_M
	.comm	_APIC_LVT_VECTOR,4,2            ## @APIC_LVT_VECTOR
	.comm	_APIC_LVT_DM,4,2                ## @APIC_LVT_DM
	.comm	_APIC_ESR_SEND_ILLEGAL_VECTOR,4,2 ## @APIC_ESR_SEND_ILLEGAL_VECTOR
	.comm	_APIC_LVT_ERROR,8,3             ## @APIC_LVT_ERROR
	.no_dead_strip	_vlapic_fire_lvt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlapic_fire_lvt
_vlapic_fire_lvt:                       ; @vlapic_fire_lvt
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x0, x8, x1, lsl #2
	bl	_atomic_load_acq_32
Lloh0:
	adrp	x8, _APIC_LVT_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_LVT_M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_1:
	mov	w19, #0
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _APIC_LVT_DM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APIC_LVT_DM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_1
; %bb.5:
Lloh6:
	adrp	x8, _APIC_LVT_VECTOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APIC_LVT_VECTOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w1, w8, w0
	cmp	w1, #15
	b.gt	LBB0_11
; %bb.6:
Lloh9:
	adrp	x8, _APIC_ESR_SEND_ILLEGAL_VECTOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APIC_ESR_SEND_ILLEGAL_VECTOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _APIC_LVT_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APIC_LVT_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w2, eq
	mov	x0, x19
	bl	_vlapic_set_error
	mov	w19, #0
	b	LBB0_10
LBB0_7:
	ldp	w1, w0, [x19]
	bl	_vm_inject_nmi
	b	LBB0_9
LBB0_8:
	ldp	w1, w0, [x19]
	bl	_vm_inject_extint
LBB0_9:
	mov	w19, #1
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	mov	w2, #0
	bl	_vlapic_set_intr_ready
	cbz	w0, LBB0_9
; %bb.12:
	ldp	w1, w0, [x19]
	mov	w19, #1
	mov	w2, #1
	bl	_vcpu_notify_event
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_LVT_M,4,2                 ; @APIC_LVT_M
	.comm	_APIC_LVT_VECTOR,4,2            ; @APIC_LVT_VECTOR
	.comm	_APIC_LVT_DM,4,2                ; @APIC_LVT_DM
	.comm	_APIC_ESR_SEND_ILLEGAL_VECTOR,4,2 ; @APIC_ESR_SEND_ILLEGAL_VECTOR
	.comm	_APIC_LVT_ERROR,8,3             ; @APIC_LVT_ERROR
	.no_dead_strip	_vlapic_fire_lvt
.subsections_via_symbols
