	.file	"extr_tcm825x.c_ioctl_s_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ioctl_s_ctrl, @function
ioctl_s_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rsi]
	cmp	rdi, QWORD PTR V4L2_CID_EXPOSURE[rip]
	mov	r13, QWORD PTR 8[r14]
	mov	ebp, DWORD PTR [rsi]
	je	.L16
	mov	rbx, rsi
	call	find_vctrl@PLT
	mov	r12, rax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	r12, r12
	je	.L1
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR V4L2_CID_HFLIP[rip]
	je	.L7
	cmp	rax, QWORD PTR V4L2_CID_VFLIP[rip]
	je	.L7
.L8:
	mov	ecx, DWORD PTR [r12]
	mov	edx, ebp
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, r13
	sal	edx, cl
	call	tcm825x_write_reg_mask@PLT
	test	rax, rax
	jne	.L14
.L9:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR TCM825X_ESRSPD_L[rip]
	call	TCM825X_MASK@PLT
	mov	edi, DWORD PTR TCM825X_ESRSPD_U[rip]
	mov	ebx, eax
	call	TCM825X_MASK@PLT
	mov	edx, ebp
	mov	esi, DWORD PTR TCM825X_ESRSPD_U[rip]
	mov	rdi, r13
	sar	edx, 8
	and	edx, eax
	call	tcm825x_write_reg_mask@PLT
	test	rax, rax
	je	.L3
.L14:
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdx, QWORD PTR [r14]
	xor	eax, eax
	call	[QWORD PTR [rdx]]
	xor	ebp, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	and	ebx, ebp
	mov	esi, DWORD PTR TCM825X_ESRSPD_L[rip]
	mov	rdi, r13
	mov	edx, ebx
	call	tcm825x_write_reg_mask@PLT
	test	rax, rax
	jne	.L14
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	ioctl_s_ctrl, .-ioctl_s_ctrl
	.comm	V4L2_CID_VFLIP,8,8
	.comm	V4L2_CID_HFLIP,8,8
	.comm	V4L2_CID_EXPOSURE,8,8
	.comm	TCM825X_ESRSPD_U,4,4
	.comm	TCM825X_ESRSPD_L,4,4
	.comm	EIO,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_tcm825x.c_ioctl_s_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ioctl_s_ctrl, %function
ioctl_s_ctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L18
	ldr	r3, [r1, #4]
	ldr	r2, [r2]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	cmp	r3, r2
	ldr	r8, [r7, #4]
	ldr	r6, [r1]
	beq	.L16
	mov	r0, r3
	mov	r4, r1
	bl	find_vctrl
	subs	r5, r0, #0
	beq	.L17
	ldr	r2, .L18+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L18+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
.L8:
	ldr	r2, [r5]
	mov	r0, r8
	ldr	r1, [r5, #4]
	lsl	r2, r6, r2
	bl	tcm825x_write_reg_mask
	cmp	r0, #0
	bne	.L14
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, [r7]
	ldr	r3, [r3]
	blx	r3
	eor	r6, r6, r0
	b	.L8
.L16:
	ldr	r7, .L18+12
	ldr	r5, .L18+16
	ldr	r0, [r7]
	bl	TCM825X_MASK
	mov	r4, r0
	ldr	r0, [r5]
	bl	TCM825X_MASK
	ldr	r1, [r5]
	and	r2, r0, r6, asr #8
	mov	r0, r8
	bl	tcm825x_write_reg_mask
	cmp	r0, #0
	beq	.L3
.L14:
	ldr	r3, .L18+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r8
	ldr	r1, [r7]
	and	r2, r4, r6
	bl	tcm825x_write_reg_mask
	cmp	r0, #0
	bne	.L14
	b	.L9
.L17:
	ldr	r3, .L18+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	V4L2_CID_EXPOSURE
	.word	V4L2_CID_HFLIP
	.word	V4L2_CID_VFLIP
	.word	TCM825X_ESRSPD_L
	.word	TCM825X_ESRSPD_U
	.word	EIO
	.word	EINVAL
	.size	ioctl_s_ctrl, .-ioctl_s_ctrl
	.comm	V4L2_CID_VFLIP,4,4
	.comm	V4L2_CID_HFLIP,4,4
	.comm	V4L2_CID_EXPOSURE,4,4
	.comm	TCM825X_ESRSPD_U,4,4
	.comm	TCM825X_ESRSPD_L,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
