	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_cp_compute_enable
_gfx_v8_0_cp_compute_enable:            ## @gfx_v8_0_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_mmCP_MEC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_WREG32
	jmp	LBB0_5
LBB0_2:
	movq	_CP_MEC_CNTL__MEC_ME1_HALT_MASK@GOTPCREL(%rip), %rax
	movq	_CP_MEC_CNTL__MEC_ME2_HALT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_WREG32
	movl	(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	shlq	$2, %rsi
	callq	___bzero
LBB0_4:
	movl	$0, 4(%rbx)
LBB0_5:
	movl	$50, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCP_MEC_CNTL,4,2              ## @mmCP_MEC_CNTL
	.comm	_CP_MEC_CNTL__MEC_ME1_HALT_MASK,4,2 ## @CP_MEC_CNTL__MEC_ME1_HALT_MASK
	.comm	_CP_MEC_CNTL__MEC_ME2_HALT_MASK,4,2 ## @CP_MEC_CNTL__MEC_ME2_HALT_MASK
	.no_dead_strip	_gfx_v8_0_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 gfx_v8_0_cp_compute_enable
_gfx_v8_0_cp_compute_enable:            ; @gfx_v8_0_cp_compute_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _mmCP_MEC_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmCP_MEC_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w1, LBB0_2
; %bb.1:
	mov	w1, #0
	bl	_WREG32
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _CP_MEC_CNTL__MEC_ME1_HALT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP_MEC_CNTL__MEC_ME1_HALT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CP_MEC_CNTL__MEC_ME2_HALT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CP_MEC_CNTL__MEC_ME2_HALT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_WREG32
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	lsl	x1, x8, #2
	bl	_bzero
LBB0_4:
	str	wzr, [x19, #4]
LBB0_5:
	mov	w0, #50
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCP_MEC_CNTL,4,2              ; @mmCP_MEC_CNTL
	.comm	_CP_MEC_CNTL__MEC_ME1_HALT_MASK,4,2 ; @CP_MEC_CNTL__MEC_ME1_HALT_MASK
	.comm	_CP_MEC_CNTL__MEC_ME2_HALT_MASK,4,2 ; @CP_MEC_CNTL__MEC_ME2_HALT_MASK
	.no_dead_strip	_gfx_v8_0_cp_compute_enable
.subsections_via_symbols
