	.file	"extr_av7110_ca.c_ci_ll_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ci_ll_init, @function
ci_ll_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR 16[rsp], 0
	test	rdi, rdi
	je	.L2
	mov	r13, rsp
	mov	rbp, rdi
	mov	r12d, edx
	mov	rbx, r13
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	mov	edx, r12d
	add	rbx, 8
	call	dvb_ringbuffer_init@PLT
	mov	rbp, QWORD PTR [rbx]
	test	rbp, rbp
	je	.L2
.L7:
	mov	edi, r12d
	call	vmalloc@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L3
	lea	rbp, -8[rbx]
	cmp	rbx, r13
	je	.L4
	mov	rax, rbx
	sub	rax, r13
	sub	rax, 8
	and	rax, -8
	neg	rax
	lea	r12, -16[rbx+rax]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, QWORD PTR 0[rbp]
	sub	rbp, 8
	mov	rdi, QWORD PTR [rbx]
	call	vfree@PLT
	mov	QWORD PTR [rbx], 0
	cmp	rbp, r12
	jne	.L5
.L4:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ci_ll_init, .-ci_ll_init
	.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_av7110_ca.c_ci_ll_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ci_ll_init, %function
ci_ll_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	stm	sp, {r0, r1}
	mov	r6, r2
	ldr	r2, .L17
	cmp	r0, r3
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #8]
	beq	.L2
	mov	r7, sp
	mov	r4, r0
	mov	r5, r7
	b	.L7
.L3:
	mov	r0, r4
	mov	r2, r6
	bl	dvb_ringbuffer_init
	ldr	r4, [r5, #4]!
	cmp	r4, #0
	beq	.L2
.L7:
	mov	r0, r6
	bl	vmalloc
	subs	r1, r0, #0
	bne	.L3
	cmp	r5, r7
	sub	r6, r5, #4
	beq	.L4
	mov	r4, r1
	sub	r3, r5, r7
	sub	r3, r3, #4
	bic	r3, r3, #3
	sub	r5, r5, r3
	sub	r5, r5, #8
.L5:
	ldr	r7, [r6], #-4
	ldr	r0, [r7]
	bl	vfree
	cmp	r6, r5
	str	r4, [r7]
	bne	.L5
.L4:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L2:
	mov	r0, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	ENOMEM
	.size	ci_ll_init, .-ci_ll_init
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
