	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_v4l2_fops_release
_fm_v4l2_fops_release:                  ## @fm_v4l2_fops_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_video_drvdata
	movq	_radio_disconnected@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_FM_MODE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_fmc_set_mode
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_fmc_release
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	$0, (%r15)
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_fmdbg
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	callq	_fmerr
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_radio_disconnected,8,3         ## @radio_disconnected
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FM device is already closed\n"

	.comm	_FM_MODE_OFF,4,2                ## @FM_MODE_OFF
L_.str.1:                               ## @.str.1
	.asciz	"Unable to turn off the chip\n"

L_.str.2:                               ## @.str.2
	.asciz	"FM CORE release failed\n"

	.no_dead_strip	_fm_v4l2_fops_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm_v4l2_fops_release
_fm_v4l2_fops_release:                  ; @fm_v4l2_fops_release
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_video_drvdata
Lloh0:
	adrp	x21, _radio_disconnected@GOTPAGE
Lloh1:
	ldr	x21, [x21, _radio_disconnected@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
Lloh2:
	adrp	x8, _FM_MODE_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FM_MODE_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fmc_set_mode
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_fmc_release
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	str	xzr, [x21]
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmdbg
	mov	w20, #0
	b	LBB0_9
LBB0_5:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_fmerr
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_radio_disconnected,8,3         ; @radio_disconnected
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FM device is already closed\n"

	.comm	_FM_MODE_OFF,4,2                ; @FM_MODE_OFF
l_.str.1:                               ; @.str.1
	.asciz	"Unable to turn off the chip\n"

l_.str.2:                               ; @.str.2
	.asciz	"FM CORE release failed\n"

	.no_dead_strip	_fm_v4l2_fops_release
.subsections_via_symbols
