	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_set_cp_ecc_int_state
_gfx_v8_0_set_cp_ecc_int_state:         ## @gfx_v8_0_set_cp_ecc_int_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	movl	$0, %ebx
	cmpl	$129, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.2:
	movl	$1, %ebx
LBB0_3:
	movq	_CP_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CP_ECC_ERROR_INT_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_INT_CNTL_RING0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_INT_CNTL_RING1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_INT_CNTL_RING2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CPC_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME1_PIPE0_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME1_PIPE1_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME1_PIPE2_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME1_PIPE3_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME2_PIPE0_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME2_PIPE1_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME2_PIPE2_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	movq	_CP_ME2_PIPE3_INT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_WREG32_FIELD
	jmp	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CP_INT_CNTL,4,2                ## @CP_INT_CNTL
	.comm	_CP_ECC_ERROR_INT_ENABLE,4,2    ## @CP_ECC_ERROR_INT_ENABLE
	.comm	_CP_INT_CNTL_RING0,4,2          ## @CP_INT_CNTL_RING0
	.comm	_CP_INT_CNTL_RING1,4,2          ## @CP_INT_CNTL_RING1
	.comm	_CP_INT_CNTL_RING2,4,2          ## @CP_INT_CNTL_RING2
	.comm	_CPC_INT_CNTL,4,2               ## @CPC_INT_CNTL
	.comm	_CP_ME1_PIPE0_INT_CNTL,4,2      ## @CP_ME1_PIPE0_INT_CNTL
	.comm	_CP_ME1_PIPE1_INT_CNTL,4,2      ## @CP_ME1_PIPE1_INT_CNTL
	.comm	_CP_ME1_PIPE2_INT_CNTL,4,2      ## @CP_ME1_PIPE2_INT_CNTL
	.comm	_CP_ME1_PIPE3_INT_CNTL,4,2      ## @CP_ME1_PIPE3_INT_CNTL
	.comm	_CP_ME2_PIPE0_INT_CNTL,4,2      ## @CP_ME2_PIPE0_INT_CNTL
	.comm	_CP_ME2_PIPE1_INT_CNTL,4,2      ## @CP_ME2_PIPE1_INT_CNTL
	.comm	_CP_ME2_PIPE2_INT_CNTL,4,2      ## @CP_ME2_PIPE2_INT_CNTL
	.comm	_CP_ME2_PIPE3_INT_CNTL,4,2      ## @CP_ME2_PIPE3_INT_CNTL
	.no_dead_strip	_gfx_v8_0_set_cp_ecc_int_state
.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_set_cp_ecc_int_state
_gfx_v8_0_set_cp_ecc_int_state:         ; @gfx_v8_0_set_cp_ecc_int_state
	.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
	cmp	w3, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w3, #128
	b.ne	LBB0_5
; %bb.2:
	mov	w19, #1
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
Lloh0:
	adrp	x8, _CP_INT_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_INT_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _CP_ECC_ERROR_INT_ENABLE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CP_ECC_ERROR_INT_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh5:
	adrp	x8, _CP_INT_CNTL_RING0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CP_INT_CNTL_RING0@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh8:
	adrp	x8, _CP_INT_CNTL_RING1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CP_INT_CNTL_RING1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh11:
	adrp	x8, _CP_INT_CNTL_RING2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CP_INT_CNTL_RING2@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh14:
	adrp	x8, _CPC_INT_CNTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPC_INT_CNTL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh17:
	adrp	x8, _CP_ME1_PIPE0_INT_CNTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CP_ME1_PIPE0_INT_CNTL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh20:
	adrp	x8, _CP_ME1_PIPE1_INT_CNTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CP_ME1_PIPE1_INT_CNTL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh23:
	adrp	x8, _CP_ME1_PIPE2_INT_CNTL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CP_ME1_PIPE2_INT_CNTL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh26:
	adrp	x8, _CP_ME1_PIPE3_INT_CNTL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CP_ME1_PIPE3_INT_CNTL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh29:
	adrp	x8, _CP_ME2_PIPE0_INT_CNTL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CP_ME2_PIPE0_INT_CNTL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh32:
	adrp	x8, _CP_ME2_PIPE1_INT_CNTL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CP_ME2_PIPE1_INT_CNTL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh35:
	adrp	x8, _CP_ME2_PIPE2_INT_CNTL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CP_ME2_PIPE2_INT_CNTL@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
Lloh38:
	adrp	x8, _CP_ME2_PIPE3_INT_CNTL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CP_ME2_PIPE3_INT_CNTL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_WREG32_FIELD
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CP_INT_CNTL,4,2                ; @CP_INT_CNTL
	.comm	_CP_ECC_ERROR_INT_ENABLE,4,2    ; @CP_ECC_ERROR_INT_ENABLE
	.comm	_CP_INT_CNTL_RING0,4,2          ; @CP_INT_CNTL_RING0
	.comm	_CP_INT_CNTL_RING1,4,2          ; @CP_INT_CNTL_RING1
	.comm	_CP_INT_CNTL_RING2,4,2          ; @CP_INT_CNTL_RING2
	.comm	_CPC_INT_CNTL,4,2               ; @CPC_INT_CNTL
	.comm	_CP_ME1_PIPE0_INT_CNTL,4,2      ; @CP_ME1_PIPE0_INT_CNTL
	.comm	_CP_ME1_PIPE1_INT_CNTL,4,2      ; @CP_ME1_PIPE1_INT_CNTL
	.comm	_CP_ME1_PIPE2_INT_CNTL,4,2      ; @CP_ME1_PIPE2_INT_CNTL
	.comm	_CP_ME1_PIPE3_INT_CNTL,4,2      ; @CP_ME1_PIPE3_INT_CNTL
	.comm	_CP_ME2_PIPE0_INT_CNTL,4,2      ; @CP_ME2_PIPE0_INT_CNTL
	.comm	_CP_ME2_PIPE1_INT_CNTL,4,2      ; @CP_ME2_PIPE1_INT_CNTL
	.comm	_CP_ME2_PIPE2_INT_CNTL,4,2      ; @CP_ME2_PIPE2_INT_CNTL
	.comm	_CP_ME2_PIPE3_INT_CNTL,4,2      ; @CP_ME2_PIPE3_INT_CNTL
	.no_dead_strip	_gfx_v8_0_set_cp_ecc_int_state
.subsections_via_symbols
