	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvaudio_thread
_tvaudio_thread:                        ## @tvaudio_thread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_mainscan@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_set_freezable
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
                                        ##       Child Loop BB0_39 Depth 3
                                        ##       Child Loop BB0_52 Depth 3
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_tvaudio_sleep
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
                                        ##       Child Loop BB0_39 Depth 3
                                        ##       Child Loop BB0_52 Depth 3
	xorl	%eax, %eax
	callq	_try_to_freeze
	movq	16(%r15), %rsi
	movq	%rsi, 8(%r15)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	$0, 32(%r15)
	movq	_SAA7134_MONITOR_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$160, %esi
	callq	_saa_writeb
	movq	_SAA7134_FM_DEMATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$128, %esi
	callq	_saa_writeb
	cmpq	$0, 48(%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, (%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	callq	_mute_input_7134
	movq	_SCAN_INITIAL_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tvaudio_sleep
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_mainscan@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=3
	incl	%r14d
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=3
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_23
LBB0_18:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	40(%r15), %rax
	movq	(%r12), %rdi
	movl	(%rdi,%rbx,8), %ecx
	testl	%ecx, (%rax)
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	testl	%r13d, %r13d
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	4(%rdi,%rbx,8), %r13d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %r14d
	jne	LBB0_9
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %ebx
	xorl	%r13d, %r13d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$12345, %r14d                   ## imm = 0x3039
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jne	LBB0_29
	jmp	LBB0_32
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r13d, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_SAA7134_MONITOR_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	movq	_tvaudio@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_tvaudio_setmode
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r12), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	callq	_tvaudio_checkcarrier
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	incq	%rbx
	movq	_mainscan@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jb	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_32
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ebx, %ebx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=3
	cmpl	%r14d, %r13d
	cmovlel	%r14d, %r13d
	movq	_mainscan@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r12d, %r14d
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=3
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_27
LBB0_15:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %r14d
	cmpl	%r14d, %r12d
	jge	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	movq	_mainscan@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	4(%rdi,%rbx,8), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r13d
	movl	%r14d, %r12d
	jmp	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$2001, %r14d                    ## imm = 0x7D1
	jl	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=2
	leal	(%r13,%r13,2), %eax
	cmpl	%eax, %r14d
	jle	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	40(%r15), %rax
	movl	4(%rax), %esi
	movslq	%ebx, %rax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	imull	$1000, %edx, %eax               ## imm = 0x3E8
	movl	%ebx, %ecx
	subl	%eax, %ecx
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	movl	%ebx, 4(%r15)
	jmp	LBB0_36
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=2
	movslq	%ebx, %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	imull	$1000, %esi, %eax               ## imm = 0x3E8
	movl	%ebx, %edx
	subl	%eax, %edx
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movslq	%ebx, %rdx
	imulq	$274877907, %rdx, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	imull	$1000, %esi, %eax               ## imm = 0x3E8
	subl	%eax, %edx
	leaq	L_.str.4(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_dprintk
LBB0_36:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_tvaudio_setcarrier
	movl	$0, (%r15)
	movq	_SAA7134_STEREO_DAC_OUTPUT_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$48, %esi
	xorl	%edx, %edx
	callq	_saa_andorb
	movq	%r15, %rdi
	callq	_saa7134_tvaudio_setmute
	movq	_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_TVAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movl	%r14d, %r12d
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	40(%r15), %rcx
	movl	(%rcx), %ecx
	movq	_tvaudio@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	cmpl	%r14d, %ecx
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=3
	testl	%ecx, (%rsi,%rbx)
	je	LBB0_45
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=3
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 4(%rsi,%rbx)
	jne	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_39 Depth=3
	addq	%rbx, %rsi
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rdx
	callq	_tvaudio_setmode
	movq	_SCAN_SUBCARRIER_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tvaudio_sleep
	testq	%rax, %rax
	jne	LBB0_4
## %bb.43:                              ##   in Loop: Header=BB0_39 Depth=3
	movq	_tvaudio@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_tvaudio_getstereo
	cmpl	$-1, %eax
	jne	LBB0_47
## %bb.44:                              ##   in Loop: Header=BB0_39 Depth=3
	cmpl	%r12d, %r14d
	cmovel	%r13d, %r12d
	movq	_TVAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_45:                                ##   in Loop: Header=BB0_39 Depth=3
	leaq	1(%r13), %rcx
	movl	%eax, %edx
	cmpq	%rdx, %rcx
	jae	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_39 Depth=3
	movq	_UNSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	addq	$8, %rbx
	incq	%r13
	jmp	LBB0_39
LBB0_37:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r13d, %r13d
	jmp	LBB0_49
LBB0_48:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rcx, %r13
	movl	%r12d, %r14d
	jmp	LBB0_49
LBB0_47:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %r14d
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_SAA7134_STEREO_DAC_OUTPUT_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$48, %esi
	movl	$48, %edx
	callq	_saa_andorb
	movq	_UNSET@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_1
## %bb.50:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %r14d
	shlq	$3, %r14
	movq	_tvaudio@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rdx
	callq	_tvaudio_setmode
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_tvaudio_setstereo
	movq	(%rbx), %rax
	addq	%r14, %rax
	movq	%rax, 32(%r15)
	xorl	%eax, %eax
	callq	_try_to_freeze
	movq	%r15, %rdi
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_tvaudio_sleep
	testq	%rax, %rax
	jne	LBB0_4
## %bb.51:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %r12d
	movl	$42, %r13d
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_52 Depth=3
	xorl	%eax, %eax
	callq	_try_to_freeze
	movq	%r15, %rdi
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_tvaudio_sleep
	testq	%rax, %rax
	jne	LBB0_4
LBB0_52:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_1
## %bb.53:                              ##   in Loop: Header=BB0_52 Depth=3
	movl	24(%r15), %ebx
	movq	_UNSET@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_52 Depth=3
	leaq	(,%r12,8), %rsi
	movq	_tvaudio@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_tvaudio_getstereo
	movl	%eax, %edi
	callq	_saa7134_tvaudio_rx2mode
	movl	%eax, %ebx
LBB0_55:                                ##   in Loop: Header=BB0_52 Depth=3
	cmpl	%ebx, %r13d
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_52 Depth=3
	movq	_tvaudio@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_tvaudio_setstereo
	movl	%ebx, %r13d
	jmp	LBB0_57
LBB0_2:
	movl	$1, 28(%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_3
## %bb.58:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mainscan,8,3                   ## @mainscan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tvaudio thread scan start [%d]\n"

	.comm	_SAA7134_MONITOR_SELECT,4,2     ## @SAA7134_MONITOR_SELECT
	.comm	_SAA7134_FM_DEMATRIX,4,2        ## @SAA7134_FM_DEMATRIX
	.comm	_SCAN_INITIAL_DELAY,4,2         ## @SCAN_INITIAL_DELAY
L_.str.1:                               ## @.str.1
	.asciz	"only one main carrier candidate - skipping scan\n"

	.comm	_tvaudio,8,3                    ## @tvaudio
L_.str.2:                               ## @.str.2
	.asciz	"found %s main sound carrier @ %d.%03d MHz [%d/%d]\n"

L_.str.3:                               ## @.str.3
	.asciz	"audio carrier scan failed, using %d.%03d MHz [last detected]\n"

L_.str.4:                               ## @.str.4
	.asciz	"audio carrier scan failed, using %d.%03d MHz [default]\n"

	.comm	_SAA7134_STEREO_DAC_OUTPUT_SELECT,4,2 ## @SAA7134_STEREO_DAC_OUTPUT_SELECT
	.comm	_UNSET,4,2                      ## @UNSET
	.comm	_TVAUDIO,4,2                    ## @TVAUDIO
L_.str.5:                               ## @.str.5
	.asciz	"trying"

	.comm	_SCAN_SUBCARRIER_DELAY,4,2      ## @SCAN_SUBCARRIER_DELAY
L_.str.6:                               ## @.str.6
	.asciz	"using"

	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.no_dead_strip	_tvaudio_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvaudio_thread
_tvaudio_thread:                        ; @tvaudio_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _mainscan@GOTPAGE
Lloh4:
	ldr	x28, [x28, _mainscan@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_set_freezable
	mov	x0, x19
	mov	w1, #-1
	bl	_tvaudio_sleep
	bl	_kthread_should_stop
	cbz	x0, LBB0_3
LBB0_1:
	mov	w8, #1
	str	w8, [x19, #28]
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_58
; %bb.2:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh10:
	adrp	x25, l_.str@PAGE
Lloh11:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #-1
	bl	_tvaudio_sleep
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_38 Depth 2
                                        ;     Child Loop BB0_53 Depth 2
	bl	_try_to_freeze
	ldr	x8, [x19, #16]
	str	x8, [x19, #8]
	str	x8, [sp, #-16]!
	mov	x0, x25
	bl	_dprintk
	add	sp, sp, #16
	str	xzr, [x19, #32]
Lloh12:
	adrp	x8, _SAA7134_MONITOR_SELECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SAA7134_MONITOR_SELECT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #160
	bl	_saa_writeb
Lloh15:
	adrp	x8, _SAA7134_FM_DEMATRIX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SAA7134_FM_DEMATRIX@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #128
	bl	_saa_writeb
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	str	w8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_mute_input_7134
Lloh18:
	adrp	x8, _SCAN_INITIAL_DELAY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCAN_INITIAL_DELAY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvaudio_sleep
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
	mov	x22, #0
	mov	w27, #0
	mov	w23, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	add	w23, w23, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x20, x20, #8
	cmp	x22, w0, uxtw
	b.hs	LBB0_15
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	ldr	x0, [x28]
	ldr	w9, [x0, x20]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	cbnz	w27, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x8, x0, x20
	ldr	w27, [x8, #4]
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #1
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	mov	w20, #0
	mov	w24, #12345
	mov	x22, x27
	cbnz	w22, LBB0_29
	b	LBB0_32
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #0
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x20, _tvaudio@GOTPAGE
Lloh24:
	ldr	x20, [x20, _tvaudio@GOTPAGEOFF]
Lloh25:
	adrp	x8, _SAA7134_MONITOR_SELECT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SAA7134_MONITOR_SELECT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_saa_writeb
Lloh28:
	ldr	x1, [x20]
	mov	x0, x19
	mov	x2, #0
	bl	_tvaudio_setmode
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
	mov	x22, #0
LBB0_20:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	add	x1, x8, x20
	mov	x0, x19
	bl	_tvaudio_checkcarrier
	str	w0, [x21, x22, lsl #2]
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	add	x22, x22, #1
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	add	x20, x20, #8
	cmp	x22, w0, uxtw
	b.lo	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_32
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
	mov	w22, #0
	mov	w20, #0
	mov	w25, #0
	mov	w23, #4
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=2
	cmp	w20, w24
	csel	w20, w20, w24, gt
	ldr	x0, [x28]
	mov	x24, x25
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #8
	cmp	x26, w0, uxtw
	b.hs	LBB0_28
LBB0_26:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w24, [x21, x26, lsl #2]
	cmp	w25, w24
	b.ge	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	x0, [x28]
	ldr	w22, [x0, x23]
	mov	x20, x25
	mov	x25, x24
	b	LBB0_25
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh29:
	adrp	x25, l_.str@PAGE
Lloh30:
	add	x25, x25, l_.str@PAGEOFF
	cbz	w22, LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #2001
	b.lt	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w20, w20, lsl #1
	cmp	w24, w8
Lloh31:
	adrp	x23, _tvaudio@GOTPAGE
Lloh32:
	ldr	x23, [x23, _tvaudio@GOTPAGEOFF]
	b.le	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w22, w9
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #6
	mov	w10, #1000
	msub	w10, w9, w10, w22
	ldr	w8, [x8, #4]
	sub	sp, sp, #48
	stp	x24, x20, [sp, #24]
	stp	x8, x9, [sp]
	str	x10, [sp, #16]
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	add	sp, sp, #48
	str	w22, [x19, #4]
	b	LBB0_36
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh35:
	adrp	x23, _tvaudio@GOTPAGE
Lloh36:
	ldr	x23, [x23, _tvaudio@GOTPAGEOFF]
LBB0_33:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w22, [x19, #4]
	cbz	w22, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w22, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w9, w8, w9, w22
	stp	x8, x9, [sp, #-16]!
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	add	sp, sp, #16
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w27, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w9, w8, w9, w27
	stp	x8, x9, [sp, #-16]!
Lloh39:
	adrp	x0, l_.str.4@PAGE
Lloh40:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
	add	sp, sp, #16
	mov	x22, x27
LBB0_36:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x22
	bl	_tvaudio_setcarrier
	str	wzr, [x19]
Lloh41:
	adrp	x8, _SAA7134_STEREO_DAC_OUTPUT_SELECT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SAA7134_STEREO_DAC_OUTPUT_SELECT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	w1, #48
	mov	w2, #0
	bl	_saa_andorb
	mov	x0, x19
	bl	_saa7134_tvaudio_setmute
Lloh44:
	adrp	x8, _UNSET@GOTPAGE
Lloh45:
	ldr	x8, [x8, _UNSET@GOTPAGEOFF]
Lloh46:
	ldr	w20, [x8]
Lloh47:
	adrp	x8, _TVAUDIO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TVAUDIO@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cbz	w8, LBB0_46
; %bb.37:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	mov	x27, #0
	mov	x26, x20
LBB0_38:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #40]
	ldr	w10, [x9]
	ldr	x9, [x23]
	cmp	w10, w20
	b.eq	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=2
	ldr	w11, [x9, x24]
	tst	w11, w10
	b.eq	LBB0_44
LBB0_40:                                ;   in Loop: Header=BB0_38 Depth=2
	add	x1, x9, x24
	ldr	w9, [x1, #4]
	cmp	w9, w22
	b.ne	LBB0_44
; %bb.41:                               ;   in Loop: Header=BB0_38 Depth=2
	mov	x0, x19
Lloh50:
	adrp	x2, l_.str.5@PAGE
Lloh51:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_tvaudio_setmode
Lloh52:
	adrp	x8, _SCAN_SUBCARRIER_DELAY@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SCAN_SUBCARRIER_DELAY@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvaudio_sleep
	cbnz	x0, LBB0_5
; %bb.42:                               ;   in Loop: Header=BB0_38 Depth=2
Lloh55:
	adrp	x23, _tvaudio@GOTPAGE
Lloh56:
	ldr	x23, [x23, _tvaudio@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x24
	mov	x0, x19
	bl	_tvaudio_getstereo
	cmn	w0, #1
	b.ne	LBB0_48
; %bb.43:                               ;   in Loop: Header=BB0_38 Depth=2
	cmp	w20, w26
	csel	w26, w27, w26, eq
Lloh57:
	adrp	x8, _TVAUDIO@GOTPAGE
Lloh58:
	ldr	x8, [x8, _TVAUDIO@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
LBB0_44:                                ;   in Loop: Header=BB0_38 Depth=2
	add	x27, x27, #1
	cmp	x27, w8, uxtw
	b.hs	LBB0_47
; %bb.45:                               ;   in Loop: Header=BB0_38 Depth=2
Lloh60:
	adrp	x9, _UNSET@GOTPAGE
Lloh61:
	ldr	x9, [x9, _UNSET@GOTPAGEOFF]
Lloh62:
	ldr	w20, [x9]
	add	x24, x24, #8
	b	LBB0_38
LBB0_46:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	b	LBB0_49
LBB0_47:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x26
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x27
LBB0_49:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh63:
	adrp	x8, _SAA7134_STEREO_DAC_OUTPUT_SELECT@GOTPAGE
Lloh64:
	ldr	x8, [x8, _SAA7134_STEREO_DAC_OUTPUT_SELECT@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	mov	w1, #48
	mov	w2, #48
	bl	_saa_andorb
Lloh66:
	adrp	x8, _UNSET@GOTPAGE
Lloh67:
	ldr	x8, [x8, _UNSET@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.50:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh69:
	adrp	x23, _tvaudio@GOTPAGE
Lloh70:
	ldr	x23, [x23, _tvaudio@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	w20, w20
	lsl	x22, x20, #3
	add	x1, x8, x22
	mov	x0, x19
Lloh71:
	adrp	x2, l_.str.6@PAGE
Lloh72:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_tvaudio_setmode
	ldr	x8, [x23]
	add	x1, x8, x22
Lloh73:
	adrp	x8, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh74:
	ldr	x8, [x8, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tvaudio_setstereo
	ldr	x8, [x23]
	add	x8, x8, x22
	str	x8, [x19, #32]
	bl	_try_to_freeze
	mov	x0, x19
	mov	w1, #5000
	bl	_tvaudio_sleep
	cbnz	x0, LBB0_5
; %bb.51:                               ;   in Loop: Header=BB0_5 Depth=1
	and	x22, x27, #0xffffffff
	mov	w23, #42
	b	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_53 Depth=2
	bl	_try_to_freeze
	mov	x0, x19
	mov	w1, #5000
	bl	_tvaudio_sleep
	cbnz	x0, LBB0_5
LBB0_53:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_kthread_should_stop
	cbnz	x0, LBB0_4
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=2
Lloh76:
	adrp	x8, _UNSET@GOTPAGE
Lloh77:
	ldr	x8, [x8, _UNSET@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	ldr	w27, [x19, #24]
	cmp	w8, w27
	b.ne	LBB0_56
; %bb.55:                               ;   in Loop: Header=BB0_53 Depth=2
Lloh79:
	adrp	x8, _tvaudio@GOTPAGE
Lloh80:
	ldr	x8, [x8, _tvaudio@GOTPAGEOFF]
Lloh81:
	ldr	x8, [x8]
	add	x1, x8, x22, lsl #3
	mov	x0, x19
	bl	_tvaudio_getstereo
	bl	_saa7134_tvaudio_rx2mode
	mov	x27, x0
LBB0_56:                                ;   in Loop: Header=BB0_53 Depth=2
	cmp	w23, w27
	b.eq	LBB0_52
; %bb.57:                               ;   in Loop: Header=BB0_53 Depth=2
Lloh82:
	adrp	x8, _tvaudio@GOTPAGE
Lloh83:
	ldr	x8, [x8, _tvaudio@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
	add	x1, x8, x20, lsl #3
	mov	x0, x19
	mov	x2, x27
	bl	_tvaudio_setstereo
	mov	x23, x27
	b	LBB0_52
LBB0_58:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_mainscan,8,3                   ; @mainscan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tvaudio thread scan start [%d]\n"

	.comm	_SAA7134_MONITOR_SELECT,4,2     ; @SAA7134_MONITOR_SELECT
	.comm	_SAA7134_FM_DEMATRIX,4,2        ; @SAA7134_FM_DEMATRIX
	.comm	_SCAN_INITIAL_DELAY,4,2         ; @SCAN_INITIAL_DELAY
l_.str.1:                               ; @.str.1
	.asciz	"only one main carrier candidate - skipping scan\n"

	.comm	_tvaudio,8,3                    ; @tvaudio
l_.str.2:                               ; @.str.2
	.asciz	"found %s main sound carrier @ %d.%03d MHz [%d/%d]\n"

l_.str.3:                               ; @.str.3
	.asciz	"audio carrier scan failed, using %d.%03d MHz [last detected]\n"

l_.str.4:                               ; @.str.4
	.asciz	"audio carrier scan failed, using %d.%03d MHz [default]\n"

	.comm	_SAA7134_STEREO_DAC_OUTPUT_SELECT,4,2 ; @SAA7134_STEREO_DAC_OUTPUT_SELECT
	.comm	_UNSET,4,2                      ; @UNSET
	.comm	_TVAUDIO,4,2                    ; @TVAUDIO
l_.str.5:                               ; @.str.5
	.asciz	"trying"

	.comm	_SCAN_SUBCARRIER_DELAY,4,2      ; @SCAN_SUBCARRIER_DELAY
l_.str.6:                               ; @.str.6
	.asciz	"using"

	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.no_dead_strip	_tvaudio_thread
.subsections_via_symbols
