	.file	"extr_cppi41.c_cppi41_add_chans.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cppi41_add_chans, @function
cppi41_add_chans:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 56
	mov	r15, rsi
	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	eax, DWORD PTR [rsi]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	ebx, [rax+rax]
	mov	esi, ebx
	mov	DWORD PTR 12[rsp], ebx
	call	devm_kcalloc@PLT
	test	rax, rax
	je	.L2
	test	ebx, ebx
	jle	.L8
	lea	rbx, 16[rax]
	mov	eax, DWORD PTR 12[rsp]
	lea	r12, 12[r15]
	xor	ebp, ebp
	sub	eax, 1
	mov	QWORD PTR [rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	call	DMA_TXGCR@PLT
	mov	DWORD PTR -16[rbx], 1
	mov	edx, DWORD PTR 8[rsp]
	add	r13, rax
	mov	QWORD PTR 24[rbx], r13
.L6:
	mov	rax, QWORD PTR 16[r15]
	mov	DWORD PTR -12[rbx], edx
	mov	rdi, rbx
	mov	rsi, r12
	add	rbx, 56
	lea	rax, [rax+rbp*4]
	mov	QWORD PTR -40[rbx], rax
	mov	eax, DWORD PTR 4[r15]
	mov	QWORD PTR -48[rbx], r12
	lea	eax, [rax+r14*4]
	mov	DWORD PTR -64[rbx], eax
	call	list_add_tail@PLT
	lea	rax, 1[rbp]
	cmp	rbp, QWORD PTR [rsp]
	je	.L8
	mov	rbp, rax
.L7:
	mov	edx, ebp
	mov	QWORD PTR 32[rbx], r15
	mov	r13, QWORD PTR 24[r15]
	mov	r14d, ebp
	sar	edx
	mov	DWORD PTR 8[rsp], edx
	mov	edi, edx
	test	bpl, 1
	jne	.L12
	call	DMA_RXGCR@PLT
	mov	DWORD PTR -16[rbx], 0
	mov	edx, DWORD PTR 8[rsp]
	add	r13, rax
	mov	QWORD PTR 24[rbx], r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 8[r15], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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	cppi41_add_chans, .-cppi41_add_chans
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_cppi41.c_cppi41_add_chans.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cppi41_add_chans, %function
cppi41_add_chans:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, [r1]
	ldr	r3, .L13
	lsl	r8, r8, #1
	mov	r6, r1
	mov	r2, #32
	mov	r1, r8
	ldr	r3, [r3]
	bl	devm_kcalloc
	cmp	r0, #0
	beq	.L2
	cmp	r8, #0
	movgt	r5, #0
	addgt	r4, r0, #12
	addgt	r7, r6, #12
	bgt	.L7
	b	.L8
.L12:
	bl	DMA_TXGCR
	mov	r3, #1
	add	r0, r0, fp
	str	r0, [r4, #12]
	str	r3, [r4, #-12]
.L6:
	str	r10, [r4, #-8]
	ldr	r2, [r6, #4]
	ldr	r3, [r6, #16]
	add	r2, r2, r5, lsl #2
	add	r3, r3, r5, lsl #2
	mov	r0, r4
	str	r2, [r4, #-4]
	str	r3, [r4, #8]
	str	r7, [r4, #4]
	mov	r1, r7
	add	r5, r5, #1
	bl	list_add_tail
	cmp	r8, r5
	add	r4, r4, #32
	beq	.L8
.L7:
	asr	r10, r5, #1
	ands	r9, r5, #1
	mov	r0, r10
	ldr	fp, [r6, #20]
	str	r6, [r4, #16]
	bne	.L12
	bl	DMA_RXGCR
	add	r0, r0, fp
	str	r0, [r4, #12]
	str	r9, [r4, #-12]
	b	.L6
.L8:
	mov	r0, #0
	str	r8, [r6, #8]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	cppi41_add_chans, .-cppi41_add_chans
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
