	.file	"extr_cx18-ioctl.c_cx18_g_sliced_vbi_cap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx18_g_sliced_vbi_cap, @function
cx18_g_sliced_vbi_cap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdi, rsi
	mov	r15, rdx
	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
	call	fh2id@PLT
	mov	ebp, DWORD PTR V4L2_SLICED_VBI_625[rip]
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR V4L2_BUF_TYPE_SLICED_VBI_CAPTURE[rip]
	mov	rdx, QWORD PTR [r12]
	test	rdx, rdx
	cmove	ebp, DWORD PTR V4L2_SLICED_VBI_525[rip]
	cmp	QWORD PTR [r15], rax
	je	.L4
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	DWORD PTR 8[r15], 0
	mov	QWORD PTR 8[rsp], 0
.L6:
	mov	rax, QWORD PTR 8[rsp]
	xor	ebx, ebx
	mov	r14d, eax
	lea	r13, 0[0+rax*8]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	DWORD PTR [rax+rbx*4], ebp
	add	rbx, 1
	or	DWORD PTR 8[r15], ebp
	cmp	rbx, 24
	je	.L14
.L9:
	mov	rdx, QWORD PTR [r12]
.L11:
	mov	esi, ebx
	mov	edi, r14d
	call	valid_service_line@PLT
	test	rax, rax
	mov	rax, QWORD PTR 16[r15]
	mov	rax, QWORD PTR [rax+r13]
	jne	.L15
	mov	DWORD PTR [rax+rbx*4], 0
	add	rbx, 1
	cmp	rbx, 24
	jne	.L9
.L14:
	cmp	QWORD PTR 8[rsp], 1
	je	.L10
	mov	QWORD PTR 8[rsp], 1
	mov	rdx, QWORD PTR [r12]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 24[r15]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	cx18_g_sliced_vbi_cap, .-cx18_g_sliced_vbi_cap
	.comm	V4L2_SLICED_VBI_625,4,4
	.comm	V4L2_SLICED_VBI_525,4,4
	.comm	V4L2_BUF_TYPE_SLICED_VBI_CAPTURE,8,8
	.comm	EINVAL,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_cx18-ioctl.c_cx18_g_sliced_vbi_cap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx18_g_sliced_vbi_cap, %function
cx18_g_sliced_vbi_cap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, r1
	mov	r5, r2
	bl	fh2id
	ldr	r7, [r0]
	ldr	r1, [r5]
	ldr	r2, [r7]
	cmp	r2, #0
	ldrne	r3, .L14
	ldreq	r3, .L14+4
	ldr	r8, [r3]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L4
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r6, #0
	str	r6, [r5, #4]
.L6:
	mov	r4, #0
	lsl	r9, r6, #2
	b	.L11
.L9:
	ldr	r2, [r7]
.L11:
	mov	r1, r4
	mov	r0, r6
	bl	valid_service_line
	ldr	r3, [r5, #8]
	cmp	r0, #0
	ldr	r3, [r3, r9]
	strne	r8, [r3, r4, lsl #2]
	ldrne	r3, [r5, #4]
	streq	r0, [r3, r4, lsl #2]
	orrne	r3, r3, r8
	add	r4, r4, #1
	strne	r3, [r5, #4]
	cmp	r4, #24
	bne	.L9
	cmp	r6, #1
	movne	r6, #1
	ldrne	r2, [r7]
	bne	.L6
.L10:
	mov	r3, #0
	ldr	r2, [r5, #12]
	mov	r0, r3
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	V4L2_SLICED_VBI_625
	.word	V4L2_SLICED_VBI_525
	.word	V4L2_BUF_TYPE_SLICED_VBI_CAPTURE
	.word	EINVAL
	.size	cx18_g_sliced_vbi_cap, .-cx18_g_sliced_vbi_cap
	.comm	V4L2_SLICED_VBI_625,4,4
	.comm	V4L2_SLICED_VBI_525,4,4
	.comm	V4L2_BUF_TYPE_SLICED_VBI_CAPTURE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
