	.file	"extr_cedrus.c_cedrus_init_ctrls.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to initialize control handler\n"
	.align 8
.LC1:
	.string	"Failed to create new custom control\n"
	.text
	.p2align 4
	.type	cedrus_init_ctrls, @function
cedrus_init_ctrls:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 16[rsi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, r15
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR CEDRUS_CONTROLS_COUNT[rip]
	call	v4l2_ctrl_handler_init@PLT
	mov	r12d, DWORD PTR 16[rbp]
	test	r12d, r12d
	jne	.L13
	mov	eax, DWORD PTR CEDRUS_CONTROLS_COUNT[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 1[0+rax*8]
	call	kzalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L4
	mov	ecx, DWORD PTR CEDRUS_CONTROLS_COUNT[rip]
	xor	ebx, ebx
	test	ecx, ecx
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR 8[rbp]
	add	ebx, 1
	cmp	DWORD PTR CEDRUS_CONTROLS_COUNT[rip], ebx
	mov	QWORD PTR [rdx+r14*8], rax
	jbe	.L6
.L5:
	mov	rax, QWORD PTR cedrus_controls[rip]
	mov	r14d, ebx
	xor	edx, edx
	mov	rdi, r15
	lea	rsi, [rax+r14*4]
	call	v4l2_ctrl_new_custom@PLT
	mov	edx, DWORD PTR 16[rbp]
	test	edx, edx
	je	.L7
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	v4l2_err@PLT
	mov	rdi, r15
	call	v4l2_ctrl_handler_free@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	r12d, DWORD PTR 16[rbp]
.L1:
	add	rsp, 8
	.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
.L13:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	v4l2_err@PLT
	mov	r12d, DWORD PTR 16[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR 0[rbp], r15
	mov	rdi, r15
	call	v4l2_ctrl_handler_setup@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cedrus_init_ctrls, .-cedrus_init_ctrls
	.comm	cedrus_controls,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CEDRUS_CONTROLS_COUNT,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_cedrus.c_cedrus_init_ctrls.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to initialize control handler\012\000"
	.align	2
.LC1:
	.ascii	"Failed to create new custom control\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cedrus_init_ctrls, %function
cedrus_init_ctrls:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r6, .L13
	add	r7, r1, #8
	mov	r9, r0
	ldr	r1, [r6]
	mov	r0, r7
	bl	v4l2_ctrl_handler_init
	ldr	r8, [r5, #8]
	cmp	r8, #0
	bne	.L12
	ldr	r0, [r6]
	ldr	r3, .L13+4
	lsl	r0, r0, #2
	ldr	r1, [r3]
	add	r0, r0, #1
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L4
	ldr	r3, [r6]
	cmp	r3, #0
	movne	r4, r8
	ldrne	r10, .L13+8
	bne	.L5
	b	.L6
.L7:
	ldr	r2, [r5, #4]
	ldr	r3, [r6]
	str	r0, [r2, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L6
.L5:
	ldr	r1, [r10]
	mov	r2, #0
	mov	r0, r7
	add	r1, r1, r4, lsl #2
	bl	v4l2_ctrl_new_custom
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L13+12
	mov	r0, r9
	bl	v4l2_err
	mov	r0, r7
	bl	v4l2_ctrl_handler_free
	ldr	r0, [r5, #4]
	bl	kfree
	ldr	r8, [r5, #8]
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r0, r9
	ldr	r1, .L13+16
	bl	v4l2_err
	ldr	r8, [r5, #8]
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r7
	str	r7, [r5]
	bl	v4l2_ctrl_handler_setup
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, .L13+20
	ldr	r8, [r3]
	rsb	r8, r8, #0
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	CEDRUS_CONTROLS_COUNT
	.word	GFP_KERNEL
	.word	cedrus_controls
	.word	.LC1
	.word	.LC0
	.word	ENOMEM
	.size	cedrus_init_ctrls, .-cedrus_init_ctrls
	.comm	cedrus_controls,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CEDRUS_CONTROLS_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
