	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_get_eee
_lan78xx_get_eee:                       ## @lan78xx_get_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rbx), %r12
	movl	(%rax), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_phy_ethtool_get_eee
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lan78xx_read_reg
	movq	_MAC_CR_EEE_EN_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_6
## %bb.5:
	movl	$1, (%r15)
	movl	12(%r15), %eax
	xorl	%ecx, %ecx
	andl	8(%r15), %eax
	setne	%cl
	movl	%ecx, 4(%r15)
	movl	$1, 16(%r15)
	movq	_EEE_TX_LPI_REQ_DLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lan78xx_read_reg
	movl	-36(%rbp), %eax
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	$0, (%r15)
	movl	$0, 16(%r15)
	xorl	%eax, %eax
LBB0_7:
	movl	%eax, 20(%r15)
	xorl	%ebx, %ebx
LBB0_8:
	movl	(%r14), %edi
	callq	_usb_autopm_put_interface
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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_get_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_get_eee
_lan78xx_get_eee:                       ; @lan78xx_get_eee
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x21]
	ldr	w0, [x0]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	bl	_phy_ethtool_get_eee
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lan78xx_read_reg
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _MAC_CR_EEE_EN_@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC_CR_EEE_EN_@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	w8, #1
	ldp	w9, w10, [x20, #8]
	tst	w10, w9
	cset	w9, ne
	stp	w8, w9, [x20]
	str	w8, [x20, #16]
Lloh6:
	adrp	x8, _EEE_TX_LPI_REQ_DLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEE_TX_LPI_REQ_DLY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lan78xx_read_reg
	ldr	w8, [sp, #12]
	b	LBB0_7
LBB0_4:
	mov	x21, x0
	b	LBB0_9
LBB0_5:
	mov	x21, x0
	b	LBB0_8
LBB0_6:
	mov	w8, #0
	str	xzr, [x20]
	str	wzr, [x20, #16]
LBB0_7:
	mov	w21, #0
	str	w8, [x20, #20]
LBB0_8:
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
LBB0_9:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, 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_get_eee
.subsections_via_symbols
