	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_get_phy_info_ife         ## -- Begin function e1000_get_phy_info_ife
	.p2align	4, 0x90
_e1000_get_phy_info_ife:                ## @e1000_get_phy_info_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rcx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, -16(%rbp)
	je	LBB0_2
## %bb.3:
	movq	_IFE_PHY_SPECIAL_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movl	-12(%rbp), %eax
	movq	_IFE_PSC_AUTO_POLARITY_DISABLE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%dl
	movl	%edx, (%rbx)
	je	LBB0_5
## %bb.6:
	movq	_IFE_PSC_FORCE_POLARITY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movq	_e1000_rev_polarity_normal@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_12
LBB0_5:
	movq	%rbx, %rdi
	callq	_e1000_check_polarity_ife
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_10
LBB0_7:
	movq	_e1000_rev_polarity_reversed@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_10:
	movq	_IFE_PHY_MDIX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_IFE_PMC_MDIX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-12(%rbp), %eax
	setne	%cl
	movl	%ecx, 4(%rbx)
	movq	_E1000_CABLE_LENGTH_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_e1000_1000t_rx_status_undefined@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Phy info is only valid if link is up\n"

	.comm	_E1000_ERR_CONFIG,8,3           ## @E1000_ERR_CONFIG
	.comm	_IFE_PHY_SPECIAL_CONTROL,4,2    ## @IFE_PHY_SPECIAL_CONTROL
	.comm	_IFE_PSC_AUTO_POLARITY_DISABLE,4,2 ## @IFE_PSC_AUTO_POLARITY_DISABLE
	.comm	_IFE_PSC_FORCE_POLARITY,4,2     ## @IFE_PSC_FORCE_POLARITY
	.comm	_e1000_rev_polarity_reversed,4,2 ## @e1000_rev_polarity_reversed
	.comm	_e1000_rev_polarity_normal,4,2  ## @e1000_rev_polarity_normal
	.comm	_IFE_PHY_MDIX_CONTROL,4,2       ## @IFE_PHY_MDIX_CONTROL
	.comm	_IFE_PMC_MDIX_STATUS,4,2        ## @IFE_PMC_MDIX_STATUS
	.comm	_E1000_CABLE_LENGTH_UNDEFINED,4,2 ## @E1000_CABLE_LENGTH_UNDEFINED
	.comm	_e1000_1000t_rx_status_undefined,8,3 ## @e1000_1000t_rx_status_undefined
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_get_phy_info_ife         ; -- Begin function e1000_get_phy_info_ife
	.p2align	2
_e1000_get_phy_info_ife:                ; @e1000_get_phy_info_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
	add	x3, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_e1000e_phy_has_link_generic
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _IFE_PHY_SPECIAL_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFE_PHY_SPECIAL_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_1
; %bb.4:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _IFE_PSC_AUTO_POLARITY_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFE_PSC_AUTO_POLARITY_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ands	w9, w9, w8
	cset	w10, eq
	str	w10, [x19]
	cbz	w9, LBB0_9
; %bb.5:
Lloh6:
	adrp	x9, _IFE_PSC_FORCE_POLARITY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFE_PSC_FORCE_POLARITY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _e1000_rev_polarity_reversed@GOTPAGE
Lloh10:
	ldr	x10, [x10, _e1000_rev_polarity_reversed@GOTPAGEOFF]
Lloh11:
	adrp	x11, _e1000_rev_polarity_normal@GOTPAGE
Lloh12:
	ldr	x11, [x11, _e1000_rev_polarity_normal@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #28]
LBB0_6:
Lloh13:
	adrp	x8, _IFE_PHY_MDIX_CONTROL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IFE_PHY_MDIX_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	w8, [sp, #12]
Lloh16:
	adrp	x9, _IFE_PMC_MDIX_STATUS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IFE_PMC_MDIX_STATUS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #4]
Lloh19:
	adrp	x8, _E1000_CABLE_LENGTH_UNDEFINED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_CABLE_LENGTH_UNDEFINED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh22:
	adrp	x8, _e1000_1000t_rx_status_undefined@GOTPAGE
Lloh23:
	ldr	x8, [x8, _e1000_1000t_rx_status_undefined@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
	b	LBB0_1
LBB0_8:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh27:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_1
LBB0_9:
	mov	x0, x19
	bl	_e1000_check_polarity_ife
	cbnz	x0, LBB0_1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Phy info is only valid if link is up\n"

	.comm	_E1000_ERR_CONFIG,8,3           ; @E1000_ERR_CONFIG
	.comm	_IFE_PHY_SPECIAL_CONTROL,4,2    ; @IFE_PHY_SPECIAL_CONTROL
	.comm	_IFE_PSC_AUTO_POLARITY_DISABLE,4,2 ; @IFE_PSC_AUTO_POLARITY_DISABLE
	.comm	_IFE_PSC_FORCE_POLARITY,4,2     ; @IFE_PSC_FORCE_POLARITY
	.comm	_e1000_rev_polarity_reversed,4,2 ; @e1000_rev_polarity_reversed
	.comm	_e1000_rev_polarity_normal,4,2  ; @e1000_rev_polarity_normal
	.comm	_IFE_PHY_MDIX_CONTROL,4,2       ; @IFE_PHY_MDIX_CONTROL
	.comm	_IFE_PMC_MDIX_STATUS,4,2        ; @IFE_PMC_MDIX_STATUS
	.comm	_E1000_CABLE_LENGTH_UNDEFINED,4,2 ; @E1000_CABLE_LENGTH_UNDEFINED
	.comm	_e1000_1000t_rx_status_undefined,8,3 ; @e1000_1000t_rx_status_undefined
.subsections_via_symbols
