	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function msp3400c_set_audmode
LCPI0_0:
	.quad	0x401d851eb851eb85              ## double 7.3799999999999999
LCPI0_1:
	.quad	0x401c147ae147ae14              ## double 7.0199999999999996
LCPI0_2:
	.quad	0x401ccccccccccccd              ## double 7.2000000000000002
LCPI0_3:
	.quad	0x401a000000000000              ## double 6.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_msp3400c_set_audmode:                  ## @msp3400c_set_audmode
	.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, %r14
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %r12
	movl	(%rax), %ebx
	cmpq	$4, %rbx
	ja	LBB0_1
## %bb.2:
	leaq	_reltable.msp3400c_set_audmode(%rip), %rax
	movslq	(%rax,%rbx,4), %r8
	addq	%rax, %r8
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.5(%rip), %r8
LBB0_3:
	movq	8(%r12), %rax
	movq	_OPMODE_AUTOSELECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.35:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg_lvl                    ## TAILCALL
LBB0_4:
	movl	16(%r12), %eax
	cmpl	$138, %eax
	jne	LBB0_5
## %bb.22:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.11(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	movl	$512, %r15d                     ## imm = 0x200
	movl	%ebx, %r13d
	jmp	LBB0_26
LBB0_5:
	movl	20(%r12), %ecx
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rdx
	movl	$129, %r13d
	cmpl	(%rdx), %ecx
	je	LBB0_9
## %bb.6:
	movq	_V4L2_TUNER_SUB_LANG2@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.7:
	movl	%ebx, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	movl	$132, %r13d
	cmovnel	%ebx, %r13d
	jmp	LBB0_9
LBB0_8:
	xorl	%r13d, %r13d
	cmpl	$129, %ebx
	sete	%r13b
	orl	$128, %r13d
LBB0_9:
	addl	$-133, %eax
	cmpl	$7, %eax
	ja	LBB0_24
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.9(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	xorl	%r15d, %r15d
	cmpl	$0, 24(%r12)
	setne	%r15b
	shll	$8, %r15d
	jmp	LBB0_26
LBB0_15:
	movq	_msp_debug@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.8(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	leal	-128(%r13), %eax
	cmpl	$4, %eax
	ja	LBB0_26
## %bb.16:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movl	%eax, %ebx
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_msp3400c_set_carrier
	jmp	LBB0_26
LBB0_24:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.13(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg_lvl                    ## TAILCALL
LBB0_11:
	movq	_msp_debug@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.7(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	leal	-129(%r13), %eax
	cmpl	$4, %eax
	jae	LBB0_12
## %bb.25:
	movq	%r14, %rdi
	movl	$14, %esi
	movl	$12288, %edx                    ## imm = 0x3000
	callq	_msp_write_dsp
	jmp	LBB0_26
LBB0_23:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.12(%rip), %rcx
	jmp	LBB0_21
LBB0_20:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rcx
LBB0_21:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
LBB0_26:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.14(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	addl	$-128, %r13d
	cmpl	$3, %r13d
	ja	LBB0_34
## %bb.27:
	leaq	LJTI0_2(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	orl	$32, %r15d
	jmp	LBB0_34
LBB0_12:
	cmpl	$128, %r13d
	jne	LBB0_26
## %bb.13:
	movq	%r14, %rdi
	movl	$14, %esi
	movl	$12289, %edx                    ## imm = 0x3001
	callq	_msp_write_dsp
	movl	(%rbx), %edx
	leaq	L_.str.14(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$128, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	jmp	LBB0_14
LBB0_28:
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movl	%eax, %r15d
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_msp3400c_set_carrier
	movl	(%rbx), %edx
	leaq	L_.str.14(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$129, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
LBB0_29:
	cmpl	$140, 16(%r12)
	jne	LBB0_31
## %bb.30:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.15(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	movq	_SCART_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_msp_set_scart
	movl	$512, %r15d                     ## imm = 0x200
	jmp	LBB0_34
LBB0_31:
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r12)
	movl	$48, %eax
	cmovnel	%eax, %r15d
	jmp	LBB0_34
LBB0_32:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movl	%eax, %r15d
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_msp3400c_set_carrier
	movl	(%rbx), %edx
	leaq	L_.str.14(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$130, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
LBB0_33:
	orl	$16, %r15d
LBB0_34:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.16(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msp_set_source                 ## TAILCALL
LBB0_18:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movl	%eax, %r15d
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_MSP_CARRIER
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_msp3400c_set_carrier
	movl	(%rbx), %edx
	leaq	L_.str.14(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$132, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_lvl
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_23
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_24
	.long	L0_0_set_20
	.long	L0_0_set_19
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
.set L0_1_set_32, LBB0_32-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
LJTI0_1:
	.long	L0_1_set_17
	.long	L0_1_set_28
	.long	L0_1_set_32
	.long	L0_1_set_17
	.long	L0_1_set_18
.set L0_2_set_14, LBB0_14-LJTI0_2
.set L0_2_set_29, LBB0_29-LJTI0_2
.set L0_2_set_33, LBB0_33-LJTI0_2
LJTI0_2:
	.long	L0_2_set_14
	.long	L0_2_set_29
	.long	L0_2_set_33
	.long	L0_2_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.msp3400c_set_audmode
_reltable.msp3400c_set_audmode:
	.long	L_.str-_reltable.msp3400c_set_audmode
	.long	L_.str.1-_reltable.msp3400c_set_audmode
	.long	L_.str.2-_reltable.msp3400c_set_audmode
	.long	L_.str.3-_reltable.msp3400c_set_audmode
	.long	L_.str.4-_reltable.msp3400c_set_audmode

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mono"

L_.str.1:                               ## @.str.1
	.asciz	"stereo"

L_.str.2:                               ## @.str.2
	.asciz	"lang2"

L_.str.3:                               ## @.str.3
	.asciz	"lang1"

L_.str.4:                               ## @.str.4
	.asciz	"lang1+lang2"

L_.str.5:                               ## @.str.5
	.asciz	"unknown"

	.comm	_OPMODE_AUTOSELECT,8,3          ## @OPMODE_AUTOSELECT
	.comm	_msp_debug,4,2                  ## @msp_debug
L_.str.6:                               ## @.str.6
	.asciz	"set_audmode called with mode=%d instead of set_source (ignored)\n"

	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ## @V4L2_TUNER_SUB_LANG2
L_.str.7:                               ## @.str.7
	.asciz	"FM set_audmode: %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"SAT set_audmode: %s\n"

L_.str.9:                               ## @.str.9
	.asciz	"NICAM set_audmode: %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"BTSC set_audmode: %s\n"

L_.str.11:                              ## @.str.11
	.asciz	"extern set_audmode: %s\n"

L_.str.12:                              ## @.str.12
	.asciz	"FM-Radio set_audmode: %s\n"

L_.str.13:                              ## @.str.13
	.asciz	"mono set_audmode\n"

L_.str.14:                              ## @.str.14
	.asciz	"set audmode %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"switching to AM mono\n"

	.comm	_SCART_MONO,4,2                 ## @SCART_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
L_.str.16:                              ## @.str.16
	.asciz	"set_audmode final source/matrix = 0x%x\n"

	.no_dead_strip	_msp3400c_set_audmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp3400c_set_audmode
_msp3400c_set_audmode:                  ; @msp3400c_set_audmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x20, x0
	ldr	w22, [x0]
	cmp	w22, #4
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _msp3400c_set_audmode.strmode@PAGE
Lloh1:
	add	x8, x8, _msp3400c_set_audmode.strmode@PAGEOFF
	ldr	x8, [x8, x22, lsl #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, l_.str.5@PAGE
Lloh3:
	add	x8, x8, l_.str.5@PAGEOFF
LBB0_3:
	ldr	x9, [x20, #8]
Lloh4:
	adrp	x10, _OPMODE_AUTOSELECT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _OPMODE_AUTOSELECT@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _msp_debug@GOTPAGE
Lloh8:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh10:
	adrp	x3, l_.str.6@PAGE
Lloh11:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	w9, [x20, #16]
	cmp	w9, #138
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x9, _msp_debug@GOTPAGE
Lloh13:
	ldr	x9, [x9, _msp_debug@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x9]
	str	x8, [sp]
Lloh15:
	adrp	x3, l_.str.11@PAGE
Lloh16:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	w21, #512
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_23
LBB0_7:
	ldr	w10, [x20, #20]
Lloh17:
	adrp	x11, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh18:
	ldr	x11, [x11, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_9
; %bb.8:
	mov	w22, #129
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x11, _V4L2_TUNER_SUB_LANG2@GOTPAGE
Lloh21:
	ldr	x11, [x11, _V4L2_TUNER_SUB_LANG2@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w22, #129
	mov	w12, #128
	cinc	w12, w12, eq
	and	w13, w22, #0xfffffffe
	mov	w14, #132
	cmp	w13, #128
	csel	w13, w14, w22, eq
	tst	w11, w10
	csel	w22, w12, w13, eq
LBB0_10:
	sub	w9, w9, #133
	cmp	w9, #7
	b.hi	LBB0_16
; %bb.11:
Lloh23:
	adrp	x10, lJTI0_0@PAGE
Lloh24:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_12
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_12:
Lloh25:
	adrp	x9, _msp_debug@GOTPAGE
Lloh26:
	ldr	x9, [x9, _msp_debug@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x9]
	str	x8, [sp]
Lloh28:
	adrp	x3, l_.str.9@PAGE
Lloh29:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	ldr	w8, [x20, #24]
	cmp	w8, #0
	cset	w8, ne
	lsl	w21, w8, #8
	b	LBB0_23
LBB0_13:
Lloh30:
	adrp	x23, _msp_debug@GOTPAGE
Lloh31:
	ldr	x23, [x23, _msp_debug@GOTPAGEOFF]
	ldr	w2, [x23]
	str	x8, [sp]
Lloh32:
	adrp	x3, l_.str.8@PAGE
Lloh33:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_22
; %bb.14:
Lloh34:
	adrp	x9, lJTI0_1@PAGE
Lloh35:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16412, lsl #48
	fmov	d0, x8
	bl	_MSP_CARRIER
	mov	x21, x0
	mov	x8, #44564
	movk	x8, #57671, lsl #16
	movk	x8, #5242, lsl #32
	movk	x8, #16412, lsl #48
	fmov	d0, x8
	bl	_MSP_CARRIER
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_msp3400c_set_carrier
	b	LBB0_22
LBB0_16:
Lloh36:
	adrp	x8, _msp_debug@GOTPAGE
Lloh37:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x3, l_.str.13@PAGE
Lloh40:
	add	x3, x3, l_.str.13@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_dbg_lvl
LBB0_17:
Lloh41:
	adrp	x21, _msp_debug@GOTPAGE
Lloh42:
	ldr	x21, [x21, _msp_debug@GOTPAGEOFF]
	ldr	w2, [x21]
	str	x8, [sp]
Lloh43:
	adrp	x3, l_.str.7@PAGE
Lloh44:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	sub	w8, w22, #129
	cmp	w8, #4
	b.hs	LBB0_26
; %bb.18:
	mov	x0, x19
	mov	w1, #14
	mov	w2, #12288
	bl	_msp_write_dsp
	b	LBB0_22
LBB0_19:
Lloh45:
	adrp	x9, _msp_debug@GOTPAGE
Lloh46:
	ldr	x9, [x9, _msp_debug@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x9]
	str	x8, [sp]
Lloh48:
	adrp	x3, l_.str.12@PAGE
Lloh49:
	add	x3, x3, l_.str.12@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh50:
	adrp	x9, _msp_debug@GOTPAGE
Lloh51:
	ldr	x9, [x9, _msp_debug@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x9]
	str	x8, [sp]
Lloh53:
	adrp	x3, l_.str.10@PAGE
Lloh54:
	add	x3, x3, l_.str.10@PAGEOFF
LBB0_21:
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
LBB0_22:
	mov	w21, #0
LBB0_23:
Lloh55:
	adrp	x8, _msp_debug@GOTPAGE
Lloh56:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	str	x22, [sp]
Lloh58:
	adrp	x3, l_.str.14@PAGE
Lloh59:
	add	x3, x3, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_34
; %bb.24:
Lloh60:
	adrp	x9, lJTI0_2@PAGE
Lloh61:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_25
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_25:
	orr	w21, w21, #0x20
	b	LBB0_34
LBB0_26:
	cmp	w22, #128
	b.ne	LBB0_22
; %bb.27:
	mov	x0, x19
	mov	w1, #14
	mov	w2, #12289
	bl	_msp_write_dsp
	ldr	w2, [x21]
	mov	w8, #128
	str	x8, [sp]
Lloh62:
	adrp	x3, l_.str.14@PAGE
Lloh63:
	add	x3, x3, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	w21, #0
	b	LBB0_25
LBB0_28:
	fmov	d0, #6.50000000
	bl	_MSP_CARRIER
	mov	x21, x0
	fmov	d0, #6.50000000
	bl	_MSP_CARRIER
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_msp3400c_set_carrier
	ldr	w2, [x23]
	mov	w8, #129
	str	x8, [sp]
Lloh64:
	adrp	x3, l_.str.14@PAGE
Lloh65:
	add	x3, x3, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	w21, #0
LBB0_29:
	ldr	w8, [x20, #16]
	cmp	w8, #140
	b.ne	LBB0_31
; %bb.30:
Lloh66:
	adrp	x8, _msp_debug@GOTPAGE
Lloh67:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
Lloh69:
	adrp	x3, l_.str.15@PAGE
Lloh70:
	add	x3, x3, l_.str.15@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
Lloh71:
	adrp	x8, _SCART_MONO@GOTPAGE
Lloh72:
	ldr	x8, [x8, _SCART_MONO@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_msp_set_scart
	mov	w21, #512
	b	LBB0_34
LBB0_31:
	ldr	w8, [x20, #20]
Lloh74:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh75:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #48
	csel	w21, w21, w8, eq
	b	LBB0_34
LBB0_32:
	mov	x8, #60293
	movk	x8, #47185, lsl #16
	movk	x8, #34078, lsl #32
	movk	x8, #16413, lsl #48
	fmov	d0, x8
	bl	_MSP_CARRIER
	mov	x20, x0
	mov	x8, #44564
	movk	x8, #57671, lsl #16
	movk	x8, #5242, lsl #32
	movk	x8, #16412, lsl #48
	fmov	d0, x8
	bl	_MSP_CARRIER
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_msp3400c_set_carrier
	ldr	w2, [x23]
	mov	w8, #130
	str	x8, [sp]
Lloh77:
	adrp	x3, l_.str.14@PAGE
Lloh78:
	add	x3, x3, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	w21, #0
LBB0_33:
	orr	w21, w21, #0x10
LBB0_34:
Lloh79:
	adrp	x8, _msp_debug@GOTPAGE
Lloh80:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh81:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh82:
	adrp	x3, l_.str.16@PAGE
Lloh83:
	add	x3, x3, l_.str.16@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_msp_set_source
LBB0_35:
	mov	x8, #60293
	movk	x8, #47185, lsl #16
	movk	x8, #34078, lsl #32
	movk	x8, #16413, lsl #48
	fmov	d0, x8
	bl	_MSP_CARRIER
	mov	x20, x0
	mov	x8, #44564
	movk	x8, #57671, lsl #16
	movk	x8, #5242, lsl #32
	movk	x8, #16412, lsl #48
	fmov	d0, x8
	bl	_MSP_CARRIER
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_msp3400c_set_carrier
	ldr	w2, [x23]
	mov	w8, #132
	str	x8, [sp]
Lloh84:
	adrp	x3, l_.str.14@PAGE
Lloh85:
	add	x3, x3, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	w21, #0
	b	LBB0_34
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh84, Lloh85
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_20-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
lJTI0_1:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_28-LBB0_15)>>2
	.byte	(LBB0_32-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_35-LBB0_15)>>2
lJTI0_2:
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_29-LBB0_25)>>2
	.byte	(LBB0_33-LBB0_25)>>2
	.byte	(LBB0_25-LBB0_25)>>2
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @msp3400c_set_audmode.strmode
_msp3400c_set_audmode.strmode:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mono"

l_.str.1:                               ; @.str.1
	.asciz	"stereo"

l_.str.2:                               ; @.str.2
	.asciz	"lang2"

l_.str.3:                               ; @.str.3
	.asciz	"lang1"

l_.str.4:                               ; @.str.4
	.asciz	"lang1+lang2"

l_.str.5:                               ; @.str.5
	.asciz	"unknown"

	.comm	_OPMODE_AUTOSELECT,8,3          ; @OPMODE_AUTOSELECT
	.comm	_msp_debug,4,2                  ; @msp_debug
l_.str.6:                               ; @.str.6
	.asciz	"set_audmode called with mode=%d instead of set_source (ignored)\n"

	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ; @V4L2_TUNER_SUB_LANG2
l_.str.7:                               ; @.str.7
	.asciz	"FM set_audmode: %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"SAT set_audmode: %s\n"

l_.str.9:                               ; @.str.9
	.asciz	"NICAM set_audmode: %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"BTSC set_audmode: %s\n"

l_.str.11:                              ; @.str.11
	.asciz	"extern set_audmode: %s\n"

l_.str.12:                              ; @.str.12
	.asciz	"FM-Radio set_audmode: %s\n"

l_.str.13:                              ; @.str.13
	.asciz	"mono set_audmode\n"

l_.str.14:                              ; @.str.14
	.asciz	"set audmode %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"switching to AM mono\n"

	.comm	_SCART_MONO,4,2                 ; @SCART_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
l_.str.16:                              ; @.str.16
	.asciz	"set_audmode final source/matrix = 0x%x\n"

	.no_dead_strip	_msp3400c_set_audmode
.subsections_via_symbols
