	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_set_eee
_lan78xx_set_eee:                       ## @lan78xx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	8(%r14), %r13
	movq	_MAC_CR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lan78xx_read_reg
	movq	_MAC_CR_EEE_EN_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	orl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_phy_ethtool_set_eee
	movl	(%r14), %edx
	movq	_EEE_TX_LPI_REQ_DLY@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_3:
	notl	%edx
	andl	-44(%rbp), %edx
LBB0_4:
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movl	(%rbx), %edi
	callq	_usb_autopm_put_interface
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_MAC_CR_EEE_EN_,4,2             ## @MAC_CR_EEE_EN_
	.comm	_EEE_TX_LPI_REQ_DLY,4,2         ## @EEE_TX_LPI_REQ_DLY
	.no_dead_strip	_lan78xx_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_set_eee
_lan78xx_set_eee:                       ; @lan78xx_set_eee
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x23, [x20, #8]
Lloh0:
	adrp	x22, _MAC_CR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_CR@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lan78xx_read_reg
Lloh2:
	adrp	x8, _MAC_CR_EEE_EN_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAC_CR_EEE_EN_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x23, LBB0_3
; %bb.2:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_lan78xx_write_reg
	ldr	w0, [x21]
	mov	x1, x20
	bl	_phy_ethtool_set_eee
	ldr	w2, [x20]
Lloh5:
	adrp	x8, _EEE_TX_LPI_REQ_DLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEE_TX_LPI_REQ_DLY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
Lloh7:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
LBB0_4:
	str	w2, [sp, #12]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lan78xx_write_reg
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.comm	_MAC_CR_EEE_EN_,4,2             ; @MAC_CR_EEE_EN_
	.comm	_EEE_TX_LPI_REQ_DLY,4,2         ; @EEE_TX_LPI_REQ_DLY
	.no_dead_strip	_lan78xx_set_eee
.subsections_via_symbols
