	.file	"extr_v4l2-ctrls.c_set_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_ctrl, @function
set_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 48[rsi]
	mov	rbp, QWORD PTR [rax]
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L2
	mov	rdx, QWORD PTR 48[rbp]
	lea	ecx, -1[rax]
	lea	rax, 8[rdx]
	lea	rsi, [rax+rcx*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	add	rax, 8
.L4:
	mov	rdx, QWORD PTR [rdx]
	test	rdx, rdx
	je	.L3
	mov	DWORD PTR 4[rdx], 0
.L3:
	mov	rdx, rax
	cmp	rax, rsi
	jne	.L21
.L2:
	mov	esi, DWORD PTR 40[rbx]
	mov	rdi, rbx
	call	validate_new@PLT
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 32[rbp], 0
	je	.L7
	cmp	QWORD PTR 24[rbp], 0
	je	.L7
	cmp	rbx, rbp
	je	.L22
.L7:
	mov	DWORD PTR 4[rbx], 1
	mov	ecx, r13d
	mov	rsi, rbp
	mov	rdi, r12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	try_or_set_cluster@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	mov	rdi, rbp
	call	is_cur_manual@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L7
	mov	rdi, rbp
	call	update_from_auto_cluster@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	set_ctrl, .-set_ctrl
	.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-ctrls.c_set_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_ctrl, %function
set_ctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #28]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r3]
	mov	r5, r1
	ldr	r4, [r6]
	mov	r7, r0
	cmp	r4, #0
	mov	r8, r2
	ble	.L2
	mov	r1, #0
	ldr	ip, [r6, #28]
	sub	ip, ip, #4
	add	r4, ip, r4, lsl #2
.L4:
	ldr	lr, [ip, #4]!
	cmp	lr, #0
	strne	r1, [lr, #4]
	cmp	ip, r4
	bne	.L4
.L2:
	mov	r0, r5
	ldr	r1, [r5, #24]
	bl	validate_new
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r6, #20]
	cmp	r3, #0
	beq	.L7
	sub	r3, r5, r6
	clz	r3, r3
	ldr	r2, [r6, #16]
	lsr	r3, r3, #5
	cmp	r2, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L18
.L7:
	mov	r2, #1
	mov	r3, r8
	mov	r1, r6
	mov	r0, r7
	str	r2, [r5, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	try_or_set_cluster
.L18:
	mov	r0, r6
	bl	is_cur_manual
	cmp	r0, #0
	bne	.L7
	ldr	r2, [r5, #8]
	ldr	r3, [r6, #12]
	cmp	r2, r3
	bne	.L7
	mov	r0, r6
	bl	update_from_auto_cluster
	b	.L7
	.size	set_ctrl, .-set_ctrl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
