	.file	"656073.c"
	.intel_syntax noprefix
	.text
	.globl	timeold_ms
	.bss
	.align 4
	.type	timeold_ms, @object
	.size	timeold_ms, 4
timeold_ms:
	.zero	4
	.globl	timenew_ms
	.align 4
	.type	timenew_ms, @object
	.size	timenew_ms, 4
timenew_ms:
	.zero	4
	.globl	count
	.data
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.long	-1
	.text
	.globl	getfps
	.type	getfps, @function
getfps:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	imul	esi, eax, 1000
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	add	eax, esi
	mov	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR count[rip]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR timeold_ms[rip], eax
	mov	eax, -1
	jmp	.L5
.L2:
	mov	edx, DWORD PTR count[rip]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 1
	jne	.L4
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR timenew_ms[rip], eax
	mov	eax, DWORD PTR timenew_ms[rip]
	mov	ecx, DWORD PTR timeold_ms[rip]
	sub	eax, ecx
	mov	edi, eax
	mov	eax, 1000
	cdq
	idiv	edi
	jmp	.L5
.L4:
	mov	eax, -1
.L5:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getfps, .-getfps
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"656073.c"
	.text
	.comm	timeold_ms,4,4
	.comm	timenew_ms,4,4
	.global	count
	.data
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.word	-1
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getfps
	.syntax unified
	.arm
	.fpu softvfp
	.type	getfps, %function
getfps:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+4
	str	r3, [r2]
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L7+8
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-20]
	ldr	r3, .L7+4
	ldr	r1, [r3]
	ldr	r3, .L7+12
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L2
	ldr	r2, .L7+16
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	mvn	r3, #0
	b	.L5
.L2:
	ldr	r3, .L7+4
	ldr	r1, [r3]
	ldr	r3, .L7+12
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #1
	bne	.L4
	ldr	r2, .L7+20
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r3, .L7+20
	ldr	r2, [r3]
	ldr	r3, .L7+16
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	mov	r0, #1000
	bl	__aeabi_idiv
	mov	r3, r0
	b	.L5
.L4:
	mvn	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	count
	.word	274877907
	.word	1431655766
	.word	timeold_ms
	.word	timenew_ms
	.size	getfps, .-getfps
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
