	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_set_eee
_tg3_set_eee:                           ## @tg3_set_eee
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_TG3_PHYFLG_EEE_CAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_5
## %bb.2:
	movq	_TG3_CPMU_DBTMR1_LNKIDLE_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, 8(%r14)
	jle	LBB0_9
## %bb.3:
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_6
LBB0_4:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_netdev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rcx
	addq	$8, %rcx
	movups	(%r14), %xmm0
	movups	%xmm0, (%rcx)
	movq	_TG3_PHYFLG_USER_CONFIGURED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_tg3_warn_mgmt_link_flap
	movl	4(%rbx), %edi
	callq	_netif_running
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tg3_full_lock
	movq	%rbx, %rdi
	callq	_tg3_setup_eee
	movq	%rbx, %rdi
	callq	_tg3_phy_reset
	movq	%rbx, %rdi
	callq	_tg3_full_unlock
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ## @TG3_PHYFLG_EEE_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Board does not support EEE!\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Direct manipulation of EEE advertisement is not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TG3_CPMU_DBTMR1_LNKIDLE_MAX,8,3 ## @TG3_CPMU_DBTMR1_LNKIDLE_MAX
L_.str.2:                               ## @.str.2
	.asciz	"Maximal Tx Lpi timer supported is %#x(u)\n"

	.comm	_TG3_PHYFLG_USER_CONFIGURED,4,2 ## @TG3_PHYFLG_USER_CONFIGURED
	.no_dead_strip	_tg3_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_set_eee
_tg3_set_eee:                           ; @tg3_set_eee
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	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_4
; %bb.1:
	ldr	x10, [x20]
	mov	x9, x19
	ldr	x11, [x9, #8]!
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.2:
	ldr	x11, [x20, #8]
Lloh3:
	adrp	x10, _TG3_CPMU_DBTMR1_LNKIDLE_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TG3_CPMU_DBTMR1_LNKIDLE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x11, x10
	b.le	LBB0_9
; %bb.3:
	ldr	w0, [x19, #4]
	str	x10, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_netdev_warn
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	ldr	q0, [x20]
	str	q0, [x9]
Lloh16:
	adrp	x9, _TG3_PHYFLG_USER_CONFIGURED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TG3_PHYFLG_USER_CONFIGURED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_tg3_warn_mgmt_link_flap
	ldr	w0, [x19, #4]
	bl	_netif_running
	cbz	x0, LBB0_8
; %bb.10:
	mov	x0, x19
	mov	w1, #0
	bl	_tg3_full_lock
	mov	x0, x19
	bl	_tg3_setup_eee
	mov	x0, x19
	bl	_tg3_phy_reset
	mov	x0, x19
	bl	_tg3_full_unlock
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_PHYFLG_EEE_CAP,4,2         ; @TG3_PHYFLG_EEE_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Board does not support EEE!\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Direct manipulation of EEE advertisement is not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TG3_CPMU_DBTMR1_LNKIDLE_MAX,8,3 ; @TG3_CPMU_DBTMR1_LNKIDLE_MAX
l_.str.2:                               ; @.str.2
	.asciz	"Maximal Tx Lpi timer supported is %#x(u)\n"

	.comm	_TG3_PHYFLG_USER_CONFIGURED,4,2 ; @TG3_PHYFLG_USER_CONFIGURED
	.no_dead_strip	_tg3_set_eee
.subsections_via_symbols
