	.file	"extr_ctvmem.c_ct_vm_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No virtual memory block that is big enough to allocate!\n"
	.text
	.p2align 4
	.type	ct_vm_map, @function
ct_vm_map:
.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, edx
	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
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], edx
	call	snd_pcm_substream_chip@PLT
	mov	esi, r14d
	mov	rdi, rbp
	mov	rdx, rax
	mov	r12, rax
	call	get_vm_block@PLT
	mov	r14, rax
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR CT_PAGE_SHIFT[rip]
	mov	ebp, DWORD PTR 4[r14]
	mov	r12d, DWORD PTR [r14]
	mov	r13, QWORD PTR [rax]
	shr	ebp, cl
	shr	r12d, cl
	test	ebp, ebp
	je	.L4
	xor	r15d, r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR CT_PAGE_SHIFT[rip]
.L5:
	mov	esi, r15d
	mov	rdi, rbx
	sal	esi, cl
	call	snd_pcm_sgbuf_get_addr@PLT
	mov	r8, rax
	lea	eax, [r12+r15]
	add	r15d, 1
	mov	QWORD PTR 0[r13+rax*8], r8
	cmp	ebp, r15d
	jne	.L12
.L4:
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 4[r14], eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ct_vm_map, .-ct_vm_map
	.comm	CT_PAGE_SHIFT,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_ctvmem.c_ct_vm_map.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No virtual memory block that is big enough to alloc"
	.ascii	"ate!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ct_vm_map, %function
ct_vm_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r10, r2
	mov	r6, r1
	bl	snd_pcm_substream_chip
	mov	r1, r10
	mov	r2, r0
	mov	r5, r0
	mov	r0, r4
	bl	get_vm_block
	subs	r9, r0, #0
	beq	.L11
	ldr	r8, .L13
	ldr	r7, [r9, #4]
	ldr	r1, [r8]
	ldr	r2, [r4]
	ldr	r3, [r9]
	lsrs	r7, r7, r1
	ldr	r5, [r2]
	lsr	r3, r3, r1
	beq	.L4
	mov	r4, #0
	add	r5, r5, r3, lsl #2
	b	.L5
.L12:
	ldr	r1, [r8]
.L5:
	lsl	r1, r4, r1
	mov	r0, r6
	bl	snd_pcm_sgbuf_get_addr
	add	r4, r4, #1
	cmp	r7, r4
	str	r0, [r5], #4
	bne	.L12
.L4:
	str	r10, [r9, #4]
.L1:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, [r5]
	ldr	r1, .L13+4
	ldr	r0, [r3]
	bl	dev_err
	b	.L1
.L14:
	.align	2
.L13:
	.word	CT_PAGE_SHIFT
	.word	.LC0
	.size	ct_vm_map, .-ct_vm_map
	.comm	CT_PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
