	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apic_set_eoi
_apic_set_eoi:                          ## @apic_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_apic_find_highest_isr
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_trace_kvm_eoi
	cmpl	$-1, %r14d
	je	LBB0_7
## %bb.1:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_apic_clear_isr
	movq	%rbx, %rdi
	callq	_apic_update_ppr
	movq	_APIC_SPIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_apic_get_reg
	movq	_APIC_SPIV_DIRECTED_EOI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_kvm_ioapic_handles_vector
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_APIC_TMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_apic_test_vector
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_IOAPIC_EDGE_TRIG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_IOAPIC_LEVEL_TRIG@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_kvm_ioapic_update_eoi
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_SPIV,4,2                  ## @APIC_SPIV
	.comm	_APIC_SPIV_DIRECTED_EOI,4,2     ## @APIC_SPIV_DIRECTED_EOI
	.comm	_APIC_TMR,8,3                   ## @APIC_TMR
	.comm	_IOAPIC_LEVEL_TRIG,4,2          ## @IOAPIC_LEVEL_TRIG
	.comm	_IOAPIC_EDGE_TRIG,4,2           ## @IOAPIC_EDGE_TRIG
	.no_dead_strip	_apic_set_eoi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apic_set_eoi
_apic_set_eoi:                          ; @apic_set_eoi
	.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	x20, x0
	bl	_apic_find_highest_isr
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_trace_kvm_eoi
	cmn	w19, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_apic_clear_isr
	mov	x0, x20
	bl	_apic_update_ppr
Lloh0:
	adrp	x8, _APIC_SPIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_SPIV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_apic_get_reg
Lloh3:
	adrp	x8, _APIC_SPIV_DIRECTED_EOI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APIC_SPIV_DIRECTED_EOI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_kvm_ioapic_handles_vector
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _APIC_TMR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APIC_TMR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_apic_test_vector
Lloh9:
	adrp	x8, _IOAPIC_EDGE_TRIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IOAPIC_EDGE_TRIG@GOTPAGEOFF]
Lloh11:
	adrp	x9, _IOAPIC_LEVEL_TRIG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IOAPIC_LEVEL_TRIG@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_kvm_ioapic_update_eoi
LBB0_4:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_SPIV,4,2                  ; @APIC_SPIV
	.comm	_APIC_SPIV_DIRECTED_EOI,4,2     ; @APIC_SPIV_DIRECTED_EOI
	.comm	_APIC_TMR,8,3                   ; @APIC_TMR
	.comm	_IOAPIC_LEVEL_TRIG,4,2          ; @IOAPIC_LEVEL_TRIG
	.comm	_IOAPIC_EDGE_TRIG,4,2           ; @IOAPIC_EDGE_TRIG
	.no_dead_strip	_apic_set_eoi
.subsections_via_symbols
