	.file	"extr_qd65xx.c_qd6580_compute_timing.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qd6580_compute_timing, @function
qd6580_compute_timing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, 50
	mov	r12d, esi
	mov	edx, 17
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	esi, 2
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR ide_vlb_clk[rip]
	test	ebx, ebx
	cmove	ebx, eax
	mov	eax, edi
	imul	eax, ebx
	imul	ebx, r12d
	movsx	rdi, eax
	sar	eax, 31
	imul	rdi, rdi, 274877907
	sar	rdi, 38
	sub	edi, eax
	add	edi, 1
	call	IDE_IN@PLT
	movsx	rdi, ebx
	sar	ebx, 31
	mov	edx, 15
	imul	rdi, rdi, 274877907
	mov	esi, 2
	mov	ebp, eax
	sar	rdi, 38
	sub	edi, ebx
	add	edi, 1
	call	IDE_IN@PLT
	mov	edx, 17
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	r8d, eax
	mov	eax, 15
	sub	edx, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	sub	eax, r8d
	pop	r12
	.cfi_def_cfa_offset 8
	sal	eax, 4
	or	eax, edx
	ret
	.cfi_endproc
.LFE0:
	.size	qd6580_compute_timing, .-qd6580_compute_timing
	.comm	ide_vlb_clk,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_qd65xx.c_qd6580_compute_timing.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qd6580_compute_timing, %function
qd6580_compute_timing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, r5, r6, lr}
	ldr	r4, [r3]
	ldr	r5, .L6+4
	cmp	r4, #0
	moveq	r4, #50
	mul	r0, r4, r0
	asr	r3, r0, #31
	smull	r2, r0, r5, r0
	rsb	r0, r3, r0, asr #6
	mov	r6, r1
	mov	r2, #17
	mov	r1, #2
	add	r0, r0, #1
	bl	IDE_IN
	mov	r3, r0
	mul	r4, r6, r4
	smull	r2, r0, r5, r4
	asr	r4, r4, #31
	rsb	r0, r4, r0, asr #6
	mov	r2, #15
	mov	r1, #2
	add	r0, r0, #1
	mov	r4, r3
	bl	IDE_IN
	rsb	r4, r4, #17
	rsb	r0, r0, #15
	orr	r0, r4, r0, lsl #4
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	ide_vlb_clk
	.word	274877907
	.size	qd6580_compute_timing, .-qd6580_compute_timing
	.comm	ide_vlb_clk,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
