	.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
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r15
	callq	_ixgbe_init_mac_link_ops_82599
	movq	$0, 56(%r15)
	leaq	-44(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ixgbe_get_sfp_init_sequence_offsets
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	_IXGBE_GSSR_MAC_CSR_SM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*40(%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	8(%r15), %rax
	movl	-36(%rbp), %esi
	incl	%esi
	movl	%esi, -36(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_IXGBE_CORECTL@GOTPCREL(%rip), %rbx
	leaq	-40(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-40(%rbp), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_IXGBE_WRITE_REG
	movq	%r15, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movq	8(%r15), %rax
	movl	-36(%rbp), %esi
	incl	%esi
	movl	%esi, -36(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*24(%r15)
	movl	(%r15), %eax
	imull	$1000, %eax, %edi               ## imm = 0x3E8
	imull	$2000, %eax, %esi               ## imm = 0x7D0
	callq	_usleep_range
	movl	-36(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_err
LBB0_11:
	movq	_IXGBE_ERR_SFP_SETUP_NOT_COMPLETE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*24(%r15)
	movl	(%r15), %eax
	imull	$1000, %eax, %edi               ## imm = 0x3E8
	imull	$2000, %eax, %esi               ## imm = 0x7D0
	callq	_usleep_range
	movq	_IXGBE_AUTOC_LMS_10G_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	16(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*32(%r15)
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	jmp	LBB0_11
	.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,4,2        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_CORECTL,4,2              ## @IXGBE_CORECTL
	.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,4,2 ## @IXGBE_ERR_SFP_SETUP_NOT_COMPLETE
L_.str.1:                               ## @.str.1
	.asciz	"eeprom read at offset %d failed\n"

	.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
; %bb.1:
	mov	w0, #0
	b	LBB0_12
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	w0, LBB0_12
; %bb.3:
	ldr	x8, [x19, #40]
Lloh3:
	adrp	x20, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #8]
	add	w1, w9, #1
	str	w1, [sp, #8]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_9
; %bb.6:
	mov	w21, #65535
Lloh7:
	adrp	x22, _IXGBE_CORECTL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IXGBE_CORECTL@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [sp, #4]
	cmp	w2, w21
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #8]
	add	w1, w9, #1
	str	w1, [sp, #8]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_7
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
	mov	w9, #1000
	mul	w0, w8, w9
	mov	w9, #2000
	mul	w1, w8, w9
	bl	_usleep_range
	ldr	w2, [sp, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_err
LBB0_10:
Lloh11:
	adrp	x8, _IXGBE_ERR_SFP_SETUP_NOT_COMPLETE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_ERR_SFP_SETUP_NOT_COMPLETE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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_13:
	ldr	x8, [x19, #24]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
	mov	w9, #1000
	mul	w0, w8, w9
	mov	w9, #2000
	mul	w1, w8, w9
	bl	_usleep_range
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #16]
Lloh13:
	adrp	x10, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w1, w10, w9
	mov	x0, x19
	mov	w2, #0
	blr	x8
	cbz	w0, LBB0_12
; %bb.14:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.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,4,2        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_CORECTL,4,2              ; @IXGBE_CORECTL
	.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,4,2 ; @IXGBE_ERR_SFP_SETUP_NOT_COMPLETE
l_.str.1:                               ; @.str.1
	.asciz	"eeprom read at offset %d failed\n"

	.no_dead_strip	_ixgbe_setup_sfp_modules_82599
.subsections_via_symbols
