	.file	"extr_v4l2-ioctl.c_v4l_s_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	v4l_s_ctrl, @function
v4l_s_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	video_devdata@PLT
	mov	edi, DWORD PTR V4L2_FL_USES_V4L2_FH[rip]
	lea	rsi, 8[rax]
	mov	rbx, rax
	call	test_bit@PLT
	test	rax, rax
	je	.L2
	test	rbp, rbp
	je	.L2
	mov	rsi, QWORD PTR 0[rbp]
	test	rsi, rsi
	jne	.L21
.L2:
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	jne	.L22
	mov	rax, QWORD PTR 0[r13]
	test	rax, rax
	je	.L5
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r12
	call	rax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOTTY[rip]
	neg	eax
	cmp	QWORD PTR 8[r13], 0
	je	.L1
	mov	edi, DWORD PTR 4[r14]
	call	V4L2_CTRL_ID2WHICH@PLT
	mov	esi, 1
	mov	DWORD PTR 16[rsp], 1
	mov	DWORD PTR 32[rsp], eax
	lea	rax, 8[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR [r14]
	lea	r14, 16[rsp]
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	check_ext_ctrls@PLT
	mov	r8, rax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	r8, r8
	je	.L1
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r12
	call	[QWORD PTR 8[r13]]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdx, r14
	mov	rdi, rbp
	call	v4l2_s_ctrl@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdx, r14
	xor	edi, edi
	call	v4l2_s_ctrl@PLT
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	v4l_s_ctrl, .-v4l_s_ctrl
	.comm	V4L2_FL_USES_V4L2_FH,4,4
	.comm	ENOTTY,4,4
	.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_v4l2-ioctl.c_v4l_s_ctrl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	v4l_s_ctrl, %function
v4l_s_ctrl:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	ldr	r3, .L22
	sub	sp, sp, #24
	mov	r8, r0
	mov	r0, r1
	mov	r5, r2
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	video_devdata
	ldr	r3, .L22+4
	add	r1, r0, #4
	mov	r4, r0
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	cmpne	r5, #0
	bne	.L17
.L2:
	ldr	r1, [r4]
	cmp	r1, #0
	bne	.L18
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L5
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	blx	r3
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, [r8, #4]
	cmp	r3, #0
	beq	.L20
	ldr	r0, [r7, #4]
	bl	V4L2_CTRL_ID2WHICH
	mov	r1, #1
	ldr	r2, [r7, #4]
	ldr	r3, [r7]
	str	r0, [sp, #16]
	add	r0, sp, #8
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	str	sp, [sp, #12]
	bl	check_ext_ctrls
	cmp	r0, #0
	bne	.L21
	ldr	r3, .L22+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L17:
	ldr	r1, [r5]
	cmp	r1, #0
	beq	.L2
	mov	r2, r7
	mov	r0, r5
	bl	v4l2_s_ctrl
	b	.L1
.L21:
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r8, #4]
	add	r2, sp, #8
	blx	r3
	b	.L1
.L18:
	mov	r2, r7
	mov	r0, #0
	bl	v4l2_s_ctrl
	b	.L1
.L20:
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	V4L2_FL_USES_V4L2_FH
	.word	EINVAL
	.word	ENOTTY
	.size	v4l_s_ctrl, .-v4l_s_ctrl
	.comm	V4L2_FL_USES_V4L2_FH,4,4
	.comm	ENOTTY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
