	.file	"extr_ixgbe_82599.c_ixgbe_setup_mac_link_multispeed_fiber.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixgbe_setup_mac_link_multispeed_fiber, @function
ixgbe_setup_mac_link_multispeed_fiber:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r14d, DWORD PTR IXGBE_LINK_SPEED_UNKNOWN[rip]
	mov	esi, DWORD PTR IXGBE_ESDP[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 28[rsp]
	mov	DWORD PTR 28[rsp], r14d
	call	IXGBE_READ_REG@PLT
	lea	rdx, 36[rsp]
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	mov	DWORD PTR 32[rsp], 0
	mov	DWORD PTR 36[rsp], 0
	call	[QWORD PTR 16[rbp]]
	test	rax, rax
	jne	.L1
	mov	ecx, DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
	and	ebx, DWORD PTR 28[rsp]
	mov	DWORD PTR 12[rsp], ecx
	and	ecx, ebx
	mov	DWORD PTR 8[rsp], ecx
	je	.L44
	lea	r15, 32[rsp]
	xor	ecx, ecx
	mov	rsi, r13
	mov	rdi, rbp
	mov	rdx, r15
	call	[QWORD PTR 24[rbp]]
	test	rax, rax
	jne	.L1
	mov	r9d, DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
	cmp	DWORD PTR 28[rsp], r9d
	je	.L45
.L6:
	mov	rax, QWORD PTR ixgbe_media_type_fiber_fixed[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L46
	mov	eax, DWORD PTR IXGBE_ESDP_SDP5_DIR[rip]
	or	eax, DWORD PTR IXGBE_ESDP_SDP5[rip]
	mov	rdi, rbp
	or	DWORD PTR 4[rsp], eax
	mov	ecx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR IXGBE_ESDP[rip]
	mov	edx, ecx
	call	IXGBE_WRITE_REG@PLT
	mov	rdi, rbp
	call	IXGBE_WRITE_FLUSH@PLT
.L9:
	mov	edi, 40
	call	msleep@PLT
	mov	esi, DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	ixgbe_setup_mac_link_82599@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 32[rbp]
	test	rax, rax
	je	.L10
	mov	rdi, rbp
	call	rax
.L10:
	mov	r14d, 5
.L12:
	mov	edi, 100
	call	msleep@PLT
	xor	ecx, ecx
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, rbp
	call	[QWORD PTR 24[rbp]]
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR 32[rsp]
	test	esi, esi
	jne	.L47
	sub	r14d, 1
	jne	.L12
	mov	esi, DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip]
	mov	edx, esi
	and	edx, ebx
	je	.L48
	mov	DWORD PTR 8[rsp], 1
	mov	r14d, DWORD PTR 12[rsp]
.L4:
	cmp	DWORD PTR IXGBE_LINK_SPEED_UNKNOWN[rip], r14d
	mov	rdx, r15
	mov	rdi, rbp
	cmove	r14d, esi
	xor	ecx, ecx
	mov	rsi, r13
	call	[QWORD PTR 24[rbp]]
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip]
	cmp	DWORD PTR 28[rsp], esi
	je	.L49
.L14:
	mov	rax, QWORD PTR ixgbe_media_type_fiber_fixed[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L50
	mov	edx, DWORD PTR IXGBE_ESDP_SDP5[rip]
	mov	esi, DWORD PTR IXGBE_ESDP[rip]
	mov	rdi, rbp
	not	edx
	and	edx, DWORD PTR 4[rsp]
	or	edx, DWORD PTR IXGBE_ESDP_SDP5_DIR[rip]
	call	IXGBE_WRITE_REG@PLT
	mov	rdi, rbp
	call	IXGBE_WRITE_FLUSH@PLT
.L16:
	mov	edi, 40
	call	msleep@PLT
	mov	esi, DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	ixgbe_setup_mac_link_82599@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 32[rbp]
	test	rax, rax
	je	.L17
	mov	rdi, rbp
	call	rax
.L17:
	mov	edi, 100
	call	msleep@PLT
	xor	ecx, ecx
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, rbp
	call	[QWORD PTR 24[rbp]]
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR 32[rsp]
	test	edx, edx
	jne	.L42
	test	BYTE PTR 8[rsp], 1
	je	.L42
	mov	edx, r12d
	mov	esi, r14d
	mov	rdi, rbp
	call	ixgbe_setup_mac_link_multispeed_fiber
.L42:
	mov	r9d, DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
.L41:
	mov	esi, DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip]
	mov	ecx, r9d
	and	ecx, ebx
	and	ebx, esi
	mov	edx, ebx
.L7:
	test	ecx, ecx
	je	.L51
	mov	DWORD PTR 8[rbp], r9d
.L21:
	test	edx, edx
	je	.L1
	or	DWORD PTR 8[rbp], esi
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L52
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	mov	esi, DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip]
	lea	r15, 32[rsp]
	test	esi, ebx
	jne	.L4
	mov	DWORD PTR 8[rbp], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edi, DWORD PTR 32[rsp]
	test	edi, edi
	je	.L6
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L46:
	mov	esi, r9d
	mov	rdi, rbp
	call	ixgbe_set_fiber_fixed_speed@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L48:
	mov	r9d, DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
	and	ebx, r9d
	mov	ecx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L49:
	mov	ecx, DWORD PTR 32[rsp]
	test	ecx, ecx
	je	.L14
	mov	r9d, DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
	mov	ecx, ebx
	and	ebx, esi
	mov	edx, ebx
	and	ecx, r9d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L50:
	mov	rdi, rbp
	call	ixgbe_set_fiber_fixed_speed@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip]
	mov	r9d, DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
	mov	ecx, ebx
	and	ebx, esi
	and	ecx, r9d
	mov	edx, ebx
	jmp	.L7
.L52:
	call	__stack_chk_fail@PLT
.L51:
	mov	DWORD PTR 8[rbp], 0
	jmp	.L21
	.cfi_endproc
.LFE0:
	.size	ixgbe_setup_mac_link_multispeed_fiber, .-ixgbe_setup_mac_link_multispeed_fiber
	.comm	ixgbe_media_type_fiber_fixed,8,8
	.comm	IXGBE_LINK_SPEED_UNKNOWN,4,4
	.comm	IXGBE_LINK_SPEED_1GB_FULL,4,4
	.comm	IXGBE_LINK_SPEED_10GB_FULL,4,4
	.comm	IXGBE_ESDP_SDP5_DIR,4,4
	.comm	IXGBE_ESDP_SDP5,4,4
	.comm	IXGBE_ESDP,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_ixgbe_82599.c_ixgbe_setup_mac_link_multispeed_fiber.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_setup_mac_link_multispeed_fiber, %function
ixgbe_setup_mac_link_multispeed_fiber:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L53
	ldr	r7, .L53+4
	ldr	r3, .L53+8
	ldr	r9, [r6]
	sub	sp, sp, #36
	mov	r5, r1
	ldr	r1, [r7]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r4, r0
	mov	r8, r2
	str	r9, [sp, #16]
	bl	IXGBE_READ_REG
	mov	r3, #0
	mov	ip, r0
	ldr	r10, [r4, #8]
	mov	r0, r4
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	add	r1, sp, #16
	add	r2, sp, #24
	str	ip, [sp]
	blx	r10
	cmp	r0, #0
	bne	.L1
	ldr	fp, .L53+12
	ldr	r3, [sp, #16]
	ldr	r2, [fp]
	and	r5, r5, r3
	ands	r3, r2, r5
	str	r2, [sp, #12]
	str	r3, [sp, #4]
	beq	.L45
	add	r10, sp, #20
	mov	r3, r0
	mov	r2, r10
	mov	r0, r4
	ldr	r9, [r4, #12]
	add	r1, sp, #16
	blx	r9
	cmp	r0, #0
	bne	.L1
	ldr	r1, [fp]
	ldr	r3, [sp, #16]
	cmp	r3, r1
	beq	.L46
.L6:
	ldr	r3, .L53+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L47
	ldr	r3, .L53+20
	ldr	r2, .L53+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	ldr	r2, [sp]
	ldr	r1, [r7]
	orr	r3, r2, r3
	mov	r2, r3
	str	r3, [sp]
	bl	IXGBE_WRITE_REG
	mov	r0, r4
	bl	IXGBE_WRITE_FLUSH
.L9:
	mov	r0, #40
	bl	msleep
	mov	r2, r8
	mov	r0, r4
	ldr	r1, [fp]
	bl	ixgbe_setup_mac_link_82599
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L10
	mov	r0, r4
	blx	r3
.L10:
	mov	r9, #5
.L12:
	mov	r0, #100
	bl	msleep
	mov	r3, #0
	mov	r2, r10
	mov	r0, r4
	ldr	ip, [r4, #12]
	add	r1, sp, #16
	blx	ip
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #20]
	cmp	r3, #0
	bne	.L48
	subs	r9, r9, #1
	bne	.L12
	ldr	r3, .L53+28
	ldr	ip, [r3]
	str	r3, [sp, #8]
	ands	r0, ip, r5
	beq	.L49
	mov	r3, #1
	ldr	r9, [sp, #12]
	str	r3, [sp, #4]
.L4:
	ldr	r0, [r6]
	mov	r3, #0
	cmp	r0, r9
	mov	r2, r10
	mov	r0, r4
	ldr	r6, [r4, #12]
	add	r1, sp, #16
	moveq	r9, ip
	blx	r6
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #8]
	ldr	ip, [r3]
	ldr	r3, [sp, #16]
	cmp	r3, ip
	beq	.L50
.L14:
	ldr	r3, .L53+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L51
	ldr	r2, .L53+24
	ldr	r3, .L53+20
	ldr	r1, [sp]
	ldr	r2, [r2]
	ldr	r3, [r3]
	bic	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r7]
	orr	r2, r2, r3
	bl	IXGBE_WRITE_REG
	mov	r0, r4
	bl	IXGBE_WRITE_FLUSH
.L16:
	mov	r0, #40
	bl	msleep
	ldr	r3, [sp, #8]
	mov	r2, r8
	mov	r0, r4
	ldr	r1, [r3]
	bl	ixgbe_setup_mac_link_82599
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L17
	mov	r0, r4
	blx	r3
.L17:
	mov	r0, #100
	bl	msleep
	mov	r2, r10
	mov	r3, #0
	mov	r0, r4
	ldr	r6, [r4, #12]
	add	r1, sp, #16
	blx	r6
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #4]
	cmp	r3, #0
	movne	r3, #0
	andeq	r3, r2, #1
	cmp	r3, #0
	beq	.L43
	mov	r2, r8
	mov	r1, r9
	mov	r0, r4
	bl	ixgbe_setup_mac_link_multispeed_fiber
.L43:
	ldr	r3, [sp, #8]
	ldr	r1, [fp]
	ldr	ip, [r3]
	and	r3, r1, r5
	and	r9, r5, ip
.L7:
	cmp	r3, #0
	moveq	r1, r3
	cmp	r9, #0
	str	r1, [r4, #4]
	orrne	r1, r1, ip
	strne	r1, [r4, #4]
.L1:
	ldr	r3, .L53+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	ldr	r3, .L53+28
	ldr	ip, [r3]
	str	r3, [sp, #8]
	ands	r0, ip, r5
	addne	r10, sp, #20
	bne	.L4
	str	r0, [r4, #4]
	b	.L1
.L46:
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L53+28
	and	r3, r1, r5
	ldr	ip, [r2]
	and	r9, r5, ip
	b	.L7
.L47:
	mov	r0, r4
	bl	ixgbe_set_fiber_fixed_speed
	b	.L9
.L49:
	ldr	r1, [fp]
	and	r3, r5, r1
	b	.L7
.L50:
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L14
	ldr	r1, [fp]
	and	r9, ip, r5
	and	r3, r5, r1
	b	.L7
.L51:
	mov	r1, ip
	mov	r0, r4
	bl	ixgbe_set_fiber_fixed_speed
	b	.L16
.L48:
	ldr	r3, .L53+28
	ldr	r1, [fp]
	ldr	ip, [r3]
	and	r3, r5, r1
	and	r9, r5, ip
	b	.L7
.L52:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	IXGBE_LINK_SPEED_UNKNOWN
	.word	IXGBE_ESDP
	.word	.LC0
	.word	IXGBE_LINK_SPEED_10GB_FULL
	.word	ixgbe_media_type_fiber_fixed
	.word	IXGBE_ESDP_SDP5_DIR
	.word	IXGBE_ESDP_SDP5
	.word	IXGBE_LINK_SPEED_1GB_FULL
	.size	ixgbe_setup_mac_link_multispeed_fiber, .-ixgbe_setup_mac_link_multispeed_fiber
	.comm	ixgbe_media_type_fiber_fixed,4,4
	.comm	IXGBE_LINK_SPEED_UNKNOWN,4,4
	.comm	IXGBE_LINK_SPEED_1GB_FULL,4,4
	.comm	IXGBE_LINK_SPEED_10GB_FULL,4,4
	.comm	IXGBE_ESDP_SDP5_DIR,4,4
	.comm	IXGBE_ESDP_SDP5,4,4
	.comm	IXGBE_ESDP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
