	.file	"extr_ixgbe_82599.c_ixgbe_setup_mac_link_82599.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Autoneg did not complete.\n"
	.text
	.p2align 4
	.type	ixgbe_setup_mac_link_82599, @function
ixgbe_setup_mac_link_82599:
.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
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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, 40
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR IXGBE_AUTOC2[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 16[rsp], 0
	call	IXGBE_READ_REG@PLT
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	rdi, rbp
	mov	r14d, eax
	mov	eax, DWORD PTR IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR IXGBE_LINK_SPEED_UNKNOWN[rip]
	mov	DWORD PTR 20[rsp], eax
	call	IXGBE_READ_REG@PLT
	lea	rdx, 16[rsp]
	lea	rsi, 20[rsp]
	mov	rdi, rbp
	mov	r15d, eax
	call	[QWORD PTR 16[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	and	ebx, DWORD PTR 20[rsp]
	cmp	DWORD PTR IXGBE_LINK_SPEED_UNKNOWN[rip], ebx
	mov	edi, ebx
	je	.L47
	cmp	QWORD PTR 24[rbp], 0
	mov	eax, r15d
	je	.L4
	mov	eax, DWORD PTR 0[rbp]
.L4:
	mov	edx, DWORD PTR IXGBE_AUTOC_LMS_MASK[rip]
	mov	ebx, edx
	and	ebx, r15d
	cmp	DWORD PTR IXGBE_AUTOC_LMS_KX4_KX_KR[rip], ebx
	je	.L5
	cmp	DWORD PTR IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN[rip], ebx
	je	.L5
	cmp	DWORD PTR IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII[rip], ebx
	je	.L5
	mov	eax, DWORD PTR IXGBE_AUTOC_1G_PMA_PMD_MASK[rip]
	mov	esi, DWORD PTR IXGBE_AUTOC_1G_SFI[rip]
	and	r14d, DWORD PTR 12[rsp]
	and	eax, r15d
	cmp	esi, eax
	je	.L48
.L10:
	cmp	DWORD PTR IXGBE_AUTOC2_10G_SFI[rip], r14d
	je	.L49
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L50
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR IXGBE_AUTOC_KR_SUPP[rip]
	mov	esi, DWORD PTR IXGBE_AUTOC_KX4_KX_SUPP_MASK[rip]
	or	esi, edx
	not	esi
	and	esi, r15d
	test	DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip], edi
	je	.L7
	mov	r8d, DWORD PTR IXGBE_AUTOC_KX4_SUPP[rip]
	mov	r9d, esi
	or	r9d, r8d
	test	r8d, eax
	cmovne	esi, r9d
	test	edx, eax
	je	.L7
	mov	ecx, DWORD PTR 32[rbp]
	test	ecx, ecx
	jne	.L7
	or	esi, edx
	.p2align 4,,10
	.p2align 3
.L7:
	test	DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip], edi
	jne	.L51
.L9:
	cmp	esi, r15d
	je	.L1
	xor	edx, edx
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	test	r13d, r13d
	je	.L14
	cmp	DWORD PTR IXGBE_AUTOC_LMS_KX4_KX_KR[rip], ebx
	je	.L17
	cmp	DWORD PTR IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN[rip], ebx
	je	.L17
	cmp	DWORD PTR IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII[rip], ebx
	je	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, 50
	call	msleep@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L51:
	or	esi, DWORD PTR IXGBE_AUTOC_KX_SUPP[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR IXGBE_AUTO_NEG_TIME[rip]
	xor	r13d, r13d
	test	eax, eax
	jg	.L16
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L53:
	mov	edi, 100
	add	r13d, 1
	call	msleep@PLT
	cmp	DWORD PTR IXGBE_AUTO_NEG_TIME[rip], r13d
	jle	.L52
.L16:
	mov	esi, DWORD PTR IXGBE_LINKS[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	ebx, eax
	test	DWORD PTR IXGBE_LINKS_KX_AN_COMP[rip], eax
	je	.L53
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L47:
	mov	r12, QWORD PTR IXGBE_ERR_LINK_SETUP[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	cmp	DWORD PTR IXGBE_AUTOC_LMS_1G_LINK_NO_AN[rip], ebx
	je	.L11
	cmp	DWORD PTR IXGBE_AUTOC_LMS_1G_AN[rip], ebx
	jne	.L10
.L11:
	cmp	DWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip], edi
	jne	.L1
	cmp	DWORD PTR IXGBE_AUTOC2_10G_SFI[rip], r14d
	jne	.L1
	not	edx
	mov	esi, edx
	and	esi, r15d
	or	esi, DWORD PTR IXGBE_AUTOC_LMS_10G_SERIAL[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L49:
	cmp	DWORD PTR IXGBE_AUTOC_LMS_10G_SERIAL[rip], ebx
	jne	.L1
	cmp	DWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip], edi
	jne	.L1
	cmp	esi, eax
	jne	.L1
	not	edx
	mov	esi, edx
	mov	edx, DWORD PTR 16[rsp]
	and	esi, r15d
	test	edx, edx
	je	.L12
	or	esi, DWORD PTR IXGBE_AUTOC_LMS_1G_AN[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L52:
	test	DWORD PTR IXGBE_LINKS_KX_AN_COMP[rip], ebx
	jne	.L14
.L19:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	r12, QWORD PTR IXGBE_ERR_AUTONEG_NOT_COMPLETE[rip]
	call	hw_dbg@PLT
	jmp	.L14
.L12:
	or	esi, DWORD PTR IXGBE_AUTOC_LMS_1G_LINK_NO_AN[rip]
	jmp	.L9
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ixgbe_setup_mac_link_82599, .-ixgbe_setup_mac_link_82599
	.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_LINKS_KX_AN_COMP,4,4
	.comm	IXGBE_LINKS,4,4
	.comm	IXGBE_ERR_LINK_SETUP,8,8
	.comm	IXGBE_ERR_AUTONEG_NOT_COMPLETE,8,8
	.comm	IXGBE_AUTO_NEG_TIME,4,4
	.comm	IXGBE_AUTOC_LMS_MASK,4,4
	.comm	IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII,4,4
	.comm	IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN,4,4
	.comm	IXGBE_AUTOC_LMS_KX4_KX_KR,4,4
	.comm	IXGBE_AUTOC_LMS_1G_LINK_NO_AN,4,4
	.comm	IXGBE_AUTOC_LMS_1G_AN,4,4
	.comm	IXGBE_AUTOC_LMS_10G_SERIAL,4,4
	.comm	IXGBE_AUTOC_KX_SUPP,4,4
	.comm	IXGBE_AUTOC_KX4_SUPP,4,4
	.comm	IXGBE_AUTOC_KX4_KX_SUPP_MASK,4,4
	.comm	IXGBE_AUTOC_KR_SUPP,4,4
	.comm	IXGBE_AUTOC_1G_SFI,4,4
	.comm	IXGBE_AUTOC_1G_PMA_PMD_MASK,4,4
	.comm	IXGBE_AUTOC2_10G_SFI,4,4
	.comm	IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK,4,4
	.comm	IXGBE_AUTOC2,4,4
	.comm	IXGBE_AUTOC,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_82599.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Autoneg did not complete.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_setup_mac_link_82599, %function
ixgbe_setup_mac_link_82599:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	ldr	r1, .L51
	mov	r7, r2
	ldr	r2, .L51+4
	sub	sp, sp, #20
	ldr	r1, [r1]
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #4]
	bl	IXGBE_READ_REG
	ldr	fp, .L51+8
	ldr	r1, .L51+12
	ldr	r2, [fp]
	ldr	r3, .L51+16
	ldr	r1, [r1]
	mov	r8, r0
	mov	r0, r4
	ldr	r10, [r3]
	str	r2, [sp, #8]
	bl	IXGBE_READ_REG
	ldr	r3, [r4, #8]
	mov	r6, r0
	add	r2, sp, #4
	mov	r0, r4
	add	r1, sp, #8
	blx	r3
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, [sp, #8]
	ldr	r3, [fp]
	and	r2, r2, r9
	cmp	r3, r2
	beq	.L44
	ldr	r3, [r4, #12]
	ldr	fp, .L51+20
	cmp	r3, #0
	ldr	r3, .L51+24
	ldr	r1, [fp]
	ldr	r3, [r3]
	moveq	r0, r6
	and	r9, r3, r6
	ldrne	r0, [r4]
	cmp	r1, r9
	beq	.L5
	ldr	r1, .L51+28
	ldr	r1, [r1]
	cmp	r1, r9
	beq	.L5
	ldr	r1, .L51+32
	ldr	r1, [r1]
	cmp	r1, r9
	beq	.L5
	ldr	r1, .L51+36
	ldr	r0, .L51+40
	ldr	r1, [r1]
	ldr	r0, [r0]
	and	r1, r1, r6
	cmp	r0, r1
	and	r8, r8, r10
	beq	.L45
.L10:
	ldr	ip, .L51+44
	ldr	ip, [ip]
	cmp	ip, r8
	beq	.L46
.L1:
	ldr	r3, .L51+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L51+48
	ldr	r1, .L51+52
	ldr	ip, .L51+56
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	ip, [ip]
	orr	r1, r3, r1
	tst	r2, ip
	bic	r1, r6, r1
	beq	.L7
	ldr	ip, .L51+60
	ldr	ip, [ip]
	tst	ip, r0
	orrne	r1, r1, ip
	tst	r3, r0
	beq	.L7
	ldr	r0, [r4, #16]
	cmp	r0, #0
	orreq	r1, r1, r3
.L7:
	ldr	r3, .L51+64
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L48
.L9:
	cmp	r1, r6
	beq	.L1
	mov	r2, #0
	mov	r0, r4
	ldr	r3, [r4, #4]
	blx	r3
	subs	r5, r0, #0
	bne	.L1
	cmp	r7, #0
	beq	.L14
	ldr	r3, [fp]
	cmp	r3, r9
	beq	.L17
	ldr	r3, .L51+28
	ldr	r3, [r3]
	cmp	r3, r9
	beq	.L17
	ldr	r3, .L51+32
	ldr	r3, [r3]
	cmp	r3, r9
	beq	.L17
.L14:
	mov	r0, #50
	bl	msleep
	b	.L1
.L48:
	ldr	r3, .L51+68
	ldr	r3, [r3]
	orr	r1, r1, r3
	b	.L9
.L17:
	ldr	r8, .L51+72
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L19
	mov	r7, #0
	ldr	r10, .L51+76
	ldr	r9, .L51+80
	b	.L16
.L50:
	mov	r0, #100
	bl	msleep
	ldr	r3, [r8]
	add	r7, r7, #1
	cmp	r3, r7
	ble	.L49
.L16:
	mov	r0, r4
	ldr	r1, [r10]
	bl	IXGBE_READ_REG
	ldr	r3, [r9]
	mov	r6, r0
	tst	r0, r3
	beq	.L50
	b	.L14
.L44:
	ldr	r3, .L51+84
	ldr	r5, [r3]
	b	.L1
.L45:
	ldr	ip, .L51+88
	ldr	ip, [ip]
	cmp	ip, r9
	beq	.L11
	ldr	ip, .L51+92
	ldr	ip, [ip]
	cmp	ip, r9
	bne	.L10
.L11:
	ldr	r1, .L51+56
	ldr	r1, [r1]
	cmp	r1, r2
	bne	.L1
	ldr	r2, .L51+44
	ldr	r2, [r2]
	cmp	r2, r8
	bne	.L1
	ldr	r2, .L51+96
	bic	r3, r6, r3
	ldr	r2, [r2]
	orr	r1, r3, r2
	b	.L9
.L46:
	ldr	ip, .L51+96
	ldr	ip, [ip]
	cmp	ip, r9
	bne	.L1
	ldr	ip, .L51+64
	ldr	ip, [ip]
	cmp	ip, r2
	cmpeq	r0, r1
	bne	.L1
	ldr	r2, [sp, #4]
	bic	r1, r6, r3
	cmp	r2, #0
	ldrne	r3, .L51+92
	ldreq	r3, .L51+88
	ldr	r3, [r3]
	orr	r1, r1, r3
	b	.L9
.L49:
	ldr	r3, [r9]
	tst	r6, r3
	bne	.L14
.L19:
	ldr	r3, .L51+100
	mov	r0, r4
	ldr	r1, .L51+104
	ldr	r5, [r3]
	bl	hw_dbg
	b	.L14
.L47:
	bl	__stack_chk_fail
.L52:
	.align	2
.L51:
	.word	IXGBE_AUTOC2
	.word	.LC1
	.word	IXGBE_LINK_SPEED_UNKNOWN
	.word	IXGBE_AUTOC
	.word	IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK
	.word	IXGBE_AUTOC_LMS_KX4_KX_KR
	.word	IXGBE_AUTOC_LMS_MASK
	.word	IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN
	.word	IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII
	.word	IXGBE_AUTOC_1G_PMA_PMD_MASK
	.word	IXGBE_AUTOC_1G_SFI
	.word	IXGBE_AUTOC2_10G_SFI
	.word	IXGBE_AUTOC_KR_SUPP
	.word	IXGBE_AUTOC_KX4_KX_SUPP_MASK
	.word	IXGBE_LINK_SPEED_10GB_FULL
	.word	IXGBE_AUTOC_KX4_SUPP
	.word	IXGBE_LINK_SPEED_1GB_FULL
	.word	IXGBE_AUTOC_KX_SUPP
	.word	IXGBE_AUTO_NEG_TIME
	.word	IXGBE_LINKS
	.word	IXGBE_LINKS_KX_AN_COMP
	.word	IXGBE_ERR_LINK_SETUP
	.word	IXGBE_AUTOC_LMS_1G_LINK_NO_AN
	.word	IXGBE_AUTOC_LMS_1G_AN
	.word	IXGBE_AUTOC_LMS_10G_SERIAL
	.word	IXGBE_ERR_AUTONEG_NOT_COMPLETE
	.word	.LC0
	.size	ixgbe_setup_mac_link_82599, .-ixgbe_setup_mac_link_82599
	.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_LINKS_KX_AN_COMP,4,4
	.comm	IXGBE_LINKS,4,4
	.comm	IXGBE_ERR_LINK_SETUP,4,4
	.comm	IXGBE_ERR_AUTONEG_NOT_COMPLETE,4,4
	.comm	IXGBE_AUTO_NEG_TIME,4,4
	.comm	IXGBE_AUTOC_LMS_MASK,4,4
	.comm	IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII,4,4
	.comm	IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN,4,4
	.comm	IXGBE_AUTOC_LMS_KX4_KX_KR,4,4
	.comm	IXGBE_AUTOC_LMS_1G_LINK_NO_AN,4,4
	.comm	IXGBE_AUTOC_LMS_1G_AN,4,4
	.comm	IXGBE_AUTOC_LMS_10G_SERIAL,4,4
	.comm	IXGBE_AUTOC_KX_SUPP,4,4
	.comm	IXGBE_AUTOC_KX4_SUPP,4,4
	.comm	IXGBE_AUTOC_KX4_KX_SUPP_MASK,4,4
	.comm	IXGBE_AUTOC_KR_SUPP,4,4
	.comm	IXGBE_AUTOC_1G_SFI,4,4
	.comm	IXGBE_AUTOC_1G_PMA_PMD_MASK,4,4
	.comm	IXGBE_AUTOC2_10G_SFI,4,4
	.comm	IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK,4,4
	.comm	IXGBE_AUTOC2,4,4
	.comm	IXGBE_AUTOC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
