	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_sfp_modules_82599
_ixgbe_setup_sfp_modules_82599:         ## @ixgbe_setup_sfp_modules_82599
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	48(%rdi), %rax
	movq	_ixgbe_sfp_type_unknown@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %rbx
	callq	_ixgbe_init_mac_link_ops_82599
	movq	$0, 56(%rbx)
	leaq	-44(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ixgbe_get_sfp_init_sequence_offsets
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_IXGBE_GSSR_MAC_CSR_SM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	40(%rbx), %rax
	movl	-36(%rbp), %esi
	incl	%esi
	movl	%esi, -36(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*%rax
	movl	-40(%rbp), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_10
## %bb.8:
	movq	_IXGBE_CORECTL@GOTPCREL(%rip), %r15
	leaq	-40(%rbp), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_WRITE_REG
	movq	%rbx, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movq	40(%rbx), %rax
	movl	-36(%rbp), %esi
	incl	%esi
	movl	%esi, -36(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	*%rax
	movl	-40(%rbp), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	jne	LBB0_9
LBB0_10:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	32(%rbx), %eax
	imull	$1000, %eax, %edi               ## imm = 0x3E8
	imull	$2000, %eax, %esi               ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_ixgbe_verify_lesm_fw_enabled_82599
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	testq	%rax, %rax
	jne	LBB0_6
LBB0_12:
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_IXGBE_AUTOC_LMS_10G_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_IXGBE_WRITE_REG
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_IXGBE_READ_REG
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_ixgbe_reset_pipeline_82599
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
LBB0_14:
	testq	%r15, %r15
	je	LBB0_1
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_SFP_SETUP_NOT_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_sfp_type_unknown,8,3     ## @ixgbe_sfp_type_unknown
	.comm	_IXGBE_GSSR_MAC_CSR_SM,4,2      ## @IXGBE_GSSR_MAC_CSR_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,8,3        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_CORECTL,4,2              ## @IXGBE_CORECTL
	.comm	_IXGBE_AUTOC,4,2                ## @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_10G_SERIAL,4,2 ## @IXGBE_AUTOC_LMS_10G_SERIAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" sfp module setup not complete\n"

	.comm	_IXGBE_ERR_SFP_SETUP_NOT_COMPLETE,8,3 ## @IXGBE_ERR_SFP_SETUP_NOT_COMPLETE
	.no_dead_strip	_ixgbe_setup_sfp_modules_82599
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_setup_sfp_modules_82599
_ixgbe_setup_sfp_modules_82599:         ; @ixgbe_setup_sfp_modules_82599
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #48]
Lloh0:
	adrp	x9, _ixgbe_sfp_type_unknown@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ixgbe_sfp_type_unknown@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	mov	x0, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	bl	_ixgbe_init_mac_link_ops_82599
	str	xzr, [x19, #56]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_ixgbe_get_sfp_init_sequence_offsets
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x22, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_7
; %bb.4:
Lloh5:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x8, [x19, #40]
	ldr	w9, [sp, #8]
	add	w1, w9, #1
	str	w1, [sp, #8]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	w2, [sp, #4]
	mov	w20, #65535
	cmp	w2, w20
	b.eq	LBB0_10
; %bb.8:
Lloh7:
	adrp	x21, _IXGBE_CORECTL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _IXGBE_CORECTL@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	ldr	x8, [x19, #40]
	ldr	w9, [sp, #8]
	add	w1, w9, #1
	str	w1, [sp, #8]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	w2, [sp, #4]
	cmp	w2, w20
	b.ne	LBB0_9
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19, #32]
	mov	w9, #1000
	mul	w0, w8, w9
	mov	w9, #2000
	mul	w1, w8, w9
	bl	_usleep_range
	mov	x0, x19
	bl	_ixgbe_verify_lesm_fw_enabled_82599
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_6
LBB0_12:
Lloh9:
	adrp	x21, _IXGBE_AUTOC@GOTPAGE
Lloh10:
	ldr	x21, [x21, _IXGBE_AUTOC@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	ldr	w1, [x21]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	str	w0, [x19, #24]
	mov	x0, x19
	bl	_ixgbe_reset_pipeline_82599
	mov	x21, x0
	cbz	x20, LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
LBB0_14:
	cbz	x21, LBB0_1
; %bb.15:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh16:
	adrp	x8, _IXGBE_ERR_SFP_SETUP_NOT_COMPLETE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IXGBE_ERR_SFP_SETUP_NOT_COMPLETE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_sfp_type_unknown,8,3     ; @ixgbe_sfp_type_unknown
	.comm	_IXGBE_GSSR_MAC_CSR_SM,4,2      ; @IXGBE_GSSR_MAC_CSR_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,8,3        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_CORECTL,4,2              ; @IXGBE_CORECTL
	.comm	_IXGBE_AUTOC,4,2                ; @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_10G_SERIAL,4,2 ; @IXGBE_AUTOC_LMS_10G_SERIAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" sfp module setup not complete\n"

	.comm	_IXGBE_ERR_SFP_SETUP_NOT_COMPLETE,8,3 ; @IXGBE_ERR_SFP_SETUP_NOT_COMPLETE
	.no_dead_strip	_ixgbe_setup_sfp_modules_82599
.subsections_via_symbols
