	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_config_dsp_after_link_change
_e1000_config_dsp_after_link_change:    ## @e1000_config_dsp_after_link_change
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_e1000_phy_igp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.1:
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_4
## %bb.2:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_get_speed_and_duplex
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_27
LBB0_4:
	movq	8(%r14), %rax
	movq	_e1000_dsp_config_activated@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.5:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$12123, %esi                    ## imm = 0x2F5B
	callq	_e1000_read_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.6:
	movl	$3, %edx
	movq	%r14, %rdi
	movl	$12123, %esi                    ## imm = 0x2F5B
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.7:
	movl	$20, %edi
	callq	_msleep
	movq	_IGP01E1000_IEEE_FORCE_GIGA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.8:
	movq	_IGP01E1000_PHY_CHANNEL_NUM@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_13
## %bb.9:
	xorl	%r13d, %r13d
	movq	_dsp_reg_array@GOTPCREL(%rip), %r15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r14, %rdi
	leaq	-56(%rbp), %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_29
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_IGP01E1000_PHY_EDAC_MU_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	notq	%rdx
	andq	-56(%rbp), %rdx
	movq	_IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	%rdx, -56(%rbp)
	movq	(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	testq	%rax, %rax
	jne	LBB0_29
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	cmpq	(%r12), %r13
	jl	LBB0_10
LBB0_13:
	movq	_IGP01E1000_IEEE_RESTART_AUTONEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.14:
	movl	$20, %edi
	callq	_msleep
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$12123, %esi                    ## imm = 0x2F5B
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.15:
	movq	_e1000_dsp_config_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_16:
	movq	16(%r14), %rax
	movq	_e1000_ffe_config_active@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.17:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$12123, %esi                    ## imm = 0x2F5B
	callq	_e1000_read_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.18:
	movl	$3, %edx
	movq	%r14, %rdi
	movl	$12123, %esi                    ## imm = 0x2F5B
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.19:
	movl	$20, %edi
	callq	_msleep
	movq	_IGP01E1000_IEEE_FORCE_GIGA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.20:
	movq	_IGP01E1000_PHY_DSP_FFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IGP01E1000_PHY_DSP_FFE_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.21:
	movq	_IGP01E1000_IEEE_RESTART_AUTONEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.22:
	movl	$20, %edi
	callq	_msleep
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$12123, %esi                    ## imm = 0x2F5B
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
## %bb.23:
	movq	_e1000_ffe_config_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_26
LBB0_24:
	movq	-56(%rbp), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	movq	%r14, %rdi
	callq	_e1000_1000Mb_check_cable_length
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_27
LBB0_26:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_27:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	%rax, %rbx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_igp,8,3              ## @e1000_phy_igp
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error getting link speed and duplex\n"

	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_e1000_dsp_config_activated,8,3 ## @e1000_dsp_config_activated
	.comm	_IGP01E1000_IEEE_FORCE_GIGA,8,3 ## @IGP01E1000_IEEE_FORCE_GIGA
	.comm	_IGP01E1000_PHY_CHANNEL_NUM,8,3 ## @IGP01E1000_PHY_CHANNEL_NUM
	.comm	_dsp_reg_array,8,3              ## @dsp_reg_array
	.comm	_IGP01E1000_PHY_EDAC_MU_INDEX,8,3 ## @IGP01E1000_PHY_EDAC_MU_INDEX
	.comm	_IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS,8,3 ## @IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS
	.comm	_IGP01E1000_IEEE_RESTART_AUTONEG,8,3 ## @IGP01E1000_IEEE_RESTART_AUTONEG
	.comm	_e1000_dsp_config_enabled,8,3   ## @e1000_dsp_config_enabled
	.comm	_e1000_ffe_config_active,8,3    ## @e1000_ffe_config_active
	.comm	_IGP01E1000_PHY_DSP_FFE,4,2     ## @IGP01E1000_PHY_DSP_FFE
	.comm	_IGP01E1000_PHY_DSP_FFE_DEFAULT,8,3 ## @IGP01E1000_PHY_DSP_FFE_DEFAULT
	.comm	_e1000_ffe_config_enabled,8,3   ## @e1000_ffe_config_enabled
	.no_dead_strip	_e1000_config_dsp_after_link_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_config_dsp_after_link_change
_e1000_config_dsp_after_link_change:    ; @e1000_config_dsp_after_link_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_phy_igp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_phy_igp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.1:
	mov	x19, x0
	cbz	w1, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_e1000_get_speed_and_duplex
	cbz	x0, LBB0_24
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_27
LBB0_4:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _e1000_dsp_config_activated@GOTPAGE
Lloh6:
	ldr	x9, [x9, _e1000_dsp_config_activated@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.5:
	mov	x2, sp
	mov	x0, x19
	mov	w1, #12123
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.6:
	mov	x0, x19
	mov	w1, #12123
	mov	w2, #3
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.7:
	mov	w0, #20
	bl	_msleep
Lloh8:
	adrp	x8, _IGP01E1000_IEEE_FORCE_GIGA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IGP01E1000_IEEE_FORCE_GIGA@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.8:
Lloh11:
	adrp	x21, _IGP01E1000_PHY_CHANNEL_NUM@GOTPAGE
Lloh12:
	ldr	x21, [x21, _IGP01E1000_PHY_CHANNEL_NUM@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x22, #0
Lloh13:
	adrp	x23, _dsp_reg_array@GOTPAGE
Lloh14:
	ldr	x23, [x23, _dsp_reg_array@GOTPAGEOFF]
Lloh15:
	adrp	x24, _IGP01E1000_PHY_EDAC_MU_INDEX@GOTPAGE
Lloh16:
	ldr	x24, [x24, _IGP01E1000_PHY_EDAC_MU_INDEX@GOTPAGEOFF]
Lloh17:
	adrp	x25, _IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS@GOTPAGE
Lloh18:
	ldr	x25, [x25, _IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x22, lsl #2]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24]
	ldr	x9, [sp, #8]
	bic	x8, x9, x8
	ldr	x9, [x25]
	orr	x2, x9, x8
	str	x2, [sp, #8]
	ldr	x8, [x23]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	cbnz	x0, LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_13:
Lloh19:
	adrp	x8, _IGP01E1000_IEEE_RESTART_AUTONEG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IGP01E1000_IEEE_RESTART_AUTONEG@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.14:
	mov	w0, #20
	bl	_msleep
	ldr	x2, [sp]
	mov	x0, x19
	mov	w1, #12123
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.15:
Lloh22:
	adrp	x8, _e1000_dsp_config_enabled@GOTPAGE
Lloh23:
	ldr	x8, [x8, _e1000_dsp_config_enabled@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_16:
	ldr	x8, [x19, #16]
Lloh25:
	adrp	x9, _e1000_ffe_config_active@GOTPAGE
Lloh26:
	ldr	x9, [x9, _e1000_ffe_config_active@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.17:
	mov	x2, sp
	mov	x0, x19
	mov	w1, #12123
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.18:
	mov	x0, x19
	mov	w1, #12123
	mov	w2, #3
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.19:
	mov	w0, #20
	bl	_msleep
Lloh28:
	adrp	x8, _IGP01E1000_IEEE_FORCE_GIGA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IGP01E1000_IEEE_FORCE_GIGA@GOTPAGEOFF]
Lloh30:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.20:
Lloh31:
	adrp	x8, _IGP01E1000_PHY_DSP_FFE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IGP01E1000_PHY_DSP_FFE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _IGP01E1000_PHY_DSP_FFE_DEFAULT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IGP01E1000_PHY_DSP_FFE_DEFAULT@GOTPAGEOFF]
Lloh36:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.21:
Lloh37:
	adrp	x8, _IGP01E1000_IEEE_RESTART_AUTONEG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IGP01E1000_IEEE_RESTART_AUTONEG@GOTPAGEOFF]
Lloh39:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.22:
	mov	w0, #20
	bl	_msleep
	ldr	x2, [sp]
	mov	x0, x19
	mov	w1, #12123
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_27
; %bb.23:
Lloh40:
	adrp	x8, _e1000_ffe_config_enabled@GOTPAGE
Lloh41:
	ldr	x8, [x8, _e1000_ffe_config_enabled@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_26
LBB0_24:
	ldr	x8, [sp, #8]
Lloh43:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_e1000_1000Mb_check_cable_length
	mov	x20, x0
	cbnz	x0, LBB0_27
LBB0_26:
Lloh46:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh48:
	ldr	x20, [x8]
LBB0_27:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_28:
	mov	x20, x0
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_igp,8,3              ; @e1000_phy_igp
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error getting link speed and duplex\n"

	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_e1000_dsp_config_activated,8,3 ; @e1000_dsp_config_activated
	.comm	_IGP01E1000_IEEE_FORCE_GIGA,8,3 ; @IGP01E1000_IEEE_FORCE_GIGA
	.comm	_IGP01E1000_PHY_CHANNEL_NUM,8,3 ; @IGP01E1000_PHY_CHANNEL_NUM
	.comm	_dsp_reg_array,8,3              ; @dsp_reg_array
	.comm	_IGP01E1000_PHY_EDAC_MU_INDEX,8,3 ; @IGP01E1000_PHY_EDAC_MU_INDEX
	.comm	_IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS,8,3 ; @IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS
	.comm	_IGP01E1000_IEEE_RESTART_AUTONEG,8,3 ; @IGP01E1000_IEEE_RESTART_AUTONEG
	.comm	_e1000_dsp_config_enabled,8,3   ; @e1000_dsp_config_enabled
	.comm	_e1000_ffe_config_active,8,3    ; @e1000_ffe_config_active
	.comm	_IGP01E1000_PHY_DSP_FFE,4,2     ; @IGP01E1000_PHY_DSP_FFE
	.comm	_IGP01E1000_PHY_DSP_FFE_DEFAULT,8,3 ; @IGP01E1000_PHY_DSP_FFE_DEFAULT
	.comm	_e1000_ffe_config_enabled,8,3   ; @e1000_ffe_config_enabled
	.no_dead_strip	_e1000_config_dsp_after_link_change
.subsections_via_symbols
