	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_intr_accepted           ## -- Begin function vlapic_intr_accepted
	.p2align	4, 0x90
_vlapic_intr_accepted:                  ## @vlapic_intr_accepted
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	24(%rbx), %r13
	leal	31(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$5, %eax
	shll	$2, %eax
	movslq	%eax, %r12
	leaq	(,%r12,4), %rdi
	addq	%r13, %rdi
	movl	$1, %r15d
	movl	%r14d, %ecx
	shll	%cl, %r15d
	movl	%r15d, %esi
	callq	_atomic_clear_int
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_VLAPIC_CTR_IRR
	orl	%r15d, 4(%r13,%r12,4)
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_VLAPIC_CTR_ISR
	movslq	(%rbx), %r15
	leal	1(%r15), %esi
	movl	%esi, (%rbx)
	movq	_ISRVEC_STK_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jl	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_3:
	movq	8(%rbx), %rax
	movl	%r14d, 4(%rax,%r15,4)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vlapic_update_ppr              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vlapic_intr_accepted"

	.comm	_ISRVEC_STK_SIZE,4,2            ## @ISRVEC_STK_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"isrvec_stk_top overflow %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlapic_intr_accepted           ; -- Begin function vlapic_intr_accepted
	.p2align	2
_vlapic_intr_accepted:                  ; @vlapic_intr_accepted
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x2, [x0, #16]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	ldr	x8, [x20, #24]
	add	w9, w19, #31
	cmp	w19, #0
	csel	w9, w9, w19, lt
	asr	w9, w9, #5
	lsl	w9, w9, #2
	add	x21, x8, w9, sxtw #2
	mov	w8, #1
	lsl	w22, w8, w19
	mov	x0, x21
	mov	x1, x22
	bl	_atomic_clear_int
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_VLAPIC_CTR_IRR
	ldr	w8, [x21, #4]
	orr	w8, w8, w22
	str	w8, [x21, #4]
	mov	x0, x20
	mov	x1, x23
	bl	_VLAPIC_CTR_ISR
	ldrsw	x8, [x20]
	add	x21, x8, #1
	str	w21, [x20]
Lloh2:
	adrp	x8, _ISRVEC_STK_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISRVEC_STK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_panic
LBB0_4:
	ldr	x8, [x20, #8]
	str	w19, [x8, x21, lsl #2]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vlapic_update_ppr
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vlapic_intr_accepted"

	.comm	_ISRVEC_STK_SIZE,4,2            ; @ISRVEC_STK_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"isrvec_stk_top overflow %d"

.subsections_via_symbols
