	.file	"extr_msp3400-kthreads.c_msp3400c_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"msp3400 daemon started\n"
.LC1:
	.string	"msp3400 thread: sleep\n"
.LC2:
	.string	"msp3400 thread: wakeup\n"
.LC3:
	.string	"thread: restart scan\n"
.LC4:
	.string	"thread: no carrier scan\n"
.LC5:
	.string	"AM sound override\n"
.LC6:
	.string	"carrier1 val: %5d / %s\n"
.LC7:
	.string	"carrier2 val: %5d / %s\n"
.LC9:
	.string	"thread: exit\n"
	.text
	.p2align 4
	.globl	msp3400c_thread
	.type	msp3400c_thread, @function
msp3400c_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	i2c_get_clientdata@PLT
	mov	edi, eax
	call	to_state@PLT
	mov	rsi, QWORD PTR msp_debug[rip]
	mov	rdx, r12
	lea	rcx, .LC0[rip]
	mov	r15, rax
	mov	edi, 1
	xor	eax, eax
	call	v4l_dbg@PLT
	xor	eax, eax
	call	set_freezable@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, QWORD PTR msp_debug[rip]
	mov	rdx, r12
	mov	edi, 2
	xor	eax, eax
	lea	rcx, .LC1[rip]
	call	v4l_dbg@PLT
	mov	esi, -1
	mov	rdi, r15
	call	msp_sleep@PLT
	mov	rdx, r12
	mov	edi, 2
	xor	eax, eax
	mov	rsi, QWORD PTR msp_debug[rip]
	lea	rcx, .LC2[rip]
	call	v4l_dbg@PLT
.L8:
	mov	rsi, QWORD PTR msp_debug[rip]
	xor	eax, eax
	lea	rcx, .LC3[rip]
	mov	rdx, r12
	mov	edi, 2
	call	v4l_dbg@PLT
	mov	QWORD PTR 48[r15], 0
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L4
	cmp	QWORD PTR 40[r15], 0
	jne	.L5
	mov	rax, QWORD PTR MSP_MODE_EXTERN[rip]
	cmp	QWORD PTR [r15], rax
	je	.L5
	mov	DWORD PTR 8[r15], 1
	mov	rdi, r15
	call	msp_update_volume@PLT
	mov	esi, DWORD PTR MSP_MODE_AM_DETECT[rip]
	mov	rdi, r12
	call	msp3400c_set_mode@PLT
	mov	QWORD PTR 12[r15], 0
	mov	esi, 200
	mov	rdi, r15
	call	msp_sleep@PLT
	test	rax, rax
	jne	.L8
	mov	rbx, QWORD PTR msp3400c_carrier_detect_main[rip]
	mov	rdi, rbx
	call	ARRAY_SIZE@PLT
	cmp	QWORD PTR msp_amsound[rip], 0
	mov	DWORD PTR 8[rsp], eax
	jne	.L9
	mov	DWORD PTR 12[rsp], -1
	xor	r13d, r13d
	xor	ebp, ebp
	test	eax, eax
	jle	.L11
.L10:
	lea	r14, .LC6[rip]
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR [rbx+r13*8]
	mov	rdi, r12
	mov	edx, esi
	call	msp3400c_set_carrier@PLT
	mov	esi, 100
	mov	rdi, r15
	call	msp_sleep@PLT
	test	rax, rax
	jne	.L8
	mov	esi, 27
	mov	rdi, r12
	call	msp_read_dsp@PLT
	mov	r8d, eax
	lea	eax, -65536[rax]
	cmp	r8d, 32767
	cmovg	r8d, eax
	cmp	r8d, ebp
	jle	.L16
	mov	DWORD PTR 12[rsp], r13d
	mov	ebp, r8d
.L16:
	mov	r9d, DWORD PTR 4[rbx+r13*8]
	mov	rcx, r14
	mov	rdx, r12
	mov	edi, 1
	mov	rsi, QWORD PTR msp_debug[rip]
	xor	eax, eax
	add	r13, 1
	call	v4l_dbg@PLT
	cmp	DWORD PTR 8[rsp], r13d
	jg	.L17
	mov	ecx, DWORD PTR 12[rsp]
	cmp	ecx, 1
	jne	.L82
	mov	rbx, QWORD PTR msp3400c_carrier_detect_55[rip]
	mov	rdi, rbx
	call	ARRAY_SIZE@PLT
.L22:
	cmp	QWORD PTR msp_amsound[rip], 0
	je	.L23
	mov	edx, DWORD PTR 20[r15]
	test	DWORD PTR V4L2_STD_SECAM[rip], edx
	jne	.L24
.L23:
	test	eax, eax
	jle	.L25
	mov	DWORD PTR 8[rsp], -1
	lea	r13d, -1[rax]
	xor	r14d, r14d
	xor	ebp, ebp
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L44:
	mov	r14, rax
.L28:
	mov	esi, DWORD PTR [rbx+r14*8]
	mov	rdi, r12
	mov	edx, esi
	call	msp3400c_set_carrier@PLT
	mov	esi, 100
	mov	rdi, r15
	call	msp_sleep@PLT
	test	rax, rax
	jne	.L8
	mov	esi, 27
	mov	rdi, r12
	call	msp_read_dsp@PLT
	mov	r8d, eax
	lea	eax, -65536[rax]
	cmp	r8d, 32767
	cmovg	r8d, eax
	cmp	ebp, r8d
	jge	.L27
	mov	DWORD PTR 8[rsp], r14d
	mov	ebp, r8d
.L27:
	mov	r9d, DWORD PTR 4[rbx+r14*8]
	mov	rdx, r12
	mov	edi, 1
	xor	eax, eax
	mov	rsi, QWORD PTR msp_debug[rip]
	lea	rcx, .LC7[rip]
	call	v4l_dbg@PLT
	lea	rax, 1[r14]
	cmp	r13, r14
	jne	.L44
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR msp3400c_carrier_detect_main[rip]
	mov	rbx, rax
	mov	eax, DWORD PTR [rdx+rax*8]
	mov	DWORD PTR 24[r15], eax
	cmp	ebx, 2
	je	.L20
	cmp	ebx, 3
	je	.L29
	cmp	ebx, 1
	je	.L83
.L21:
	mov	DWORD PTR 28[r15], eax
	mov	esi, DWORD PTR MSP_MODE_FM_TERRA[rip]
	mov	rdi, r12
	call	msp3400c_set_mode@PLT
.L31:
	mov	edx, DWORD PTR 24[r15]
	mov	esi, DWORD PTR 28[r15]
	mov	rdi, r12
	call	msp3400c_set_carrier@PLT
	mov	DWORD PTR 8[r15], 0
	mov	rdi, r12
	call	msp3400c_set_audmode@PLT
	mov	rdi, r15
	call	msp_update_volume@PLT
	cmp	QWORD PTR msp_debug[rip], 0
	jne	.L84
.L34:
	mov	ecx, DWORD PTR 12[r15]
	test	ecx, ecx
	je	.L2
	mov	ebx, 3
.L35:
	mov	esi, 1000
	mov	rdi, r15
	call	msp_sleep@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, r12
	call	watch_stereo@PLT
	mov	edx, DWORD PTR 12[r15]
	test	edx, edx
	je	.L2
	sub	ebx, 1
	jne	.L35
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L85:
	mov	rdi, r12
	call	watch_stereo@PLT
	mov	eax, DWORD PTR 12[r15]
	test	eax, eax
	je	.L2
.L37:
	mov	esi, 5000
	mov	rdi, r15
	call	msp_sleep@PLT
	test	rax, rax
	je	.L85
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR msp_debug[rip]
	mov	rdx, r12
	mov	edi, 1
	xor	eax, eax
	lea	rcx, .LC4[rip]
	call	v4l_dbg@PLT
	mov	DWORD PTR 8[r15], 0
	mov	rdi, r15
	call	msp_update_volume@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ebp, DWORD PTR 20[r15]
	and	ebp, DWORD PTR V4L2_STD_SECAM[rip]
	jne	.L12
	mov	r10d, DWORD PTR 8[rsp]
	mov	DWORD PTR 12[rsp], -1
	xor	r13d, r13d
	test	r10d, r10d
	jg	.L10
.L11:
	mov	rax, QWORD PTR msp3400c_carrier_detect_main[rip]
	mov	eax, DWORD PTR -8[rax]
	mov	DWORD PTR 24[r15], eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L82:
	cmp	ecx, 3
	je	.L13
	cmp	QWORD PTR msp_amsound[rip], 0
	movsx	rdx, ecx
	jne	.L86
.L78:
	mov	rax, QWORD PTR msp3400c_carrier_detect_main[rip]
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	DWORD PTR 24[r15], eax
	cmp	ecx, 2
	jne	.L21
.L20:
	mov	rax, QWORD PTR .LC8[rip]
	movq	xmm0, rax
	call	MSP_CARRIER@PLT
	mov	esi, DWORD PTR MSP_MODE_FM_NICAM2[rip]
	mov	rdi, r12
	mov	DWORD PTR 28[r15], eax
	call	msp3400c_set_mode@PLT
	movabs	rax, 4294967297
	mov	QWORD PTR 12[r15], rax
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR msp_debug[rip]
	mov	rdx, r12
	mov	edi, 1
	xor	eax, eax
	lea	rcx, .LC9[rip]
	call	v4l_dbg@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rsi, QWORD PTR msp_debug[rip]
	mov	rdx, r12
	mov	edi, 1
	xor	eax, eax
	lea	rcx, .LC5[rip]
	call	v4l_dbg@PLT
.L13:
	mov	rbx, QWORD PTR msp3400c_carrier_detect_65[rip]
	mov	rdi, rbx
	call	ARRAY_SIZE@PLT
	mov	DWORD PTR 12[rsp], 3
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L86:
	mov	edx, DWORD PTR 20[r15]
	test	DWORD PTR V4L2_STD_SECAM[rip], edx
	je	.L25
.L24:
	movsx	rax, DWORD PTR 12[rsp]
	mov	rcx, QWORD PTR msp3400c_carrier_detect_main[rip]
	mov	rbx, rax
	mov	eax, DWORD PTR [rcx+rax*8]
	mov	DWORD PTR 24[r15], eax
	cmp	ebx, 2
	je	.L20
	cmp	ebx, 3
	je	.L40
	cmp	ebx, 1
	jne	.L21
.L41:
	mov	rax, QWORD PTR msp3400c_carrier_detect_55[rip]
	mov	eax, DWORD PTR [rax]
.L79:
	mov	DWORD PTR 28[r15], eax
	mov	esi, DWORD PTR MSP_MODE_FM_TERRA[rip]
	mov	rdi, r12
	call	msp3400c_set_mode@PLT
	mov	DWORD PTR 12[r15], 1
	jmp	.L31
.L84:
	mov	rdi, r12
	call	msp3400c_print_mode@PLT
	jmp	.L34
.L83:
	mov	r9d, DWORD PTR 8[rsp]
	test	r9d, r9d
	je	.L41
	cmp	DWORD PTR 8[rsp], 1
	jne	.L21
	mov	r8d, DWORD PTR 32[r15]
	test	r8d, r8d
	je	.L21
	mov	rax, QWORD PTR msp3400c_carrier_detect_55[rip]
	mov	eax, DWORD PTR 8[rax]
.L80:
	mov	DWORD PTR 28[r15], eax
	mov	esi, DWORD PTR MSP_MODE_FM_NICAM1[rip]
	mov	rdi, r12
	call	msp3400c_set_mode@PLT
	movabs	rax, 4294967297
	mov	QWORD PTR 12[r15], rax
	jmp	.L31
.L29:
	mov	ecx, DWORD PTR 8[rsp]
	lea	edx, -1[rcx]
	cmp	edx, 1
	jbe	.L87
	mov	edi, DWORD PTR 8[rsp]
	test	edi, edi
	jne	.L21
	mov	edx, DWORD PTR 20[r15]
.L40:
	test	DWORD PTR V4L2_STD_SECAM[rip], edx
	jne	.L88
	mov	esi, DWORD PTR 32[r15]
	test	esi, esi
	je	.L21
	mov	rax, QWORD PTR msp3400c_carrier_detect_65[rip]
	mov	eax, DWORD PTR [rax]
	jmp	.L80
.L87:
	mov	rax, QWORD PTR msp3400c_carrier_detect_65[rip]
	movsx	r14, ecx
	mov	eax, DWORD PTR [rax+r14*8]
	jmp	.L79
.L88:
	mov	rax, QWORD PTR msp3400c_carrier_detect_65[rip]
	mov	esi, DWORD PTR MSP_MODE_AM_NICAM[rip]
	mov	rdi, r12
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 28[r15], eax
	call	msp3400c_set_mode@PLT
	mov	DWORD PTR 12[r15], 1
	jmp	.L31
.L25:
	movsx	rdx, DWORD PTR 12[rsp]
	mov	rcx, rdx
	jmp	.L78
	.cfi_endproc
.LFE0:
	.size	msp3400c_thread, .-msp3400c_thread
	.comm	msp_debug,8,8
	.comm	msp_amsound,8,8
	.comm	msp3400c_carrier_detect_main,8,8
	.comm	msp3400c_carrier_detect_65,8,8
	.comm	msp3400c_carrier_detect_55,8,8
	.comm	V4L2_STD_SECAM,4,4
	.comm	MSP_MODE_FM_TERRA,4,4
	.comm	MSP_MODE_FM_NICAM2,4,4
	.comm	MSP_MODE_FM_NICAM1,4,4
	.comm	MSP_MODE_EXTERN,8,8
	.comm	MSP_MODE_AM_NICAM,4,4
	.comm	MSP_MODE_AM_DETECT,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC8:
	.long	2095944040
	.long	1075459391
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_msp3400-kthreads.c_msp3400c_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"msp3400 daemon started\012\000"
	.align	2
.LC1:
	.ascii	"msp3400 thread: sleep\012\000"
	.align	2
.LC2:
	.ascii	"msp3400 thread: wakeup\012\000"
	.align	2
.LC3:
	.ascii	"thread: restart scan\012\000"
	.align	2
.LC4:
	.ascii	"thread: no carrier scan\012\000"
	.align	2
.LC5:
	.ascii	"AM sound override\012\000"
	.align	2
.LC6:
	.ascii	"carrier1 val: %5d / %s\012\000"
	.align	2
.LC7:
	.ascii	"carrier2 val: %5d / %s\012\000"
	.align	2
.LC8:
	.ascii	"thread: exit\012\000"
	.text
	.align	2
	.global	msp3400c_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	msp3400c_thread, %function
msp3400c_thread:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r6, r0
	bl	i2c_get_clientdata
	bl	to_state
	ldr	r9, .L98
	mov	r10, r0
	mov	r2, r6
	ldr	r1, [r9]
	ldr	r3, .L98+4
	mov	r0, #1
	bl	v4l_dbg
	bl	set_freezable
.L2:
	mov	r2, r6
	ldr	r3, .L98+8
	ldr	r1, [r9]
	mov	r0, #2
	bl	v4l_dbg
	mvn	r1, #0
	mov	r0, r10
	bl	msp_sleep
	mov	r2, r6
	mov	r0, #2
	ldr	r3, .L98+12
	ldr	r1, [r9]
	bl	v4l_dbg
.L8:
	mov	r4, #0
	mov	r2, r6
	ldr	r3, .L98+16
	ldr	r1, [r9]
	mov	r0, #2
	bl	v4l_dbg
	str	r4, [r10, #36]
	bl	kthread_should_stop
	cmp	r0, r4
	bne	.L4
	ldr	r5, [r10, #32]
	cmp	r5, r4
	bne	.L5
	ldr	r3, .L98+20
	ldr	r2, [r10]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	mov	r4, #1
	mov	r0, r10
	str	r4, [r10, #4]
	bl	msp_update_volume
	ldr	r3, .L98+24
	mov	r0, r6
	ldr	r1, [r3]
	bl	msp3400c_set_mode
	mov	r1, #200
	mov	r0, r10
	str	r5, [r10, #8]
	str	r5, [r10, #12]
	bl	msp_sleep
	subs	r3, r0, #0
	str	r3, [sp, #16]
	bne	.L8
	ldr	r3, .L98+28
	ldr	r8, [r3]
	mov	r0, r8
	bl	ARRAY_SIZE
	ldr	r3, .L98+32
	str	r0, [sp, #12]
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L9
	cmp	r0, #0
	ble	.L11
.L43:
	mov	r4, r5
	mvn	r7, #0
	ldr	fp, .L98+36
.L17:
	ldr	r2, [r8, r4, lsl #3]
	mov	r0, r6
	mov	r1, r2
	bl	msp3400c_set_carrier
	mov	r1, #100
	mov	r0, r10
	bl	msp_sleep
	cmp	r0, #0
	bne	.L8
	mov	r1, #27
	mov	r0, r6
	bl	msp_read_dsp
	mov	ip, r0
	add	lr, r8, #4
	ldr	lr, [lr, r4, lsl #3]
	cmp	ip, #32768
	subge	ip, ip, #65536
	cmp	ip, r5
	mov	r3, fp
	mov	r2, r6
	mov	r0, #1
	ldr	r1, [r9]
	str	lr, [sp, #4]
	str	ip, [sp]
	movgt	r7, r4
	movgt	r5, ip
	bl	v4l_dbg
	ldr	r3, [sp, #12]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L17
	cmp	r7, #1
	bne	.L92
	ldr	r3, .L98+40
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	str	r0, [sp, #12]
.L22:
	ldr	r3, .L98+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L98+44
	ldr	r1, [r10, #16]
	ldr	r2, [r3]
	tst	r1, r2
	bne	.L24
.L23:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ble	.L25
	mov	r4, #0
	mvn	r8, #0
	str	r7, [sp, #20]
	ldr	fp, .L98+48
	ldr	r7, [sp, #16]
.L28:
	ldr	r2, [r5, r4, lsl #3]
	mov	r0, r6
	mov	r1, r2
	bl	msp3400c_set_carrier
	mov	r1, #100
	mov	r0, r10
	bl	msp_sleep
	cmp	r0, #0
	bne	.L8
	mov	r1, #27
	mov	r0, r6
	bl	msp_read_dsp
	mov	ip, r0
	add	lr, r5, #4
	ldr	lr, [lr, r4, lsl #3]
	cmp	ip, #32768
	subge	ip, ip, #65536
	cmp	r7, ip
	mov	r3, fp
	mov	r2, r6
	mov	r0, #1
	ldr	r1, [r9]
	str	lr, [sp, #4]
	str	ip, [sp]
	movlt	r8, r4
	movlt	r7, ip
	bl	v4l_dbg
	ldr	r3, [sp, #12]
	add	r4, r4, #1
	cmp	r3, r4
	bne	.L28
	ldr	r3, .L98+28
	ldr	r7, [sp, #20]
	ldr	r3, [r3]
	cmp	r7, #2
	ldr	r2, [r3, r7, lsl #3]
	str	r2, [r10, #20]
	beq	.L20
	cmp	r7, #3
	beq	.L29
	cmp	r7, #1
	beq	.L93
.L21:
	ldr	r3, .L98+52
	mov	r0, r6
	ldr	r1, [r3]
	str	r2, [r10, #24]
	bl	msp3400c_set_mode
.L31:
	ldr	r2, [r10, #20]
	ldr	r1, [r10, #24]
	mov	r0, r6
	bl	msp3400c_set_carrier
	mov	r3, #0
	mov	r0, r6
	str	r3, [r10, #4]
	bl	msp3400c_set_audmode
	mov	r0, r10
	bl	msp_update_volume
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L94
.L34:
	ldr	r3, [r10, #8]
	cmp	r3, #0
	beq	.L2
	mov	r4, #3
.L35:
	mov	r1, #1000
	mov	r0, r10
	bl	msp_sleep
	cmp	r0, #0
	bne	.L8
	mov	r0, r6
	bl	watch_stereo
	ldr	r3, [r10, #8]
	cmp	r3, #0
	beq	.L2
	subs	r4, r4, #1
	bne	.L35
	ldr	r4, .L98+56
	b	.L37
.L95:
	mov	r0, r6
	bl	watch_stereo
	ldr	r3, [r10, #8]
	cmp	r3, #0
	beq	.L2
.L37:
	mov	r1, r4
	mov	r0, r10
	bl	msp_sleep
	cmp	r0, #0
	beq	.L95
	b	.L8
.L5:
	mov	r2, r6
	ldr	r3, .L98+60
	ldr	r1, [r9]
	mov	r0, #1
	bl	v4l_dbg
	mov	r3, #0
	mov	r0, r10
	str	r3, [r10, #4]
	bl	msp_update_volume
	b	.L2
.L9:
	ldr	r3, .L98+44
	ldr	r5, [r10, #16]
	ldr	r3, [r3]
	ands	r5, r5, r3
	bne	.L12
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bgt	.L43
.L11:
	ldr	r3, .L98+28
	ldr	r3, [r3]
	ldr	r2, [r3, #-8]
	str	r2, [r10, #20]
	b	.L21
.L92:
	cmp	r7, #3
	beq	.L13
	ldr	r3, .L98+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L98+44
	ldr	r1, [r10, #16]
	ldr	r2, [r3]
	tst	r1, r2
	beq	.L25
.L24:
	ldr	r2, .L98+28
	cmp	r7, #2
	ldr	r2, [r2]
	ldr	r2, [r2, r7, lsl #3]
	str	r2, [r10, #20]
	beq	.L20
	cmp	r7, #3
	beq	.L40
	cmp	r7, #1
	bne	.L21
.L41:
	ldr	r3, .L98+40
	ldr	r2, .L98+52
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r3]
.L90:
	str	r3, [r10, #24]
	mov	r0, r6
	bl	msp3400c_set_mode
	mov	r3, #1
	str	r3, [r10, #8]
	b	.L31
.L4:
	mov	r2, r6
	ldr	r1, [r9]
	ldr	r3, .L98+64
	mov	r0, #1
	bl	v4l_dbg
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r4
	mov	r2, r6
	ldr	r3, .L98+68
	ldr	r1, [r9]
	bl	v4l_dbg
.L13:
	ldr	r3, .L98+72
	mov	r7, #3
	ldr	r5, [r3]
	mov	r0, r5
	bl	ARRAY_SIZE
	str	r0, [sp, #12]
	b	.L22
.L25:
	ldr	r3, .L98+28
	cmp	r7, #2
	ldr	r3, [r3]
	ldr	r2, [r3, r7, lsl #3]
	str	r2, [r10, #20]
	bne	.L21
.L20:
	ldr	r1, .L98+76
	ldr	r0, .L98+80
	bl	MSP_CARRIER
	ldr	r3, .L98+84
	str	r0, [r10, #24]
	ldr	r1, [r3]
	mov	r0, r6
	bl	msp3400c_set_mode
	mov	r3, #1
	str	r3, [r10, #12]
	str	r3, [r10, #8]
	b	.L31
.L94:
	mov	r0, r6
	bl	msp3400c_print_mode
	b	.L34
.L93:
	cmp	r8, #0
	beq	.L41
	cmp	r8, #1
	bne	.L21
	ldr	r3, [r10, #28]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L98+40
	ldr	r2, .L98+88
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r3, [r3, #8]
	ldr	r1, [r2]
	str	r3, [r10, #24]
	bl	msp3400c_set_mode
	str	r8, [r10, #12]
	str	r8, [r10, #8]
	b	.L31
.L29:
	sub	r3, r8, #1
	cmp	r3, #1
	bls	.L96
	cmp	r8, #0
	bne	.L21
	ldr	r3, .L98+44
	ldr	r1, [r10, #16]
.L40:
	ldr	r3, [r3]
	tst	r1, r3
	bne	.L97
	ldr	r3, [r10, #28]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L98+72
	ldr	r2, .L98+88
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r10, #24]
	bl	msp3400c_set_mode
	mov	r3, #1
	str	r3, [r10, #12]
	str	r3, [r10, #8]
	b	.L31
.L96:
	ldr	r3, .L98+72
	ldr	r2, .L98+52
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r3, r8, lsl #3]
	b	.L90
.L97:
	ldr	r3, .L98+72
	ldr	r2, .L98+92
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r3]
	b	.L90
.L99:
	.align	2
.L98:
	.word	msp_debug
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	MSP_MODE_EXTERN
	.word	MSP_MODE_AM_DETECT
	.word	msp3400c_carrier_detect_main
	.word	msp_amsound
	.word	.LC6
	.word	msp3400c_carrier_detect_55
	.word	V4L2_STD_SECAM
	.word	.LC7
	.word	MSP_MODE_FM_TERRA
	.word	5000
	.word	.LC4
	.word	.LC8
	.word	.LC5
	.word	msp3400c_carrier_detect_65
	.word	1075459391
	.word	2095944040
	.word	MSP_MODE_FM_NICAM2
	.word	MSP_MODE_FM_NICAM1
	.word	MSP_MODE_AM_NICAM
	.size	msp3400c_thread, .-msp3400c_thread
	.comm	msp_debug,4,4
	.comm	msp_amsound,4,4
	.comm	msp3400c_carrier_detect_main,4,4
	.comm	msp3400c_carrier_detect_65,4,4
	.comm	msp3400c_carrier_detect_55,4,4
	.comm	V4L2_STD_SECAM,4,4
	.comm	MSP_MODE_FM_TERRA,4,4
	.comm	MSP_MODE_FM_NICAM2,4,4
	.comm	MSP_MODE_FM_NICAM1,4,4
	.comm	MSP_MODE_EXTERN,4,4
	.comm	MSP_MODE_AM_NICAM,4,4
	.comm	MSP_MODE_AM_DETECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
