	.file	"extr_timer.c_timer_read32.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	timer_read32
	.type	timer_read32, @function
timer_read32:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	chVTGetSystemTime@PLT
	mov	rbx, rax
	sub	rbx, QWORD PTR last_systime[rip]
	mov	rbp, rax
	add	rbx, QWORD PTR overflow[rip]
	mov	rdi, rbx
	call	ST2MS@PLT
	add	QWORD PTR current_time_ms[rip], rax
	mov	rdi, rax
	call	MS2ST@PLT
	mov	QWORD PTR last_systime[rip], rbp
	sub	rbx, rax
	mov	rax, QWORD PTR current_time_ms[rip]
	mov	QWORD PTR overflow[rip], rbx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	timer_read32, .-timer_read32
	.comm	overflow,8,8
	.comm	last_systime,8,8
	.comm	current_time_ms,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_timer.c_timer_read32.c"
	.text
	.align	2
	.global	timer_read32
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_read32, %function
timer_read32:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	chVTGetSystemTime
	mov	r5, r0
	ldr	r8, .L4
	ldr	r7, .L4+4
	ldr	r4, [r8]
	ldr	r0, [r7]
	sub	r4, r5, r4
	add	r4, r4, r0
	mov	r0, r4
	bl	ST2MS
	ldr	r6, .L4+8
	ldr	r3, [r6]
	add	r3, r3, r0
	str	r3, [r6]
	bl	MS2ST
	sub	r4, r4, r0
	str	r5, [r8]
	ldr	r0, [r6]
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	last_systime
	.word	overflow
	.word	current_time_ms
	.size	timer_read32, .-timer_read32
	.comm	overflow,4,4
	.comm	last_systime,4,4
	.comm	current_time_ms,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
