	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_set_eee
_rtl8169_set_eee:                       ## @rtl8169_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tp_to_dev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_supports_eee
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r15, %rdi
	callq	_pm_runtime_active
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	(%r12), %rax
	movq	(%rax), %rcx
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.6:
	movq	8(%rax), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_phy_ethtool_set_eee
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_pm_runtime_put_noidle
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.no_dead_strip	_rtl8169_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_set_eee
_rtl8169_set_eee:                       ; @rtl8169_set_eee
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	bl	_tp_to_dev
	mov	x19, x0
	mov	x0, x21
	bl	_rtl_supports_eee
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_active
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x22]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_phy_ethtool_set_eee
	mov	x20, x0
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_pm_runtime_put_noidle
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.no_dead_strip	_rtl8169_set_eee
.subsections_via_symbols
