	.file	"extr_timer.c_get_timer_masked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	get_timer_masked
	.type	get_timer_masked, @function
get_timer_masked:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR gd[rip]
	mov	edi, DWORD PTR READ_TIMER[rip]
	mov	r8d, DWORD PTR [rsi]
	mov	ecx, DWORD PTR 4[rsi]
	cmp	r8d, edi
	jg	.L2
	mov	eax, edi
	mov	DWORD PTR [rsi], edi
	sub	eax, r8d
	add	eax, ecx
	mov	DWORD PTR 4[rsi], eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR TIMER_CLOCK[rip]
	cdq
	idiv	DWORD PTR CONFIG_SYS_HZ[rip]
	mov	r9d, eax
	mov	eax, DWORD PTR TIMER_LOAD_VAL[rip]
	mov	DWORD PTR [rsi], edi
	cdq
	idiv	r9d
	sub	eax, r8d
	add	eax, edi
	add	eax, ecx
	mov	DWORD PTR 4[rsi], eax
	ret
	.cfi_endproc
.LFE0:
	.size	get_timer_masked, .-get_timer_masked
	.comm	gd,8,8
	.comm	TIMER_LOAD_VAL,4,4
	.comm	TIMER_CLOCK,4,4
	.comm	READ_TIMER,4,4
	.comm	CONFIG_SYS_HZ,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_timer.c_get_timer_masked.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	get_timer_masked
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_timer_masked, %function
get_timer_masked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L6
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L6+4
	ldr	r5, [r2]
	ldr	r6, [r3]
	ldr	r7, [r5]
	ldr	r4, [r5, #4]
	cmp	r7, r6
	suble	r0, r6, r7
	addle	r0, r0, r4
	ble	.L3
	ldr	r2, .L6+8
	ldr	r3, .L6+12
	ldr	r0, [r2]
	ldr	r1, [r3]
	bl	__aeabi_idiv
	ldr	r8, .L6+16
	mov	r1, r0
	ldr	r0, [r8]
	bl	__aeabi_idiv
	sub	r0, r0, r7
	add	r0, r0, r6
	add	r0, r0, r4
.L3:
	str	r0, [r5, #4]
	str	r6, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	gd
	.word	READ_TIMER
	.word	TIMER_CLOCK
	.word	CONFIG_SYS_HZ
	.word	TIMER_LOAD_VAL
	.size	get_timer_masked, .-get_timer_masked
	.comm	gd,4,4
	.comm	TIMER_LOAD_VAL,4,4
	.comm	TIMER_CLOCK,4,4
	.comm	READ_TIMER,4,4
	.comm	CONFIG_SYS_HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
