	.file	"extr_sdma_v4_0.c_sdma_v4_0_set_ecc_irq_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdma_v4_0_set_ecc_irq_state, @function
sdma_v4_0_set_ecc_irq_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edi, edx
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR mmSDMA0_EDC_CONFIG[rip]
	call	RREG32_SDMA@PLT
	mov	edx, DWORD PTR ECC_INT_ENABLE[rip]
	mov	esi, DWORD PTR SDMA0_EDC_CONFIG[rip]
	xor	ecx, ecx
	cmp	DWORD PTR AMDGPU_IRQ_STATE_ENABLE[rip], ebx
	mov	edi, eax
	sete	cl
	call	REG_SET_FIELD@PLT
	mov	esi, DWORD PTR mmSDMA0_EDC_CONFIG[rip]
	mov	edi, ebp
	mov	edx, eax
	call	WREG32_SDMA@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sdma_v4_0_set_ecc_irq_state, .-sdma_v4_0_set_ecc_irq_state
	.comm	mmSDMA0_EDC_CONFIG,4,4
	.comm	SDMA0_EDC_CONFIG,4,4
	.comm	ECC_INT_ENABLE,4,4
	.comm	AMDGPU_IRQ_STATE_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sdma_v4_0.c_sdma_v4_0_set_ecc_irq_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdma_v4_0_set_ecc_irq_state, %function
sdma_v4_0_set_ecc_irq_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r3
	ldr	r6, .L4
	mov	r0, r2
	ldr	r1, [r6]
	mov	r4, r2
	bl	RREG32_SDMA
	ldr	r3, .L4+4
	ldr	r2, .L4+8
	ldr	r3, [r3]
	ldr	r1, .L4+12
	sub	r3, r3, r5
	clz	r3, r3
	ldr	r2, [r2]
	lsr	r3, r3, #5
	ldr	r1, [r1]
	bl	REG_SET_FIELD
	ldr	r1, [r6]
	mov	r2, r0
	mov	r0, r4
	bl	WREG32_SDMA
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	mmSDMA0_EDC_CONFIG
	.word	AMDGPU_IRQ_STATE_ENABLE
	.word	ECC_INT_ENABLE
	.word	SDMA0_EDC_CONFIG
	.size	sdma_v4_0_set_ecc_irq_state, .-sdma_v4_0_set_ecc_irq_state
	.comm	mmSDMA0_EDC_CONFIG,4,4
	.comm	SDMA0_EDC_CONFIG,4,4
	.comm	ECC_INT_ENABLE,4,4
	.comm	AMDGPU_IRQ_STATE_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
