	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_set_standard            ## -- Begin function tm6000_set_standard
	.p2align	4, 0x90
_tm6000_set_standard:                   ## @tm6000_set_standard
	.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, %r13
	callq	_tm6000_get_std_res
	cmpl	$0, 56(%r13)
	je	LBB0_1
## %bb.2:
	leaq	24(%r13), %r12
	jmp	LBB0_3
LBB0_1:
	movq	(%r13), %rax
	leaq	(%rax,%rax,2), %r12
	shlq	$3, %r12
	addq	48(%r13), %r12
LBB0_3:
	movq	8(%r13), %rax
	movq	_TM6010@GOTPCREL(%rip), %rdx
	movl	(%r12), %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_19
## %bb.4:
	movl	$232, %r15d
	movl	$224, %ebx
	movl	$241, %r14d
	movq	_TM6010_REQ08_RE3_ADC_IN1_SEL@GOTPCREL(%rip), %rax
	cmpl	$130, %ecx
	je	LBB0_5
## %bb.6:
	cmpl	$129, %ecx
	je	LBB0_9
## %bb.7:
	movl	$15, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$138, %edx
	cmpl	$128, %ecx
	jne	LBB0_11
## %bb.8:
	movl	$139, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$248, %edx
	jmp	LBB0_10
LBB0_19:
	addl	$-128, %ecx
	cmpl	$2, %ecx
	ja	LBB0_21
## %bb.20:
	movslq	%ecx, %rax
	leaq	l_switch.table.tm6000_set_standard(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	l_switch.table.tm6000_set_standard.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	leaq	l_switch.table.tm6000_set_standard.2(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	leaq	l_switch.table.tm6000_set_standard.3(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	_TM6000_REQ07_RE3_VADC_INP_LPF_SEL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6000_REQ07_RE5_VADC_INP_LPF_SEL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6000_REQ07_RE8_VADC_PWDOWN_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_REQ_03_SET_GET_MCU_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %edx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
LBB0_21:
	movl	4(%r12), %eax
	cmpl	$133, %eax
	je	LBB0_24
## %bb.22:
	cmpl	$134, %eax
	jne	LBB0_26
## %bb.23:
	movq	_TM6000_REQ07_REB_VADC_AADC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	jmp	LBB0_25
LBB0_24:
	movq	_TM6000_REQ07_REB_VADC_AADC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$4, %edx
LBB0_25:
	movl	$15, %ecx
	callq	_tm6000_set_reg_mask
	jmp	LBB0_26
LBB0_5:
	movl	$139, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$15, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$244, %edx
	jmp	LBB0_10
LBB0_9:
	movq	_TM6010_REQ08_RE3_ADC_IN1_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %rdi
	movl	$252, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movl	$138, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$224, %r15d
	movl	$240, %ebx
	movl	$242, %r14d
	movl	$248, %edx
	movq	_TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6010_REQ08_REA_BUFF_DRV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6010_REQ08_REB_SIF_GAIN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6010_REQ08_REC_REVERSE_YC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$194, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6010_REQ08_RED_GAIN_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_11:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	$240, %ebx
	movl	$252, %r15d
	movl	$-131, %eax
	addl	4(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_18
## %bb.12:
	movl	$16, %r14d
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	orl	$64, -44(%rbp)                  ## 4-byte Folded Spill
	movq	_TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$247, %edx
	jmp	LBB0_16
LBB0_14:
	orl	$64, -44(%rbp)                  ## 4-byte Folded Spill
	movq	_TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$243, %edx
LBB0_16:
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movl	$8, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$242, %ebx
	movl	$254, %r15d
	movl	$48, %r14d
	movl	$2, %edx
	jmp	LBB0_17
LBB0_13:
	movl	$8, %edx
LBB0_17:
	movq	_TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$15, %ecx
	callq	_tm6000_set_reg_mask
	movq	_TM6010_REQ07_R07_OUTPUT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	$240, %ecx
	callq	_tm6000_set_reg_mask
LBB0_18:
	movq	_TM6010_REQ08_RE2_POWER_DOWN_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6010_REQ08_RE6_POWER_DOWN_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6010_REQ08_RF1_AADC_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_tm6000_set_reg
	movq	_TM6010_REQ07_RFE_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_tm6000_set_reg
LBB0_26:
	movq	8(%r12), %rax
	movq	_TM6000_INPUT_SVIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.31:
	movq	_svideo_stds@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_35
## %bb.32:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	(%rdi,%rbx,8), %eax
	testl	%eax, 16(%r13)
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_33
	jmp	LBB0_35
LBB0_27:
	movq	_composite_stds@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_35
## %bb.28:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	(%rdi,%rbx,8), %eax
	testl	%eax, 16(%r13)
	jne	LBB0_36
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_29
LBB0_35:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_41
LBB0_36:
	movl	%ebx, %eax
	movl	4(%rdi,%rax,8), %esi
	movq	%r13, %rdi
	callq	_tm6000_load_std
	testl	%eax, %eax
	js	LBB0_41
## %bb.37:
	movq	8(%r13), %rax
	movq	_TM6010@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.38:
	movl	$-131, %eax
	addl	4(%r12), %eax
	cmpl	$1, %eax
	ja	LBB0_40
## %bb.39:
	movq	%r13, %rdi
	callq	_tm6000_set_audio_std
LBB0_40:
	movl	$40, %edi
	callq	_msleep
	xorl	%eax, %eax
LBB0_41:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_TM6010,8,3                     ## @TM6010
	.comm	_TM6010_REQ08_RE3_ADC_IN1_SEL,4,2 ## @TM6010_REQ08_RE3_ADC_IN1_SEL
	.comm	_TM6010_REQ08_REA_BUFF_DRV_CTRL,4,2 ## @TM6010_REQ08_REA_BUFF_DRV_CTRL
	.comm	_TM6010_REQ08_REB_SIF_GAIN_CTRL,4,2 ## @TM6010_REQ08_REB_SIF_GAIN_CTRL
	.comm	_TM6010_REQ08_REC_REVERSE_YC_CTRL,4,2 ## @TM6010_REQ08_REC_REVERSE_YC_CTRL
	.comm	_TM6010_REQ08_RED_GAIN_SEL,4,2  ## @TM6010_REQ08_RED_GAIN_SEL
	.comm	_TM6010_REQ08_RE4_ADC_IN2_SEL,4,2 ## @TM6010_REQ08_RE4_ADC_IN2_SEL
	.comm	_TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG,4,2 ## @TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG
	.comm	_TM6010_REQ07_R07_OUTPUT_CONTROL,4,2 ## @TM6010_REQ07_R07_OUTPUT_CONTROL
	.comm	_TM6010_REQ08_RE2_POWER_DOWN_CTRL1,4,2 ## @TM6010_REQ08_RE2_POWER_DOWN_CTRL1
	.comm	_TM6010_REQ08_RE6_POWER_DOWN_CTRL2,4,2 ## @TM6010_REQ08_RE6_POWER_DOWN_CTRL2
	.comm	_TM6010_REQ08_RF1_AADC_POWER_DOWN,4,2 ## @TM6010_REQ08_RF1_AADC_POWER_DOWN
	.comm	_TM6010_REQ07_RFE_POWER_DOWN,4,2 ## @TM6010_REQ07_RFE_POWER_DOWN
	.comm	_TM6000_REQ07_RE3_VADC_INP_LPF_SEL1,4,2 ## @TM6000_REQ07_RE3_VADC_INP_LPF_SEL1
	.comm	_TM6000_REQ07_RE5_VADC_INP_LPF_SEL2,4,2 ## @TM6000_REQ07_RE5_VADC_INP_LPF_SEL2
	.comm	_TM6000_REQ07_RE8_VADC_PWDOWN_CTL,4,2 ## @TM6000_REQ07_RE8_VADC_PWDOWN_CTL
	.comm	_REQ_03_SET_GET_MCU_PIN,4,2     ## @REQ_03_SET_GET_MCU_PIN
	.comm	_TM6000_REQ07_REB_VADC_AADC_MODE,4,2 ## @TM6000_REQ07_REB_VADC_AADC_MODE
	.comm	_TM6000_INPUT_SVIDEO,8,3        ## @TM6000_INPUT_SVIDEO
	.comm	_svideo_stds,8,3                ## @svideo_stds
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_composite_stds,8,3             ## @composite_stds
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.tm6000_set_standard
l_switch.table.tm6000_set_standard:
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	16                              ## 0x10

	.p2align	2                               ## @switch.table.tm6000_set_standard.1
l_switch.table.tm6000_set_standard.1:
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.tm6000_set_standard.2
l_switch.table.tm6000_set_standard.2:
	.long	15                              ## 0xf
	.long	0                               ## 0x0
	.long	15                              ## 0xf

	.p2align	2                               ## @switch.table.tm6000_set_standard.3
l_switch.table.tm6000_set_standard.3:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm6000_set_standard            ; -- Begin function tm6000_set_standard
	.p2align	2
_tm6000_set_standard:                   ; @tm6000_set_standard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_tm6000_get_std_res
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_2
; %bb.1:
	add	x25, x19, #24
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #48]
	ldr	x9, [x19]
	mov	w10, #24
	madd	x25, x9, x10, x8
LBB0_3:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x26, _TM6010@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TM6010@GOTPAGEOFF]
	ldr	x10, [x26]
	ldr	w9, [x25]
	cmp	x8, x10
	b.ne	LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _TM6010_REQ08_RE3_ADC_IN1_SEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TM6010_REQ08_RE3_ADC_IN1_SEL@GOTPAGEOFF]
	mov	w21, #15
	cmp	w9, #130
	b.eq	LBB0_15
; %bb.5:
	cmp	w9, #129
	b.eq	LBB0_16
; %bb.6:
	cmp	w9, #128
	b.ne	LBB0_18
; %bb.7:
	mov	w21, #15
	mov	w20, #139
	mov	w22, #232
	mov	w23, #224
	mov	w24, #241
	mov	w2, #248
Lloh4:
	adrp	x8, _TM6010_REQ08_RE3_ADC_IN1_SEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TM6010_REQ08_RE3_ADC_IN1_SEL@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
	sub	w8, w9, #128
	cmp	w8, #2
	b.hi	LBB0_10
; %bb.9:
	sbfiz	x22, x8, #2, #32
Lloh6:
	adrp	x8, l_switch.table.tm6000_set_standard@PAGE
Lloh7:
	add	x8, x8, l_switch.table.tm6000_set_standard@PAGEOFF
	ldr	w2, [x8, x22]
Lloh8:
	adrp	x8, l_switch.table.tm6000_set_standard.1@PAGE
Lloh9:
	add	x8, x8, l_switch.table.tm6000_set_standard.1@PAGEOFF
	ldr	w20, [x8, x22]
Lloh10:
	adrp	x8, l_switch.table.tm6000_set_standard.2@PAGE
Lloh11:
	add	x8, x8, l_switch.table.tm6000_set_standard.2@PAGEOFF
	ldr	w21, [x8, x22]
Lloh12:
	adrp	x23, l_switch.table.tm6000_set_standard.3@PAGE
Lloh13:
	add	x23, x23, l_switch.table.tm6000_set_standard.3@PAGEOFF
Lloh14:
	adrp	x8, _TM6000_REQ07_RE3_VADC_INP_LPF_SEL1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TM6000_REQ07_RE3_VADC_INP_LPF_SEL1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tm6000_set_reg
Lloh17:
	adrp	x8, _TM6000_REQ07_RE5_VADC_INP_LPF_SEL2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TM6000_REQ07_RE5_VADC_INP_LPF_SEL2@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_tm6000_set_reg
Lloh20:
	adrp	x8, _TM6000_REQ07_RE8_VADC_PWDOWN_CTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TM6000_REQ07_RE8_VADC_PWDOWN_CTL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_tm6000_set_reg
Lloh23:
	adrp	x8, _REQ_03_SET_GET_MCU_PIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REQ_03_SET_GET_MCU_PIN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x25, #16]
	ldr	w8, [x23, x22]
	str	x8, [sp]
	mov	x0, x19
	bl	_tm6000_set_reg
LBB0_10:
	ldr	w8, [x25, #4]
	cmp	w8, #133
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #134
	b.ne	LBB0_27
; %bb.12:
Lloh26:
	adrp	x8, _TM6000_REQ07_REB_VADC_AADC_MODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TM6000_REQ07_REB_VADC_AADC_MODE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_14
LBB0_13:
Lloh29:
	adrp	x8, _TM6000_REQ07_REB_VADC_AADC_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TM6000_REQ07_REB_VADC_AADC_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
LBB0_14:
	mov	w3, #15
	bl	_tm6000_set_reg_mask
	b	LBB0_27
LBB0_15:
	mov	w20, #139
	mov	w22, #232
	mov	w23, #224
	mov	w24, #241
	mov	w2, #244
	b	LBB0_17
LBB0_16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #252
	bl	_tm6000_set_reg
	mov	w21, #0
	mov	w20, #138
	mov	w22, #224
	mov	w23, #240
	mov	w24, #242
	mov	w2, #248
Lloh32:
	adrp	x8, _TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tm6000_set_reg
Lloh34:
	adrp	x8, _TM6010_REQ08_REA_BUFF_DRV_CTRL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TM6010_REQ08_REA_BUFF_DRV_CTRL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_tm6000_set_reg
Lloh37:
	adrp	x8, _TM6010_REQ08_REB_SIF_GAIN_CTRL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TM6010_REQ08_REB_SIF_GAIN_CTRL@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_tm6000_set_reg
Lloh40:
	adrp	x8, _TM6010_REQ08_REC_REVERSE_YC_CTRL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TM6010_REQ08_REC_REVERSE_YC_CTRL@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #194
	bl	_tm6000_set_reg
Lloh43:
	adrp	x8, _TM6010_REQ08_RED_GAIN_SEL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TM6010_REQ08_RED_GAIN_SEL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_tm6000_set_reg
	b	LBB0_19
LBB0_18:
	mov	w20, #138
LBB0_19:
	ldr	w8, [x25, #4]
	mov	w23, #240
	mov	w22, #252
	sub	w8, w8, #131
	cmp	w8, #3
	b.hi	LBB0_26
; %bb.20:
	mov	w2, #0
	mov	w24, #16
Lloh46:
	adrp	x9, lJTI0_0@PAGE
Lloh47:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_21
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_21:
	orr	w20, w20, #0x40
Lloh48:
	adrp	x8, _TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #247
	b	LBB0_23
LBB0_22:
	orr	w20, w20, #0x40
Lloh51:
	adrp	x8, _TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _TM6010_REQ08_RE4_ADC_IN2_SEL@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #243
LBB0_23:
	bl	_tm6000_set_reg
	mov	w21, #8
	mov	w23, #242
	mov	w22, #254
	mov	w24, #48
	mov	w2, #2
	b	LBB0_25
LBB0_24:
	mov	w23, #240
	mov	w22, #252
	mov	w24, #16
	mov	w2, #8
LBB0_25:
Lloh54:
	adrp	x8, _TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG@GOTPAGE
Lloh55:
	ldr	x8, [x8, _TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #15
	bl	_tm6000_set_reg_mask
Lloh57:
	adrp	x8, _TM6010_REQ07_R07_OUTPUT_CONTROL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _TM6010_REQ07_R07_OUTPUT_CONTROL@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	mov	w3, #240
	bl	_tm6000_set_reg_mask
LBB0_26:
Lloh60:
	adrp	x8, _TM6010_REQ08_RE2_POWER_DOWN_CTRL1@GOTPAGE
Lloh61:
	ldr	x8, [x8, _TM6010_REQ08_RE2_POWER_DOWN_CTRL1@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_tm6000_set_reg
Lloh63:
	adrp	x8, _TM6010_REQ08_RE6_POWER_DOWN_CTRL2@GOTPAGE
Lloh64:
	ldr	x8, [x8, _TM6010_REQ08_RE6_POWER_DOWN_CTRL2@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_tm6000_set_reg
Lloh66:
	adrp	x8, _TM6010_REQ08_RF1_AADC_POWER_DOWN@GOTPAGE
Lloh67:
	ldr	x8, [x8, _TM6010_REQ08_RF1_AADC_POWER_DOWN@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_tm6000_set_reg
Lloh69:
	adrp	x8, _TM6010_REQ07_RFE_POWER_DOWN@GOTPAGE
Lloh70:
	ldr	x8, [x8, _TM6010_REQ07_RFE_POWER_DOWN@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_tm6000_set_reg
LBB0_27:
	ldr	x8, [x25, #8]
Lloh72:
	adrp	x9, _TM6000_INPUT_SVIDEO@GOTPAGE
Lloh73:
	ldr	x9, [x9, _TM6000_INPUT_SVIDEO@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.28:
Lloh75:
	adrp	x21, _svideo_stds@GOTPAGE
Lloh76:
	ldr	x21, [x21, _svideo_stds@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_36
; %bb.29:
	mov	x22, #0
	mov	x20, #0
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	ldr	x0, [x21]
	ldr	w9, [x0, x22]
	tst	w9, w8
	b.ne	LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x20, w0, sxtw
	b.lt	LBB0_30
	b	LBB0_36
LBB0_32:
Lloh77:
	adrp	x21, _composite_stds@GOTPAGE
Lloh78:
	ldr	x21, [x21, _composite_stds@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_36
; %bb.33:
	mov	x22, #0
	mov	x20, #0
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	ldr	x0, [x21]
	ldr	w9, [x0, x22]
	tst	w9, w8
	b.ne	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x20, w0, sxtw
	b.lt	LBB0_34
LBB0_36:
Lloh79:
	adrp	x8, _EINVAL@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_42
LBB0_37:
	add	x8, x0, w20, uxtw #3
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_tm6000_load_std
	tbnz	w0, #31, LBB0_42
; %bb.38:
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_41
; %bb.39:
	ldr	w8, [x25, #4]
	sub	w8, w8, #131
	cmp	w8, #1
	b.hi	LBB0_41
; %bb.40:
	mov	x0, x19
	bl	_tm6000_set_audio_std
LBB0_41:
	mov	w0, #40
	bl	_msleep
	mov	w0, #0
LBB0_42:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_22-LBB0_21)>>2
	.byte	(LBB0_24-LBB0_21)>>2
	.byte	(LBB0_25-LBB0_21)>>2
                                        ; -- End function
	.comm	_TM6010,8,3                     ; @TM6010
	.comm	_TM6010_REQ08_RE3_ADC_IN1_SEL,4,2 ; @TM6010_REQ08_RE3_ADC_IN1_SEL
	.comm	_TM6010_REQ08_REA_BUFF_DRV_CTRL,4,2 ; @TM6010_REQ08_REA_BUFF_DRV_CTRL
	.comm	_TM6010_REQ08_REB_SIF_GAIN_CTRL,4,2 ; @TM6010_REQ08_REB_SIF_GAIN_CTRL
	.comm	_TM6010_REQ08_REC_REVERSE_YC_CTRL,4,2 ; @TM6010_REQ08_REC_REVERSE_YC_CTRL
	.comm	_TM6010_REQ08_RED_GAIN_SEL,4,2  ; @TM6010_REQ08_RED_GAIN_SEL
	.comm	_TM6010_REQ08_RE4_ADC_IN2_SEL,4,2 ; @TM6010_REQ08_RE4_ADC_IN2_SEL
	.comm	_TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG,4,2 ; @TM6010_REQ08_RF0_DAUDIO_INPUT_CONFIG
	.comm	_TM6010_REQ07_R07_OUTPUT_CONTROL,4,2 ; @TM6010_REQ07_R07_OUTPUT_CONTROL
	.comm	_TM6010_REQ08_RE2_POWER_DOWN_CTRL1,4,2 ; @TM6010_REQ08_RE2_POWER_DOWN_CTRL1
	.comm	_TM6010_REQ08_RE6_POWER_DOWN_CTRL2,4,2 ; @TM6010_REQ08_RE6_POWER_DOWN_CTRL2
	.comm	_TM6010_REQ08_RF1_AADC_POWER_DOWN,4,2 ; @TM6010_REQ08_RF1_AADC_POWER_DOWN
	.comm	_TM6010_REQ07_RFE_POWER_DOWN,4,2 ; @TM6010_REQ07_RFE_POWER_DOWN
	.comm	_TM6000_REQ07_RE3_VADC_INP_LPF_SEL1,4,2 ; @TM6000_REQ07_RE3_VADC_INP_LPF_SEL1
	.comm	_TM6000_REQ07_RE5_VADC_INP_LPF_SEL2,4,2 ; @TM6000_REQ07_RE5_VADC_INP_LPF_SEL2
	.comm	_TM6000_REQ07_RE8_VADC_PWDOWN_CTL,4,2 ; @TM6000_REQ07_RE8_VADC_PWDOWN_CTL
	.comm	_REQ_03_SET_GET_MCU_PIN,4,2     ; @REQ_03_SET_GET_MCU_PIN
	.comm	_TM6000_REQ07_REB_VADC_AADC_MODE,4,2 ; @TM6000_REQ07_REB_VADC_AADC_MODE
	.comm	_TM6000_INPUT_SVIDEO,8,3        ; @TM6000_INPUT_SVIDEO
	.comm	_svideo_stds,8,3                ; @svideo_stds
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_composite_stds,8,3             ; @composite_stds
	.p2align	2                               ; @switch.table.tm6000_set_standard
l_switch.table.tm6000_set_standard:
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	16                              ; 0x10

	.p2align	2                               ; @switch.table.tm6000_set_standard.1
l_switch.table.tm6000_set_standard.1:
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.tm6000_set_standard.2
l_switch.table.tm6000_set_standard.2:
	.long	15                              ; 0xf
	.long	0                               ; 0x0
	.long	15                              ; 0xf

	.p2align	2                               ; @switch.table.tm6000_set_standard.3
l_switch.table.tm6000_set_standard.3:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0

.subsections_via_symbols
