	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_eee_pull_config
_tg3_eee_pull_config:                   ## @tg3_eee_pull_config
	.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	_TG3_PHYFLG_EEE_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	testq	%rsi, %rsi
	cmovneq	%rsi, %r14
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_TG3_CL45_D7_EEERES_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_tg3_phy_cl45_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	-28(%rbp), %eax
	movq	_TG3_CL45_D7_EEERES_STAT_LP_1000T@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	movq	_TG3_CL45_D7_EEERES_STAT_LP_100TX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, (%r14)
	movl	(%r15), %esi
	movq	_MDIO_AN_EEE_LPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_tg3_phy_cl45_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	-28(%rbp), %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movq	%rax, 24(%r14)
	movl	(%r15), %esi
	movq	_MDIO_AN_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_tg3_phy_cl45_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %edi
	xorl	%eax, %eax
	testl	%edi, %edi
	setne	%al
	movl	%eax, 4(%r14)
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movq	%rax, 16(%r14)
	movq	_TG3_CPMU_EEE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, -28(%rbp)
	movq	_TG3_CPMU_EEEMD_LPI_IN_TX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%r14)
	movq	_TG3_CPMU_EEE_DBTMR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movzwl	%ax, %eax
	movl	%eax, 12(%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ## @TG3_PHYFLG_EEE_CAP
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_TG3_CL45_D7_EEERES_STAT,4,2    ## @TG3_CL45_D7_EEERES_STAT
	.comm	_TG3_CL45_D7_EEERES_STAT_LP_1000T,4,2 ## @TG3_CL45_D7_EEERES_STAT_LP_1000T
	.comm	_TG3_CL45_D7_EEERES_STAT_LP_100TX,4,2 ## @TG3_CL45_D7_EEERES_STAT_LP_100TX
	.comm	_MDIO_AN_EEE_LPABLE,4,2         ## @MDIO_AN_EEE_LPABLE
	.comm	_MDIO_AN_EEE_ADV,4,2            ## @MDIO_AN_EEE_ADV
	.comm	_TG3_CPMU_EEE_MODE,4,2          ## @TG3_CPMU_EEE_MODE
	.comm	_TG3_CPMU_EEEMD_LPI_IN_TX,4,2   ## @TG3_CPMU_EEEMD_LPI_IN_TX
	.comm	_TG3_CPMU_EEE_DBTMR1,4,2        ## @TG3_CPMU_EEE_DBTMR1
	.no_dead_strip	_tg3_eee_pull_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_eee_pull_config
_tg3_eee_pull_config:                   ; @tg3_eee_pull_config
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TG3_PHYFLG_EEE_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TG3_PHYFLG_EEE_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	add	x8, x0, #8
	cmp	x1, #0
	csel	x20, x8, x1, eq
Lloh3:
	adrp	x21, _MDIO_MMD_AN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _TG3_CL45_D7_EEERES_STAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TG3_CL45_D7_EEERES_STAT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_tg3_phy_cl45_read
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _TG3_CL45_D7_EEERES_STAT_LP_1000T@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TG3_CL45_D7_EEERES_STAT_LP_1000T@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh11:
	adrp	x9, _TG3_CL45_D7_EEERES_STAT_LP_100TX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TG3_CL45_D7_EEERES_STAT_LP_100TX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
	cset	w8, eq
	str	w8, [x20]
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _MDIO_AN_EEE_LPABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDIO_AN_EEE_LPABLE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_tg3_phy_cl45_read
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_mmd_eee_adv_to_ethtool_adv_t
	str	x0, [x20, #24]
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _MDIO_AN_EEE_ADV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MDIO_AN_EEE_ADV@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_tg3_phy_cl45_read
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x20, #4]
	bl	_mmd_eee_adv_to_ethtool_adv_t
	str	x0, [x20, #16]
Lloh20:
	adrp	x8, _TG3_CPMU_EEE_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TG3_CPMU_EEE_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_tr32
	str	w0, [sp, #12]
Lloh23:
	adrp	x8, _TG3_CPMU_EEEMD_LPI_IN_TX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TG3_CPMU_EEEMD_LPI_IN_TX@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x20, #8]
Lloh26:
	adrp	x8, _TG3_CPMU_EEE_DBTMR1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TG3_CPMU_EEE_DBTMR1@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_tr32
	and	w8, w0, #0xffff
	str	w8, [x20, #12]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ; @TG3_PHYFLG_EEE_CAP
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_TG3_CL45_D7_EEERES_STAT,4,2    ; @TG3_CL45_D7_EEERES_STAT
	.comm	_TG3_CL45_D7_EEERES_STAT_LP_1000T,4,2 ; @TG3_CL45_D7_EEERES_STAT_LP_1000T
	.comm	_TG3_CL45_D7_EEERES_STAT_LP_100TX,4,2 ; @TG3_CL45_D7_EEERES_STAT_LP_100TX
	.comm	_MDIO_AN_EEE_LPABLE,4,2         ; @MDIO_AN_EEE_LPABLE
	.comm	_MDIO_AN_EEE_ADV,4,2            ; @MDIO_AN_EEE_ADV
	.comm	_TG3_CPMU_EEE_MODE,4,2          ; @TG3_CPMU_EEE_MODE
	.comm	_TG3_CPMU_EEEMD_LPI_IN_TX,4,2   ; @TG3_CPMU_EEEMD_LPI_IN_TX
	.comm	_TG3_CPMU_EEE_DBTMR1,4,2        ; @TG3_CPMU_EEE_DBTMR1
	.no_dead_strip	_tg3_eee_pull_config
.subsections_via_symbols
