	.file	"extr_amba-pl08x.c_pl08x_fill_lli_for_desc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pl08x_fill_lli_for_desc, @function
pl08x_fill_lli_for_desc:
.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
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR [rdi]
	mov	rax, QWORD PTR 16[rsi]
	mov	DWORD PTR 12[rsp], r9d
	imul	ecx, edx
	mov	rsi, QWORD PTR [rax]
	mov	r15d, DWORD PTR 8[rax]
	movsx	rdi, ecx
	mov	DWORD PTR 8[rsp], ecx
	lea	r13, [rsi+rdi*4]
	xor	edi, edi
	cmp	DWORD PTR MAX_NUM_TSFR_LLIS[rip], edx
	setle	dil
	call	BUG_ON@PLT
	mov	edx, DWORD PTR 12[rbx]
	mov	rax, QWORD PTR PL080_LLI_SRC[rip]
	mov	ecx, DWORD PTR 8[rsp]
	add	ecx, DWORD PTR [r12]
	mov	DWORD PTR 0[r13+rax*4], edx
	mov	rax, QWORD PTR PL080_LLI_DST[rip]
	mov	edx, DWORD PTR 8[rbx]
	mov	DWORD PTR 0[r13+rax*4], edx
	mov	rax, QWORD PTR PL080_LLI_LLI[rip]
	lea	rdx, 0[r13+rax*4]
	lea	eax, [r15+rcx*4]
	mov	DWORD PTR [rdx], eax
	or	eax, DWORD PTR [rbx]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR PL080_LLI_CCTL[rip]
	mov	DWORD PTR 0[r13+rax*4], r14d
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	mov	rdx, QWORD PTR PL080S_LLI_CCTL2[rip]
	mov	esi, DWORD PTR 12[rsp]
	mov	DWORD PTR 0[r13+rdx*4], esi
.L2:
	cmp	QWORD PTR [rax], 0
	je	.L3
	add	DWORD PTR 12[rbx], ebp
	add	DWORD PTR 8[rbx], ebp
.L4:
	xor	edi, edi
	cmp	DWORD PTR 4[rbx], ebp
	setl	dil
	call	BUG_ON@PLT
	sub	DWORD PTR 4[rbx], ebp
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	DWORD PTR PL080_CONTROL_SRC_INCR[rip], r14d
	je	.L5
	add	DWORD PTR 12[rbx], ebp
.L5:
	test	DWORD PTR PL080_CONTROL_DST_INCR[rip], r14d
	je	.L4
	add	DWORD PTR 8[rbx], ebp
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pl08x_fill_lli_for_desc, .-pl08x_fill_lli_for_desc
	.comm	PL080_LLI_SRC,8,8
	.comm	PL080_LLI_LLI,8,8
	.comm	PL080_LLI_DST,8,8
	.comm	PL080_LLI_CCTL,8,8
	.comm	PL080_CONTROL_SRC_INCR,4,4
	.comm	PL080_CONTROL_DST_INCR,4,4
	.comm	PL080S_LLI_CCTL2,8,8
	.comm	MAX_NUM_TSFR_LLIS,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_amba-pl08x.c_pl08x_fill_lli_for_desc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pl08x_fill_lli_for_desc, %function
pl08x_fill_lli_for_desc:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r8, r0
	ldr	r6, [r0]
	ldr	r0, .L17
	ldr	r1, [r1, #16]
	ldr	r0, [r0]
	mul	r6, r2, r6
	cmp	r0, r2
	movgt	r0, #0
	movle	r0, #1
	ldr	r5, [r1]
	ldr	r10, [r1, #4]
	mov	r7, r3
	ldr	r9, [sp, #32]
	bl	BUG_ON
	ldr	r3, .L17+4
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	add	r5, r5, r6, lsl #2
	ldr	r1, [r8]
	str	r2, [r5, r3, lsl #2]
	ldr	r2, .L17+8
	ldr	r3, .L17+12
	ldr	r0, [r4, #8]
	ldr	r3, [r3]
	add	r6, r6, r1
	ldr	r1, [r2]
	ldr	r2, [r8, #4]
	add	r6, r10, r6, lsl #2
	str	r0, [r5, r3, lsl #2]
	ldr	ip, [r2, #4]
	str	r6, [r5, r1, lsl #2]
	ldr	r3, [r4]
	cmp	ip, #0
	orr	r6, r3, r6
	ldr	r0, .L17+16
	ldrne	r3, .L17+20
	ldr	r0, [r0]
	ldrne	r3, [r3]
	str	r6, [r5, r1, lsl #2]
	ldrne	r1, [sp, #36]
	str	r9, [r5, r0, lsl #2]
	strne	r1, [r5, r3, lsl #2]
	ldr	r3, [r2]
	cmp	r3, #0
	beq	.L3
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	add	r2, r2, r7
	add	r3, r3, r7
	str	r2, [r4, #12]
	str	r3, [r4, #8]
.L4:
	ldr	r0, [r4, #4]
	cmp	r0, r7
	movge	r0, #0
	movlt	r0, #1
	bl	BUG_ON
	ldr	r3, [r4, #4]
	sub	r7, r3, r7
	str	r7, [r4, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r3, .L17+24
	ldr	r3, [r3]
	tst	r9, r3
	ldrne	r3, [r4, #12]
	addne	r3, r3, r7
	strne	r3, [r4, #12]
	ldr	r3, .L17+28
	ldr	r3, [r3]
	tst	r9, r3
	ldrne	r3, [r4, #8]
	addne	r3, r3, r7
	strne	r3, [r4, #8]
	b	.L4
.L18:
	.align	2
.L17:
	.word	MAX_NUM_TSFR_LLIS
	.word	PL080_LLI_SRC
	.word	PL080_LLI_LLI
	.word	PL080_LLI_DST
	.word	PL080_LLI_CCTL
	.word	PL080S_LLI_CCTL2
	.word	PL080_CONTROL_SRC_INCR
	.word	PL080_CONTROL_DST_INCR
	.size	pl08x_fill_lli_for_desc, .-pl08x_fill_lli_for_desc
	.comm	PL080_LLI_SRC,4,4
	.comm	PL080_LLI_LLI,4,4
	.comm	PL080_LLI_DST,4,4
	.comm	PL080_LLI_CCTL,4,4
	.comm	PL080_CONTROL_SRC_INCR,4,4
	.comm	PL080_CONTROL_DST_INCR,4,4
	.comm	PL080S_LLI_CCTL2,4,4
	.comm	MAX_NUM_TSFR_LLIS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
