	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function msp_s_radio
LCPI0_0:
	.quad	0x4025666666666666              ## double 10.699999999999999
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_msp_s_radio:                           ## @msp_s_radio
	.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
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_v4l2_get_subdevdata
	cmpl	$0, (%r15)
	jne	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	$1, (%r15)
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dev_dbg_lvl
	movq	$0, 8(%r15)
	movl	4(%r15), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_msp_wake_thread
	jmp	LBB0_5
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MSP_MODE_FM_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_msp3400c_set_mode
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movl	%eax, %ebx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_msp3400c_set_carrier
	movq	%r15, %rdi
	callq	_msp_update_volume
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msp_debug,4,2                  ## @msp_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"switching to radio mode\n"

	.comm	_MSP_MODE_FM_RADIO,4,2          ## @MSP_MODE_FM_RADIO
	.no_dead_strip	_msp_s_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp_s_radio
_msp_s_radio:                           ; @msp_s_radio
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x20, x0
	bl	_to_state
	mov	x19, x0
	mov	x0, x20
	bl	_v4l2_get_subdevdata
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x8, _msp_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dev_dbg_lvl
	str	xzr, [x19, #8]
	ldr	w8, [x19, #4]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_msp_wake_thread
	b	LBB0_5
LBB0_3:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _MSP_MODE_FM_RADIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSP_MODE_FM_RADIO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_msp3400c_set_mode
	mov	x8, #7378697629483820646
	movk	x8, #16421, lsl #48
	fmov	d8, x8
	fmov	d0, d8
	bl	_MSP_CARRIER
	mov	x21, x0
	fmov	d0, d8
	bl	_MSP_CARRIER
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_msp3400c_set_carrier
	mov	x0, x19
	bl	_msp_update_volume
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_msp_debug,4,2                  ; @msp_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"switching to radio mode\n"

	.comm	_MSP_MODE_FM_RADIO,4,2          ; @MSP_MODE_FM_RADIO
	.no_dead_strip	_msp_s_radio
.subsections_via_symbols
