	.file	"extr_v4l2-subdev.c_subdev_do_ioctl_lock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	subdev_do_ioctl_lock, @function
subdev_do_ioctl_lock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	video_devdata@PLT
	mov	r12, QWORD PTR ENODEV[rip]
	mov	rbx, QWORD PTR [rax]
	mov	rbp, rax
	neg	r12
	test	rbx, rbx
	je	.L2
	mov	rdi, rbx
	call	mutex_lock_interruptible@PLT
	test	rax, rax
	jne	.L12
	mov	rdi, rbp
	call	video_is_registered@PLT
	test	rax, rax
	jne	.L13
.L6:
	mov	rdi, rbx
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L12:
	.cfi_restore_state
	mov	r12, QWORD PTR ERESTARTSYS[rip]
	neg	r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rax
	call	video_is_registered@PLT
	test	rax, rax
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r15
	mov	esi, r14d
	mov	rdi, r13
	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
	jmp	subdev_do_ioctl@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdx, r15
	mov	esi, r14d
	mov	rdi, r13
	call	subdev_do_ioctl@PLT
	mov	r12, rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	subdev_do_ioctl_lock, .-subdev_do_ioctl_lock
	.comm	ERESTARTSYS,8,8
	.comm	ENODEV,8,8
	.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-subdev.c_subdev_do_ioctl_lock.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	subdev_do_ioctl_lock, %function
subdev_do_ioctl_lock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r8, r2
	mov	r6, r0
	bl	video_devdata
	ldr	r3, .L14
	ldr	r9, [r0]
	ldr	r4, [r3]
	cmp	r9, #0
	rsb	r4, r4, #0
	beq	.L2
	mov	r5, r0
	mov	r0, r9
	bl	mutex_lock_interruptible
	cmp	r0, #0
	bne	.L12
	mov	r0, r5
	bl	video_is_registered
	cmp	r0, #0
	bne	.L13
.L6:
	mov	r0, r9
	bl	mutex_unlock
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L14+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	bl	video_is_registered
	cmp	r0, #0
	beq	.L1
	mov	r2, r8
	mov	r1, r7
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	subdev_do_ioctl
.L13:
	mov	r2, r8
	mov	r1, r7
	mov	r0, r6
	bl	subdev_do_ioctl
	mov	r4, r0
	b	.L6
.L15:
	.align	2
.L14:
	.word	ENODEV
	.word	ERESTARTSYS
	.size	subdev_do_ioctl_lock, .-subdev_do_ioctl_lock
	.comm	ERESTARTSYS,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
