	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_phy_force_speed_duplex_m88 ## -- Begin function e1000e_phy_force_speed_duplex_m88
	.p2align	4, 0x90
_e1000e_phy_force_speed_duplex_m88:     ## @e1000e_phy_force_speed_duplex_m88
	.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
	movq	%rdi, %rbx
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.1:
	movq	_M88E1000_PSCR_AUTO_X_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.2:
	movl	-28(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_MII_BMCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000e_phy_force_speed_duplex_setup
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	je	LBB0_4
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_20
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_14
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_PHY_FORCE_LIMIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_20
## %bb.8:
	cmpl	$0, -32(%rbp)
	jne	LBB0_13
## %bb.9:
	movq	(%rbx), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	_M88E1000_PHY_PAGE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$29, %edx
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.12:
	movq	%rbx, %rdi
	callq	_e1000e_phy_reset_dsp
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_13:
	movl	(%r15), %esi
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_20
LBB0_14:
	movq	(%rbx), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	movq	_M88E1000_EXT_PHY_SPEC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:
	movq	_M88E1000_EPSCR_TX_CLK_25@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	jmp	LBB0_20
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_AUTO_X_MODE,4,2  ## @M88E1000_PSCR_AUTO_X_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"M88E1000 PSCR: %X\n"

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

	.comm	_PHY_FORCE_LIMIT,4,2            ## @PHY_FORCE_LIMIT
	.comm	_e1000_phy_m88,8,3              ## @e1000_phy_m88
L_.str.2:                               ## @.str.2
	.asciz	"Link taking longer than expected.\n"

	.comm	_M88E1000_PHY_PAGE_SELECT,4,2   ## @M88E1000_PHY_PAGE_SELECT
	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ## @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,4,2   ## @M88E1000_EPSCR_TX_CLK_25
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,4,2 ## @M88E1000_PSCR_ASSERT_CRS_ON_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_phy_force_speed_duplex_m88 ; -- Begin function e1000e_phy_force_speed_duplex_m88
	.p2align	2
_e1000e_phy_force_speed_duplex_m88:     ; @e1000e_phy_force_speed_duplex_m88
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_e1e_rphy
	cbnz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh7:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x21]
	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
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_e1e_wphy
	cbz	x0, LBB0_5
LBB0_4:
	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
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_4
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.8:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
Lloh11:
	adrp	x21, _PHY_FORCE_LIMIT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _PHY_FORCE_LIMIT@GOTPAGEOFF]
	ldr	w1, [x21]
	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.9:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_14
; %bb.10:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _e1000_phy_m88@GOTPAGE
Lloh14:
	ldr	x9, [x9, _e1000_phy_m88@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _M88E1000_PHY_PAGE_SELECT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M88E1000_PHY_PAGE_SELECT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #29
	bl	_e1e_wphy
	cbnz	x0, LBB0_4
; %bb.12:
	mov	x0, x19
	bl	_e1000e_phy_reset_dsp
	cbnz	x0, LBB0_4
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
LBB0_14:
	ldr	w1, [x21]
	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_15:
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _e1000_phy_m88@GOTPAGE
Lloh22:
	ldr	x9, [x9, _e1000_phy_m88@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.16:
Lloh24:
	adrp	x21, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGE
Lloh25:
	ldr	x21, [x21, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_4
; %bb.17:
Lloh26:
	adrp	x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGE
Lloh27:
	ldr	x8, [x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1e_wphy
	cbnz	x0, LBB0_4
; %bb.18:
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_4
; %bb.19:
Lloh29:
	adrp	x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
	b	LBB0_4
LBB0_20:
	mov	x0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_AUTO_X_MODE,4,2  ; @M88E1000_PSCR_AUTO_X_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"M88E1000 PSCR: %X\n"

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

	.comm	_PHY_FORCE_LIMIT,4,2            ; @PHY_FORCE_LIMIT
	.comm	_e1000_phy_m88,8,3              ; @e1000_phy_m88
l_.str.2:                               ; @.str.2
	.asciz	"Link taking longer than expected.\n"

	.comm	_M88E1000_PHY_PAGE_SELECT,4,2   ; @M88E1000_PHY_PAGE_SELECT
	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ; @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,4,2   ; @M88E1000_EPSCR_TX_CLK_25
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,4,2 ; @M88E1000_PSCR_ASSERT_CRS_ON_TX
.subsections_via_symbols
