	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_apic_accept_pic_intr       ## -- Begin function kvm_apic_accept_pic_intr
	.p2align	4, 0x90
_kvm_apic_accept_pic_intr:              ## @kvm_apic_accept_pic_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_APIC_LVT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_apic_get_reg
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_apic_hw_enabled
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	_APIC_LVT_MASKED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_GET_APIC_DELIVERY_MODE
	movq	_APIC_MODE_EXTINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, %eax
	cmovel	%eax, %ebx
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_LVT0,4,2                  ## @APIC_LVT0
	.comm	_APIC_LVT_MASKED,4,2            ## @APIC_LVT_MASKED
	.comm	_APIC_MODE_EXTINT,8,3           ## @APIC_MODE_EXTINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_apic_accept_pic_intr       ; -- Begin function kvm_apic_accept_pic_intr
	.p2align	2
_kvm_apic_accept_pic_intr:              ; @kvm_apic_accept_pic_intr
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _APIC_LVT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_LVT0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_apic_get_reg
	mov	x20, x0
	ldr	w0, [x19]
	bl	_apic_hw_enabled
	cmp	w0, #0
	cset	w19, eq
Lloh3:
	adrp	x8, _APIC_LVT_MASKED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APIC_LVT_MASKED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_GET_APIC_DELIVERY_MODE
Lloh6:
	adrp	x8, _APIC_MODE_EXTINT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APIC_MODE_EXTINT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	csinc	w19, w19, wzr, ne
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_LVT0,4,2                  ; @APIC_LVT0
	.comm	_APIC_LVT_MASKED,4,2            ; @APIC_LVT_MASKED
	.comm	_APIC_MODE_EXTINT,8,3           ; @APIC_MODE_EXTINT
.subsections_via_symbols
