	.file	"extr_ixgbe_82599.c_ixgbe_setup_sfp_modules_82599.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	" sfp module setup not complete\n"
	.text
	.p2align 4
	.type	ixgbe_setup_sfp_modules_82599, @function
ixgbe_setup_sfp_modules_82599:
.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, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR ixgbe_sfp_type_unknown[rip]
	cmp	QWORD PTR 48[rdi], rax
	jne	.L2
.L9:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 40
	.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
.L2:
	.cfi_restore_state
	mov	rbp, rdi
	call	ixgbe_init_mac_link_ops_82599@PLT
	mov	QWORD PTR 56[rbp], 0
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	lea	rsi, 12[rsp]
	call	ixgbe_get_sfp_init_sequence_offsets@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR IXGBE_GSSR_MAC_CSR_SM[rip]
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	test	rax, rax
	jne	.L24
	mov	eax, DWORD PTR 16[rsp]
	lea	rbx, 20[rsp]
	lea	esi, 1[rax]
	mov	DWORD PTR 16[rsp], esi
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR IXGBE_CORECTL[rip]
	mov	rdi, rbp
	call	IXGBE_WRITE_REG@PLT
	mov	rdi, rbp
	call	IXGBE_WRITE_FLUSH@PLT
	mov	eax, DWORD PTR 16[rsp]
	lea	esi, 1[rax]
	mov	DWORD PTR 16[rsp], esi
.L21:
	mov	rdx, rbx
	mov	rdi, rbp
	call	[QWORD PTR 40[rbp]]
	mov	edx, DWORD PTR 20[rsp]
	cmp	edx, 65535
	jne	.L25
	mov	esi, DWORD PTR IXGBE_GSSR_MAC_CSR_SM[rip]
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	mov	edi, DWORD PTR 32[rbp]
	imul	esi, edi, 2000
	imul	edi, edi, 1000
	call	usleep_range@PLT
	mov	rdi, rbp
	call	ixgbe_verify_lesm_fw_enabled_82599@PLT
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR IXGBE_GSSR_MAC_CSR_SM[rip]
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rbp
	or	edx, DWORD PTR IXGBE_AUTOC_LMS_10G_SERIAL[rip]
	call	IXGBE_WRITE_REG@PLT
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	rdi, rbp
	mov	DWORD PTR 24[rbp], eax
	call	ixgbe_reset_pipeline_82599@PLT
	mov	esi, DWORD PTR IXGBE_GSSR_MAC_CSR_SM[rip]
	mov	rdi, rbp
	mov	rbx, rax
	call	[QWORD PTR 8[rbp]]
.L10:
	test	rbx, rbx
	je	.L9
.L3:
	endbr64
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	hw_dbg@PLT
	mov	rax, QWORD PTR IXGBE_ERR_SFP_SETUP_NOT_COMPLETE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rbp
	or	edx, DWORD PTR IXGBE_AUTOC_LMS_10G_SERIAL[rip]
	call	IXGBE_WRITE_REG@PLT
	mov	esi, DWORD PTR IXGBE_AUTOC[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	rdi, rbp
	mov	DWORD PTR 24[rbp], eax
	call	ixgbe_reset_pipeline_82599@PLT
	mov	rbx, rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR IXGBE_ERR_SWFW_SYNC[rip]
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ixgbe_setup_sfp_modules_82599, .-ixgbe_setup_sfp_modules_82599
	.comm	ixgbe_sfp_type_unknown,8,8
	.comm	IXGBE_GSSR_MAC_CSR_SM,4,4
	.comm	IXGBE_ERR_SWFW_SYNC,8,8
	.comm	IXGBE_ERR_SFP_SETUP_NOT_COMPLETE,8,8
	.comm	IXGBE_CORECTL,4,4
	.comm	IXGBE_AUTOC_LMS_10G_SERIAL,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_sfp_modules_82599.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" sfp module setup 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_sfp_modules_82599, %function
ixgbe_setup_sfp_modules_82599:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L21
	ldr	r2, [r0, #24]
	ldr	r3, [r3]
	ldr	r1, .L21+4
	sub	sp, sp, #20
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	bne	.L2
.L9:
	mov	r0, #0
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r4, r0
	bl	ixgbe_init_mac_link_ops_82599
	mov	r3, #0
	mov	r1, sp
	mov	r0, r4
	add	r2, sp, #4
	str	r3, [r4, #28]
	bl	ixgbe_get_sfp_init_sequence_offsets
	cmp	r0, #0
	bne	.L1
	ldr	r5, .L21+8
	mov	r0, r4
	ldr	r3, [r4, #8]
	ldr	r1, [r5]
	blx	r3
	cmp	r0, #0
	bne	.L20
	ldr	r1, [sp, #4]
	add	r2, sp, #8
	add	r1, r1, #1
	mov	r0, r4
	ldr	r3, [r4, #20]
	str	r1, [sp, #4]
	blx	r3
	ldr	r6, .L21+12
	ldr	r2, [sp, #8]
	cmp	r2, r6
	beq	.L5
	ldr	r7, .L21+16
.L6:
	ldr	r1, [r7]
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	mov	r0, r4
	bl	IXGBE_WRITE_FLUSH
	ldr	r1, [sp, #4]
	add	r2, sp, #8
	add	r1, r1, #1
	mov	r0, r4
	ldr	r3, [r4, #20]
	str	r1, [sp, #4]
	blx	r3
	ldr	r2, [sp, #8]
	cmp	r2, r6
	bne	.L6
.L5:
	ldr	r3, [r4, #4]
	ldr	r1, [r5]
	mov	r0, r4
	blx	r3
	ldr	r0, [r4, #16]
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r1, r0, #4
	lsl	r0, r0, #3
	bl	usleep_range
	mov	r0, r4
	bl	ixgbe_verify_lesm_fw_enabled_82599
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	ldr	r3, [r4, #8]
	ldr	r1, [r5]
	blx	r3
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L21+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r6, .L21+24
	orr	r2, r2, r3
	ldr	r1, [r6]
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r1, [r6]
	mov	r0, r4
	bl	IXGBE_READ_REG
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #12]
	bl	ixgbe_reset_pipeline_82599
	mov	r3, r0
	ldr	r1, [r5]
	mov	r0, r4
	ldr	r2, [r4, #4]
	mov	r5, r3
	blx	r2
.L10:
	cmp	r5, #0
	beq	.L9
.L3:
	mov	r0, r4
	ldr	r1, .L21+28
	bl	hw_dbg
	ldr	r3, .L21+32
	ldr	r0, [r3]
	b	.L1
.L7:
	ldr	r3, .L21+20
	ldr	r5, .L21+24
	ldr	r3, [r3]
	ldr	r2, [r4]
	ldr	r1, [r5]
	orr	r2, r2, r3
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r1, [r5]
	mov	r0, r4
	bl	IXGBE_READ_REG
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #12]
	bl	ixgbe_reset_pipeline_82599
	mov	r5, r0
	b	.L10
.L20:
	ldr	r3, .L21+36
	ldr	r0, [r3]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	ixgbe_sfp_type_unknown
	.word	.LC1
	.word	IXGBE_GSSR_MAC_CSR_SM
	.word	65535
	.word	IXGBE_CORECTL
	.word	IXGBE_AUTOC_LMS_10G_SERIAL
	.word	IXGBE_AUTOC
	.word	.LC0
	.word	IXGBE_ERR_SFP_SETUP_NOT_COMPLETE
	.word	IXGBE_ERR_SWFW_SYNC
	.size	ixgbe_setup_sfp_modules_82599, .-ixgbe_setup_sfp_modules_82599
	.comm	ixgbe_sfp_type_unknown,4,4
	.comm	IXGBE_GSSR_MAC_CSR_SM,4,4
	.comm	IXGBE_ERR_SWFW_SYNC,4,4
	.comm	IXGBE_ERR_SFP_SETUP_NOT_COMPLETE,4,4
	.comm	IXGBE_CORECTL,4,4
	.comm	IXGBE_AUTOC_LMS_10G_SERIAL,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
