	.file	"extr_dcn10_hw_sequencer.c_dcn10_reset_hw_ctx_wrap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dcn10_reset_hw_ctx_wrap, @function
dcn10_reset_hw_ctx_wrap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 16[rdi]
	mov	QWORD PTR 8[rsp], rsi
	movsx	rax, DWORD PTR [rax]
	mov	edx, eax
	sub	edx, 1
	js	.L1
	movsx	rcx, edx
	mov	edx, edx
	mov	r12, rdi
	sub	rax, rdx
	lea	rbx, [rcx+rcx*2]
	lea	rax, [rax+rax*2]
	sal	rbx, 3
	lea	r13, -48[0+rax*8]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR 8[r12]
	mov	rbp, QWORD PTR [rdx]
	add	rbp, rbx
	mov	ecx, DWORD PTR 8[rbp]
	test	ecx, ecx
	je	.L4
	cmp	QWORD PTR 16[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR 8[rsp]
	mov	r15, QWORD PTR [rax]
	add	r15, rbx
	mov	eax, DWORD PTR 8[r15]
	test	eax, eax
	je	.L6
	mov	rsi, r15
	mov	rdi, rbp
	call	pipe_need_reprogram@PLT
	test	rax, rax
	je	.L4
	mov	rdx, QWORD PTR 8[r12]
.L6:
	mov	rsi, rbp
	mov	rdi, r12
	mov	r14, QWORD PTR 0[rbp]
	call	dcn10_reset_back_end_for_pipe@PLT
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L7
	mov	rsi, r15
	mov	rdi, r12
	call	rax
.L7:
	test	r14, r14
	je	.L4
	mov	rax, QWORD PTR [r14]
	mov	rdi, r14
	call	[QWORD PTR [rax]]
.L4:
	sub	rbx, 24
	cmp	r13, rbx
	jne	.L8
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dcn10_reset_hw_ctx_wrap, .-dcn10_reset_hw_ctx_wrap
	.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_dcn10_hw_sequencer.c_dcn10_reset_hw_ctx_wrap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dcn10_reset_hw_ctx_wrap, %function
dcn10_reset_hw_ctx_wrap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r3]
	subs	r4, r4, #1
	popmi	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r7, r0
	mov	r9, r1
.L2:
	ldr	r2, [r7, #4]
	add	r5, r4, r4, lsl #1
	ldr	r8, [r2]
	sub	r4, r4, #1
	add	r6, r8, r5, lsl #2
	ldr	r3, [r6, #4]
	lsl	r1, r5, #2
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L4
	ldr	r10, [r9]
	add	r10, r10, r1
	ldr	r3, [r10, #4]
	cmp	r3, #0
	beq	.L6
	mov	r1, r10
	mov	r0, r6
	bl	pipe_need_reprogram
	cmp	r0, #0
	beq	.L4
	ldr	r2, [r7, #4]
.L6:
	mov	r1, r6
	mov	r0, r7
	ldr	r5, [r8, r5, lsl #2]
	bl	dcn10_reset_back_end_for_pipe
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L7
	mov	r1, r10
	mov	r0, r7
	blx	r3
.L7:
	cmp	r5, #0
	beq	.L4
	ldr	r3, [r5]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
.L4:
	cmn	r4, #1
	bne	.L2
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	dcn10_reset_hw_ctx_wrap, .-dcn10_reset_hw_ctx_wrap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
