	.file	"extr_x86.c_kvm_arch_hardware_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_arch_hardware_setup
	.type	kvm_arch_hardware_setup, @function
kvm_arch_hardware_setup:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR kvm_x86_ops[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	call	[QWORD PTR [rdx]]
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR kvm_has_tsc_control[rip], 0
	jne	.L6
.L3:
	xor	eax, eax
	call	kvm_init_msr_list@PLT
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR tsc_khz[rip]
	mov	edi, DWORD PTR kvm_max_tsc_scaling_ratio[rip]
	call	__scale_tsc@PLT
	mov	edi, 2147483647
	mov	esi, eax
	call	min@PLT
	mov	rcx, QWORD PTR kvm_tsc_scaling_ratio_frac_bits[rip]
	mov	DWORD PTR kvm_max_guest_tsc_khz[rip], eax
	mov	eax, 1
	sal	rax, cl
	mov	QWORD PTR kvm_default_tsc_scaling_ratio[rip], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	kvm_arch_hardware_setup, .-kvm_arch_hardware_setup
	.comm	tsc_khz,4,4
	.comm	kvm_x86_ops,8,8
	.comm	kvm_tsc_scaling_ratio_frac_bits,8,8
	.comm	kvm_max_tsc_scaling_ratio,4,4
	.comm	kvm_max_guest_tsc_khz,4,4
	.comm	kvm_has_tsc_control,8,8
	.comm	kvm_default_tsc_scaling_ratio,8,8
	.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_x86.c_kvm_arch_hardware_setup.c"
	.text
	.align	2
	.global	kvm_arch_hardware_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_arch_hardware_setup, %function
kvm_arch_hardware_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, lr}
	ldr	r3, [r3]
	ldr	r3, [r3]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
.L3:
	bl	kvm_init_msr_list
.L1:
	mov	r0, r4
	pop	{r4, pc}
.L9:
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	__scale_tsc
	mov	r1, r0
	mvn	r0, #-2147483648
	bl	min
	mov	r3, #1
	ldr	r2, .L10+16
	ldr	lr, .L10+20
	ldr	r1, [r2]
	ldr	ip, .L10+24
	sub	r2, r1, #32
	lsl	r2, r3, r2
	str	r0, [lr]
	rsb	r0, r1, #32
	orr	r2, r2, r3, lsr r0
	lsl	r3, r3, r1
	str	r2, [ip, #4]
	str	r3, [ip]
	b	.L3
.L11:
	.align	2
.L10:
	.word	kvm_x86_ops
	.word	kvm_has_tsc_control
	.word	tsc_khz
	.word	kvm_max_tsc_scaling_ratio
	.word	kvm_tsc_scaling_ratio_frac_bits
	.word	kvm_max_guest_tsc_khz
	.word	kvm_default_tsc_scaling_ratio
	.size	kvm_arch_hardware_setup, .-kvm_arch_hardware_setup
	.comm	tsc_khz,4,4
	.comm	kvm_x86_ops,4,4
	.comm	kvm_tsc_scaling_ratio_frac_bits,8,8
	.comm	kvm_max_tsc_scaling_ratio,4,4
	.comm	kvm_max_guest_tsc_khz,4,4
	.comm	kvm_has_tsc_control,4,4
	.comm	kvm_default_tsc_scaling_ratio,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
