	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_reset_mdicnfg_82580
_igb_reset_mdicnfg_82580:               ## @igb_reset_mdicnfg_82580
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -28(%rbp)
	movq	16(%rdi), %rax
	movq	_e1000_82580@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	callq	_igb_sgmii_active_82575
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	8(%rbx), %r15
	movq	_NVM_INIT_CONTROL3_PORT_A@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%rbx), %edi
	callq	_NVM_82580_LAN_FUNC_OFFSET
	addq	%rax, %r14
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	*%r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_10
LBB0_4:
	movq	_E1000_MDICNFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movl	-28(%rbp), %ecx
	movq	_NVM_WORD24_EXT_MDIO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	%ecx, %esi
	je	LBB0_6
## %bb.5:
	movq	_E1000_MDICNFG_EXT_MDIO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_6:
	orl	%eax, %esi
	movq	_NVM_WORD24_COM_MDIO@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_8
## %bb.7:
	movq	_E1000_MDICNFG_COM_MDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	orl	%ecx, %esi
	movl	(%rbx), %edi
	callq	_wr32
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_82580,8,3                ## @e1000_82580
	.comm	_NVM_INIT_CONTROL3_PORT_A,8,3   ## @NVM_INIT_CONTROL3_PORT_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM Read Error\n"

	.comm	_E1000_MDICNFG,4,2              ## @E1000_MDICNFG
	.comm	_NVM_WORD24_EXT_MDIO,4,2        ## @NVM_WORD24_EXT_MDIO
	.comm	_E1000_MDICNFG_EXT_MDIO,4,2     ## @E1000_MDICNFG_EXT_MDIO
	.comm	_NVM_WORD24_COM_MDIO,4,2        ## @NVM_WORD24_COM_MDIO
	.comm	_E1000_MDICNFG_COM_MDIO,4,2     ## @E1000_MDICNFG_COM_MDIO
	.no_dead_strip	_igb_reset_mdicnfg_82580
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_reset_mdicnfg_82580
_igb_reset_mdicnfg_82580:               ; @igb_reset_mdicnfg_82580
	.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
	str	wzr, [sp, #12]
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _e1000_82580@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82580@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_igb_sgmii_active_82575
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x20, [x19, #8]
Lloh3:
	adrp	x8, _NVM_INIT_CONTROL3_PORT_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVM_INIT_CONTROL3_PORT_A@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	ldr	w0, [x19]
	bl	_NVM_82580_LAN_FUNC_OFFSET
	add	x1, x0, x21
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	blr	x20
	cbz	x0, LBB0_4
; %bb.3:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x19, _E1000_MDICNFG@GOTPAGE
Lloh9:
	ldr	x19, [x19, _E1000_MDICNFG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rd32
Lloh10:
	adrp	x8, _NVM_WORD24_EXT_MDIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NVM_WORD24_EXT_MDIO@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x10, _E1000_MDICNFG_EXT_MDIO@GOTPAGE
Lloh14:
	ldr	x10, [x10, _E1000_MDICNFG_EXT_MDIO@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w8, w9
	csel	w8, wzr, w10, eq
	orr	w8, w8, w0
Lloh16:
	adrp	x10, _NVM_WORD24_COM_MDIO@GOTPAGE
Lloh17:
	ldr	x10, [x10, _NVM_WORD24_COM_MDIO@GOTPAGEOFF]
Lloh18:
	adrp	x11, _E1000_MDICNFG_COM_MDIO@GOTPAGE
Lloh19:
	ldr	x11, [x11, _E1000_MDICNFG_COM_MDIO@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w1, w8, w9
	ldr	w0, [x19]
	bl	_wr32
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_82580,8,3                ; @e1000_82580
	.comm	_NVM_INIT_CONTROL3_PORT_A,8,3   ; @NVM_INIT_CONTROL3_PORT_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM Read Error\n"

	.comm	_E1000_MDICNFG,4,2              ; @E1000_MDICNFG
	.comm	_NVM_WORD24_EXT_MDIO,4,2        ; @NVM_WORD24_EXT_MDIO
	.comm	_E1000_MDICNFG_EXT_MDIO,4,2     ; @E1000_MDICNFG_EXT_MDIO
	.comm	_NVM_WORD24_COM_MDIO,4,2        ; @NVM_WORD24_COM_MDIO
	.comm	_E1000_MDICNFG_COM_MDIO,4,2     ; @E1000_MDICNFG_COM_MDIO
	.no_dead_strip	_igb_reset_mdicnfg_82580
.subsections_via_symbols
