	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v6_0_cp_gfx_enable
_gfx_v6_0_cp_gfx_enable:                ## @gfx_v6_0_cp_gfx_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_ME_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_WREG32
	jmp	LBB0_6
LBB0_2:
	movq	_CP_ME_CNTL__ME_HALT_MASK@GOTPCREL(%rip), %rax
	movq	_CP_ME_CNTL__PFP_HALT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_CP_ME_CNTL__CE_HALT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_WREG32
	movq	_mmSCRATCH_UMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movl	(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	shlq	$2, %rsi
	callq	___bzero
LBB0_4:
	movl	4(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	shlq	$2, %rsi
	callq	___bzero
LBB0_6:
	movl	$50, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCP_ME_CNTL,4,2               ## @mmCP_ME_CNTL
	.comm	_CP_ME_CNTL__ME_HALT_MASK,4,2   ## @CP_ME_CNTL__ME_HALT_MASK
	.comm	_CP_ME_CNTL__PFP_HALT_MASK,4,2  ## @CP_ME_CNTL__PFP_HALT_MASK
	.comm	_CP_ME_CNTL__CE_HALT_MASK,4,2   ## @CP_ME_CNTL__CE_HALT_MASK
	.comm	_mmSCRATCH_UMSK,4,2             ## @mmSCRATCH_UMSK
	.no_dead_strip	_gfx_v6_0_cp_gfx_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v6_0_cp_gfx_enable
_gfx_v6_0_cp_gfx_enable:                ; @gfx_v6_0_cp_gfx_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_ME_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmCP_ME_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w1, LBB0_2
; %bb.1:
	mov	w1, #0
	bl	_WREG32
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _CP_ME_CNTL__ME_HALT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP_ME_CNTL__ME_HALT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CP_ME_CNTL__PFP_HALT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CP_ME_CNTL__PFP_HALT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _CP_ME_CNTL__CE_HALT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CP_ME_CNTL__CE_HALT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_WREG32
Lloh12:
	adrp	x8, _mmSCRATCH_UMSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mmSCRATCH_UMSK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_WREG32
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
	lsl	x1, x8, #2
	bl	_bzero
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	lsl	x1, x8, #2
	bl	_bzero
LBB0_6:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCP_ME_CNTL,4,2               ; @mmCP_ME_CNTL
	.comm	_CP_ME_CNTL__ME_HALT_MASK,4,2   ; @CP_ME_CNTL__ME_HALT_MASK
	.comm	_CP_ME_CNTL__PFP_HALT_MASK,4,2  ; @CP_ME_CNTL__PFP_HALT_MASK
	.comm	_CP_ME_CNTL__CE_HALT_MASK,4,2   ; @CP_ME_CNTL__CE_HALT_MASK
	.comm	_mmSCRATCH_UMSK,4,2             ; @mmSCRATCH_UMSK
	.no_dead_strip	_gfx_v6_0_cp_gfx_enable
.subsections_via_symbols
