	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_input
_audio_input:                           ## @audio_input
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	24(%rdi), %edx
	callq	_audio_mux_gpio
	cmpq	$0, 8(%rbx)
	je	LBB0_13
## %bb.1:
	cmpl	$131, %r14d
	je	LBB0_8
## %bb.2:
	cmpl	$130, %r14d
	je	LBB0_5
## %bb.3:
	cmpl	$129, %r14d
	jne	LBB0_9
## %bb.4:
	cmpl	$0, 20(%rbx)
	jne	LBB0_11
LBB0_5:
	movq	_MSP_IN_SCART2@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_MSP_IN_SCART1@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	movq	_MSP_IN_TUNER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSP_DSP_IN_SCART@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_MSP_INPUT
	movl	%eax, %ecx
	jmp	LBB0_12
LBB0_9:
	movl	16(%rbx), %eax
	movq	_BTTV_BOARD_VOODOOTV_200@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movq	_MSP_IN_SCART1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MSP_IN_TUNER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSP_DSP_IN_TUNER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	_MSP_INPUT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_12:
	movq	8(%rbx), %rdi
	movq	_audio@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MSP_OUTPUT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_subdev_call
LBB0_13:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movq	_audio@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_subdev_call
LBB0_15:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSP_INPUT_DEFAULT,4,2          ## @MSP_INPUT_DEFAULT
	.comm	_MSP_IN_SCART2,4,2              ## @MSP_IN_SCART2
	.comm	_MSP_IN_TUNER1,4,2              ## @MSP_IN_TUNER1
	.comm	_MSP_DSP_IN_SCART,4,2           ## @MSP_DSP_IN_SCART
	.comm	_MSP_IN_SCART1,4,2              ## @MSP_IN_SCART1
	.comm	_BTTV_BOARD_VOODOOTV_200,4,2    ## @BTTV_BOARD_VOODOOTV_200
	.comm	_MSP_IN_TUNER2,4,2              ## @MSP_IN_TUNER2
	.comm	_MSP_DSP_IN_TUNER,4,2           ## @MSP_DSP_IN_TUNER
	.comm	_audio,4,2                      ## @audio
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_MSP_OUTPUT_DEFAULT,4,2         ## @MSP_OUTPUT_DEFAULT
	.no_dead_strip	_audio_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_input
_audio_input:                           ; @audio_input
	.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, x1
	mov	x20, x0
	ldr	w2, [x0, #24]
	bl	_audio_mux_gpio
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x21, _audio@GOTPAGE
Lloh1:
	ldr	x21, [x21, _audio@GOTPAGEOFF]
Lloh2:
	adrp	x22, _s_routing@GOTPAGE
Lloh3:
	ldr	x22, [x22, _s_routing@GOTPAGEOFF]
	cbz	x8, LBB0_13
; %bb.1:
	cmp	w19, #131
	b.eq	LBB0_6
; %bb.2:
	cmp	w19, #130
	b.eq	LBB0_5
; %bb.3:
	cmp	w19, #129
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x20, #20]
	cbnz	w8, LBB0_11
LBB0_5:
Lloh4:
	adrp	x8, _MSP_IN_SCART2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSP_IN_SCART2@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _MSP_IN_SCART1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSP_IN_SCART1@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _MSP_IN_TUNER1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSP_IN_TUNER1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _MSP_DSP_IN_SCART@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSP_DSP_IN_SCART@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_MSP_INPUT
	mov	x3, x0
	b	LBB0_12
LBB0_9:
	ldr	w8, [x20, #16]
Lloh13:
	adrp	x9, _BTTV_BOARD_VOODOOTV_200@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BTTV_BOARD_VOODOOTV_200@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _MSP_IN_SCART1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSP_IN_SCART1@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _MSP_IN_TUNER2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSP_IN_TUNER2@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MSP_DSP_IN_TUNER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSP_DSP_IN_TUNER@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
Lloh24:
	adrp	x8, _MSP_INPUT_DEFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSP_INPUT_DEFAULT@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
LBB0_12:
	ldr	x0, [x20, #8]
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh27:
	adrp	x8, _MSP_OUTPUT_DEFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSP_OUTPUT_DEFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	mov	w5, #0
	bl	_v4l2_subdev_call
LBB0_13:
	ldr	x0, [x20]
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x3, x19
	mov	w4, #0
	mov	w5, #0
	bl	_v4l2_subdev_call
LBB0_15:
	mov	w0, #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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MSP_INPUT_DEFAULT,4,2          ; @MSP_INPUT_DEFAULT
	.comm	_MSP_IN_SCART2,4,2              ; @MSP_IN_SCART2
	.comm	_MSP_IN_TUNER1,4,2              ; @MSP_IN_TUNER1
	.comm	_MSP_DSP_IN_SCART,4,2           ; @MSP_DSP_IN_SCART
	.comm	_MSP_IN_SCART1,4,2              ; @MSP_IN_SCART1
	.comm	_BTTV_BOARD_VOODOOTV_200,4,2    ; @BTTV_BOARD_VOODOOTV_200
	.comm	_MSP_IN_TUNER2,4,2              ; @MSP_IN_TUNER2
	.comm	_MSP_DSP_IN_TUNER,4,2           ; @MSP_DSP_IN_TUNER
	.comm	_audio,4,2                      ; @audio
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_MSP_OUTPUT_DEFAULT,4,2         ; @MSP_OUTPUT_DEFAULT
	.no_dead_strip	_audio_input
.subsections_via_symbols
