	.file	"extr_dma.c_op32_fill_descriptor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	op32_fill_descriptor, @function
op32_fill_descriptor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	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
	sub	r14, QWORD PTR 16[rdi]
	mov	edi, 1
	sar	r14, 4
	test	r14d, r14d
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR [r12], r14d
	setle	dil
.L2:
	mov	DWORD PTR 12[rsp], r9d
	call	B43legacy_WARN_ON@PLT
	mov	eax, DWORD PTR SSB_DMA_TRANSLATION_MASK[rip]
	mov	ecx, DWORD PTR SSB_DMA_TRANSLATION_SHIFT[rip]
	mov	edi, ebp
	sub	edi, DWORD PTR 4[r12]
	mov	r9d, DWORD PTR 12[rsp]
	mov	edx, eax
	and	eax, r13d
	sar	eax, cl
	mov	rcx, QWORD PTR 8[r12]
	not	edx
	and	edx, r13d
	or	edx, DWORD PTR [rcx]
	mov	ecx, DWORD PTR [r12]
	mov	r13d, edx
	mov	edx, DWORD PTR B43legacy_DMA32_DCTL_BYTECNT[rip]
	sub	ecx, 1
	and	edx, edi
	cmp	ecx, r14d
	jne	.L3
	or	edx, DWORD PTR B43legacy_DMA32_DCTL_DTABLEEND[rip]
.L3:
	test	r15d, r15d
	je	.L4
	or	edx, DWORD PTR B43legacy_DMA32_DCTL_FRAMESTART[rip]
.L4:
	test	r9d, r9d
	je	.L5
	or	edx, DWORD PTR B43legacy_DMA32_DCTL_FRAMEEND[rip]
.L5:
	mov	ecx, DWORD PTR 80[rsp]
	test	ecx, ecx
	je	.L6
	or	edx, DWORD PTR B43legacy_DMA32_DCTL_IRQ[rip]
.L6:
	mov	ecx, DWORD PTR B43legacy_DMA32_DCTL_ADDREXT_SHIFT[rip]
	mov	edi, DWORD PTR B43legacy_DMA32_DCTL_ADDREXT_MASK[rip]
	sal	eax, cl
	and	edi, eax
	or	edi, edx
	call	cpu_to_le32@PLT
	mov	edi, r13d
	mov	QWORD PTR 8[rbx], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR [rbx], rax
	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	op32_fill_descriptor, .-op32_fill_descriptor
	.comm	SSB_DMA_TRANSLATION_SHIFT,4,4
	.comm	SSB_DMA_TRANSLATION_MASK,4,4
	.comm	B43legacy_DMA32_DCTL_IRQ,4,4
	.comm	B43legacy_DMA32_DCTL_FRAMESTART,4,4
	.comm	B43legacy_DMA32_DCTL_FRAMEEND,4,4
	.comm	B43legacy_DMA32_DCTL_DTABLEEND,4,4
	.comm	B43legacy_DMA32_DCTL_BYTECNT,4,4
	.comm	B43legacy_DMA32_DCTL_ADDREXT_SHIFT,4,4
	.comm	B43legacy_DMA32_DCTL_ADDREXT_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_dma.c_op32_fill_descriptor.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	op32_fill_descriptor, %function
op32_fill_descriptor:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0, #12]
	mov	r6, r0
	sub	r5, r1, r5
	cmp	r5, #0
	mov	r7, r1
	mov	fp, r2
	mov	r4, r3
	movlt	r0, #1
	ldr	r10, [sp, #40]
	ldr	r9, [sp, #44]
	ldr	r8, [sp, #48]
	asr	r5, r5, #3
	blt	.L2
	ldr	r0, [r6]
	cmp	r0, r5
	movgt	r0, #0
	movle	r0, #1
.L2:
	bl	B43legacy_WARN_ON
	ldr	r2, .L19
	ldr	lr, [r6]
	ldr	r1, [r2]
	ldr	r2, .L19+4
	ldr	r0, [r6, #8]
	ldr	r6, [r6, #4]
	ldr	r2, [r2]
	sub	lr, lr, #1
	cmp	lr, r5
	sub	r4, r4, r6
	and	r4, r4, r2
	ldreq	r2, .L19+8
	ldr	r0, [r0]
	ldreq	r2, [r2]
	bic	ip, fp, r1
	orreq	r4, r4, r2
	cmp	r10, #0
	ldrne	r2, .L19+12
	ldr	r3, .L19+16
	ldrne	r2, [r2]
	orr	r5, ip, r0
	orrne	r4, r4, r2
	cmp	r9, #0
	ldrne	r2, .L19+20
	ldr	r0, .L19+24
	ldrne	r2, [r2]
	ldr	r3, [r3]
	orrne	r4, r4, r2
	cmp	r8, #0
	ldrne	r2, .L19+28
	and	r1, r1, fp
	ldrne	r2, [r2]
	ldr	fp, [r0]
	orrne	r4, r4, r2
	ldr	r2, .L19+32
	asr	r1, r1, r3
	ldr	r0, [r2]
	and	r0, r0, r1, lsl fp
	orr	r0, r0, r4
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r5
	str	r3, [r7, #4]
	bl	cpu_to_le32
	str	r0, [r7]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	SSB_DMA_TRANSLATION_MASK
	.word	B43legacy_DMA32_DCTL_BYTECNT
	.word	B43legacy_DMA32_DCTL_DTABLEEND
	.word	B43legacy_DMA32_DCTL_FRAMESTART
	.word	SSB_DMA_TRANSLATION_SHIFT
	.word	B43legacy_DMA32_DCTL_FRAMEEND
	.word	B43legacy_DMA32_DCTL_ADDREXT_SHIFT
	.word	B43legacy_DMA32_DCTL_IRQ
	.word	B43legacy_DMA32_DCTL_ADDREXT_MASK
	.size	op32_fill_descriptor, .-op32_fill_descriptor
	.comm	SSB_DMA_TRANSLATION_SHIFT,4,4
	.comm	SSB_DMA_TRANSLATION_MASK,4,4
	.comm	B43legacy_DMA32_DCTL_IRQ,4,4
	.comm	B43legacy_DMA32_DCTL_FRAMESTART,4,4
	.comm	B43legacy_DMA32_DCTL_FRAMEEND,4,4
	.comm	B43legacy_DMA32_DCTL_DTABLEEND,4,4
	.comm	B43legacy_DMA32_DCTL_BYTECNT,4,4
	.comm	B43legacy_DMA32_DCTL_ADDREXT_SHIFT,4,4
	.comm	B43legacy_DMA32_DCTL_ADDREXT_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
