	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_eee_enable_set
_bcmgenet_eee_enable_set:               ## @bcmgenet_eee_enable_set
	.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
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	_TBUF_ENERGY_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	addl	(%rax), %r15d
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	callq	_clk_prepare_enable
	movl	$1, (%rbx)
LBB0_3:
	movq	_UMAC_EEE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movl	%eax, %esi
	movq	_EEE_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_5
LBB0_4:
	movq	_UMAC_EEE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_readl
	movq	_EEE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
LBB0_5:
	movq	_UMAC_EEE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_writel
	movl	4(%rbx), %edi
	addl	%r15d, %edi
	callq	_bcmgenet_readl
	movq	_TBUF_EEE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_TBUF_PM_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	orl	%eax, %edi
	orl	%ecx, %edi
	jmp	LBB0_8
LBB0_7:
	orl	%edi, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edi
LBB0_8:
	addl	4(%rbx), %r15d
	movl	%r15d, %esi
	callq	_bcmgenet_writel
	movq	_RBUF_ENERGY_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_rbuf_readl
	movq	_RBUF_EEE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_RBUF_PM_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	orl	%eax, %esi
	orl	%ecx, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_rbuf_writel
	jmp	LBB0_12
LBB0_10:
	orl	%esi, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcmgenet_rbuf_writel
	cmpl	$0, (%rbx)
	je	LBB0_12
## %bb.11:
	movl	16(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	$0, (%rbx)
LBB0_12:
	movl	%r14d, 8(%rbx)
	movl	%r14d, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBUF_ENERGY_CTRL,4,2           ## @TBUF_ENERGY_CTRL
	.comm	_UMAC_EEE_CTRL,4,2              ## @UMAC_EEE_CTRL
	.comm	_EEE_EN,4,2                     ## @EEE_EN
	.comm	_TBUF_EEE_EN,4,2                ## @TBUF_EEE_EN
	.comm	_TBUF_PM_EN,4,2                 ## @TBUF_PM_EN
	.comm	_RBUF_ENERGY_CTRL,4,2           ## @RBUF_ENERGY_CTRL
	.comm	_RBUF_EEE_EN,4,2                ## @RBUF_EEE_EN
	.comm	_RBUF_PM_EN,4,2                 ## @RBUF_PM_EN
	.no_dead_strip	_bcmgenet_eee_enable_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_eee_enable_set
_bcmgenet_eee_enable_set:               ; @bcmgenet_eee_enable_set
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _TBUF_ENERGY_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBUF_ENERGY_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w21, w9, w8
Lloh3:
	adrp	x22, _UMAC_EEE_CTRL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UMAC_EEE_CTRL@GOTPAGEOFF]
	cbz	w19, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #16]
	bl	_clk_prepare_enable
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_umac_readl
Lloh5:
	adrp	x8, _EEE_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEE_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w0
	b	LBB0_5
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_umac_readl
Lloh8:
	adrp	x8, _EEE_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEE_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w1, w0, w8
LBB0_5:
	ldr	w2, [x22]
	mov	x0, x20
	bl	_bcmgenet_umac_writel
	ldr	w8, [x20, #4]
	add	w0, w8, w21
	bl	_bcmgenet_readl
Lloh11:
	adrp	x8, _TBUF_EEE_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TBUF_EEE_EN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _TBUF_PM_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TBUF_PM_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	orr	w8, w8, w0
	orr	w8, w8, w9
	cmp	w19, #0
	csel	w0, w10, w8, eq
	ldr	w8, [x20, #4]
	add	w1, w8, w21
	bl	_bcmgenet_writel
Lloh17:
	adrp	x21, _RBUF_ENERGY_CTRL@GOTPAGE
Lloh18:
	ldr	x21, [x21, _RBUF_ENERGY_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
Lloh19:
	adrp	x8, _RBUF_EEE_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RBUF_EEE_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _RBUF_PM_EN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RBUF_PM_EN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cbz	w19, LBB0_7
; %bb.6:
	orr	w8, w8, w0
	orr	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x20
	bl	_bcmgenet_rbuf_writel
	b	LBB0_9
LBB0_7:
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x20
	bl	_bcmgenet_rbuf_writel
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w0, [x20, #16]
	bl	_clk_disable_unprepare
	str	wzr, [x20]
LBB0_9:
	stp	w19, w19, [x20, #8]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TBUF_ENERGY_CTRL,4,2           ; @TBUF_ENERGY_CTRL
	.comm	_UMAC_EEE_CTRL,4,2              ; @UMAC_EEE_CTRL
	.comm	_EEE_EN,4,2                     ; @EEE_EN
	.comm	_TBUF_EEE_EN,4,2                ; @TBUF_EEE_EN
	.comm	_TBUF_PM_EN,4,2                 ; @TBUF_PM_EN
	.comm	_RBUF_ENERGY_CTRL,4,2           ; @RBUF_ENERGY_CTRL
	.comm	_RBUF_EEE_EN,4,2                ; @RBUF_EEE_EN
	.comm	_RBUF_PM_EN,4,2                 ; @RBUF_PM_EN
	.no_dead_strip	_bcmgenet_eee_enable_set
.subsections_via_symbols
