	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_cp_compute_enable
_cik_cp_compute_enable:                 ## @cik_cp_compute_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_CP_MEC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	jmp	LBB0_3
LBB0_2:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_CAYMAN_RING_TYPE_CP1_INDEX@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	shlq	$2, %rsi
	addq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_cik_compute_stop
	movq	_CAYMAN_RING_TYPE_CP2_INDEX@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	shlq	$2, %rsi
	addq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_cik_compute_stop
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_CP_MEC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MEC_ME1_HALT@GOTPCREL(%rip), %rax
	movq	_MEC_ME2_HALT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_WREG32
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	(%r12), %rcx
	movl	$0, (%rax,%rcx,4)
LBB0_3:
	movl	$50, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_MEC_CNTL,4,2                ## @CP_MEC_CNTL
	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP1_INDEX
	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP2_INDEX
	.comm	_MEC_ME1_HALT,4,2               ## @MEC_ME1_HALT
	.comm	_MEC_ME2_HALT,4,2               ## @MEC_ME2_HALT
	.no_dead_strip	_cik_cp_compute_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_cp_compute_enable
_cik_cp_compute_enable:                 ; @cik_cp_compute_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
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CP_MEC_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_MEC_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_WREG32
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh3:
	adrp	x21, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	bl	_cik_compute_stop
	ldr	x8, [x19]
Lloh5:
	adrp	x22, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	bl	_cik_compute_stop
	mov	x0, x20
	bl	_mutex_unlock
Lloh7:
	adrp	x8, _CP_MEC_CNTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CP_MEC_CNTL@GOTPAGEOFF]
Lloh9:
	adrp	x9, _MEC_ME1_HALT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MEC_ME1_HALT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	ldr	w8, [x9]
Lloh13:
	adrp	x9, _MEC_ME2_HALT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MEC_ME2_HALT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_WREG32
	ldr	x8, [x19]
	ldr	x9, [x21]
	str	wzr, [x8, x9, lsl #2]
	ldr	x9, [x22]
	str	wzr, [x8, x9, lsl #2]
LBB0_3:
	mov	w0, #50
	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	_udelay
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_MEC_CNTL,4,2                ; @CP_MEC_CNTL
	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP1_INDEX
	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP2_INDEX
	.comm	_MEC_ME1_HALT,4,2               ; @MEC_ME1_HALT
	.comm	_MEC_ME2_HALT,4,2               ; @MEC_ME2_HALT
	.no_dead_strip	_cik_cp_compute_enable
.subsections_via_symbols
