	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_ethtool_get_eee
_lan743x_ethtool_get_eee:               ## @lan743x_ethtool_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.4:
	movq	%r15, %rsi
	callq	_phy_ethtool_get_eee
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lan743x_csr_read
	movq	_MAC_CR_EEE_EN_@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	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	_MAC_EEE_TX_LPI_REQ_DLY_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lan743x_csr_read
	movl	%eax, 20(%r15)
	jmp	LBB0_8
LBB0_3:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	movq	$0, (%r15)
	movq	$0, 16(%r15)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing PHY Driver\n"

	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_MAC_CR_EEE_EN_,4,2             ## @MAC_CR_EEE_EN_
	.comm	_MAC_EEE_TX_LPI_REQ_DLY_CNT,4,2 ## @MAC_EEE_TX_LPI_REQ_DLY_CNT
	.no_dead_strip	_lan743x_ethtool_get_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_ethtool_get_eee
_lan743x_ethtool_get_eee:               ; @lan743x_ethtool_get_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	x19, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x0, [x21]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x1, x19
	bl	_phy_ethtool_get_eee
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_read
Lloh3:
	adrp	x8, _MAC_CR_EEE_EN_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_CR_EEE_EN_@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.4:
	mov	w8, #1
	ldp	w9, w10, [x19, #8]
	tst	w10, w9
	cset	w9, ne
	stp	w8, w9, [x19]
	str	w8, [x19, #16]
Lloh6:
	adrp	x8, _MAC_EEE_TX_LPI_REQ_DLY_CNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_EEE_TX_LPI_REQ_DLY_CNT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_read
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #20]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _drv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
LBB0_6:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	mov	w0, #0
	movi.2d	v0, #0000000000000000
	str	d0, [x19]
	str	d0, [x19, #16]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing PHY Driver\n"

	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.comm	_MAC_CR_EEE_EN_,4,2             ; @MAC_CR_EEE_EN_
	.comm	_MAC_EEE_TX_LPI_REQ_DLY_CNT,4,2 ; @MAC_EEE_TX_LPI_REQ_DLY_CNT
	.no_dead_strip	_lan743x_ethtool_get_eee
.subsections_via_symbols
