	.file	"extr_bttv-driver.c_radio_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radio_release, @function
radio_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbx, QWORD PTR 8[rbp]
	mov	QWORD PTR [rdi], 0
	mov	rdi, rbp
	call	v4l2_fh_del@PLT
	mov	rdi, rbp
	call	v4l2_fh_exit@PLT
	mov	rdi, rbp
	call	kfree@PLT
	sub	QWORD PTR [rbx], 1
	lea	r8, 4[rsp]
	mov	ecx, DWORD PTR SAA6588_CMD_CLOSE[rip]
	mov	edx, DWORD PTR ioctl[rip]
	mov	esi, DWORD PTR core[rip]
	mov	rdi, rbx
	call	bttv_call_all@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L2
	mov	QWORD PTR 8[rbx], 0
.L2:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L6
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	radio_release, .-radio_release
	.comm	ioctl,4,4
	.comm	core,4,4
	.comm	SAA6588_CMD_CLOSE,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_bttv-driver.c_radio_release.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radio_release, %function
radio_release:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	mov	r2, #0
	push	{r4, r5, lr}
	ldr	r1, .L7
	ldr	r5, [r0]
	sub	sp, sp, #20
	ldr	r4, [r5, #4]
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	mov	r0, r5
	str	r2, [r3]
	bl	v4l2_fh_del
	mov	r0, r5
	bl	v4l2_fh_exit
	mov	r0, r5
	bl	kfree
	ldr	r3, [r4]
	ldr	lr, .L7+4
	ldr	r2, .L7+8
	ldr	r1, .L7+12
	sub	r3, r3, #1
	add	ip, sp, #8
	ldr	r2, [r2]
	str	r3, [r4]
	ldr	r1, [r1]
	ldr	r3, [lr]
	mov	r0, r4
	str	ip, [sp]
	bl	bttv_call_all
	ldr	r3, [r4]
	cmp	r3, #0
	streq	r3, [r4, #4]
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	SAA6588_CMD_CLOSE
	.word	ioctl
	.word	core
	.size	radio_release, .-radio_release
	.comm	ioctl,4,4
	.comm	core,4,4
	.comm	SAA6588_CMD_CLOSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
