	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapic_set_local_intr           ## -- Begin function lapic_set_local_intr
	.p2align	4, 0x90
_lapic_set_local_intr:                  ## @lapic_set_local_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$-1, %esi
	jl	LBB0_2
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_vm_get_maxcpus
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.3:
	cmpl	$-1, %ebx
	je	LBB0_4
## %bb.5:
	leaq	-36(%rbp), %rsi
	movl	%ebx, %edi
	callq	_CPU_SETOF
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_vm_active_cpus
	movl	%eax, -36(%rbp)
LBB0_6:
	leaq	-36(%rbp), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_CPU_FFS
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ebx
	decl	%ebx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_CPU_CLR
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vm_lapic
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_vlapic_trigger_lvt
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapic_set_local_intr           ; -- Begin function lapic_set_local_intr
	.p2align	2
_lapic_set_local_intr:                  ; @lapic_set_local_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cmn	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_vm_get_maxcpus
	cmp	w0, w21
	b.le	LBB0_4
; %bb.2:
	cmn	w21, #1
	b.eq	LBB0_6
; %bb.3:
	add	x1, sp, #12
	mov	x0, x21
	bl	_CPU_SETOF
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x0, x20
	bl	_vm_active_cpus
	str	w0, [sp, #12]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_CPU_FFS
	cbz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w21, w0, #1
	add	x1, sp, #12
	mov	x0, x21
	bl	_CPU_CLR
	mov	x0, x20
	mov	x1, x21
	bl	_vm_lapic
	mov	x1, x19
	bl	_vlapic_trigger_lvt
	cbz	w0, LBB0_7
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
