	.file	"extr_ethernet.c_cvm_do_timer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cvm_do_timer, @function
cvm_do_timer:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR port.1971[rip]
	cmp	eax, DWORD PTR CVMX_PIP_NUM_INPUT_PORTS[rip]
	jge	.L25
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rdx, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR cvm_oct_device[rip]
	mov	rdi, QWORD PTR [rcx+rdx*8]
	test	rdi, rdi
	je	.L3
	call	netdev_priv@PLT
	cmp	QWORD PTR 16[rax], 0
	mov	rbp, rax
	je	.L5
	lea	rdi, mdio_sem[rip]
	call	down_trylock@PLT
	test	eax, eax
	jne	.L5
	movsx	rdx, DWORD PTR port.1971[rip]
	mov	rax, QWORD PTR cvm_oct_device[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	[QWORD PTR 16[rbp]]
	lea	rdi, mdio_sem[rip]
	call	up@PLT
.L5:
	mov	edi, DWORD PTR port.1971[rip]
	xor	r14d, r14d
	call	cvmx_pko_get_num_queues@PLT
	lea	r13d, -1[rax]
	test	eax, eax
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR cvm_oct_device[rip]
	movsx	rdx, DWORD PTR port.1971[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	mov	eax, DWORD PTR port.1971[rip]
.L3:
	movsx	rsi, DWORD PTR HZ[rip]
	add	eax, 1
	lea	rdi, cvm_oct_poll_timer[rip]
	mov	DWORD PTR port.1971[rip], eax
	mov	rax, rsi
	imul	rsi, rsi, 1374389535
	sar	eax, 31
	sar	rsi, 36
	sub	esi, eax
	movsx	rsi, esi
	add	rsi, QWORD PTR jiffies[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	mod_timer@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r14, rax
.L12:
	mov	rax, QWORD PTR 8[rbp]
	mov	r12d, r14d
	lea	rdi, [rax+r14*4]
	call	skb_queue_len@PLT
	test	rax, rax
	je	.L8
	mov	rdi, QWORD PTR 0[rbp]
	lea	r15d, 0[0+r14*4]
	mov	esi, DWORD PTR MAX_SKB_TO_FREE[rip]
	movsx	r15, r15d
	add	rdi, r15
	call	cvmx_fau_fetch_and_add32@PLT
	mov	esi, DWORD PTR MAX_SKB_TO_FREE[rip]
	mov	ebx, eax
	mov	eax, esi
	add	esi, ebx
	test	ebx, ebx
	cmovg	esi, eax
	test	esi, esi
	jle	.L11
	mov	rdi, QWORD PTR 0[rbp]
	neg	esi
	add	rdi, r15
	call	cvmx_fau_atomic_add32@PLT
.L11:
	neg	ebx
	cmp	DWORD PTR MAX_SKB_TO_FREE[rip], ebx
	mov	ecx, 1
	mov	edx, r12d
	cmovle	ebx, DWORD PTR MAX_SKB_TO_FREE[rip]
	mov	rdi, rbp
	mov	esi, ebx
	call	cvm_oct_free_tx_skbs@PLT
.L8:
	lea	rax, 1[r14]
	cmp	r14, r13
	jne	.L14
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	movsx	rsi, DWORD PTR HZ[rip]
	lea	rdi, cvm_oct_poll_timer[rip]
	add	rsi, QWORD PTR jiffies[rip]
	mov	DWORD PTR port.1971[rip], 0
	jmp	mod_timer@PLT
	.cfi_endproc
.LFE0:
	.size	cvm_do_timer, .-cvm_do_timer
	.local	port.1971
	.comm	port.1971,4,4
	.comm	mdio_sem,4,4
	.comm	jiffies,8,8
	.comm	cvm_oct_poll_timer,4,4
	.comm	cvm_oct_device,8,8
	.comm	MAX_SKB_TO_FREE,4,4
	.comm	HZ,4,4
	.comm	CVMX_PIP_NUM_INPUT_PORTS,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_ethernet.c_cvm_do_timer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvm_do_timer, %function
cvm_do_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L24
	ldr	r9, .L24+4
	ldr	r2, [r2]
	ldr	r3, [r9]
	cmp	r3, r2
	bge	.L23
	ldr	r10, .L24+8
	ldr	r2, [r10]
	ldr	r0, [r2, r3, lsl #2]
	cmp	r0, #0
	beq	.L3
	bl	netdev_priv
	ldr	r3, [r0, #8]
	mov	r6, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L24+12
	bl	down_trylock
	cmp	r0, #0
	bne	.L5
	ldr	r1, [r9]
	ldr	r2, [r10]
	ldr	r3, [r6, #8]
	ldr	r0, [r2, r1, lsl #2]
	blx	r3
	ldr	r0, .L24+12
	bl	up
.L5:
	ldr	r0, [r9]
	bl	cvmx_pko_get_num_queues
	subs	r8, r0, #0
	movgt	r4, #0
	ldrgt	r7, .L24+16
	ble	.L12
.L7:
	ldr	r0, [r6, #4]
	lsl	fp, r4, #2
	add	r0, r0, r4, lsl #2
	bl	skb_queue_len
	cmp	r0, #0
	beq	.L8
	ldr	r0, [r6]
	ldr	r1, [r7]
	add	r0, fp, r0
	bl	cvmx_fau_fetch_and_add32
	ldr	r1, [r7]
	subs	r5, r0, #0
	addle	r1, r5, r1
	cmp	r1, #0
	rsb	r1, r1, #0
	ble	.L11
	ldr	r0, [r6]
	add	r0, fp, r0
	bl	cvmx_fau_atomic_add32
.L11:
	ldr	r1, [r7]
	rsb	r5, r5, #0
	cmp	r5, r1
	movlt	r1, r5
	mov	r3, #1
	mov	r2, r4
	mov	r0, r6
	bl	cvm_oct_free_tx_skbs
.L8:
	add	r4, r4, #1
	cmp	r8, r4
	bne	.L7
.L12:
	ldr	r3, [r10]
	ldr	r2, [r9]
	ldr	r0, [r3, r2, lsl #2]
	ldr	r3, [r0]
	ldr	r3, [r3]
	blx	r3
	ldr	r3, [r9]
.L3:
	ldr	r2, .L24+20
	ldr	r0, .L24+24
	ldr	r2, [r2]
	ldr	r1, .L24+28
	smull	ip, r0, r2, r0
	ldr	r1, [r1]
	asr	r2, r2, #31
	rsb	r2, r2, r0, asr #4
	add	r3, r3, #1
	str	r3, [r9]
	ldr	r0, .L24+32
	add	r1, r2, r1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mod_timer
.L23:
	mov	r3, #0
	ldr	r1, .L24+28
	ldr	r2, .L24+20
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r3, [r9]
	ldr	r0, .L24+32
	add	r1, r1, r2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mod_timer
.L25:
	.align	2
.L24:
	.word	CVMX_PIP_NUM_INPUT_PORTS
	.word	.LANCHOR0
	.word	cvm_oct_device
	.word	mdio_sem
	.word	MAX_SKB_TO_FREE
	.word	HZ
	.word	1374389535
	.word	jiffies
	.word	cvm_oct_poll_timer
	.size	cvm_do_timer, .-cvm_do_timer
	.comm	mdio_sem,4,4
	.comm	jiffies,4,4
	.comm	cvm_oct_poll_timer,4,4
	.comm	cvm_oct_device,4,4
	.comm	MAX_SKB_TO_FREE,4,4
	.comm	HZ,4,4
	.comm	CVMX_PIP_NUM_INPUT_PORTS,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	port.4255, %object
	.size	port.4255, 4
port.4255:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
