	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_set_eee
_bcmgenet_set_eee:                      ## @bcmgenet_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, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_GENET_IS_V1
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.5:
	movl	4(%r14), %eax
	movl	%eax, 4(%r12)
	xorl	%esi, %esi
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	callq	_phy_init_eee
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_netif_err
	jmp	LBB0_8
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movl	(%r14), %esi
	movq	_UMAC_EEE_LPI_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bcmgenet_umac_writel
	movl	$1, %esi
LBB0_10:
	movq	%r15, %rdi
	callq	_bcmgenet_eee_enable_set
	movl	(%r15), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_ethtool_set_eee            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEE initialization failed\n"

	.comm	_UMAC_EEE_LPI_TIMER,4,2         ## @UMAC_EEE_LPI_TIMER
	.no_dead_strip	_bcmgenet_set_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_set_eee
_bcmgenet_set_eee:                      ; @bcmgenet_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	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	bl	_GENET_IS_V1
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	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_4:
	ldr	w0, [x19]
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w8, [x20, #4]
	str	w8, [x21, #4]
	mov	w1, #0
	cbz	w8, LBB0_10
; %bb.6:
	bl	_phy_init_eee
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
Lloh2:
	adrp	x8, _hw@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_netif_err
	b	LBB0_3
LBB0_8:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _UMAC_EEE_LPI_TIMER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UMAC_EEE_LPI_TIMER@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bcmgenet_umac_writel
	mov	w1, #1
LBB0_10:
	mov	x0, x19
	bl	_bcmgenet_eee_enable_set
	ldr	w0, [x19]
	mov	x1, 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
	b	_phy_ethtool_set_eee
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEE initialization failed\n"

	.comm	_UMAC_EEE_LPI_TIMER,4,2         ; @UMAC_EEE_LPI_TIMER
	.no_dead_strip	_bcmgenet_set_eee
.subsections_via_symbols
