	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_clk_enable
_fec_enet_clk_enable:                   ## @fec_enet_clk_enable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %r13
	movq	8(%rax), %rdi
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	callq	_clk_prepare_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	cmpq	$0, 32(%r13)
	je	LBB0_9
## %bb.3:
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	32(%r13), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
LBB0_5:
	callq	_clk_disable_unprepare
	cmpq	$0, 32(%r13)
	je	LBB0_7
## %bb.6:
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	32(%r13), %rdi
	callq	_clk_disable_unprepare
	movl	$0, (%r13)
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_7:
	movq	16(%r13), %rdi
	callq	_clk_disable_unprepare
LBB0_15:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_8:
	movl	$1, (%r13)
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_9:
	movq	16(%r13), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	%eax, %r15d
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_clk_disable_unprepare
LBB0_12:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.13:
	callq	_clk_disable_unprepare
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%r14), %edi
	callq	_phy_reset_after_clk_enable
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fec_enet_clk_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_clk_enable
_fec_enet_clk_enable:                   ; @fec_enet_clk_enable
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	w21, LBB0_5
; %bb.1:
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.3:
	add	x22, x19, #24
	mov	x0, x22
	bl	_mutex_lock
	ldr	x0, [x19, #32]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_8
; %bb.4:
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_12
LBB0_5:
	bl	_clk_disable_unprepare
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
	add	x20, x19, #24
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [x19, #32]
	bl	_clk_disable_unprepare
	str	wzr, [x19]
	mov	x0, x20
	bl	_mutex_unlock
LBB0_7:
	ldr	x0, [x19, #16]
	bl	_clk_disable_unprepare
	mov	w21, #0
	b	LBB0_15
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x22
	bl	_mutex_unlock
LBB0_9:
	ldr	x0, [x19, #16]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_clk_disable_unprepare
LBB0_12:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_15
; %bb.13:
	bl	_clk_disable_unprepare
	b	LBB0_15
LBB0_14:
	ldr	w0, [x20]
	bl	_phy_reset_after_clk_enable
LBB0_15:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fec_enet_clk_enable
.subsections_via_symbols
