	.file	"extr_vpfe_capture.c_vpfe_s_input.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vpfe_s_input\n"
.LC1:
	.string	"Streaming is on\n"
.LC2:
	.string	"invalid input index\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"vpfe_doioctl:error in setting input in decoder\n"
	.text
	.p2align 4
	.type	vpfe_s_input, @function
vpfe_s_input:
.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
	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
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	video_drvdata@PLT
	mov	esi, DWORD PTR debug[rip]
	mov	edi, 1
	lea	rcx, .LC0[rip]
	mov	rbp, rax
	lea	r14, 20[rax]
	mov	rdx, r14
	lea	r13, 16[rbp]
	call	v4l2_dbg@PLT
	mov	rdi, r13
	call	mutex_lock_interruptible@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r15, QWORD PTR 48[rbp]
	test	r15, r15
	jne	.L21
	lea	rdx, 20[rsp]
	lea	rsi, 16[rsp]
	mov	ecx, ebx
	mov	rdi, rbp
	call	vpfe_get_subdev_input_index@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L22
	mov	rdx, QWORD PTR 40[rbp]
	movsx	rax, DWORD PTR 16[rsp]
	xor	r8d, r8d
	mov	rdx, QWORD PTR [rdx]
	lea	rcx, [rax+rax*2]
	lea	r10, [rdx+rcx*8]
	mov	rdx, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR [rdx+rax*8]
	movsx	rax, DWORD PTR 20[rsp]
	sal	rax, 4
	add	rax, QWORD PTR 16[r10]
	je	.L6
	mov	r15, QWORD PTR 8[r10]
	test	r15, r15
	je	.L6
	mov	r15, QWORD PTR 8[rax]
	mov	r8, QWORD PTR [rax]
.L6:
	test	rdi, rdi
	je	.L7
	mov	edx, DWORD PTR s_routing[rip]
	xor	r9d, r9d
	mov	rcx, r15
	mov	QWORD PTR [rsp], rdi
	mov	esi, DWORD PTR video[rip]
	mov	QWORD PTR 8[rsp], r10
	call	v4l2_subdev_call@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r10, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR 24[rbp], r10
	mov	DWORD PTR 20[rbp], eax
.L9:
	mov	rax, QWORD PTR ccdc_dev[rip]
	mov	DWORD PTR 0[rbp], ebx
	mov	rdi, r10
	mov	QWORD PTR 8[rbp], 0
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR vpfe_standards[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+rdx*4]
	call	vpfe_config_image_format@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	v4l2_err@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L4:
	mov	rdi, r13
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	test	r12d, r12d
	je	.L17
.L10:
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	call	v4l2_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	QWORD PTR 24[rbp], r10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	v4l2_err@PLT
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vpfe_s_input, .-vpfe_s_input
	.comm	vpfe_standards,8,8
	.comm	video,4,4
	.comm	s_routing,4,4
	.comm	debug,4,4
	.comm	ccdc_dev,8,8
	.comm	EINVAL,4,4
	.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_vpfe_capture.c_vpfe_s_input.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vpfe_s_input\012\000"
	.align	2
.LC1:
	.ascii	"Streaming is on\012\000"
	.align	2
.LC2:
	.ascii	"invalid input index\012\000"
	.align	2
.LC3:
	.ascii	"vpfe_doioctl:error in setting input in decoder\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vpfe_s_input, %function
vpfe_s_input:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L22
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r2
	bl	video_drvdata
	mov	r5, r0
	ldr	r3, .L22+4
	add	r7, r0, #12
	ldr	r1, [r3]
	mov	r2, r7
	ldr	r3, .L22+8
	mov	r0, #1
	add	r8, r5, #8
	bl	v4l2_dbg
	mov	r0, r8
	bl	mutex_lock_interruptible
	subs	r4, r0, #0
	bne	.L1
	ldr	r9, [r5, #28]
	cmp	r9, #0
	bne	.L18
	mov	r3, r6
	mov	r0, r5
	add	r2, sp, #16
	add	r1, sp, #12
	bl	vpfe_get_subdev_input_index
	subs	r4, r0, #0
	blt	.L19
	ldr	r2, [r5, #24]
	ldr	r3, [sp, #12]
	ldr	r10, [r2]
	add	r2, r3, r3, lsl #1
	add	r10, r10, r2, lsl #2
	ldr	r2, [r10, #8]
	ldr	r1, [sp, #16]
	ldr	r0, [r5, #20]
	adds	ip, r2, r1, lsl #3
	ldr	fp, [r0, r3, lsl #2]
	beq	.L14
	ldr	r9, [r10, #4]
	cmp	r9, #0
	bne	.L20
.L14:
	mov	r3, r9
.L6:
	cmp	fp, #0
	beq	.L7
	mov	r0, #0
	ldr	r2, .L22+12
	ldr	r1, .L22+16
	str	r3, [sp]
	str	r0, [sp, #4]
	mov	r3, r9
	mov	r0, fp
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	v4l2_subdev_call
	cmp	r0, #0
	bne	.L10
	ldr	r3, [fp]
	str	r10, [r5, #16]
	str	r3, [r5, #12]
.L9:
	mov	r2, #0
	ldr	r3, .L22+20
	mov	r0, r10
	ldr	r3, [r3]
	str	r6, [r5]
	ldr	r3, [r3]
	str	r2, [r5, #4]
	blx	r3
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, .L22+24
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r1, [r3, r2, lsl #2]
	bl	vpfe_config_image_format
	mov	r4, r0
	mov	r0, r8
	bl	mutex_unlock
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, r7
	ldr	r1, .L22+28
	bl	v4l2_err
	ldr	r3, .L22+32
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L4:
	mov	r0, r8
	bl	mutex_unlock
	b	.L1
.L7:
	cmp	r4, #0
	streq	r10, [r5, #16]
	beq	.L9
.L10:
	mov	r0, r7
	ldr	r1, .L22+36
	bl	v4l2_err
	ldr	r3, .L22+40
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L4
.L20:
	ldr	r9, [ip, #4]
	ldr	r3, [r2, r1, lsl #3]
	b	.L6
.L19:
	mov	r0, r7
	ldr	r1, .L22+44
	bl	v4l2_err
	b	.L4
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	debug
	.word	.LC0
	.word	s_routing
	.word	video
	.word	ccdc_dev
	.word	vpfe_standards
	.word	.LC1
	.word	EBUSY
	.word	.LC3
	.word	EINVAL
	.word	.LC2
	.size	vpfe_s_input, .-vpfe_s_input
	.comm	vpfe_standards,4,4
	.comm	video,4,4
	.comm	s_routing,4,4
	.comm	debug,4,4
	.comm	ccdc_dev,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
