	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlapic_process_eoi
_vlapic_process_eoi:                    ## @vlapic_process_eoi
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movl	112(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movl	$28, %r13d
	movl	$224, %r15d
	jmp	LBB0_2
LBB0_6:
	movl	96(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	$24, %r13d
	movl	$192, %r15d
	jmp	LBB0_2
LBB0_8:
	movl	80(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	$20, %r13d
	movl	$160, %r15d
	jmp	LBB0_2
LBB0_10:
	movl	64(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movl	$16, %r13d
	movl	$128, %r15d
	jmp	LBB0_2
LBB0_12:
	movl	48(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movl	$12, %r13d
	movl	$96, %r15d
	jmp	LBB0_2
LBB0_14:
	movl	32(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movl	$8, %r13d
	movl	$64, %r15d
	jmp	LBB0_2
LBB0_16:
	movl	16(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	movl	$4, %r13d
	movl	$32, %r15d
	jmp	LBB0_2
LBB0_18:
	movl	(%r12), %edi
	callq	_fls
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
LBB0_2:
	decl	%ebx
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	jg	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_4:
	movl	$-2, %eax
	movl	%ebx, %ecx
	roll	%cl, %eax
	andl	%eax, (%r12,%r13,4)
	addl	%ebx, %r15d
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %ecx
	callq	_VCPU_CTR1
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_VLAPIC_CTR_ISR
	decq	(%r14)
	movq	%r14, %rdi
	callq	_vlapic_update_ppr
	movl	4(%r12,%r13,4), %eax
	btl	%ebx, %eax
	jae	LBB0_21
## %bb.5:
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vioapic_process_eoi            ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	leaq	L_.str.3(%rip), %rdx
	callq	_VCPU_CTR0
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	movq	_VLAPIC_GRATUITOUS_EOI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmm_stat_incr                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid vlapic isrvec_stk_top %d"

L_.str.1:                               ## @.str.1
	.asciz	"EOI vector %d"

L_.str.2:                               ## @.str.2
	.asciz	"vlapic_process_eoi"

L_.str.3:                               ## @.str.3
	.asciz	"Gratuitous EOI"

	.comm	_VLAPIC_GRATUITOUS_EOI,4,2      ## @VLAPIC_GRATUITOUS_EOI
	.no_dead_strip	_vlapic_process_eoi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlapic_process_eoi
_vlapic_process_eoi:                    ; @vlapic_process_eoi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w0, [x20, #112]
	bl	_fls
	cbz	w0, LBB0_2
; %bb.1:
	mov	w21, #224
	mov	w22, #28
	b	LBB0_16
LBB0_2:
	ldr	w0, [x20, #96]
	bl	_fls
	cbz	w0, LBB0_4
; %bb.3:
	mov	w21, #192
	mov	w22, #24
	b	LBB0_16
LBB0_4:
	ldr	w0, [x20, #80]
	bl	_fls
	cbz	w0, LBB0_6
; %bb.5:
	mov	w21, #160
	mov	w22, #20
	b	LBB0_16
LBB0_6:
	ldr	w0, [x20, #64]
	bl	_fls
	cbz	w0, LBB0_8
; %bb.7:
	mov	w21, #128
	mov	w22, #16
	b	LBB0_16
LBB0_8:
	ldr	w0, [x20, #48]
	bl	_fls
	cbz	w0, LBB0_10
; %bb.9:
	mov	w21, #96
	mov	w22, #12
	b	LBB0_16
LBB0_10:
	ldr	w0, [x20, #32]
	bl	_fls
	cbz	w0, LBB0_12
; %bb.11:
	mov	w21, #64
	mov	w22, #8
	b	LBB0_16
LBB0_12:
	ldr	w0, [x20, #16]
	bl	_fls
	cbz	w0, LBB0_14
; %bb.13:
	mov	w21, #32
	mov	w22, #4
	b	LBB0_16
LBB0_14:
	ldr	w0, [x20]
	bl	_fls
	cbz	w0, LBB0_21
; %bb.15:
	mov	w21, #0
	mov	x22, #0
LBB0_16:
	add	x23, x20, #4
	sub	w24, w0, #1
	ldr	x1, [x19]
	cmp	x1, #0
	b.gt	LBB0_18
; %bb.17:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_18:
	mov	w8, #1
	lsl	w25, w8, w24
	lsl	x22, x22, #2
	ldr	w8, [x20, x22]
	bic	w8, w8, w25
	str	w8, [x20, x22]
	add	w20, w24, w21
	ldp	w1, w0, [x19, #8]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_VCPU_CTR1
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_VLAPIC_CTR_ISR
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	mov	x0, x19
	bl	_vlapic_update_ppr
	ldr	w8, [x23, x22]
	tst	w8, w25
	b.eq	LBB0_20
; %bb.19:
	ldp	w1, w0, [x19, #8]
	mov	x2, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vioapic_process_eoi
LBB0_20:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldp	w1, w0, [x19, #8]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_VCPU_CTR0
Lloh8:
	adrp	x8, _VLAPIC_GRATUITOUS_EOI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VLAPIC_GRATUITOUS_EOI@GOTPAGEOFF]
	ldp	w1, w0, [x19, #8]
Lloh10:
	ldr	w2, [x8]
	mov	w3, #1
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vmm_stat_incr
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid vlapic isrvec_stk_top %d"

l_.str.1:                               ; @.str.1
	.asciz	"EOI vector %d"

l_.str.2:                               ; @.str.2
	.asciz	"vlapic_process_eoi"

l_.str.3:                               ; @.str.3
	.asciz	"Gratuitous EOI"

	.comm	_VLAPIC_GRATUITOUS_EOI,4,2      ; @VLAPIC_GRATUITOUS_EOI
	.no_dead_strip	_vlapic_process_eoi
.subsections_via_symbols
