	.file	"extr_cx25821-alsa.c_cx25821_alsa_dma_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vmalloc_32(%d pages) failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"vmalloc is at addr 0x%p, size=%d\n"
	.text
	.p2align 4
	.type	cx25821_alsa_dma_init, @function
cx25821_alsa_dma_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR [rdi]
	mov	edi, esi
	sal	edi, cl
	call	vmalloc_32@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L16
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edx, r12d
	mov	edi, 1
	lea	rsi, .LC1[rip]
	sal	edx, cl
	mov	ecx, edx
	mov	edx, eax
	xor	eax, eax
	call	dprintk@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edx, r12d
	xor	esi, esi
	mov	rdi, QWORD PTR 8[rbp]
	sal	edx, cl
	call	memset@PLT
	mov	DWORD PTR 0[rbp], r12d
	mov	esi, r12d
	mov	edi, 4
	call	array_size@PLT
	mov	edi, eax
	call	vzalloc@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR 0[rbp]
	xor	ebx, ebx
	call	sg_init_table@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jg	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	xor	ecx, ecx
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	sg_set_page@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L7
.L5:
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	rdx, QWORD PTR 8[rbp]
	imul	eax, ebx
	cdqe
	lea	rdi, [rdx+rax*4]
	call	vmalloc_to_page@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L6
	mov	rdi, QWORD PTR 16[rbp]
	call	vfree@PLT
	mov	QWORD PTR 16[rbp], 0
.L4:
	mov	rdi, QWORD PTR 8[rbp]
	call	vfree@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 8[rbp], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	dprintk@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	cx25821_alsa_dma_init, .-cx25821_alsa_dma_init
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,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_cx25821-alsa.c_cx25821_alsa_dma_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vmalloc_32(%d pages) failed\012\000"
	.align	2
.LC1:
	.ascii	"vmalloc is at addr 0x%p, size=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx25821_alsa_dma_init, %function
cx25821_alsa_dma_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L16
	ldr	r5, [r0]
	ldr	r0, [r6]
	sub	sp, sp, #8
	lsl	r0, r1, r0
	mov	r4, r1
	bl	vmalloc_32
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L15
	ldr	r3, [r6]
	mov	r2, r0
	lsl	r3, r4, r3
	ldr	r1, .L16+4
	mov	r0, #1
	bl	dprintk
	ldr	r2, [r6]
	mov	r1, #0
	lsl	r2, r4, r2
	ldr	r0, [r5, #4]
	bl	memset
	mov	r1, r4
	mov	r0, #4
	str	r4, [r5]
	bl	array_size
	bl	vzalloc
	cmp	r0, #0
	str	r0, [r5, #8]
	beq	.L4
	ldr	r1, [r5]
	bl	sg_init_table
	ldr	r3, [r5]
	cmp	r3, #0
	movgt	r4, #0
	ldrgt	r6, .L16+8
	bgt	.L5
	b	.L7
.L6:
	ldr	r0, [r5, #8]
	mov	r3, #0
	add	r0, r0, r4, lsl #2
	ldr	r2, [r6]
	bl	sg_set_page
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L7
.L5:
	ldr	r3, [r6]
	ldr	r0, [r5, #4]
	mul	r3, r4, r3
	add	r0, r0, r3, lsl #2
	bl	vmalloc_to_page
	subs	r1, r0, #0
	bne	.L6
	ldr	r0, [r5, #8]
	str	r1, [sp, #4]
	bl	vfree
	ldr	r1, [sp, #4]
	str	r1, [r5, #8]
.L4:
	ldr	r0, [r5, #4]
	bl	vfree
	mov	r2, #0
	ldr	r3, .L16+12
	str	r2, [r5, #4]
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r2, r4
	ldr	r1, .L16+16
	mov	r0, #1
	bl	dprintk
	ldr	r3, .L16+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	PAGE_SHIFT
	.word	.LC1
	.word	PAGE_SIZE
	.word	ENOMEM
	.word	.LC0
	.size	cx25821_alsa_dma_init, .-cx25821_alsa_dma_init
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
