	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_set_cp_ecc_error_state
_gfx_v9_0_set_cp_ecc_error_state:       ## @gfx_v9_0_set_cp_ecc_error_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ecx
	jne	LBB0_4
## %bb.2:
	movq	_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CP_INT_CNTL_RING0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CP_ECC_ERROR_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_WREG32_FIELD15
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_DISABLE_ECC_ON_ME_PIPE
	movl	$1, %edi
	movl	$1, %esi
	callq	_DISABLE_ECC_ON_ME_PIPE
	movl	$1, %edi
	movl	$2, %esi
	callq	_DISABLE_ECC_ON_ME_PIPE
	movl	$1, %edi
	movl	$3, %esi
	callq	_DISABLE_ECC_ON_ME_PIPE
	jmp	LBB0_4
LBB0_3:
	movq	_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CP_INT_CNTL_RING0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CP_ECC_ERROR_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_WREG32_FIELD15
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_ENABLE_ECC_ON_ME_PIPE
	movl	$1, %edi
	movl	$1, %esi
	callq	_ENABLE_ECC_ON_ME_PIPE
	movl	$1, %edi
	movl	$2, %esi
	callq	_ENABLE_ECC_ON_ME_PIPE
	movl	$1, %edi
	movl	$3, %esi
	callq	_ENABLE_ECC_ON_ME_PIPE
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_CP_INT_CNTL_RING0,4,2          ## @CP_INT_CNTL_RING0
	.comm	_CP_ECC_ERROR_INT_ENABLE,4,2    ## @CP_ECC_ERROR_INT_ENABLE
	.no_dead_strip	_gfx_v9_0_set_cp_ecc_error_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_set_cp_ecc_error_state
_gfx_v9_0_set_cp_ecc_error_state:       ; @gfx_v9_0_set_cp_ecc_error_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w3, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w3, #129
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _GC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CP_INT_CNTL_RING0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP_INT_CNTL_RING0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _CP_ECC_ERROR_INT_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CP_ECC_ERROR_INT_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #0
	bl	_WREG32_FIELD15
	mov	w0, #1
	mov	w1, #0
	bl	_DISABLE_ECC_ON_ME_PIPE
	mov	w0, #1
	mov	w1, #1
	bl	_DISABLE_ECC_ON_ME_PIPE
	mov	w0, #1
	mov	w1, #2
	bl	_DISABLE_ECC_ON_ME_PIPE
	mov	w0, #1
	mov	w1, #3
	bl	_DISABLE_ECC_ON_ME_PIPE
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _GC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _CP_INT_CNTL_RING0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CP_INT_CNTL_RING0@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _CP_ECC_ERROR_INT_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CP_ECC_ERROR_INT_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #1
	bl	_WREG32_FIELD15
	mov	w0, #1
	mov	w1, #0
	bl	_ENABLE_ECC_ON_ME_PIPE
	mov	w0, #1
	mov	w1, #1
	bl	_ENABLE_ECC_ON_ME_PIPE
	mov	w0, #1
	mov	w1, #2
	bl	_ENABLE_ECC_ON_ME_PIPE
	mov	w0, #1
	mov	w1, #3
	bl	_ENABLE_ECC_ON_ME_PIPE
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_CP_INT_CNTL_RING0,4,2          ; @CP_INT_CNTL_RING0
	.comm	_CP_ECC_ERROR_INT_ENABLE,4,2    ; @CP_ECC_ERROR_INT_ENABLE
	.no_dead_strip	_gfx_v9_0_set_cp_ecc_error_state
.subsections_via_symbols
