	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_phy_force_speed_duplex_82577 ## -- Begin function e1000_phy_force_speed_duplex_82577
	.p2align	4, 0x90
_e1000_phy_force_speed_duplex_82577:    ## @e1000_phy_force_speed_duplex_82577
	.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	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-24(%rbp), %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000e_phy_force_speed_duplex_setup
	movl	(%r14), %esi
	movl	-24(%rbp), %edx
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %edi
	callq	_udelay
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_PHY_FORCE_LIMIT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	cmpl	$0, -20(%rbp)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
LBB0_7:
	movl	(%r14), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for forced speed/duplex link on 82577 phy\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_phy_force_speed_duplex_82577 ; -- Begin function e1000_phy_force_speed_duplex_82577
	.p2align	2
_e1000_phy_force_speed_duplex_82577:    ; @e1000_phy_force_speed_duplex_82577
	.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	x20, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_e1e_rphy
	cbnz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_e1000e_phy_force_speed_duplex_setup
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_e1e_wphy
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh4:
	adrp	x20, _PHY_FORCE_LIMIT@GOTPAGE
Lloh5:
	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_2
; %bb.5:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
LBB0_7:
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #34464
	movk	w2, #1, lsl #16
	bl	_e1000e_phy_has_link_generic
	b	LBB0_2
LBB0_8:
	mov	x0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for forced speed/duplex link on 82577 phy\n"

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

.subsections_via_symbols
