	.file	"extr_vmx.c_vmx_refresh_apicv_exec_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vmx_refresh_apicv_exec_ctrl, @function
vmx_refresh_apicv_exec_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_vmx@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	vmx_pin_based_exec_ctrl@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pin_controls_set@PLT
	xor	eax, eax
	call	cpu_has_secondary_exec_ctrls@PLT
	test	rax, rax
	jne	.L10
.L2:
	xor	eax, eax
	call	cpu_has_vmx_msr_bitmap@PLT
	test	rax, rax
	jne	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r12
	call	kvm_vcpu_apicv_active@PLT
	mov	esi, DWORD PTR SECONDARY_EXEC_APIC_REGISTER_VIRT[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY[rip]
	test	rax, rax
	je	.L3
	call	secondary_exec_controls_setbit@PLT
	xor	eax, eax
	call	cpu_has_vmx_msr_bitmap@PLT
	test	rax, rax
	je	.L1
.L11:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	vmx_update_msr_bitmap@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	secondary_exec_controls_clearbit@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vmx_refresh_apicv_exec_ctrl, .-vmx_refresh_apicv_exec_ctrl
	.comm	SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY,4,4
	.comm	SECONDARY_EXEC_APIC_REGISTER_VIRT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vmx.c_vmx_refresh_apicv_exec_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmx_refresh_apicv_exec_ctrl, %function
vmx_refresh_apicv_exec_ctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	to_vmx
	mov	r4, r0
	bl	vmx_pin_based_exec_ctrl
	mov	r1, r0
	mov	r0, r4
	bl	pin_controls_set
	bl	cpu_has_secondary_exec_ctrls
	cmp	r0, #0
	bne	.L10
.L2:
	bl	cpu_has_vmx_msr_bitmap
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	vmx_update_msr_bitmap
.L10:
	mov	r0, r5
	bl	kvm_vcpu_apicv_active
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	cmp	r0, #0
	orr	r1, r1, r3
	mov	r0, r4
	beq	.L3
	bl	secondary_exec_controls_setbit
	b	.L2
.L3:
	bl	secondary_exec_controls_clearbit
	b	.L2
.L12:
	.align	2
.L11:
	.word	SECONDARY_EXEC_APIC_REGISTER_VIRT
	.word	SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY
	.size	vmx_refresh_apicv_exec_ctrl, .-vmx_refresh_apicv_exec_ctrl
	.comm	SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY,4,4
	.comm	SECONDARY_EXEC_APIC_REGISTER_VIRT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
