	.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_80003es2lan
_e1000_phy_force_speed_duplex_80003es2lan: ## @e1000_phy_force_speed_duplex_80003es2lan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	_GG82563_PSCR_CROSSOVER_MODE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movl	%edx, -20(%rbp)
	movq	_GG82563_PHY_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movl	-20(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_14
## %bb.3:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000e_phy_force_speed_duplex_setup
	movq	_BMCR_RESET@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	je	LBB0_4
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %edi
	callq	_udelay
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_PHY_FORCE_LIMIT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	cmpl	$0, -24(%rbp)
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_e1000e_phy_reset_dsp
	testq	%rax, %rax
	jne	LBB0_14
LBB0_8:
	movl	(%r14), %esi
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_14
LBB0_9:
	movq	_GG82563_PHY_MAC_SPEC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	_GG82563_MSCR_TX_CLK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movq	_E1000_ALL_10_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_11
## %bb.12:
	movq	_GG82563_MSCR_TX_CLK_100MBPS_25@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_GG82563_MSCR_TX_CLK_10MBPS_2_5@GOTPCREL(%rip), %rax
LBB0_13:
	orl	(%rax), %edx
	movq	_GG82563_MSCR_ASSERT_CRS_ON_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_GG82563_PSCR_CROSSOVER_MODE_AUTO,4,2 ## @GG82563_PSCR_CROSSOVER_MODE_AUTO
	.comm	_GG82563_PHY_SPEC_CTRL,4,2      ## @GG82563_PHY_SPEC_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GG82563 PSCR: %X\n"

	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
L_.str.1:                               ## @.str.1
	.asciz	"Waiting for forced speed/duplex link on GG82563 phy.\n"

	.comm	_PHY_FORCE_LIMIT,4,2            ## @PHY_FORCE_LIMIT
	.comm	_GG82563_PHY_MAC_SPEC_CTRL,4,2  ## @GG82563_PHY_MAC_SPEC_CTRL
	.comm	_GG82563_MSCR_TX_CLK_MASK,4,2   ## @GG82563_MSCR_TX_CLK_MASK
	.comm	_E1000_ALL_10_SPEED,4,2         ## @E1000_ALL_10_SPEED
	.comm	_GG82563_MSCR_TX_CLK_10MBPS_2_5,4,2 ## @GG82563_MSCR_TX_CLK_10MBPS_2_5
	.comm	_GG82563_MSCR_TX_CLK_100MBPS_25,4,2 ## @GG82563_MSCR_TX_CLK_100MBPS_25
	.comm	_GG82563_MSCR_ASSERT_CRS_ON_TX,4,2 ## @GG82563_MSCR_ASSERT_CRS_ON_TX
	.no_dead_strip	_e1000_phy_force_speed_duplex_80003es2lan
.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_80003es2lan
_e1000_phy_force_speed_duplex_80003es2lan: ; @e1000_phy_force_speed_duplex_80003es2lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_e1e_rphy
	cbnz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _GG82563_PSCR_CROSSOVER_MODE_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GG82563_PSCR_CROSSOVER_MODE_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
Lloh6:
	adrp	x8, _GG82563_PHY_SPEC_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GG82563_PHY_SPEC_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_e1e_wphy
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh11:
	adrp	x20, _MII_BMCR@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_4
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_e1000e_phy_force_speed_duplex_setup
Lloh13:
	adrp	x8, _BMCR_RESET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BMCR_RESET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.6:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
Lloh18:
	adrp	x20, _PHY_FORCE_LIMIT@GOTPAGE
Lloh19:
	ldr	x20, [x20, _PHY_FORCE_LIMIT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #34464
	movk	w2, #1, lsl #16
	bl	_e1000e_phy_has_link_generic
	cbnz	x0, LBB0_4
; %bb.7:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_e1000e_phy_reset_dsp
	cbnz	x0, LBB0_4
LBB0_9:
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #34464
	movk	w2, #1, lsl #16
	bl	_e1000e_phy_has_link_generic
	cbnz	x0, LBB0_4
LBB0_10:
Lloh20:
	adrp	x20, _GG82563_PHY_MAC_SPEC_CTRL@GOTPAGE
Lloh21:
	ldr	x20, [x20, _GG82563_PHY_MAC_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_4
; %bb.11:
Lloh22:
	adrp	x8, _GG82563_MSCR_TX_CLK_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GG82563_MSCR_TX_CLK_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	ldr	w9, [x19]
Lloh25:
	adrp	x10, _E1000_ALL_10_SPEED@GOTPAGE
Lloh26:
	ldr	x10, [x10, _E1000_ALL_10_SPEED@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
Lloh28:
	adrp	x11, _GG82563_MSCR_TX_CLK_100MBPS_25@GOTPAGE
Lloh29:
	ldr	x11, [x11, _GG82563_MSCR_TX_CLK_100MBPS_25@GOTPAGEOFF]
Lloh30:
	adrp	x12, _GG82563_MSCR_TX_CLK_10MBPS_2_5@GOTPAGE
Lloh31:
	ldr	x12, [x12, _GG82563_MSCR_TX_CLK_10MBPS_2_5@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _GG82563_MSCR_ASSERT_CRS_ON_TX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _GG82563_MSCR_ASSERT_CRS_ON_TX@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_GG82563_PSCR_CROSSOVER_MODE_AUTO,4,2 ; @GG82563_PSCR_CROSSOVER_MODE_AUTO
	.comm	_GG82563_PHY_SPEC_CTRL,4,2      ; @GG82563_PHY_SPEC_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GG82563 PSCR: %X\n"

	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
l_.str.1:                               ; @.str.1
	.asciz	"Waiting for forced speed/duplex link on GG82563 phy.\n"

	.comm	_PHY_FORCE_LIMIT,4,2            ; @PHY_FORCE_LIMIT
	.comm	_GG82563_PHY_MAC_SPEC_CTRL,4,2  ; @GG82563_PHY_MAC_SPEC_CTRL
	.comm	_GG82563_MSCR_TX_CLK_MASK,4,2   ; @GG82563_MSCR_TX_CLK_MASK
	.comm	_E1000_ALL_10_SPEED,4,2         ; @E1000_ALL_10_SPEED
	.comm	_GG82563_MSCR_TX_CLK_10MBPS_2_5,4,2 ; @GG82563_MSCR_TX_CLK_10MBPS_2_5
	.comm	_GG82563_MSCR_TX_CLK_100MBPS_25,4,2 ; @GG82563_MSCR_TX_CLK_100MBPS_25
	.comm	_GG82563_MSCR_ASSERT_CRS_ON_TX,4,2 ; @GG82563_MSCR_ASSERT_CRS_ON_TX
	.no_dead_strip	_e1000_phy_force_speed_duplex_80003es2lan
.subsections_via_symbols
