	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_1000Mb_check_cable_length
_e1000_1000Mb_check_cable_length:       ## @e1000_1000Mb_check_cable_length
	.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, %r14
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_e1000_get_cable_length
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_23
## %bb.1:
	movq	(%r14), %rax
	movq	_e1000_dsp_config_enabled@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.2:
	movq	-56(%rbp), %rax
	movq	_e1000_igp_cable_length_50@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_12
## %bb.3:
	movq	_FFE_IDLE_ERR_COUNT_TIMEOUT_20@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PHY_1000T_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_23
## %bb.4:
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	jle	LBB0_23
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	cmpq	%rbx, %r12
	jge	LBB0_23
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	_PHY_1000T_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	-48(%rbp), %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_SR_1000T_IDLE_ERROR_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	-48(%rbp), %rax
	addq	%rax, %r15
	movq	_SR_1000T_PHY_EXCESSIVE_IDLE_ERR_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jg	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%r15, %r15
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_FFE_IDLE_ERR_COUNT_TIMEOUT_100@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_6
LBB0_12:
	movq	_IGP01E1000_PHY_CHANNEL_NUM@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	movq	_dsp_reg_array@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_IGP01E1000_PHY_EDAC_MU_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	notq	%rdx
	andq	-48(%rbp), %rdx
	movq	%rdx, -48(%rbp)
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movq	_IGP01E1000_PHY_CHANNEL_NUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_14
LBB0_17:
	movq	_e1000_dsp_config_activated@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_22:
	xorl	%r13d, %r13d
LBB0_23:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rax, %r13
	jmp	LBB0_23
LBB0_21:
	movq	_e1000_ffe_config_active@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_IGP01E1000_PHY_DSP_FFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IGP01E1000_PHY_DSP_FFE_CM_CP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_23
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_dsp_config_enabled,8,3   ## @e1000_dsp_config_enabled
	.comm	_e1000_igp_cable_length_50,8,3  ## @e1000_igp_cable_length_50
	.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	_e1000_dsp_config_activated,8,3 ## @e1000_dsp_config_activated
	.comm	_FFE_IDLE_ERR_COUNT_TIMEOUT_20,8,3 ## @FFE_IDLE_ERR_COUNT_TIMEOUT_20
	.comm	_PHY_1000T_STATUS,4,2           ## @PHY_1000T_STATUS
	.comm	_SR_1000T_IDLE_ERROR_CNT,8,3    ## @SR_1000T_IDLE_ERROR_CNT
	.comm	_SR_1000T_PHY_EXCESSIVE_IDLE_ERR_COUNT,8,3 ## @SR_1000T_PHY_EXCESSIVE_IDLE_ERR_COUNT
	.comm	_e1000_ffe_config_active,4,2    ## @e1000_ffe_config_active
	.comm	_IGP01E1000_PHY_DSP_FFE,4,2     ## @IGP01E1000_PHY_DSP_FFE
	.comm	_IGP01E1000_PHY_DSP_FFE_CM_CP,8,3 ## @IGP01E1000_PHY_DSP_FFE_CM_CP
	.comm	_FFE_IDLE_ERR_COUNT_TIMEOUT_100,8,3 ## @FFE_IDLE_ERR_COUNT_TIMEOUT_100
	.no_dead_strip	_e1000_1000Mb_check_cable_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_1000Mb_check_cable_length
_e1000_1000Mb_check_cable_length:       ; @e1000_1000Mb_check_cable_length
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_e1000_get_cable_length
	cbnz	x0, LBB0_16
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _e1000_dsp_config_enabled@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_dsp_config_enabled@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, _e1000_igp_cable_length_50@GOTPAGE
Lloh4:
	ldr	x9, [x9, _e1000_igp_cable_length_50@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.3:
Lloh6:
	adrp	x8, _FFE_IDLE_ERR_COUNT_TIMEOUT_20@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FFE_IDLE_ERR_COUNT_TIMEOUT_20@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
Lloh9:
	adrp	x21, _PHY_1000T_STATUS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PHY_1000T_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_16
; %bb.4:
	cmp	x20, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
	mov	x23, #0
Lloh11:
	adrp	x24, _SR_1000T_IDLE_ERROR_CNT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _SR_1000T_IDLE_ERROR_CNT@GOTPAGEOFF]
Lloh13:
	adrp	x25, _SR_1000T_PHY_EXCESSIVE_IDLE_ERR_COUNT@GOTPAGE
Lloh14:
	ldr	x25, [x25, _SR_1000T_PHY_EXCESSIVE_IDLE_ERR_COUNT@GOTPAGEOFF]
Lloh15:
	adrp	x26, _FFE_IDLE_ERR_COUNT_TIMEOUT_100@GOTPAGE
Lloh16:
	ldr	x26, [x26, _FFE_IDLE_ERR_COUNT_TIMEOUT_100@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	bl	_udelay
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	and	x8, x9, x8
	ldr	x9, [x25]
	add	x22, x8, x22
	cmp	x22, x9
	b.gt	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, #0
	ldr	x8, [x26]
	cmp	x22, #0
	csel	x20, x20, x8, eq
	add	x23, x23, #1
	cmp	x23, x20
	b.lt	LBB0_6
	b	LBB0_16
LBB0_9:
	mov	x0, #0
	b	LBB0_16
LBB0_10:
Lloh17:
	adrp	x20, _IGP01E1000_PHY_CHANNEL_NUM@GOTPAGE
Lloh18:
	ldr	x20, [x20, _IGP01E1000_PHY_CHANNEL_NUM@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x21, #0
Lloh19:
	adrp	x22, _dsp_reg_array@GOTPAGE
Lloh20:
	ldr	x22, [x22, _dsp_reg_array@GOTPAGEOFF]
Lloh21:
	adrp	x23, _IGP01E1000_PHY_EDAC_MU_INDEX@GOTPAGE
Lloh22:
	ldr	x23, [x23, _IGP01E1000_PHY_EDAC_MU_INDEX@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23]
	ldr	x9, [sp, #8]
	bic	x2, x9, x8
	str	x2, [sp, #8]
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_12
LBB0_15:
	mov	x0, #0
Lloh23:
	adrp	x8, _e1000_dsp_config_activated@GOTPAGE
Lloh24:
	ldr	x8, [x8, _e1000_dsp_config_activated@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
Lloh26:
	adrp	x8, _e1000_ffe_config_active@GOTPAGE
Lloh27:
	ldr	x8, [x8, _e1000_ffe_config_active@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh29:
	adrp	x8, _IGP01E1000_PHY_DSP_FFE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IGP01E1000_PHY_DSP_FFE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _IGP01E1000_PHY_DSP_FFE_CM_CP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IGP01E1000_PHY_DSP_FFE_CM_CP@GOTPAGEOFF]
Lloh34:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_dsp_config_enabled,8,3   ; @e1000_dsp_config_enabled
	.comm	_e1000_igp_cable_length_50,8,3  ; @e1000_igp_cable_length_50
	.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	_e1000_dsp_config_activated,8,3 ; @e1000_dsp_config_activated
	.comm	_FFE_IDLE_ERR_COUNT_TIMEOUT_20,8,3 ; @FFE_IDLE_ERR_COUNT_TIMEOUT_20
	.comm	_PHY_1000T_STATUS,4,2           ; @PHY_1000T_STATUS
	.comm	_SR_1000T_IDLE_ERROR_CNT,8,3    ; @SR_1000T_IDLE_ERROR_CNT
	.comm	_SR_1000T_PHY_EXCESSIVE_IDLE_ERR_COUNT,8,3 ; @SR_1000T_PHY_EXCESSIVE_IDLE_ERR_COUNT
	.comm	_e1000_ffe_config_active,4,2    ; @e1000_ffe_config_active
	.comm	_IGP01E1000_PHY_DSP_FFE,4,2     ; @IGP01E1000_PHY_DSP_FFE
	.comm	_IGP01E1000_PHY_DSP_FFE_CM_CP,8,3 ; @IGP01E1000_PHY_DSP_FFE_CM_CP
	.comm	_FFE_IDLE_ERR_COUNT_TIMEOUT_100,8,3 ; @FFE_IDLE_ERR_COUNT_TIMEOUT_100
	.no_dead_strip	_e1000_1000Mb_check_cable_length
.subsections_via_symbols
