	.file	"extr_timer.c_timer_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	timer_interrupt, @function
timer_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, timer_reg_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	spin_lock@PLT
	mov	edi, DWORD PTR TIMER_IRQSTAT_REG[rip]
	call	bcm_timer_readl@PLT
	mov	esi, DWORD PTR TIMER_IRQSTAT_REG[rip]
	mov	edi, eax
	mov	ebp, eax
	call	bcm_timer_writel@PLT
	lea	rdi, timer_reg_lock[rip]
	call	spin_unlock@PLT
	mov	eax, DWORD PTR BCM63XX_TIMER_COUNT[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	lea	r12, timer_data_lock[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, ebx
	call	TIMER_IRQSTAT_TIMER_CAUSE@PLT
	test	eax, ebp
	je	.L3
	mov	rdi, r12
	call	spin_lock@PLT
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR timer_data[rip]
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L11
	mov	edi, DWORD PTR [rax]
	call	rdx
.L11:
	mov	rdi, r12
	call	spin_unlock@PLT
.L3:
	add	rbx, 1
	cmp	DWORD PTR BCM63XX_TIMER_COUNT[rip], ebx
	jg	.L5
.L2:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	timer_interrupt, .-timer_interrupt
	.comm	timer_reg_lock,4,4
	.comm	timer_data_lock,4,4
	.comm	timer_data,8,8
	.comm	TIMER_IRQSTAT_REG,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BCM63XX_TIMER_COUNT,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_timer_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_interrupt, %function
timer_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L13
	ldr	r0, .L13+4
	bl	spin_lock
	ldr	r0, [r4]
	bl	bcm_timer_readl
	ldr	r6, .L13+8
	ldr	r1, [r4]
	mov	r5, r0
	bl	bcm_timer_writel
	ldr	r0, .L13+4
	bl	spin_unlock
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r7, .L13+12
	ldr	r8, .L13+16
.L5:
	mov	r0, r4
	bl	TIMER_IRQSTAT_TIMER_CAUSE
	tst	r0, r5
	beq	.L3
	mov	r0, r7
	bl	spin_lock
	ldr	r2, [r8]
	add	r3, r2, r4, lsl #3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L11
	ldr	r0, [r2, r4, lsl #3]
	blx	r3
.L11:
	mov	r0, r7
	bl	spin_unlock
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L2:
	ldr	r3, .L13+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	TIMER_IRQSTAT_REG
	.word	timer_reg_lock
	.word	BCM63XX_TIMER_COUNT
	.word	timer_data_lock
	.word	timer_data
	.word	IRQ_HANDLED
	.size	timer_interrupt, .-timer_interrupt
	.comm	timer_reg_lock,4,4
	.comm	timer_data_lock,4,4
	.comm	timer_data,4,4
	.comm	TIMER_IRQSTAT_REG,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BCM63XX_TIMER_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
