	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_ethtool_set_eee
_lan743x_ethtool_set_eee:               ## @lan743x_ethtool_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, %rbx
	callq	_netdev_priv
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_netdev_priv
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.8:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_phy_init_eee
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_err
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lan743x_csr_read
	movq	_MAC_CR_EEE_EN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	jmp	LBB0_14
LBB0_12:
	movl	(%r14), %edx
	movq	_MAC_EEE_TX_LPI_REQ_DLY_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lan743x_csr_write
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lan743x_csr_read
	movl	%eax, %edx
	movq	_MAC_CR_EEE_EN_@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_14:
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lan743x_csr_write
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_ethtool_set_eee            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing PHY Driver\n"

L_.str.1:                               ## @.str.1
	.asciz	"EEE initialization failed\n"

	.comm	_MAC_EEE_TX_LPI_REQ_DLY_CNT,4,2 ## @MAC_EEE_TX_LPI_REQ_DLY_CNT
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.comm	_MAC_CR_EEE_EN_,4,2             ## @MAC_CR_EEE_EN_
	.no_dead_strip	_lan743x_ethtool_set_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_set_eee
_lan743x_ethtool_set_eee:               ; @lan743x_ethtool_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	x19, x1
	mov	x21, x0
	bl	_netdev_priv
	cbz	x21, LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_netdev_priv
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x21, [x21]
	cbz	x21, LBB0_9
; %bb.3:
	mov	x20, x0
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	bl	_phy_init_eee
	cbz	w0, LBB0_13
; %bb.6:
	mov	x22, x0
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netif_err
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x8, _drv@GOTPAGE
Lloh8:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
LBB0_9:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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_12:
Lloh14:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_read
Lloh17:
	adrp	x8, _MAC_CR_EEE_EN_@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAC_CR_EEE_EN_@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w2, w0, w8
	b	LBB0_14
LBB0_13:
	ldr	w2, [x19]
Lloh20:
	adrp	x8, _MAC_EEE_TX_LPI_REQ_DLY_CNT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAC_EEE_TX_LPI_REQ_DLY_CNT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_write
Lloh23:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_read
Lloh26:
	adrp	x8, _MAC_CR_EEE_EN_@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAC_CR_EEE_EN_@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w2, w8, w0
LBB0_14:
Lloh29:
	adrp	x8, _MAC_CR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAC_CR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lan743x_csr_write
	mov	x0, x21
	mov	x1, x19
	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
	b	_phy_ethtool_set_eee
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing PHY Driver\n"

l_.str.1:                               ; @.str.1
	.asciz	"EEE initialization failed\n"

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