	.file	"extr_dce_v11_0.c_dce_v11_0_soft_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SRBM_SOFT_RESET=0x%08X\n"
	.text
	.p2align 4
	.type	dce_v11_0_soft_reset, @function
dce_v11_0_soft_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	dce_v11_0_is_display_hung@PLT
	test	rax, rax
	je	.L2
	mov	ebp, DWORD PTR SRBM_SOFT_RESET__SOFT_RESET_DC_MASK[rip]
	test	ebp, ebp
	jne	.L11
.L2:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR mmSRBM_SOFT_RESET[rip]
	call	RREG32@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	or	eax, ebp
	mov	edx, eax
	mov	r12d, eax
	call	dev_info@PLT
	mov	edi, DWORD PTR mmSRBM_SOFT_RESET[rip]
	mov	esi, r12d
	call	WREG32@PLT
	mov	edi, DWORD PTR mmSRBM_SOFT_RESET[rip]
	call	RREG32@PLT
	mov	edi, 50
	mov	ebx, eax
	call	udelay@PLT
	mov	esi, ebp
	mov	edi, DWORD PTR mmSRBM_SOFT_RESET[rip]
	not	esi
	and	esi, ebx
	call	WREG32@PLT
	mov	edi, DWORD PTR mmSRBM_SOFT_RESET[rip]
	call	RREG32@PLT
	mov	edi, 50
	call	udelay@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dce_v11_0_soft_reset, .-dce_v11_0_soft_reset
	.comm	mmSRBM_SOFT_RESET,4,4
	.comm	SRBM_SOFT_RESET__SOFT_RESET_DC_MASK,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_dce_v11_0.c_dce_v11_0_soft_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SRBM_SOFT_RESET=0x%08X\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dce_v11_0_soft_reset, %function
dce_v11_0_soft_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	dce_v11_0_is_display_hung
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L12
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L11
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r6, .L12+4
	ldr	r0, [r6]
	bl	RREG32
	orr	r7, r5, r0
	mov	r2, r7
	ldr	r0, [r4]
	ldr	r1, .L12+8
	bl	dev_info
	mov	r1, r7
	ldr	r0, [r6]
	bl	WREG32
	ldr	r0, [r6]
	bl	RREG32
	mov	r4, r0
	mov	r0, #50
	bl	udelay
	bic	r1, r4, r5
	ldr	r0, [r6]
	bl	WREG32
	ldr	r0, [r6]
	bl	RREG32
	mov	r0, #50
	bl	udelay
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	SRBM_SOFT_RESET__SOFT_RESET_DC_MASK
	.word	mmSRBM_SOFT_RESET
	.word	.LC0
	.size	dce_v11_0_soft_reset, .-dce_v11_0_soft_reset
	.comm	mmSRBM_SOFT_RESET,4,4
	.comm	SRBM_SOFT_RESET__SOFT_RESET_DC_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
