	.file	"extr_saa7146_fops.c_fops_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"no extension registered for this device.\n"
	.align 8
.LC1:
	.string	"cannot allocate memory for per open data.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"initializing vbi...\n"
.LC3:
	.string	"initializing video...\n"
	.text
	.p2align 4
	.type	fops_open, @function
fops_open:
.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	rbx, rdi
	call	video_devdata@PLT
	mov	rdi, rbx
	mov	r12, rax
	call	video_drvdata@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	video_device_node_name@PLT
	movsx	rdi, eax
	call	DEB_EE@PLT
	lea	rdi, saa7146_devices_lock[rip]
	call	mutex_lock_interruptible@PLT
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR ERESTARTSYS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	DEB_D@PLT
	movsx	r14, DWORD PTR V4L2_BUF_TYPE_VBI_CAPTURE[rip]
	mov	rax, QWORD PTR VFL_TYPE_GRABBER[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L5
	movsx	r14, DWORD PTR V4L2_BUF_TYPE_VIDEO_CAPTURE[rip]
.L5:
	cmp	QWORD PTR 0[rbp], 0
	je	.L27
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 16
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L28
	cmp	r14, QWORD PTR V4L2_BUF_TYPE_VBI_CAPTURE[rip]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 8[rax], rbp
	mov	DWORD PTR [rax], r14d
	je	.L29
	lea	rdi, .LC3[rip]
	call	DEB_S@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	[QWORD PTR saa7146_video_uops[rip]]
	mov	r12d, eax
.L11:
	test	r12d, r12d
	je	.L14
.L12:
	mov	rdi, r13
	call	kfree@PLT
	mov	QWORD PTR [rbx], 0
.L7:
	lea	rdi, saa7146_devices_lock[rip]
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L14
	mov	rdi, rbx
	call	rax
.L14:
	mov	rax, QWORD PTR 0[rbp]
	xor	r12d, r12d
	mov	edi, DWORD PTR [rax]
	call	try_module_get@PLT
	test	rax, rax
	jne	.L7
	mov	r12d, DWORD PTR EINVAL[rip]
	test	r12d, r12d
	je	.L7
	neg	r12d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC2[rip]
	call	DEB_S@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR V4L2_CAP_VBI_CAPTURE[rip], edx
	je	.L10
	mov	rsi, rbx
	mov	rdi, rbp
	call	[QWORD PTR saa7146_vbi_uops[rip]]
	mov	r12d, eax
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L11
	mov	rdi, rbx
	call	rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC0[rip]
	call	DEB_S@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC1[rip]
	call	DEB_S@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	fops_open, .-fops_open
	.comm	saa7146_video_uops,8,8
	.comm	saa7146_vbi_uops,8,8
	.comm	saa7146_devices_lock,4,4
	.comm	VFL_TYPE_GRABBER,8,8
	.comm	V4L2_CAP_VBI_CAPTURE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,8,8
	.comm	V4L2_BUF_TYPE_VBI_CAPTURE,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ERESTARTSYS,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_saa7146_fops.c_fops_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no extension registered for this device.\012\000"
	.align	2
.LC1:
	.ascii	"cannot allocate memory for per open data.\012\000"
	.align	2
.LC2:
	.ascii	"initializing vbi...\012\000"
	.align	2
.LC3:
	.ascii	"initializing video...\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fops_open, %function
fops_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	video_devdata
	mov	r4, r0
	mov	r0, r7
	bl	video_drvdata
	mov	r6, r0
	mov	r0, r4
	bl	video_device_node_name
	bl	DEB_EE
	ldr	r0, .L29
	bl	mutex_lock_interruptible
	subs	r5, r0, #0
	beq	.L2
	ldr	r3, .L29+4
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r6
	bl	DEB_D
	ldr	r3, .L29+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L29+12
	ldrne	r3, .L29+16
	ldr	r8, [r3]
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L29+20
	mov	r0, #8
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L27
	ldr	r3, .L29+16
	str	r4, [r7]
	ldr	r3, [r3]
	str	r6, [r4, #4]
	cmp	r8, r3
	str	r8, [r4]
	beq	.L28
	ldr	r0, .L29+24
	bl	DEB_S
	ldr	r3, .L29+28
	mov	r1, r7
	mov	r0, r6
	ldr	r3, [r3]
	blx	r3
	mov	r8, r0
.L11:
	cmp	r8, #0
	beq	.L14
.L12:
	mov	r0, r4
	bl	kfree
	mov	r3, #0
	mov	r5, r8
	str	r3, [r7]
.L7:
	ldr	r0, .L29
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L14
	mov	r0, r7
	blx	r3
.L14:
	ldr	r3, [r6]
	ldr	r0, [r3]
	bl	try_module_get
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L29+32
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L7
	rsb	r8, r5, #0
	b	.L12
.L28:
	ldr	r0, .L29+36
	bl	DEB_S
	ldr	r3, [r6, #4]
	ldr	r2, .L29+40
	ldr	r1, [r3]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L10
	ldr	r3, .L29+44
	mov	r1, r7
	ldr	r3, [r3]
	mov	r0, r6
	blx	r3
	ldr	r3, [r6, #4]
	mov	r8, r0
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L11
	mov	r0, r7
	blx	r3
	b	.L11
.L26:
	ldr	r0, .L29+48
	bl	DEB_S
	ldr	r3, .L29+52
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L7
.L27:
	ldr	r0, .L29+56
	bl	DEB_S
	ldr	r3, .L29+60
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L7
.L30:
	.align	2
.L29:
	.word	saa7146_devices_lock
	.word	ERESTARTSYS
	.word	VFL_TYPE_GRABBER
	.word	V4L2_BUF_TYPE_VIDEO_CAPTURE
	.word	V4L2_BUF_TYPE_VBI_CAPTURE
	.word	GFP_KERNEL
	.word	.LC3
	.word	saa7146_video_uops
	.word	EINVAL
	.word	.LC2
	.word	V4L2_CAP_VBI_CAPTURE
	.word	saa7146_vbi_uops
	.word	.LC0
	.word	ENODEV
	.word	.LC1
	.word	ENOMEM
	.size	fops_open, .-fops_open
	.comm	saa7146_video_uops,4,4
	.comm	saa7146_vbi_uops,4,4
	.comm	saa7146_devices_lock,4,4
	.comm	VFL_TYPE_GRABBER,4,4
	.comm	V4L2_CAP_VBI_CAPTURE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,4,4
	.comm	V4L2_BUF_TYPE_VBI_CAPTURE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ERESTARTSYS,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
