	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_phy_force_speed_duplex_ife ## -- Begin function e1000_phy_force_speed_duplex_ife
	.p2align	4, 0x90
_e1000_phy_force_speed_duplex_ife:      ## @e1000_phy_force_speed_duplex_ife
	.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, %r15
	movq	_MII_BMCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_e1000e_phy_force_speed_duplex_setup
	movl	(%rbx), %esi
	movl	-28(%rbp), %edx
	movq	%r15, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	_IFE_PHY_MDIX_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movq	_IFE_PMC_AUTO_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IFE_PMC_FORCE_MDIX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movl	-28(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movl	$1, %edi
	callq	_udelay
	cmpq	$0, (%r15)
	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	-32(%rbp), %rcx
	movq	%r15, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	cmpl	$0, -32(%rbp)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_8:
	movl	(%r14), %esi
	leaq	-32(%rbp), %rcx
	movq	%r15, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_IFE_PHY_MDIX_CONTROL,4,2       ## @IFE_PHY_MDIX_CONTROL
	.comm	_IFE_PMC_AUTO_MDIX,4,2          ## @IFE_PMC_AUTO_MDIX
	.comm	_IFE_PMC_FORCE_MDIX,4,2         ## @IFE_PMC_FORCE_MDIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IFE PMC: %X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Waiting for forced speed/duplex link on IFE phy.\n"

	.comm	_PHY_FORCE_LIMIT,4,2            ## @PHY_FORCE_LIMIT
L_.str.2:                               ## @.str.2
	.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_ife ; -- Begin function e1000_phy_force_speed_duplex_ife
	.p2align	2
_e1000_phy_force_speed_duplex_ife:      ; @e1000_phy_force_speed_duplex_ife
	.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_10
; %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
	cbnz	x0, LBB0_10
; %bb.2:
Lloh2:
	adrp	x20, _IFE_PHY_MDIX_CONTROL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IFE_PHY_MDIX_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_10
; %bb.3:
Lloh4:
	adrp	x8, _IFE_PMC_AUTO_MDIX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IFE_PMC_AUTO_MDIX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _IFE_PMC_FORCE_MDIX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IFE_PMC_FORCE_MDIX@GOTPAGEOFF]
	ldr	w10, [sp, #12]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w10, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
	cbnz	x0, LBB0_10
; %bb.4:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.5:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
Lloh14:
	adrp	x20, _PHY_FORCE_LIMIT@GOTPAGE
Lloh15:
	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_10
; %bb.6:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_8
; %bb.7:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
LBB0_8:
	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_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_IFE_PHY_MDIX_CONTROL,4,2       ; @IFE_PHY_MDIX_CONTROL
	.comm	_IFE_PMC_AUTO_MDIX,4,2          ; @IFE_PMC_AUTO_MDIX
	.comm	_IFE_PMC_FORCE_MDIX,4,2         ; @IFE_PMC_FORCE_MDIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IFE PMC: %X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Waiting for forced speed/duplex link on IFE phy.\n"

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

.subsections_via_symbols
