	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_phy_force_speed_duplex
_e1000_phy_force_speed_duplex:          ## @e1000_phy_force_speed_duplex
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_E1000_FC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 40(%rdi)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %r12d
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	movq	_DEVICE_SPEED_MASK@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_ASDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_PHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	notl	%ebx
	movq	_MII_CR_AUTO_NEG_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	-56(%rbp), %rax
	andl	%ebx, %r12d
	movq	(%r14), %rcx
	movq	_e1000_100_full@GOTPCREL(%rip), %r13
	movq	_e1000_10_full@GOTPCREL(%rip), %rsi
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	cmpq	(%r13), %rcx
	je	LBB0_5
## %bb.3:
	cmpq	(%rsi), %rcx
	je	LBB0_5
## %bb.4:
	notl	%r15d
	andl	%r12d, %r15d
	movq	_MII_CR_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rcx, %rax
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	orl	%r12d, %r15d
	movq	_MII_CR_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	callq	_e_dbg
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.7:
	movq	_e1000_100_half@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_E1000_CTRL_SPD_1000@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_SPD_100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movq	_MII_CR_SPEED_10@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rax
	orq	(%rcx), %rax
	leaq	L_.str.4(%rip), %rdi
	movq	_MII_CR_SPEED_100@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_E1000_CTRL_SPD_100@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MII_CR_SPEED_100@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rax
	orq	(%rcx), %rax
	leaq	L_.str.3(%rip), %rdi
	movq	_MII_CR_SPEED_10@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	_PHY_CTRL@GOTPCREL(%rip), %r13
	movq	_MII_CR_SPEED_1000@GOTPCREL(%rip), %rdx
	movq	(%rcx), %rcx
	orq	(%rdx), %rcx
	notq	%rcx
	andq	%rax, %rcx
	movq	%rcx, -56(%rbp)
	xorl	%eax, %eax
	callq	_e_dbg
	movq	%r14, %rdi
	callq	_e1000_config_collision_dist
	movq	_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ew32
	movq	8(%r14), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.11:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.12:
	movq	_M88E1000_PSCR_AUTO_X_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	notq	%rdx
	andq	-48(%rbp), %rdx
	movq	%rdx, -48(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.13:
	movq	-48(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_MII_CR_RESET@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdx
	orq	(%rax), %rdx
	movq	%rdx, -56(%rbp)
	jmp	LBB0_17
LBB0_14:
	movq	_IGP01E1000_PHY_PORT_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.15:
	movq	_IGP01E1000_PSCR_AUTO_MDIX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	notq	%rdx
	andq	-48(%rbp), %rdx
	movq	%rdx, -48(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.16:
	movq	-56(%rbp), %rdx
LBB0_17:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.18:
	movl	$1, %edi
	callq	_udelay
	cmpq	$0, 32(%r14)
	je	LBB0_35
## %bb.19:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	$0, -64(%rbp)
	movq	_PHY_FORCE_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_25
## %bb.20:
	incq	%rax
	movq	_PHY_STATUS@GOTPCREL(%rip), %r13
	leaq	-64(%rbp), %rbx
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_47
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_47
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_MII_SR_LINK_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -64(%rbp)
	jne	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	$100, %edi
	callq	_msleep
	movq	%r12, %rax
	decq	%rax
	cmpq	$1, %rax
	movq	_PHY_STATUS@GOTPCREL(%rip), %r13
	movq	_e1000_phy_m88@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %rbx
	jg	LBB0_21
	jmp	LBB0_26
LBB0_25:
	jne	LBB0_35
LBB0_26:
	movq	8(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_29
## %bb.27:
	movq	%r14, %rdi
	callq	_e1000_phy_reset_dsp
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	%rax, %r15
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	jmp	LBB0_1
LBB0_29:
	movq	_PHY_FORCE_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	movq	_e1000_phy_m88@GOTPCREL(%rip), %r12
	jle	LBB0_35
## %bb.30:
	incq	%rcx
	movq	_PHY_STATUS@GOTPCREL(%rip), %rbx
	leaq	-64(%rbp), %r13
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	_MII_SR_LINK_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -64(%rbp)
	jne	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$100, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_47
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%r13, %rdx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_47
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	decq	%rcx
	cmpq	$2, %rcx
	jge	LBB0_31
LBB0_35:
	movq	8(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_46
## %bb.36:
	movq	_M88E1000_EXT_PHY_SPEC_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.37:
	movq	_M88E1000_EPSCR_TX_CLK_25@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdx
	orq	(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.38:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.39:
	movq	_M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdx
	orq	(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
## %bb.40:
	movq	16(%r14), %rax
	movq	_e1000_82544@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_42
## %bb.41:
	movq	_e1000_82543@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
LBB0_42:
	cmpl	$0, 24(%r14)
	jne	LBB0_46
## %bb.43:
	movq	(%r14), %rax
	movq	_e1000_10_full@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_45
## %bb.44:
	movq	_e1000_10_half@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
LBB0_45:
	movq	%r14, %rdi
	callq	_e1000_polarity_reversal_workaround
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_1
LBB0_46:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_1
LBB0_47:
	movq	%rax, %r15
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_FC_NONE,4,2              ## @E1000_FC_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw->fc = %d\n"

	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ## @E1000_CTRL_FRCDPX
	.comm	_DEVICE_SPEED_MASK,4,2          ## @DEVICE_SPEED_MASK
	.comm	_E1000_CTRL_ASDE,4,2            ## @E1000_CTRL_ASDE
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_MII_CR_AUTO_NEG_EN,8,3         ## @MII_CR_AUTO_NEG_EN
	.comm	_e1000_100_full,8,3             ## @e1000_100_full
	.comm	_e1000_10_full,8,3              ## @e1000_10_full
	.comm	_E1000_CTRL_FD,4,2              ## @E1000_CTRL_FD
	.comm	_MII_CR_FULL_DUPLEX,8,3         ## @MII_CR_FULL_DUPLEX
L_.str.1:                               ## @.str.1
	.asciz	"Full Duplex\n"

L_.str.2:                               ## @.str.2
	.asciz	"Half Duplex\n"

	.comm	_e1000_100_half,8,3             ## @e1000_100_half
	.comm	_E1000_CTRL_SPD_100,4,2         ## @E1000_CTRL_SPD_100
	.comm	_MII_CR_SPEED_100,8,3           ## @MII_CR_SPEED_100
	.comm	_MII_CR_SPEED_1000,8,3          ## @MII_CR_SPEED_1000
	.comm	_MII_CR_SPEED_10,8,3            ## @MII_CR_SPEED_10
L_.str.3:                               ## @.str.3
	.asciz	"Forcing 100mb "

	.comm	_E1000_CTRL_SPD_1000,4,2        ## @E1000_CTRL_SPD_1000
L_.str.4:                               ## @.str.4
	.asciz	"Forcing 10mb "

	.comm	_e1000_phy_m88,8,3              ## @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_AUTO_X_MODE,8,3  ## @M88E1000_PSCR_AUTO_X_MODE
L_.str.5:                               ## @.str.5
	.asciz	"M88E1000 PSCR: %x\n"

	.comm	_MII_CR_RESET,8,3               ## @MII_CR_RESET
	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ## @IGP01E1000_PHY_PORT_CTRL
	.comm	_IGP01E1000_PSCR_AUTO_MDIX,8,3  ## @IGP01E1000_PSCR_AUTO_MDIX
	.comm	_IGP01E1000_PSCR_FORCE_MDI_MDIX,8,3 ## @IGP01E1000_PSCR_FORCE_MDI_MDIX
L_.str.6:                               ## @.str.6
	.asciz	"Waiting for forced speed/duplex link.\n"

	.comm	_PHY_FORCE_TIME,8,3             ## @PHY_FORCE_TIME
	.comm	_PHY_STATUS,4,2                 ## @PHY_STATUS
	.comm	_MII_SR_LINK_STATUS,8,3         ## @MII_SR_LINK_STATUS
L_.str.7:                               ## @.str.7
	.asciz	"Error Resetting PHY DSP\n"

	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ## @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,8,3   ## @M88E1000_EPSCR_TX_CLK_25
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,8,3 ## @M88E1000_PSCR_ASSERT_CRS_ON_TX
	.comm	_e1000_82544,8,3                ## @e1000_82544
	.comm	_e1000_82543,8,3                ## @e1000_82543
	.comm	_e1000_10_half,8,3              ## @e1000_10_half
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_phy_force_speed_duplex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_phy_force_speed_duplex
_e1000_phy_force_speed_duplex:          ; @e1000_phy_force_speed_duplex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _E1000_FC_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_FC_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh5:
	adrp	x22, _CTRL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
	mov	x21, x0
Lloh7:
	adrp	x8, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
Lloh10:
	adrp	x8, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
Lloh13:
	adrp	x8, _DEVICE_SPEED_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DEVICE_SPEED_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w26, [x8]
Lloh16:
	adrp	x8, _E1000_CTRL_ASDE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_CTRL_ASDE@GOTPAGEOFF]
Lloh18:
	ldr	w27, [x8]
Lloh19:
	adrp	x23, _PHY_CTRL@GOTPAGE
Lloh20:
	ldr	x23, [x23, _PHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #24
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	orr	w8, w24, w21
	orr	w8, w8, w25
	orr	w9, w27, w26
	bic	w9, w8, w9
Lloh21:
	adrp	x8, _MII_CR_AUTO_NEG_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MII_CR_AUTO_NEG_EN@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x10, [sp, #24]
	bic	x8, x10, x8
	ldr	x12, [x19]
Lloh24:
	adrp	x24, _e1000_100_full@GOTPAGE
Lloh25:
	ldr	x24, [x24, _e1000_100_full@GOTPAGEOFF]
	ldr	x13, [x24]
Lloh26:
	adrp	x21, _e1000_10_full@GOTPAGE
Lloh27:
	ldr	x21, [x21, _e1000_10_full@GOTPAGEOFF]
Lloh28:
	adrp	x10, _E1000_CTRL_FD@GOTPAGE
Lloh29:
	ldr	x10, [x10, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x10]
Lloh31:
	adrp	x10, _MII_CR_FULL_DUPLEX@GOTPAGE
Lloh32:
	ldr	x10, [x10, _MII_CR_FULL_DUPLEX@GOTPAGEOFF]
	cmp	x12, x13
	b.eq	LBB0_5
; %bb.3:
	ldr	x13, [x21]
	cmp	x12, x13
	b.eq	LBB0_5
; %bb.4:
	bic	w20, w9, w11
	ldr	x9, [x10]
	bic	x8, x8, x9
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	orr	w20, w11, w9
	ldr	x9, [x10]
	orr	x8, x9, x8
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	str	x8, [sp, #24]
	bl	_e_dbg
	ldr	x9, [x19]
	ldr	x10, [x24]
Lloh37:
	adrp	x8, _E1000_CTRL_SPD_100@GOTPAGE
Lloh38:
	ldr	x8, [x8, _E1000_CTRL_SPD_100@GOTPAGEOFF]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.7:
Lloh39:
	adrp	x10, _e1000_100_half@GOTPAGE
Lloh40:
	ldr	x10, [x10, _e1000_100_half@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.8:
Lloh42:
	adrp	x9, _E1000_CTRL_SPD_1000@GOTPAGE
Lloh43:
	ldr	x9, [x9, _E1000_CTRL_SPD_1000@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w8, w8, w9
	bic	w20, w20, w8
Lloh45:
	adrp	x8, _MII_CR_SPEED_10@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MII_CR_SPEED_10@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	orr	x8, x9, x8
Lloh48:
	adrp	x0, l_.str.4@PAGE
Lloh49:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh50:
	adrp	x9, _MII_CR_SPEED_100@GOTPAGE
Lloh51:
	ldr	x9, [x9, _MII_CR_SPEED_100@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh52:
	adrp	x9, _MII_CR_SPEED_100@GOTPAGE
Lloh53:
	ldr	x9, [x9, _MII_CR_SPEED_100@GOTPAGEOFF]
	ldr	w8, [x8]
	orr	w20, w8, w20
Lloh54:
	ldr	x8, [x9]
	ldr	x9, [sp, #24]
	orr	x8, x9, x8
Lloh55:
	adrp	x0, l_.str.3@PAGE
Lloh56:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh57:
	adrp	x9, _MII_CR_SPEED_10@GOTPAGE
Lloh58:
	ldr	x9, [x9, _MII_CR_SPEED_10@GOTPAGEOFF]
LBB0_10:
Lloh59:
	adrp	x10, _MII_CR_SPEED_1000@GOTPAGE
Lloh60:
	ldr	x10, [x10, _MII_CR_SPEED_1000@GOTPAGEOFF]
Lloh61:
	ldr	x10, [x10]
	ldr	x9, [x9]
	orr	x9, x9, x10
	bic	x8, x8, x9
	str	x8, [sp, #24]
	bl	_e_dbg
	mov	x0, x19
	bl	_e1000_config_collision_dist
	ldr	w0, [x22]
	mov	x1, x20
	bl	_ew32
	ldr	x8, [x19, #8]
Lloh62:
	adrp	x22, _e1000_phy_m88@GOTPAGE
Lloh63:
	ldr	x22, [x22, _e1000_phy_m88@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
Lloh64:
	adrp	x24, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh65:
	ldr	x24, [x24, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.12:
Lloh66:
	adrp	x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	bic	x2, x9, x8
	str	x2, [sp, #8]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.13:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh69:
	adrp	x0, l_.str.5@PAGE
Lloh70:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_e_dbg
Lloh71:
	adrp	x8, _MII_CR_RESET@GOTPAGE
Lloh72:
	ldr	x8, [x8, _MII_CR_RESET@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	orr	x2, x9, x8
	str	x2, [sp, #24]
	b	LBB0_17
LBB0_14:
Lloh74:
	adrp	x24, _IGP01E1000_PHY_PORT_CTRL@GOTPAGE
Lloh75:
	ldr	x24, [x24, _IGP01E1000_PHY_PORT_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.15:
Lloh76:
	adrp	x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGE
Lloh77:
	ldr	x8, [x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
Lloh79:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh80:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
	ldr	x10, [sp, #8]
Lloh81:
	ldr	x9, [x9]
	orr	x8, x8, x9
	bic	x2, x10, x8
	str	x2, [sp, #8]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.16:
	ldr	x2, [sp, #24]
LBB0_17:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.18:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_35
; %bb.19:
Lloh82:
	adrp	x0, l_.str.6@PAGE
Lloh83:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_e_dbg
	str	xzr, [sp, #16]
Lloh84:
	adrp	x23, _PHY_FORCE_TIME@GOTPAGE
Lloh85:
	ldr	x23, [x23, _PHY_FORCE_TIME@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_25
; %bb.20:
	add	x24, x8, #1
Lloh86:
	adrp	x25, _PHY_STATUS@GOTPAGE
Lloh87:
	ldr	x25, [x25, _PHY_STATUS@GOTPAGEOFF]
Lloh88:
	adrp	x26, _MII_SR_LINK_STATUS@GOTPAGE
Lloh89:
	ldr	x26, [x26, _MII_SR_LINK_STATUS@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	add	x2, sp, #16
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_47
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w1, [x25]
	add	x2, sp, #16
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_47
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x26]
	tst	x9, x8
	b.ne	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w0, #100
	bl	_msleep
	sub	x24, x24, #1
	cmp	x24, #1
	b.gt	LBB0_21
	b	LBB0_26
LBB0_25:
	cbnz	x8, LBB0_35
LBB0_26:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.27:
	mov	x0, x19
	bl	_e1000_phy_reset_dsp
	cbz	x0, LBB0_29
; %bb.28:
	mov	x20, x0
Lloh90:
	adrp	x0, l_.str.7@PAGE
Lloh91:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_e_dbg
	b	LBB0_1
LBB0_29:
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_35
; %bb.30:
	add	x23, x8, #1
Lloh92:
	adrp	x24, _MII_SR_LINK_STATUS@GOTPAGE
Lloh93:
	ldr	x24, [x24, _MII_SR_LINK_STATUS@GOTPAGEOFF]
Lloh94:
	adrp	x25, _PHY_STATUS@GOTPAGE
Lloh95:
	ldr	x25, [x25, _PHY_STATUS@GOTPAGEOFF]
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x24]
	tst	x9, x8
	b.ne	LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	w1, [x25]
	add	x2, sp, #16
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_47
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w1, [x25]
	add	x2, sp, #16
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_47
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	sub	x23, x23, #1
	cmp	x23, #2
	b.ge	LBB0_31
LBB0_35:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.36:
Lloh96:
	adrp	x22, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGE
Lloh97:
	ldr	x22, [x22, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.37:
Lloh98:
	adrp	x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGE
Lloh99:
	ldr	x8, [x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGEOFF]
Lloh100:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	orr	x2, x9, x8
	str	x2, [sp, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.38:
Lloh101:
	adrp	x22, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh102:
	ldr	x22, [x22, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.39:
Lloh103:
	adrp	x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGE
Lloh104:
	ldr	x8, [x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGEOFF]
Lloh105:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	orr	x2, x9, x8
	str	x2, [sp, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.40:
	ldr	x8, [x19, #16]
Lloh106:
	adrp	x9, _e1000_82544@GOTPAGE
Lloh107:
	ldr	x9, [x9, _e1000_82544@GOTPAGEOFF]
Lloh108:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_42
; %bb.41:
Lloh109:
	adrp	x9, _e1000_82543@GOTPAGE
Lloh110:
	ldr	x9, [x9, _e1000_82543@GOTPAGEOFF]
Lloh111:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_46
LBB0_42:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_46
; %bb.43:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_45
; %bb.44:
Lloh112:
	adrp	x9, _e1000_10_half@GOTPAGE
Lloh113:
	ldr	x9, [x9, _e1000_10_half@GOTPAGEOFF]
Lloh114:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_46
LBB0_45:
	mov	x0, x19
	bl	_e1000_polarity_reversal_workaround
	mov	x20, x0
	cbnz	x0, LBB0_1
LBB0_46:
Lloh115:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh116:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh117:
	ldr	x20, [x8]
	b	LBB0_1
LBB0_47:
	mov	x20, x0
	b	LBB0_1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_FC_NONE,4,2              ; @E1000_FC_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw->fc = %d\n"

	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ; @E1000_CTRL_FRCDPX
	.comm	_DEVICE_SPEED_MASK,4,2          ; @DEVICE_SPEED_MASK
	.comm	_E1000_CTRL_ASDE,4,2            ; @E1000_CTRL_ASDE
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_MII_CR_AUTO_NEG_EN,8,3         ; @MII_CR_AUTO_NEG_EN
	.comm	_e1000_100_full,8,3             ; @e1000_100_full
	.comm	_e1000_10_full,8,3              ; @e1000_10_full
	.comm	_E1000_CTRL_FD,4,2              ; @E1000_CTRL_FD
	.comm	_MII_CR_FULL_DUPLEX,8,3         ; @MII_CR_FULL_DUPLEX
l_.str.1:                               ; @.str.1
	.asciz	"Full Duplex\n"

l_.str.2:                               ; @.str.2
	.asciz	"Half Duplex\n"

	.comm	_e1000_100_half,8,3             ; @e1000_100_half
	.comm	_E1000_CTRL_SPD_100,4,2         ; @E1000_CTRL_SPD_100
	.comm	_MII_CR_SPEED_100,8,3           ; @MII_CR_SPEED_100
	.comm	_MII_CR_SPEED_1000,8,3          ; @MII_CR_SPEED_1000
	.comm	_MII_CR_SPEED_10,8,3            ; @MII_CR_SPEED_10
l_.str.3:                               ; @.str.3
	.asciz	"Forcing 100mb "

	.comm	_E1000_CTRL_SPD_1000,4,2        ; @E1000_CTRL_SPD_1000
l_.str.4:                               ; @.str.4
	.asciz	"Forcing 10mb "

	.comm	_e1000_phy_m88,8,3              ; @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_AUTO_X_MODE,8,3  ; @M88E1000_PSCR_AUTO_X_MODE
l_.str.5:                               ; @.str.5
	.asciz	"M88E1000 PSCR: %x\n"

	.comm	_MII_CR_RESET,8,3               ; @MII_CR_RESET
	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ; @IGP01E1000_PHY_PORT_CTRL
	.comm	_IGP01E1000_PSCR_AUTO_MDIX,8,3  ; @IGP01E1000_PSCR_AUTO_MDIX
	.comm	_IGP01E1000_PSCR_FORCE_MDI_MDIX,8,3 ; @IGP01E1000_PSCR_FORCE_MDI_MDIX
l_.str.6:                               ; @.str.6
	.asciz	"Waiting for forced speed/duplex link.\n"

	.comm	_PHY_FORCE_TIME,8,3             ; @PHY_FORCE_TIME
	.comm	_PHY_STATUS,4,2                 ; @PHY_STATUS
	.comm	_MII_SR_LINK_STATUS,8,3         ; @MII_SR_LINK_STATUS
l_.str.7:                               ; @.str.7
	.asciz	"Error Resetting PHY DSP\n"

	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ; @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,8,3   ; @M88E1000_EPSCR_TX_CLK_25
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,8,3 ; @M88E1000_PSCR_ASSERT_CRS_ON_TX
	.comm	_e1000_82544,8,3                ; @e1000_82544
	.comm	_e1000_82543,8,3                ; @e1000_82543
	.comm	_e1000_10_half,8,3              ; @e1000_10_half
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_phy_force_speed_duplex
.subsections_via_symbols
