	.file	"extr_screen.c_Screen_DrawAtariSpeed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Screen_DrawAtariSpeed
	.type	Screen_DrawAtariSpeed, @function
Screen_DrawAtariSpeed:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR Screen_show_atari_speed[rip], 0
	je	.L1
	movapd	xmm2, xmm0
	subsd	xmm2, QWORD PTR last_time.1942[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	comisd	xmm2, QWORD PTR .LC2[rip]
	jb	.L3
	mov	edx, DWORD PTR Atari800_nframes[rip]
	pxor	xmm1, xmm1
	mov	eax, edx
	sub	eax, DWORD PTR last_updated.1941[rip]
	imul	eax, eax, 100
	cvtsi2sd	xmm1, eax
	mov	rax, QWORD PTR Atari800_TV_PAL[rip]
	cmp	QWORD PTR Atari800_tv_mode[rip], rax
	divsd	xmm1, xmm2
	movsd	xmm2, QWORD PTR .LC0[rip]
	je	.L5
	movsd	xmm2, QWORD PTR .LC1[rip]
.L5:
	mov	DWORD PTR last_updated.1941[rip], edx
	movsd	QWORD PTR last_time.1942[rip], xmm0
	divsd	xmm1, xmm2
	cvttsd2si	eax, xmm1
	mov	DWORD PTR percent_display.1940[rip], eax
.L3:
	mov	edx, DWORD PTR SMALLFONT_WIDTH[rip]
	mov	eax, DWORD PTR Screen_visible_y2[rip]
	sub	eax, DWORD PTR SMALLFONT_HEIGHT[rip]
	imul	eax, DWORD PTR Screen_WIDTH[rip]
	movsx	rcx, DWORD PTR Screen_visible_x1[rip]
	lea	edx, [rdx+rdx*4]
	mov	esi, DWORD PTR SMALLFONT_PERCENT[rip]
	movsx	rdx, edx
	add	rdx, rcx
	cdqe
	xor	ecx, ecx
	add	rax, rdx
	mov	rdx, QWORD PTR Screen_atari[rip]
	lea	rbx, [rdx+rax*4]
	mov	edx, 12
	mov	rdi, rbx
	call	SmallFont_DrawChar@PLT
	movsx	rax, DWORD PTR SMALLFONT_WIDTH[rip]
	mov	esi, DWORD PTR percent_display.1940[rip]
	xor	ecx, ecx
	mov	edx, 12
	sal	rax, 2
	sub	rbx, rax
	mov	rdi, rbx
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	SmallFont_DrawInt@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	Screen_DrawAtariSpeed, .-Screen_DrawAtariSpeed
	.data
	.align 4
	.type	percent_display.1940, @object
	.size	percent_display.1940, 4
percent_display.1940:
	.long	100
	.local	last_updated.1941
	.comm	last_updated.1941,4,4
	.local	last_time.1942
	.comm	last_time.1942,8,8
	.comm	Screen_visible_y2,4,4
	.comm	Screen_visible_x1,4,4
	.comm	Screen_show_atari_speed,8,8
	.comm	Screen_atari,8,8
	.comm	Screen_WIDTH,4,4
	.comm	SMALLFONT_WIDTH,4,4
	.comm	SMALLFONT_PERCENT,4,4
	.comm	SMALLFONT_HEIGHT,4,4
	.comm	Atari800_tv_mode,8,8
	.comm	Atari800_nframes,4,4
	.comm	Atari800_TV_PAL,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1078525952
	.align 8
.LC1:
	.long	0
	.long	1078853632
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.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_screen.c_Screen_DrawAtariSpeed.c"
	.text
	.global	__aeabi_dsub
	.global	__aeabi_dcmpge
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.align	2
	.global	Screen_DrawAtariSpeed
	.syntax unified
	.arm
	.fpu softvfp
	.type	Screen_DrawAtariSpeed, %function
Screen_DrawAtariSpeed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L12+4
	mov	r4, r0
	ldmia	r8, {r2-r3}
	mov	r5, r1
	bl	__aeabi_dsub
	mov	r2, #0
	ldr	r3, .L12+8
	mov	r6, r0
	mov	r7, r1
	bl	__aeabi_dcmpge
	cmp	r0, #0
	bne	.L7
	ldr	r5, .L12+12
.L3:
	ldr	r4, .L12+16
	ldr	ip, .L12+20
	ldr	r2, .L12+24
	ldr	r0, .L12+28
	ldr	r3, [r4]
	ldr	r1, .L12+32
	ldr	r0, [r0]
	ldr	ip, [ip]
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r3, r3, r3, lsl #2
	sub	r2, r2, r0
	add	r3, r3, ip
	mla	r3, r1, r2, r3
	ldr	r1, .L12+36
	ldr	r2, .L12+40
	ldr	r6, [r1]
	ldr	r1, [r2]
	add	r6, r6, r3, lsl #2
	mov	r0, r6
	mov	r3, #0
	mov	r2, #12
	bl	SmallFont_DrawChar
	ldr	r0, [r4]
	ldr	r1, [r5]
	sub	r0, r6, r0, lsl #2
	mov	r3, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r2, #12
	b	SmallFont_DrawInt
.L7:
	ldr	r2, .L12+44
	ldr	r3, [r8, #8]
	ldr	r9, [r2]
	sub	r3, r9, r3
	add	r3, r3, r3, lsl #2
	add	r3, r3, r3, lsl #2
	lsl	r0, r3, #2
	bl	__aeabi_i2d
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_ddiv
	ldr	r2, .L12+48
	ldr	r3, .L12+52
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	ldrne	r3, .L12+56
	mov	r2, #0
	ldreq	r3, .L12+60
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	stm	r8, {r4-r5}
	ldr	r5, .L12+12
	str	r9, [r8, #8]
	str	r0, [r5]
	b	.L3
.L13:
	.align	2
.L12:
	.word	Screen_show_atari_speed
	.word	.LANCHOR0
	.word	1071644672
	.word	.LANCHOR1
	.word	SMALLFONT_WIDTH
	.word	Screen_visible_x1
	.word	Screen_visible_y2
	.word	SMALLFONT_HEIGHT
	.word	Screen_WIDTH
	.word	Screen_atari
	.word	SMALLFONT_PERCENT
	.word	Atari800_nframes
	.word	Atari800_tv_mode
	.word	Atari800_TV_PAL
	.word	1078853632
	.word	1078525952
	.size	Screen_DrawAtariSpeed, .-Screen_DrawAtariSpeed
	.comm	Screen_visible_y2,4,4
	.comm	Screen_visible_x1,4,4
	.comm	Screen_show_atari_speed,4,4
	.comm	Screen_atari,4,4
	.comm	Screen_WIDTH,4,4
	.comm	SMALLFONT_WIDTH,4,4
	.comm	SMALLFONT_PERCENT,4,4
	.comm	SMALLFONT_HEIGHT,4,4
	.comm	Atari800_tv_mode,4,4
	.comm	Atari800_nframes,4,4
	.comm	Atari800_TV_PAL,4,4
	.data
	.align	2
	.set	.LANCHOR1,. + 0
	.type	percent_display.4224, %object
	.size	percent_display.4224, 4
percent_display.4224:
	.word	100
	.bss
	.align	3
	.set	.LANCHOR0,. + 0
	.type	last_time.4226, %object
	.size	last_time.4226, 8
last_time.4226:
	.space	8
	.type	last_updated.4225, %object
	.size	last_updated.4225, 4
last_updated.4225:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
