	.file	"extr_skge.c_xm_link_timer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xm_link_timer, @function
xm_link_timer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	r12, QWORD PTR 8[rdi]
	mov	r13d, DWORD PTR [rdi]
	mov	rdi, r14
	call	netif_running@PLT
	test	eax, eax
	jne	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r12
	mov	ebp, 3
	call	spin_lock_irqsave@PLT
.L4:
	mov	edx, DWORD PTR XM_GP_PORT[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	xm_read16@PLT
	test	DWORD PTR XM_GP_INP_ASS[rip], eax
	jne	.L3
	sub	ebp, 1
	jne	.L4
	mov	rdi, r14
	call	xm_check_link@PLT
	test	rax, rax
	jne	.L13
.L3:
	mov	rdi, QWORD PTR LINK_HZ[rip]
	add	rdi, QWORD PTR jiffies[rip]
	call	round_jiffies@PLT
	lea	rdi, 4[rbx]
	mov	esi, eax
	call	mod_timer@PLT
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR XM_IMSK[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	xm_read16@PLT
	mov	ecx, DWORD PTR XM_IS_INP_ASS[rip]
	mov	esi, r13d
	mov	rdi, r12
	mov	edx, DWORD PTR XM_IMSK[rip]
	not	ecx
	and	ecx, eax
	call	xm_write16@PLT
	mov	edx, DWORD PTR XM_ISRC[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	xm_read16@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	xm_link_timer, .-xm_link_timer
	.comm	jiffies,8,8
	.comm	XM_IS_INP_ASS,4,4
	.comm	XM_ISRC,4,4
	.comm	XM_IMSK,4,4
	.comm	XM_GP_PORT,4,4
	.comm	XM_GP_INP_ASS,4,4
	.comm	LINK_HZ,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_skge.c_xm_link_timer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xm_link_timer, %function
xm_link_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r8, [r0, #12]
	ldr	r6, [r0, #8]
	mov	r0, r8
	ldr	r7, [r4]
	bl	netif_running
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, #0
	mov	r0, r6
	bl	spin_lock_irqsave
	mov	r5, #3
	ldr	r9, .L13
	ldr	r10, .L13+4
.L4:
	mov	r1, r7
	mov	r0, r6
	ldr	r2, [r9]
	bl	xm_read16
	ldr	r3, [r10]
	tst	r0, r3
	bne	.L3
	subs	r5, r5, #1
	bne	.L4
	mov	r0, r8
	bl	xm_check_link
	cmp	r0, #0
	bne	.L12
.L3:
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	round_jiffies
	mov	r1, r0
	add	r0, r4, #4
	bl	mod_timer
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L12:
	ldr	r4, .L13+16
	mov	r1, r7
	ldr	r2, [r4]
	mov	r0, r6
	bl	xm_read16
	ldr	r3, .L13+20
	mov	r1, r7
	ldr	r3, [r3]
	ldr	r2, [r4]
	bic	r3, r0, r3
	mov	r0, r6
	bl	xm_write16
	ldr	r3, .L13+24
	mov	r1, r7
	mov	r0, r6
	ldr	r2, [r3]
	bl	xm_read16
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L14:
	.align	2
.L13:
	.word	XM_GP_PORT
	.word	XM_GP_INP_ASS
	.word	jiffies
	.word	LINK_HZ
	.word	XM_IMSK
	.word	XM_IS_INP_ASS
	.word	XM_ISRC
	.size	xm_link_timer, .-xm_link_timer
	.comm	jiffies,4,4
	.comm	XM_IS_INP_ASS,4,4
	.comm	XM_ISRC,4,4
	.comm	XM_IMSK,4,4
	.comm	XM_GP_PORT,4,4
	.comm	XM_GP_INP_ASS,4,4
	.comm	LINK_HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
