	.file	"extr_i8254.c_create_pit_timer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"create pit timer, interval is %llu nsec\n"
	.align 8
.LC1:
	.string	"kvm: requested %lld ns i8254 timer period limited to %lld ns\n"
	.text
	.p2align 4
	.type	create_pit_timer, @function
create_pit_timer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, QWORD PTR 8[rdi]
	call	ioapic_in_kernel@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR 16[rbx]
	test	DWORD PTR KVM_PIT_FLAGS_HPET_LEGACY[rip], eax
	je	.L9
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR KVM_PIT_FREQ[rip]
	mov	esi, DWORD PTR NSEC_PER_SEC[rip]
	mov	edi, r12d
	lea	r13, 36[rbx]
	call	mul_u64_u32_div@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	mov	r12, rax
	call	pr_debug@PLT
	mov	rdi, r13
	call	hrtimer_cancel@PLT
	mov	rdi, rbx
	call	kthread_flush_work@PLT
	mov	QWORD PTR 24[rbx], r12
	mov	rdi, rbx
	mov	DWORD PTR 32[rbx], ebp
	call	kvm_pit_reset_reinject@PLT
	mov	eax, DWORD PTR 32[rbx]
	test	eax, eax
	je	.L3
	imul	rbp, QWORD PTR min_timer_period_us[rip], 1000
	mov	rsi, QWORD PTR 24[rbx]
	cmp	rsi, rbp
	jge	.L3
	mov	rdx, rbp
	lea	rdi, .LC1[rip]
	call	pr_info_ratelimited@PLT
	mov	QWORD PTR 24[rbx], rbp
.L3:
	xor	eax, eax
	mov	r14d, DWORD PTR HRTIMER_MODE_ABS[rip]
	call	ktime_get@PLT
	mov	rsi, r12
	mov	edi, eax
	call	ktime_add_ns@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 24
	mov	esi, eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	hrtimer_start@PLT
	.cfi_endproc
.LFE0:
	.size	create_pit_timer, .-create_pit_timer
	.comm	min_timer_period_us,8,8
	.comm	NSEC_PER_SEC,4,4
	.comm	KVM_PIT_FREQ,4,4
	.comm	KVM_PIT_FLAGS_HPET_LEGACY,4,4
	.comm	HRTIMER_MODE_ABS,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_i8254.c_create_pit_timer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"create pit timer, interval is %llu nsec\012\000"
	.align	2
.LC1:
	.ascii	"kvm: requested %lld ns i8254 timer period limited t"
	.ascii	"o %lld ns\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_pit_timer, %function
create_pit_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	mov	r6, r1
	mov	r5, r2
	bl	ioapic_in_kernel
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L12
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L12+4
	ldr	r2, .L12+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r6
	bl	mul_u64_u32_div
	mov	r6, r0
	add	r7, r4, #20
	mov	r1, r6
	ldr	r0, .L12+12
	bl	pr_debug
	mov	r0, r7
	bl	hrtimer_cancel
	mov	r0, r4
	bl	kthread_flush_work
	mov	r0, r4
	str	r6, [r4, #12]
	str	r5, [r4, #16]
	bl	kvm_pit_reset_reinject
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L12+16
	ldr	r1, [r4, #12]
	ldr	r2, [r3]
	rsb	r3, r2, r2, lsl #5
	add	r2, r2, r3, lsl #2
	cmp	r1, r2, lsl #3
	lsl	r5, r2, #3
	bge	.L3
	mov	r2, r5
	ldr	r0, .L12+20
	bl	pr_info_ratelimited
	str	r5, [r4, #12]
.L3:
	bl	ktime_get
	mov	r1, r6
	bl	ktime_add_ns
	ldr	r3, .L12+24
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	hrtimer_start
.L13:
	.align	2
.L12:
	.word	KVM_PIT_FLAGS_HPET_LEGACY
	.word	NSEC_PER_SEC
	.word	KVM_PIT_FREQ
	.word	.LC0
	.word	min_timer_period_us
	.word	.LC1
	.word	HRTIMER_MODE_ABS
	.size	create_pit_timer, .-create_pit_timer
	.comm	min_timer_period_us,8,8
	.comm	NSEC_PER_SEC,4,4
	.comm	KVM_PIT_FREQ,4,4
	.comm	KVM_PIT_FLAGS_HPET_LEGACY,4,4
	.comm	HRTIMER_MODE_ABS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
