	.file	"extr_sdma.c_sdma_cleanup_sde_map.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdma_cleanup_sde_map, @function
sdma_cleanup_sde_map:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	je	.L10
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8, QWORD PTR 8[rdi]
	mov	rbp, rdi
	xor	eax, eax
	mov	rdi, r8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rdi, 8
	cmp	edx, eax
	je	.L14
.L4:
	mov	ecx, eax
	add	eax, 1
	cmp	QWORD PTR [rdi], rsi
	jne	.L3
	sub	edx, 1
	lea	rsi, [r8+rax*8]
	sub	edx, ecx
	sal	edx, 3
	call	memmove@PLT
	mov	eax, DWORD PTR 0[rbp]
	lea	edi, -1[rax]
	mov	eax, 1
	mov	DWORD PTR 0[rbp], edi
	test	edi, edi
	cmove	edi, eax
	call	roundup_pow_of_two@PLT
	mov	rdi, rbp
	sub	eax, 1
	mov	DWORD PTR 4[rbp], eax
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	sdma_populate_sde_map@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	sdma_cleanup_sde_map, .-sdma_cleanup_sde_map
	.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.c_sdma_cleanup_sde_map.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdma_cleanup_sde_map, %function
sdma_cleanup_sde_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	lr, [r0]
	cmp	lr, #0
	popeq	{r4, r5, r6, pc}
	ldr	r5, [r0, #8]
	mov	r4, r0
	mov	r3, #0
	mov	r2, r5
	b	.L4
.L3:
	cmp	lr, r3
	popeq	{r4, r5, r6, pc}
.L4:
	ldr	ip, [r2]
	mov	r0, r2
	cmp	ip, r1
	add	r2, r2, #4
	mov	ip, r3
	add	r3, r3, #1
	bne	.L3
	sub	lr, lr, #1
	sub	r2, lr, ip
	add	r1, r5, r3, lsl #2
	lsl	r2, r2, #2
	bl	memmove
	ldr	r0, [r4]
	sub	r0, r0, #1
	cmp	r0, #1
	str	r0, [r4]
	movcc	r0, #1
	bl	roundup_pow_of_two
	sub	r0, r0, #1
	str	r0, [r4, #4]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	sdma_populate_sde_map
	.size	sdma_cleanup_sde_map, .-sdma_cleanup_sde_map
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
