	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_apic_local_deliver         ## -- Begin function kvm_apic_local_deliver
	.p2align	4, 0x90
_kvm_apic_local_deliver:                ## @kvm_apic_local_deliver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_apic_get_reg
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_apic_hw_enabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_APIC_LVT_MASKED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_APIC_VECTOR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	movq	_APIC_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r14d, %esi
	movq	_APIC_LVT_LEVEL_TRIGGER@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___apic_accept_irq              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_LVT_MASKED,4,2            ## @APIC_LVT_MASKED
	.comm	_APIC_VECTOR_MASK,4,2           ## @APIC_VECTOR_MASK
	.comm	_APIC_MODE_MASK,4,2             ## @APIC_MODE_MASK
	.comm	_APIC_LVT_LEVEL_TRIGGER,4,2     ## @APIC_LVT_LEVEL_TRIGGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_apic_local_deliver         ; -- Begin function kvm_apic_local_deliver
	.p2align	2
_kvm_apic_local_deliver:                ; @kvm_apic_local_deliver
	.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	x19, x0
	bl	_apic_get_reg
	mov	x20, x0
	mov	x0, x19
	bl	_apic_hw_enabled
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _APIC_LVT_MASKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_LVT_MASKED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _APIC_VECTOR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APIC_VECTOR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _APIC_MODE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APIC_MODE_MASK@GOTPAGEOFF]
	and	w2, w8, w20
Lloh8:
	ldr	w8, [x9]
	and	w1, w8, w20
Lloh9:
	adrp	x8, _APIC_LVT_LEVEL_TRIGGER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APIC_LVT_LEVEL_TRIGGER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w4, w8, w20
	mov	x0, x19
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___apic_accept_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_LVT_MASKED,4,2            ; @APIC_LVT_MASKED
	.comm	_APIC_VECTOR_MASK,4,2           ; @APIC_VECTOR_MASK
	.comm	_APIC_MODE_MASK,4,2             ; @APIC_MODE_MASK
	.comm	_APIC_LVT_LEVEL_TRIGGER,4,2     ; @APIC_LVT_LEVEL_TRIGGER
.subsections_via_symbols
