	.file	"extr_idma64.c_idma64_desc_fill.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	idma64_desc_fill, @function
idma64_desc_fill:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	ecx, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	eax, DWORD PTR [rsi]
	mov	rbx, QWORD PTR 16[rsi]
	sub	eax, 1
	lea	rbp, [rax+rax*2]
	sal	rbp, 3
	mov	r14, QWORD PTR 16[rbx+rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rbx, QWORD PTR 16[r12]
.L3:
	add	rbx, rbp
	mov	edx, DWORD PTR 8[r12]
	mov	rsi, r13
	sub	rbp, 24
	mov	rdi, rbx
	call	idma64_hw_desc_fill@PLT
	mov	ecx, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rbx]
	add	DWORD PTR 4[r12], eax
	cmp	rbp, -24
	jne	.L6
	mov	eax, DWORD PTR [r14]
	or	eax, DWORD PTR IDMA64C_CTLL_INT_EN[rip]
	mov	DWORD PTR [r14], eax
	mov	edx, eax
	mov	eax, DWORD PTR IDMA64C_CTLL_LLP_S_EN[rip]
	or	eax, DWORD PTR IDMA64C_CTLL_LLP_D_EN[rip]
	not	eax
	and	eax, edx
	mov	DWORD PTR [r14], eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	idma64_desc_fill, .-idma64_desc_fill
	.comm	IDMA64C_CTLL_LLP_S_EN,4,4
	.comm	IDMA64C_CTLL_LLP_D_EN,4,4
	.comm	IDMA64C_CTLL_INT_EN,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_idma64.c_idma64_desc_fill.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	idma64_desc_fill, %function
idma64_desc_fill:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r1]
	ldr	r6, [r1, #12]
	add	r2, r4, r4, lsl #1
	add	r2, r6, r2, lsl #2
	mov	r5, r1
	mov	r10, r0
	mov	r3, #0
	ldr	r9, [r2, #-4]
	b	.L3
.L6:
	ldr	r6, [r5, #12]
.L3:
	sub	r4, r4, #1
	add	r8, r4, r4, lsl #1
	add	r7, r6, r8, lsl #2
	ldr	r2, [r5, #8]
	mov	r0, r7
	mov	r1, r10
	bl	idma64_hw_desc_fill
	ldr	r3, [r6, r8, lsl #2]
	ldr	r2, [r5, #4]
	cmp	r4, #0
	add	r2, r2, r3
	ldr	r3, [r7, #4]
	str	r2, [r5, #4]
	bne	.L6
	ldr	r2, .L7
	ldr	r3, [r9]
	ldr	r1, [r2]
	ldr	r2, .L7+4
	orr	r3, r3, r1
	ldr	r1, .L7+8
	str	r3, [r9]
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r2, r1
	bic	r3, r3, r2
	str	r3, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	IDMA64C_CTLL_INT_EN
	.word	IDMA64C_CTLL_LLP_S_EN
	.word	IDMA64C_CTLL_LLP_D_EN
	.size	idma64_desc_fill, .-idma64_desc_fill
	.comm	IDMA64C_CTLL_LLP_S_EN,4,4
	.comm	IDMA64C_CTLL_LLP_D_EN,4,4
	.comm	IDMA64C_CTLL_INT_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
