	.file	"extr_v4l2-ctrls.c_v4l2_ctrl_new_custom.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	v4l2_ctrl_new_custom
	.type	v4l2_ctrl_new_custom, @function
v4l2_ctrl_new_custom:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR 64[rsi]
	mov	rdx, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 16[rsi]
	mov	r14, QWORD PTR 8[rsi]
	mov	DWORD PTR 12[rsp], ecx
	mov	ecx, DWORD PTR 60[rsi]
	mov	QWORD PTR 32[rsp], rdx
	mov	r13, QWORD PTR 72[rsi]
	mov	DWORD PTR 16[rsp], ecx
	mov	ecx, DWORD PTR 56[rsi]
	mov	DWORD PTR 8[rsp], eax
	mov	DWORD PTR 20[rsp], ecx
	mov	ecx, DWORD PTR 52[rsi]
	mov	DWORD PTR 24[rsp], ecx
	mov	ecx, DWORD PTR 48[rsi]
	mov	DWORD PTR 28[rsp], ecx
	test	rdx, rdx
	je	.L28
.L2:
	cmp	DWORD PTR V4L2_CTRL_TYPE_MENU[rip], eax
	je	.L3
	cmp	DWORD PTR V4L2_CTRL_TYPE_INTEGER_MENU[rip], eax
	jne	.L29
.L3:
	mov	edi, DWORD PTR 24[rsp]
	mov	r15d, 1
	call	WARN_ON@PLT
.L4:
	mov	r9d, DWORD PTR 8[rsp]
	cmp	DWORD PTR V4L2_CTRL_TYPE_MENU[rip], r9d
	jne	.L5
	test	r14, r14
	je	.L30
.L5:
	cmp	DWORD PTR V4L2_CTRL_TYPE_INTEGER_MENU[rip], r9d
	jne	.L6
	test	r13, r13
	je	.L31
.L6:
	mov	r11d, DWORD PTR 12[rsp]
	mov	r10d, DWORD PTR 24[rbx]
	mov	r8d, DWORD PTR 28[rbx]
	mov	edi, DWORD PTR 28[rsp]
	test	r15d, r15d
	jne	.L32
	mov	eax, DWORD PTR 24[rsp]
.L9:
	mov	ecx, DWORD PTR 36[rbx]
	mov	edx, DWORD PTR 40[rbx]
	push	r12
	.cfi_def_cfa_offset 120
	push	r13
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR 44[rbx]
	push	r14
	.cfi_def_cfa_offset 136
	push	r11
	.cfi_def_cfa_offset 144
	push	r10
	.cfi_def_cfa_offset 152
	push	r8
	.cfi_def_cfa_offset 160
	push	rdi
	.cfi_def_cfa_offset 168
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 176
	mov	eax, DWORD PTR 84[rsp]
	push	rax
	.cfi_def_cfa_offset 184
	mov	eax, DWORD PTR 88[rsp]
	push	rax
	.cfi_def_cfa_offset 192
	mov	r8, QWORD PTR 112[rsp]
	call	v4l2_ctrl_new@PLT
	add	rsp, 80
	.cfi_def_cfa_offset 112
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR 20[rbx]
	mov	DWORD PTR [rax], edx
.L1:
	mov	rsi, QWORD PTR 40[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L33
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L32:
	.cfi_restore_state
	mov	eax, DWORD PTR 32[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR 32[rbx]
	xor	r15d, r15d
	call	WARN_ON@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR 36[rbx]
	call	v4l2_ctrl_get_menu@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r14, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rax, 12[rsp]
	lea	rcx, 16[rsp]
	mov	edi, DWORD PTR 36[rbx]
	lea	rdx, 8[rsp]
	lea	rsi, 32[rsp]
	push	rax
	.cfi_def_cfa_offset 120
	lea	rax, 36[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	lea	r9, 40[rsp]
	lea	r8, 36[rsp]
	call	v4l2_ctrl_fill@PLT
	mov	eax, DWORD PTR 24[rsp]
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, DWORD PTR EINVAL[rip]
	mov	rdi, rbp
	neg	esi
	call	handler_set_err@PLT
	xor	eax, eax
	jmp	.L1
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	v4l2_ctrl_new_custom, .-v4l2_ctrl_new_custom
	.comm	V4L2_CTRL_TYPE_MENU,4,4
	.comm	V4L2_CTRL_TYPE_INTEGER_MENU,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-ctrls.c_v4l2_ctrl_new_custom.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	v4l2_ctrl_new_custom
	.syntax unified
	.arm
	.fpu softvfp
	.type	v4l2_ctrl_new_custom, %function
v4l2_ctrl_new_custom:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r7, r2
	ldr	r1, [r1]
	ldr	r2, .L24
	sub	sp, sp, #84
	ldr	r2, [r2]
	str	r2, [sp, #76]
	mov	r2,#0
	mov	r6, r0
	ldr	r3, [r4, #8]
	ldr	lr, [r4, #56]
	ldr	ip, [r4, #52]
	ldr	r0, [r4, #48]
	ldr	r2, [r4, #40]
	cmp	r1, #0
	str	r1, [sp, #48]
	ldr	r1, [r4, #44]
	ldr	r5, [r4, #4]
	ldr	r8, [r4, #60]
	str	r3, [sp, #52]
	str	lr, [sp, #56]
	str	ip, [sp, #60]
	str	r0, [sp, #64]
	str	r1, [sp, #68]
	str	r2, [sp, #72]
	beq	.L19
.L2:
	ldr	r9, .L24+4
	ldr	r2, [r9]
	cmp	r2, r3
	beq	.L3
	ldr	r2, .L24+8
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L20
.L3:
	ldr	r0, [sp, #68]
	bl	WARN_ON
	mov	r10, #1
.L4:
	ldr	r0, [r9]
	ldr	ip, [sp, #52]
	cmp	r0, ip
	cmpeq	r5, #0
	moveq	r9, #1
	movne	r9, #0
	beq	.L21
	ldr	r3, .L24+8
	ldr	r3, [r3]
	cmp	r3, ip
	cmpeq	r8, #0
	beq	.L22
.L6:
	cmp	r10, #0
	ldr	r3, [r4, #28]
	ldrne	fp, [r4, #24]
	ldr	r1, [r4, #36]
	ldr	r2, [r4, #32]
	str	r7, [sp, #44]
	ldr	lr, [r4, #16]
	ldr	r0, [sp, #48]
	str	r8, [sp, #40]
	ldr	r7, [r4, #20]
	ldreq	fp, [sp, #68]
	ldr	r9, [sp, #60]
	ldr	r10, [sp, #64]
	str	r5, [sp, #36]
	ldr	r5, [sp, #72]
	stm	sp, {r0, ip}
	ldr	ip, [sp, #56]
	mov	r0, r6
	str	fp, [sp, #16]
	str	r10, [sp, #12]
	str	r9, [sp, #8]
	str	lr, [sp, #28]
	str	r7, [sp, #24]
	str	r5, [sp, #20]
	str	ip, [sp, #32]
	bl	v4l2_ctrl_new
	cmp	r0, #0
	ldrne	r3, [r4, #12]
	strne	r3, [r0]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r0, [r4, #24]
	bl	WARN_ON
	mov	r10, #0
	b	.L4
.L19:
	add	r0, sp, #56
	add	r1, sp, #72
	add	r2, sp, #68
	add	r3, sp, #64
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	str	r0, [sp, #12]
	add	r3, sp, #60
	ldr	r0, [r4, #28]
	add	r2, sp, #52
	add	r1, sp, #48
	bl	v4l2_ctrl_fill
	ldr	r3, [sp, #52]
	b	.L2
.L21:
	ldr	r0, [r4, #28]
	bl	v4l2_ctrl_get_menu
	ldr	ip, [sp, #52]
	mov	r5, r0
	b	.L6
.L22:
	ldr	r3, .L24+12
	mov	r0, r6
	ldr	r1, [r3]
	rsb	r1, r1, #0
	bl	handler_set_err
	mov	r0, r9
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	V4L2_CTRL_TYPE_MENU
	.word	V4L2_CTRL_TYPE_INTEGER_MENU
	.word	EINVAL
	.size	v4l2_ctrl_new_custom, .-v4l2_ctrl_new_custom
	.comm	V4L2_CTRL_TYPE_MENU,4,4
	.comm	V4L2_CTRL_TYPE_INTEGER_MENU,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
