	.file	"extr_bnx2.c_bnx2_5708_serdes_timer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2_5708_serdes_timer, @function
bnx2_5708_serdes_timer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR BNX2_PHY_FLAG_REMOTE_PHY_CAP[rip], eax
	jne	.L1
	mov	rbx, rdi
	test	DWORD PTR BNX2_PHY_FLAG_2_5G_CAPABLE[rip], eax
	jne	.L3
	mov	DWORD PTR 4[rdi], 0
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rbp, 20[rdi]
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jne	.L16
	cmp	QWORD PTR 8[rbx], 0
	jne	.L6
	mov	eax, DWORD PTR 16[rbx]
	test	DWORD PTR AUTONEG_SPEED[rip], eax
	jne	.L17
.L6:
	mov	rax, QWORD PTR BNX2_TIMER_INTERVAL[rip]
	mov	QWORD PTR 24[rbx], rax
.L5:
	mov	rdi, rbp
	call	spin_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	sub	eax, 1
	mov	DWORD PTR 4[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR 32[rbx]
	mov	rdi, rbx
	lea	rdx, 4[rsp]
	call	bnx2_read_phy@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	rdi, rbx
	test	DWORD PTR BMCR_ANENABLE[rip], eax
	je	.L7
	call	bnx2_enable_forced_2g5@PLT
	mov	rax, QWORD PTR BNX2_SERDES_FORCED_TIMEOUT[rip]
	mov	QWORD PTR 24[rbx], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	call	bnx2_disable_forced_2g5@PLT
	mov	rax, QWORD PTR BNX2_TIMER_INTERVAL[rip]
	mov	DWORD PTR 4[rbx], 2
	mov	QWORD PTR 24[rbx], rax
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2_5708_serdes_timer, .-bnx2_5708_serdes_timer
	.comm	BNX2_TIMER_INTERVAL,8,8
	.comm	BNX2_SERDES_FORCED_TIMEOUT,8,8
	.comm	BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,4
	.comm	BNX2_PHY_FLAG_2_5G_CAPABLE,4,4
	.comm	BMCR_ANENABLE,4,4
	.comm	AUTONEG_SPEED,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_bnx2.c_bnx2_5708_serdes_timer.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2_5708_serdes_timer, %function
bnx2_5708_serdes_timer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L18
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r1, .L18+4
	sub	sp, sp, #12
	tst	r3, r2
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	bne	.L1
	ldr	r2, .L18+8
	mov	r4, r0
	ldr	r2, [r2]
	ands	r3, r3, r2
	streq	r3, [r0, #4]
	bne	.L15
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L15:
	add	r5, r0, #16
	mov	r0, r5
	bl	spin_lock
	ldr	r3, [r4, #4]
	cmp	r3, #0
	subne	r3, r3, #1
	strne	r3, [r4, #4]
	bne	.L5
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L18+12
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L17
.L6:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	str	r3, [r4, #20]
.L5:
	mov	r0, r5
	bl	spin_unlock
	b	.L1
.L17:
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r4, #24]
	bl	bnx2_read_phy
	ldr	r3, .L18+20
	ldr	r2, [sp]
	ldr	r3, [r3]
	mov	r0, r4
	tst	r2, r3
	beq	.L7
	bl	bnx2_enable_forced_2g5
	ldr	r3, .L18+24
	ldr	r3, [r3]
	str	r3, [r4, #20]
	b	.L5
.L7:
	bl	bnx2_disable_forced_2g5
	mov	r2, #2
	ldr	r3, .L18+16
	str	r2, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r4, #20]
	b	.L5
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.word	.LC0
	.word	BNX2_PHY_FLAG_2_5G_CAPABLE
	.word	AUTONEG_SPEED
	.word	BNX2_TIMER_INTERVAL
	.word	BMCR_ANENABLE
	.word	BNX2_SERDES_FORCED_TIMEOUT
	.size	bnx2_5708_serdes_timer, .-bnx2_5708_serdes_timer
	.comm	BNX2_TIMER_INTERVAL,4,4
	.comm	BNX2_SERDES_FORCED_TIMEOUT,4,4
	.comm	BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,4
	.comm	BNX2_PHY_FLAG_2_5G_CAPABLE,4,4
	.comm	BMCR_ANENABLE,4,4
	.comm	AUTONEG_SPEED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
