	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_release
_radio_release:                         ## @radio_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	8(%rbx), %r14
	movq	$0, (%rdi)
	movq	%rbx, %rdi
	callq	_v4l2_fh_del
	movq	%rbx, %rdi
	callq	_v4l2_fh_exit
	movq	%rbx, %rdi
	callq	_kfree
	decq	(%r14)
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SAA6588_CMD_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %r8
	movq	%r14, %rdi
	callq	_bttv_call_all
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	$0, 8(%r14)
LBB0_2:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_core,4,2                       ## @core
	.comm	_ioctl,4,2                      ## @ioctl
	.comm	_SAA6588_CMD_CLOSE,4,2          ## @SAA6588_CMD_CLOSE
	.no_dead_strip	_radio_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_release
_radio_release:                         ; @radio_release
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	x19, [x20, #8]
	str	xzr, [x0]
	mov	x0, x20
	bl	_v4l2_fh_del
	mov	x0, x20
	bl	_v4l2_fh_exit
	mov	x0, x20
	bl	_kfree
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
Lloh0:
	adrp	x8, _core@GOTPAGE
Lloh1:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ioctl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ioctl@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SAA6588_CMD_CLOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAA6588_CMD_CLOSE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_bttv_call_all
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_core,4,2                       ; @core
	.comm	_ioctl,4,2                      ; @ioctl
	.comm	_SAA6588_CMD_CLOSE,4,2          ; @SAA6588_CMD_CLOSE
	.no_dead_strip	_radio_release
.subsections_via_symbols
