	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_audio_set_io              ## -- Begin function ivtv_audio_set_io
	.p2align	4, 0x90
_ivtv_audio_set_io:                     ## @ivtv_audio_set_io
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_IVTV_F_I_RADIO_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r12), %rsi
	callq	_test_bit
	movq	8(%r12), %rdx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	16(%rdx), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	(%r12), %rbx
	shlq	$4, %rbx
	addq	8(%rdx), %rbx
LBB0_3:
	movq	8(%rbx), %rcx
	movq	_IVTV_HW_M52790@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	movl	$0, %r8d
	andl	(%rdx), %eax
	je	LBB0_5
## %bb.4:
	movq	_M52790_OUT_STEREO@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
LBB0_5:
	movl	16(%r12), %edi
	movq	_audio@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%r9d, %r9d
	callq	_v4l2_subdev_call
	movq	(%rbx), %r15
	movq	8(%r12), %rax
	movl	4(%rax), %esi
	movq	_IVTV_HW_MSP34XX@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_MSP_SC_IN_DSP_SCART1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MSP_OUTPUT
	movq	%rax, %r14
	movq	8(%r12), %rax
	movl	4(%rax), %esi
LBB0_7:
	movq	_audio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_ivtv_call_hw
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IVTV_F_I_RADIO_USER,4,2        ## @IVTV_F_I_RADIO_USER
	.comm	_IVTV_HW_M52790,4,2             ## @IVTV_HW_M52790
	.comm	_M52790_OUT_STEREO,8,3          ## @M52790_OUT_STEREO
	.comm	_audio,4,2                      ## @audio
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_IVTV_HW_MSP34XX,4,2            ## @IVTV_HW_MSP34XX
	.comm	_MSP_SC_IN_DSP_SCART1,4,2       ## @MSP_SC_IN_DSP_SCART1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_audio_set_io              ; -- Begin function ivtv_audio_set_io
	.p2align	2
_ivtv_audio_set_io:                     ; @ivtv_audio_set_io
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IVTV_F_I_RADIO_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IVTV_F_I_RADIO_USER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_bit
	ldr	x8, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	add	x20, x8, #16
	b	LBB0_3
LBB0_2:
	ldr	x9, [x8, #8]
	ldr	x10, [x19]
	add	x20, x9, x10, lsl #4
LBB0_3:
	ldr	x3, [x20, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IVTV_HW_M52790@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IVTV_HW_M52790@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _M52790_OUT_STEREO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M52790_OUT_STEREO@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x4, xzr, x10, eq
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x21, _audio@GOTPAGE
Lloh10:
	ldr	x21, [x21, _audio@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh11:
	adrp	x22, _s_routing@GOTPAGE
Lloh12:
	ldr	x22, [x22, _s_routing@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w5, #0
	bl	_v4l2_subdev_call
	ldr	x20, [x20]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
Lloh13:
	adrp	x8, _IVTV_HW_MSP34XX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IVTV_HW_MSP34XX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _MSP_SC_IN_DSP_SCART1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSP_SC_IN_DSP_SCART1@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_MSP_OUTPUT
	mov	x5, x0
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	b	LBB0_6
LBB0_5:
	mov	x5, #0
LBB0_6:
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x4, x20
	mov	w6, #0
	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
	b	_ivtv_call_hw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IVTV_F_I_RADIO_USER,4,2        ; @IVTV_F_I_RADIO_USER
	.comm	_IVTV_HW_M52790,4,2             ; @IVTV_HW_M52790
	.comm	_M52790_OUT_STEREO,8,3          ; @M52790_OUT_STEREO
	.comm	_audio,4,2                      ; @audio
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_IVTV_HW_MSP34XX,4,2            ; @IVTV_HW_MSP34XX
	.comm	_MSP_SC_IN_DSP_SCART1,4,2       ; @MSP_SC_IN_DSP_SCART1
.subsections_via_symbols
