	.file	"extr_av7110_ca.c_ci_ll_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ci_ll_reset, @function
ci_ll_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	and	r13d, 1
	movabs	rax, 25769803776
	mov	QWORD PTR 8[rsp], 0
	setne	bl
	mov	QWORD PTR [rsp], rax
	sar	edx
	movabs	rax, 8589934847
	sal	ebx, 3
	mov	QWORD PTR 16[rsp], rax
	and	edx, 1
	mov	QWORD PTR 24[rsp], 0
	lea	eax, 8[rbx]
	mov	r12d, edx
	cmovne	ebx, eax
	call	dvb_ringbuffer_free@PLT
	cmp	eax, ebx
	jl	.L4
	test	r13d, r13d
	jne	.L19
	test	r12d, r12d
	jne	.L20
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rsi, rsp
	mov	edx, 8
	mov	rdi, r14
	xor	r12d, r12d
	mov	DWORD PTR 8[rsp], 1
	call	dvb_ringbuffer_write@PLT
	mov	QWORD PTR 8[rbp], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, rsp
	mov	edx, 8
	mov	rdi, r14
	mov	DWORD PTR 8[rsp], 0
	call	dvb_ringbuffer_write@PLT
	mov	QWORD PTR 0[rbp], 0
	test	r12d, r12d
	je	.L1
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ci_ll_reset, .-ci_ll_reset
	.comm	EBUSY,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_reset.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ci_ll_reset, %function
ci_ll_reset:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	lr, r2
	ands	r7, r2, #1
	mov	r6, r0
	movne	r9, #8
	sub	sp, sp, #44
	ldr	ip, .L23
	add	r5, sp, #4
	mov	r8, r3
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	r5!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	ldr	ip, .L23+4
	asr	lr, lr, #1
	moveq	r9, #0
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	ands	r4, lr, #1
	stm	r5, {r0, r1, r2, r3}
	mov	r0, r6
	addne	r9, r9, #8
	bl	dvb_ringbuffer_free
	cmp	r0, r9
	blt	.L4
	cmp	r7, #0
	bne	.L20
	cmp	r4, #0
	bne	.L21
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L21:
	mov	r3, #1
	mov	r4, #0
	mov	r0, r6
	mov	r2, #8
	add	r1, sp, #4
	str	r3, [sp, #12]
	bl	dvb_ringbuffer_write
	str	r4, [r8, #4]
	b	.L1
.L20:
	mov	r5, #0
	mov	r2, #8
	mov	r0, r6
	add	r1, sp, #4
	str	r5, [sp, #12]
	bl	dvb_ringbuffer_write
	cmp	r4, #0
	str	r5, [r8]
	beq	.L1
	b	.L21
.L4:
	ldr	r3, .L23+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LANCHOR0
	.word	.LC1
	.word	EBUSY
	.size	ci_ll_reset, .-ci_ll_reset
	.comm	EBUSY,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	0
	.word	6
	.word	0
	.word	0
	.word	255
	.word	2
	.word	0
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
