	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_lapic_sync_from_vapic      ## -- Begin function kvm_lapic_sync_from_vapic
	.p2align	4, 0x90
_kvm_lapic_sync_from_vapic:             ## @kvm_lapic_sync_from_vapic
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_KVM_APIC_PV_EOI_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_apic_sync_pv_eoi_from_guest
LBB0_2:
	movq	_KVM_APIC_CHECK_VAPIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	movq	(%rbx), %rsi
	leaq	-20(%rbp), %rdx
	movl	$4, %ecx
	callq	_kvm_read_guest_cached
	movq	(%rbx), %rdi
	movzbl	-20(%rbp), %esi
	callq	_apic_set_tpr
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_APIC_PV_EOI_PENDING,4,2    ## @KVM_APIC_PV_EOI_PENDING
	.comm	_KVM_APIC_CHECK_VAPIC,4,2       ## @KVM_APIC_CHECK_VAPIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_lapic_sync_from_vapic      ; -- Begin function kvm_lapic_sync_from_vapic
	.p2align	2
_kvm_lapic_sync_from_vapic:             ; @kvm_lapic_sync_from_vapic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _KVM_APIC_PV_EOI_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KVM_APIC_PV_EOI_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [x19]
	mov	x0, x19
	bl	_apic_sync_pv_eoi_from_guest
LBB0_2:
Lloh3:
	adrp	x8, _KVM_APIC_CHECK_VAPIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVM_APIC_CHECK_VAPIC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	ldr	x1, [x19]
	add	x2, sp, #12
	mov	w3, #4
	bl	_kvm_read_guest_cached
	ldr	x0, [x19]
	ldrb	w1, [sp, #12]
	bl	_apic_set_tpr
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_APIC_PV_EOI_PENDING,4,2    ; @KVM_APIC_PV_EOI_PENDING
	.comm	_KVM_APIC_CHECK_VAPIC,4,2       ; @KVM_APIC_CHECK_VAPIC
.subsections_via_symbols
