	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000e_set_eee
_e1000e_set_eee:                        ## @e1000e_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000e_get_eee
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	-48(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.4:
	movq	-40(%rbp), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_5
## %bb.6:
	movl	16(%r15), %edi
	movq	_ADVERTISE_100_FULL@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_1000_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ecx, %edi
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	callq	_e_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	_ethtool_adv_to_mmd_eee_adv_t
	movl	%eax, (%r14)
	xorl	%eax, %eax
	cmpl	$0, 20(%r15)
	sete	%al
	movl	%eax, 4(%r14)
	movl	(%rbx), %edi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	_netif_running
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_e1000e_reinit_locked
	jmp	LBB0_11
LBB0_10:
	callq	_e1000e_reset
LBB0_11:
	movl	(%rbx), %edi
	callq	_pm_runtime_put_sync
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting EEE tx-lpi is not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Setting EEE Tx LPI timer is not supported\n"

	.comm	_ADVERTISE_100_FULL,4,2         ## @ADVERTISE_100_FULL
	.comm	_ADVERTISE_1000_FULL,4,2        ## @ADVERTISE_1000_FULL
L_.str.2:                               ## @.str.2
	.asciz	"EEE advertisement supports only 100TX and/or 1000T full-duplex\n"

	.no_dead_strip	_e1000e_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000e_set_eee
_e1000e_set_eee:                        ; @e1000e_set_eee
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_e1000e_get_eee
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [sp, #16]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x21, #16]
Lloh0:
	adrp	x8, _ADVERTISE_100_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADVERTISE_100_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ADVERTISE_1000_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADVERTISE_1000_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w0, w8
	b.eq	LBB0_9
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_e_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	_ethtool_adv_to_mmd_eee_adv_t
	str	w0, [x20]
	ldr	w8, [x21, #20]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x20, #4]
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_e1000e_reinit_locked
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_e1000e_reset
LBB0_12:
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting EEE tx-lpi is not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Setting EEE Tx LPI timer is not supported\n"

	.comm	_ADVERTISE_100_FULL,4,2         ; @ADVERTISE_100_FULL
	.comm	_ADVERTISE_1000_FULL,4,2        ; @ADVERTISE_1000_FULL
l_.str.2:                               ; @.str.2
	.asciz	"EEE advertisement supports only 100TX and/or 1000T full-duplex\n"

	.no_dead_strip	_e1000e_set_eee
.subsections_via_symbols
