	.file	"extr_ixgbe_82599.c_ixgbe_reset_hw_82599.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Reset polling failed to complete.\n"
	.text
	.p2align 4
	.type	ixgbe_reset_hw_82599, @function
ixgbe_reset_hw_82599:
.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	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	call	[QWORD PTR 40[rdi]]
	mov	r12, rax
	test	rax, rax
	je	.L44
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L45
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.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
.L44:
	.cfi_restore_state
	mov	rdi, rbx
	call	ixgbe_clear_tx_pending@PLT
	mov	rdi, rbx
	call	[QWORD PTR 160[rbx]]
	cmp	QWORD PTR IXGBE_ERR_SFP_NOT_SUPPORTED[rip], rax
	mov	r12, rax
	je	.L1
	mov	edi, DWORD PTR 144[rbx]
	test	edi, edi
	je	.L3
	mov	rdi, rbx
	call	[QWORD PTR 48[rbx]]
	cmp	QWORD PTR IXGBE_ERR_SFP_NOT_SUPPORTED[rip], rax
	mov	DWORD PTR 144[rbx], 0
	mov	r12, rax
	je	.L1
.L3:
	mov	esi, DWORD PTR 148[rbx]
	test	esi, esi
	je	.L46
.L4:
	mov	r14d, DWORD PTR [rbx]
	test	r14d, r14d
	je	.L5
.L48:
	and	r14d, DWORD PTR IXGBE_AUTOC_LMS_MASK[rip]
.L6:
	lea	r13, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR 176[rbx]
	mov	ebp, DWORD PTR IXGBE_CTRL_LNK_RST[rip]
	test	ecx, ecx
	jne	.L7
	mov	rdx, r13
	mov	rsi, rsp
	xor	ecx, ecx
	mov	rdi, rbx
	call	[QWORD PTR 112[rbx]]
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	je	.L7
	mov	ebp, DWORD PTR IXGBE_CTRL_RST[rip]
.L7:
	mov	esi, DWORD PTR IXGBE_CTRL[rip]
	mov	rdi, rbx
	call	IXGBE_READ_REG@PLT
	mov	esi, DWORD PTR IXGBE_CTRL[rip]
	mov	edx, ebp
	mov	rdi, rbx
	or	edx, eax
	mov	ebp, 10
	call	IXGBE_WRITE_REG@PLT
	mov	rdi, rbx
	call	IXGBE_WRITE_FLUSH@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, 1
	call	udelay@PLT
	mov	esi, DWORD PTR IXGBE_CTRL[rip]
	mov	rdi, rbx
	call	IXGBE_READ_REG@PLT
	test	DWORD PTR IXGBE_CTRL_RST_MASK[rip], eax
	je	.L8
	sub	ebp, 1
	jne	.L9
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	mov	r12, QWORD PTR IXGBE_ERR_RESET_FAILED[rip]
	call	hw_dbg@PLT
.L8:
	mov	edi, 50
	call	msleep@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR IXGBE_FLAGS_DOUBLE_RESET_REQUIRED[rip]
	test	edx, eax
	je	.L11
	not	eax
	and	eax, edx
	mov	DWORD PTR 4[rbx], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	rdi, rbx
	call	IXGBE_READ_REG@PLT
	mov	esi, DWORD PTR IXGBE_AUTOC2[rip]
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	IXGBE_READ_REG@PLT
	mov	ebp, eax
	mov	eax, DWORD PTR IXGBE_AUTOC2_LINK_DISABLE_MASK[rip]
	test	eax, ebp
	jne	.L47
.L13:
	mov	eax, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	test	eax, eax
	jne	.L14
	mov	DWORD PTR 12[rbx], edx
	mov	DWORD PTR 16[rbx], ebp
	mov	DWORD PTR 8[rbx], 1
.L15:
	mov	esi, DWORD PTR 124[rbx]
	mov	rdi, rbx
	call	[QWORD PTR 96[rbx]]
	mov	rdi, rbx
	mov	DWORD PTR 20[rbx], 128
	call	[QWORD PTR 88[rbx]]
	mov	rdi, rbx
	mov	esi, DWORD PTR 120[rbx]
	call	[QWORD PTR 80[rbx]]
	mov	edi, DWORD PTR 120[rbx]
	call	is_valid_ether_addr@PLT
	test	rax, rax
	je	.L22
	mov	eax, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR 120[rbx]
	xor	ecx, ecx
	mov	rdi, rbx
	mov	r8d, DWORD PTR IXGBE_RAH_AV[rip]
	lea	esi, -1[rax]
	call	[QWORD PTR 72[rbx]]
	mov	eax, DWORD PTR 20[rbx]
	sub	eax, 1
	mov	DWORD PTR 24[rbx], eax
	mov	DWORD PTR 20[rbx], eax
.L22:
.L2:
	endbr64
	lea	rdx, 28[rbx]
	lea	rsi, 32[rbx]
	mov	rdi, rbx
	call	[QWORD PTR 64[rbx]]
	jmp	.L1
.L14:
	cmp	QWORD PTR 152[rbx], 0
	mov	eax, DWORD PTR 12[rbx]
	je	.L16
	cmp	QWORD PTR 136[rbx], 0
	jne	.L17
.L16:
	cmp	QWORD PTR 128[rbx], 0
	je	.L18
.L17:
	mov	ecx, DWORD PTR IXGBE_AUTOC_LMS_MASK[rip]
	not	ecx
	and	eax, ecx
	or	eax, r14d
	mov	DWORD PTR 12[rbx], eax
.L18:
	cmp	edx, eax
	je	.L19
	mov	rdi, rbx
	call	ixgbe_verify_lesm_fw_enabled_82599@PLT
	test	rax, rax
	je	.L20
	mov	esi, DWORD PTR IXGBE_GSSR_MAC_CSR_SM[rip]
	mov	rdi, rbx
	call	[QWORD PTR 56[rbx]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	edx, DWORD PTR 12[rbx]
	mov	rdi, rbx
	call	IXGBE_WRITE_REG@PLT
	mov	eax, DWORD PTR 12[rbx]
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	ixgbe_reset_pipeline_82599@PLT
	mov	esi, DWORD PTR IXGBE_GSSR_MAC_CSR_SM[rip]
	mov	rdi, rbx
	call	[QWORD PTR 104[rbx]]
.L19:
	mov	eax, DWORD PTR 16[rbx]
	xor	eax, ebp
	and	eax, DWORD PTR IXGBE_AUTOC2_UPPER_MASK[rip]
	je	.L15
	xor	eax, ebp
	mov	esi, DWORD PTR IXGBE_AUTOC2[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	IXGBE_WRITE_REG@PLT
	jmp	.L15
.L46:
	mov	rax, QWORD PTR 168[rbx]
	test	rax, rax
	je	.L4
	mov	rdi, rbx
	call	rax
	mov	r14d, DWORD PTR [rbx]
	test	r14d, r14d
	jne	.L48
.L5:
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	rdi, rbx
	call	IXGBE_READ_REG@PLT
	and	eax, DWORD PTR IXGBE_AUTOC_LMS_MASK[rip]
	mov	r14d, eax
	jmp	.L6
.L47:
	not	eax
	mov	esi, DWORD PTR IXGBE_AUTOC2[rip]
	mov	rdi, rbx
	and	ebp, eax
	mov	edx, ebp
	call	IXGBE_WRITE_REG@PLT
	mov	rdi, rbx
	call	IXGBE_WRITE_FLUSH@PLT
	jmp	.L13
.L20:
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	rdi, rbx
	call	IXGBE_WRITE_REG@PLT
	mov	eax, DWORD PTR 12[rbx]
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	ixgbe_reset_pipeline_82599@PLT
	jmp	.L19
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ixgbe_reset_hw_82599, .-ixgbe_reset_hw_82599
	.comm	IXGBE_RAH_AV,4,4
	.comm	IXGBE_GSSR_MAC_CSR_SM,4,4
	.comm	IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,4
	.comm	IXGBE_ERR_SFP_NOT_SUPPORTED,8,8
	.comm	IXGBE_ERR_RESET_FAILED,8,8
	.comm	IXGBE_CTRL_RST_MASK,4,4
	.comm	IXGBE_CTRL_RST,4,4
	.comm	IXGBE_CTRL_LNK_RST,4,4
	.comm	IXGBE_CTRL,4,4
	.comm	IXGBE_AUTOC_LMS_MASK,4,4
	.comm	IXGBE_AUTOC2_UPPER_MASK,4,4
	.comm	IXGBE_AUTOC2_LINK_DISABLE_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_reset_hw_82599.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Reset polling failed to 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_reset_hw_82599, %function
ixgbe_reset_hw_82599:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	sub	sp, sp, #44
	ldr	r2, .L62
	str	r5, [sp, #32]
	ldr	r3, [r0, #36]
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	blx	r3
	subs	r7, r0, #0
	beq	.L57
.L1:
	ldr	r3, .L62
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L58
	mov	r0, r7
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L57:
	mov	r0, r4
	bl	ixgbe_clear_tx_pending
	ldr	r3, [r4, #104]
	mov	r0, r4
	blx	r3
	ldr	r6, .L62+4
	mov	r7, r0
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L1
	ldr	r3, [r4, #92]
	cmp	r3, r5
	beq	.L3
	ldr	r3, [r4, #40]
	mov	r0, r4
	blx	r3
	ldr	r3, [r6]
	mov	r7, r0
	cmp	r3, r0
	str	r5, [r4, #92]
	beq	.L1
.L3:
	ldr	r3, [r4, #96]
	cmp	r3, #0
	beq	.L59
.L4:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L5
.L61:
	ldr	r2, .L62+8
	ldr	r1, .L62+12
	str	r2, [sp, #20]
	ldr	r2, [r2]
	str	r1, [sp, #12]
	and	r3, r3, r2
	str	r3, [sp, #16]
.L6:
	mov	r8, r7
	ldr	r10, .L62+16
	ldr	r5, .L62+20
	ldr	r6, .L62+24
	ldr	r9, .L62+28
	ldr	fp, .L62+32
.L12:
	ldr	r3, [r4, #112]
	ldr	r7, [r10]
	cmp	r3, #0
	bne	.L7
	mov	r0, r4
	ldr	ip, [r4, #72]
	add	r2, sp, #32
	add	r1, sp, #28
	blx	ip
	ldr	r3, [sp, #32]
	cmp	r3, #0
	ldrne	r3, .L62+36
	ldrne	r7, [r3]
.L7:
	ldr	r1, [r5]
	mov	r0, r4
	bl	IXGBE_READ_REG
	ldr	r1, [r5]
	orr	r2, r7, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	mov	r0, r4
	bl	IXGBE_WRITE_FLUSH
	mov	r7, #10
.L9:
	mov	r0, #1
	bl	udelay
	mov	r0, r4
	ldr	r1, [r5]
	bl	IXGBE_READ_REG
	ldr	r3, [r6]
	tst	r0, r3
	beq	.L8
	subs	r7, r7, #1
	bne	.L9
	ldr	r3, .L62+40
	mov	r1, fp
	mov	r0, r4
	ldr	r8, [r3]
	bl	hw_dbg
.L8:
	mov	r0, #50
	bl	msleep
	ldr	r3, [r4, #4]
	ldr	r2, [r9]
	tst	r3, r2
	bicne	r3, r3, r2
	strne	r3, [r4, #4]
	bne	.L12
.L11:
	ldr	r3, [sp, #12]
	mov	r0, r4
	ldr	r1, [r3]
	bl	IXGBE_READ_REG
	ldr	r6, .L62+44
	str	r0, [r4]
	ldr	r1, [r6]
	mov	r0, r4
	bl	IXGBE_READ_REG
	ldr	r3, .L62+48
	mov	r7, r8
	ldr	r3, [r3]
	mov	r5, r0
	tst	r3, r0
	bne	.L60
.L13:
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	cmp	r3, #0
	bne	.L14
	mov	r3, #1
	str	r2, [r4, #12]
	str	r5, [r4, #16]
	str	r3, [r4, #8]
.L15:
	ldr	r1, [r4, #80]
	ldr	r3, [r4, #64]
	mov	r0, r4
	blx	r3
	mov	r2, #128
	ldr	r3, [r4, #60]
	str	r2, [r4, #20]
	mov	r0, r4
	blx	r3
	ldr	r3, [r4, #56]
	ldr	r1, [r4, #76]
	mov	r0, r4
	blx	r3
	ldr	r0, [r4, #76]
	bl	is_valid_ether_addr
	cmp	r0, #0
	beq	.L22
	ldr	r3, .L62+52
	ldr	r1, [r4, #20]
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [sp]
	ldr	r5, [r4, #52]
	mov	r3, #0
	ldr	r2, [r4, #76]
	sub	r1, r1, #1
	blx	r5
	ldr	r3, [r4, #20]
	sub	r3, r3, #1
	str	r3, [r4, #24]
	str	r3, [r4, #20]
.L22:
.L2:
	mov	r0, r4
	ldr	r3, [r4, #48]
	add	r2, r4, #28
	add	r1, r4, #32
	blx	r3
	b	.L1
.L14:
	ldr	r1, [r4, #100]
	ldr	r3, [r4, #12]
	cmp	r1, #0
	beq	.L16
	ldr	r1, [r4, #88]
	cmp	r1, #0
	bne	.L17
.L16:
	ldr	r1, [r4, #84]
	cmp	r1, #0
	beq	.L18
.L17:
	ldr	r1, [sp, #20]
	ldr	r1, [r1]
	bic	r3, r3, r1
	ldr	r1, [sp, #16]
	orr	r3, r3, r1
	str	r3, [r4, #12]
.L18:
	cmp	r2, r3
	beq	.L19
	mov	r0, r4
	bl	ixgbe_verify_lesm_fw_enabled_82599
	cmp	r0, #0
	beq	.L20
	ldr	r8, .L62+56
	mov	r0, r4
	ldr	r3, [r4, #44]
	ldr	r1, [r8]
	blx	r3
	subs	r7, r0, #0
	bne	.L1
	ldr	r3, [sp, #12]
	ldr	r2, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r3, [r4, #12]
	mov	r0, r4
	str	r3, [r4]
	bl	ixgbe_reset_pipeline_82599
	mov	r0, r4
	ldr	r1, [r8]
	ldr	r3, [r4, #68]
	blx	r3
.L19:
	ldr	r2, .L62+60
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	eor	r3, r3, r5
	ands	r2, r3, r2
	beq	.L15
	mov	r0, r4
	ldr	r1, [r6]
	eor	r2, r2, r5
	bl	IXGBE_WRITE_REG
	b	.L15
.L59:
	ldr	r3, [r4, #108]
	cmp	r3, #0
	beq	.L4
	mov	r0, r4
	blx	r3
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L61
.L5:
	ldr	r3, .L62+12
	mov	r0, r4
	ldr	r1, [r3]
	str	r3, [sp, #12]
	bl	IXGBE_READ_REG
	ldr	r3, .L62+8
	str	r3, [sp, #20]
	ldr	r3, [r3]
	and	r3, r0, r3
	str	r3, [sp, #16]
	b	.L6
.L60:
	bic	r5, r0, r3
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r6]
	bl	IXGBE_WRITE_REG
	mov	r0, r4
	bl	IXGBE_WRITE_FLUSH
	b	.L13
.L20:
	ldr	r3, [sp, #12]
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r4, #12]
	bl	IXGBE_WRITE_REG
	ldr	r3, [r4, #12]
	mov	r0, r4
	str	r3, [r4]
	bl	ixgbe_reset_pipeline_82599
	b	.L19
.L58:
	bl	__stack_chk_fail
.L63:
	.align	2
.L62:
	.word	.LC1
	.word	IXGBE_ERR_SFP_NOT_SUPPORTED
	.word	IXGBE_AUTOC_LMS_MASK
	.word	IXGBE_AUTOC
	.word	IXGBE_CTRL_LNK_RST
	.word	IXGBE_CTRL
	.word	IXGBE_CTRL_RST_MASK
	.word	IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
	.word	.LC0
	.word	IXGBE_CTRL_RST
	.word	IXGBE_ERR_RESET_FAILED
	.word	IXGBE_AUTOC2
	.word	IXGBE_AUTOC2_LINK_DISABLE_MASK
	.word	IXGBE_RAH_AV
	.word	IXGBE_GSSR_MAC_CSR_SM
	.word	IXGBE_AUTOC2_UPPER_MASK
	.size	ixgbe_reset_hw_82599, .-ixgbe_reset_hw_82599
	.comm	IXGBE_RAH_AV,4,4
	.comm	IXGBE_GSSR_MAC_CSR_SM,4,4
	.comm	IXGBE_FLAGS_DOUBLE_RESET_REQUIRED,4,4
	.comm	IXGBE_ERR_SFP_NOT_SUPPORTED,4,4
	.comm	IXGBE_ERR_RESET_FAILED,4,4
	.comm	IXGBE_CTRL_RST_MASK,4,4
	.comm	IXGBE_CTRL_RST,4,4
	.comm	IXGBE_CTRL_LNK_RST,4,4
	.comm	IXGBE_CTRL,4,4
	.comm	IXGBE_AUTOC_LMS_MASK,4,4
	.comm	IXGBE_AUTOC2_UPPER_MASK,4,4
	.comm	IXGBE_AUTOC2_LINK_DISABLE_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
