	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_deliver_intr            ## -- Begin function vlapic_deliver_intr
	.p2align	4, 0x90
_vlapic_deliver_intr:                   ## @vlapic_deliver_intr
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_IOART_DELFIXED@GOTPCREL(%rip), %rsi
	movq	_IOART_DELLOPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IOART_DELEXINT@GOTPCREL(%rip), %r12
	cmpl	%r8d, (%rsi)
	je	LBB0_3
## %bb.1:
	cmpl	%r13d, %eax
	je	LBB0_3
## %bb.2:
	cmpl	%r13d, (%r12)
	je	LBB0_3
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_CTR1                        ## TAILCALL
LBB0_3:
	xorl	%r8d, %r8d
	cmpl	%r13d, %eax
	sete	%r8b
	leaq	-52(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%r9d, %r9d
	callq	_vlapic_calcdest
	movq	%rbx, %rdi
	callq	_CPU_FFS
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	%eax, %r14d
	leaq	-52(%rbp), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_lapic_set_intr
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_CPU_FFS
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_CPU_CLR
	cmpl	%r13d, (%r12)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vm_inject_extint
	jmp	LBB0_8
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOART_DELFIXED,4,2             ## @IOART_DELFIXED
	.comm	_IOART_DELLOPRI,4,2             ## @IOART_DELLOPRI
	.comm	_IOART_DELEXINT,4,2             ## @IOART_DELEXINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vlapic intr invalid delmode %#x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_deliver_intr            ; -- Begin function vlapic_deliver_intr
	.p2align	2
_vlapic_deliver_intr:                   ; @vlapic_deliver_intr
	.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, x4
	mov	x21, x0
Lloh0:
	adrp	x8, _IOART_DELFIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOART_DELFIXED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _IOART_DELLOPRI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IOART_DELLOPRI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x24, _IOART_DELEXINT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IOART_DELEXINT@GOTPAGEOFF]
	ldr	w10, [x24]
	cmp	w9, w4
	ccmp	w8, w4, #4, ne
	ccmp	w10, w4, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x5
	mov	x22, x1
	cmp	w8, w19
	cset	w4, eq
	add	x1, sp, #12
	mov	x0, x21
	mov	w5, #0
	bl	_vlapic_calcdest
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x20
	mov	x3, x22
	bl	_lapic_set_intr
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_CPU_FFS
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w0, #1
	add	x1, sp, #12
	mov	x0, x23
	bl	_CPU_CLR
	ldr	w8, [x24]
	mov	x0, x21
	mov	x1, x23
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_vm_inject_extint
	b	LBB0_3
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	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
	b	_VM_CTR1
LBB0_7:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IOART_DELFIXED,4,2             ; @IOART_DELFIXED
	.comm	_IOART_DELLOPRI,4,2             ; @IOART_DELLOPRI
	.comm	_IOART_DELEXINT,4,2             ; @IOART_DELEXINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vlapic intr invalid delmode %#x"

.subsections_via_symbols
