	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_open
_radio_open:                            ## @radio_open
	.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	_video_drvdata
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_v4l2_fh_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_MO_GP3_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r15), %esi
	callq	_cx_write
	movq	_MO_GP0_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	callq	_cx_write
	movq	_MO_GP1_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r15), %esi
	callq	_cx_write
	movq	_MO_GP2_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_cx_write
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	cmpq	$0, 32(%r15)
	je	LBB0_4
## %bb.3:
	movq	_audio@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_call_all
LBB0_4:
	movq	_WW_I2SADC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_cx88_set_tvaudio
	jmp	LBB0_6
LBB0_5:
	movq	_WW_FM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_cx88_set_tvaudio
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_cx88_set_stereo
LBB0_6:
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_radio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_call_all
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MO_GP3_IO,4,2                  ## @MO_GP3_IO
	.comm	_MO_GP0_IO,4,2                  ## @MO_GP0_IO
	.comm	_MO_GP1_IO,4,2                  ## @MO_GP1_IO
	.comm	_MO_GP2_IO,4,2                  ## @MO_GP2_IO
	.comm	_audio,4,2                      ## @audio
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_WW_I2SADC,4,2                  ## @WW_I2SADC
	.comm	_WW_FM,4,2                      ## @WW_FM
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_radio,4,2                    ## @s_radio
	.no_dead_strip	_radio_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_open
_radio_open:                            ; @radio_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	bl	_video_drvdata
	ldr	x20, [x0]
	mov	x0, x19
	bl	_v4l2_fh_open
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _MO_GP3_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MO_GP3_IO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #28]
	bl	_cx_write
Lloh3:
	adrp	x8, _MO_GP0_IO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MO_GP0_IO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #24]
	bl	_cx_write
Lloh6:
	adrp	x8, _MO_GP1_IO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MO_GP1_IO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	_cx_write
Lloh9:
	adrp	x8, _MO_GP2_IO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MO_GP2_IO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_cx_write
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _audio@GOTPAGE
Lloh13:
	ldr	x9, [x9, _audio@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
Lloh15:
	adrp	x9, _s_routing@GOTPAGE
Lloh16:
	ldr	x9, [x9, _s_routing@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x9]
	stp	xzr, xzr, [sp, #8]
	str	x8, [sp]
	mov	x0, x20
	bl	_call_all
LBB0_4:
Lloh18:
	adrp	x8, _WW_I2SADC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WW_I2SADC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_cx88_set_tvaudio
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _WW_FM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WW_FM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x20
	bl	_cx88_set_tvaudio
Lloh24:
	adrp	x8, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_cx88_set_stereo
LBB0_6:
Lloh27:
	adrp	x8, _tuner@GOTPAGE
Lloh28:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _s_radio@GOTPAGE
Lloh31:
	ldr	x8, [x8, _s_radio@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_call_all
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MO_GP3_IO,4,2                  ; @MO_GP3_IO
	.comm	_MO_GP0_IO,4,2                  ; @MO_GP0_IO
	.comm	_MO_GP1_IO,4,2                  ; @MO_GP1_IO
	.comm	_MO_GP2_IO,4,2                  ; @MO_GP2_IO
	.comm	_audio,4,2                      ; @audio
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_WW_I2SADC,4,2                  ; @WW_I2SADC
	.comm	_WW_FM,4,2                      ; @WW_FM
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_radio,4,2                    ; @s_radio
	.no_dead_strip	_radio_open
.subsections_via_symbols
