	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_set_tvnorm                ## -- Begin function cx88_set_tvnorm
	.p2align	4, 0x90
_cx88_set_tvnorm:                       ## @cx88_set_tvnorm
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	%esi, (%rdi)
	movl	%esi, %edi
	callq	_norm_fsc8
	movl	%eax, %r15d
	movq	_xtal@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_V4L2_STD_NTSC_M_JP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_VideoFormatNTSCJapan@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	_V4L2_STD_NTSC_443@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_VideoFormatNTSC443@GOTPCREL(%rip), %rax
LBB0_15:
	movl	%r15d, %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
LBB0_17:
	movl	(%rax), %r12d
	movl	(%r13), %edi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	callq	_v4l2_norm_to_name
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_dprintk
	addq	$16, %rsp
	movq	%r13, %rdi
	movl	$2, %esi
	movl	%r15d, %edx
	movq	%r15, %r13
	callq	_set_pll
	movq	_MO_INPUT_FORMAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_cx_read
	andl	$15, %eax
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%rbx), %edi
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%r12d, %edx
	orl	$1024, %edx                     ## imm = 0x400
	testl	%eax, %eax
	cmovnel	%r12d, %edx
	movl	$1039, %esi                     ## imm = 0x40F
	callq	_cx_andor
	movq	_MO_OUTPUT_FORMAT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_cx_read
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_cx_write
	shll	$17, %r14d
	movl	%r14d, %edi
	movq	%r13, %rbx
	movl	%ebx, %esi
	callq	_do_div
	movq	_MO_SCONV_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_cx_read
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_cx_write
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	shll	$22, %r12d
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r13, %r15
	callq	_do_div
	movq	_MO_SUB_STEP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cx_read
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r14), %edi
	movl	%r12d, %esi
	callq	_cx_write
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	shll	$22, %ebx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_do_div
	movq	_MO_SUB_STEP_DR@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cx_read
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movl	%r15d, %eax
	shll	$6, %eax
	leal	(%rax,%r13), %ecx
	movq	%r13, %r12
	movslq	%ecx, %rcx
	imulq	$1801439851, %rcx, %rcx         ## imm = 0x6B5FCA6B
	movq	%rcx, %rdx
	sarq	$55, %rdx
	shrq	$63, %rcx
	leal	(%rdx,%rcx), %r14d
	addl	$21, %r14d
	leal	(%rax,%r13,4), %eax
	cltq
	imulq	$1801439851, %rax, %rax         ## imm = 0x6B5FCA6B
	movq	%rax, %rcx
	sarq	$55, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %r15d
	addl	$15, %r15d
	movl	%r14d, %ebx
	shll	$8, %ebx
	orl	%r15d, %ebx
	movq	_MO_AGC_BURST@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_cx_read
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_norm_htotal
	movl	%r12d, %r14d
	imull	%eax, %r14d
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_do_div
	movq	_HLNotchFilter4xFsc@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$11, %ebx
	orl	%r14d, %ebx
	movq	_MO_HTOTAL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_cx_read
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movq	_MO_VBI_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_norm_vbipack
	orl	$20480, %eax                    ## imm = 0x5000
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_cx_write
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$320, %esi                      ## imm = 0x140
	movl	$240, %edx
	callq	_cx88_set_scale
	movq	%rbx, %rdi
	callq	_set_tvaudio
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	callq	_call_all
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_VideoFormatPALM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_V4L2_STD_PAL_N@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_VideoFormatPALN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_V4L2_STD_PAL_Nc@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_VideoFormatPALNC@GOTPCREL(%rip), %rax
LBB0_6:
	movl	%r15d, %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	$471793672, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x1C1F0008
	jmp	LBB0_17
LBB0_11:
	movq	_V4L2_STD_PAL_60@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_VideoFormatPAL60@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.14:
	movq	_VideoFormatNTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movl	$35250000, %eax                 ## imm = 0x219DF50
	cmovel	%r15d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$34000000, %eax                 ## imm = 0x206CC80
	cmovel	%r15d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_VideoFormatSECAM@GOTPCREL(%rip), %rax
	cmoveq	_VideoFormatPAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_xtal,4,2                       ## @xtal
	.comm	_V4L2_STD_NTSC_M_JP,4,2         ## @V4L2_STD_NTSC_M_JP
	.comm	_VideoFormatNTSCJapan,4,2       ## @VideoFormatNTSCJapan
	.comm	_V4L2_STD_NTSC_443,4,2          ## @V4L2_STD_NTSC_443
	.comm	_VideoFormatNTSC443,4,2         ## @VideoFormatNTSC443
	.comm	_V4L2_STD_PAL_M,4,2             ## @V4L2_STD_PAL_M
	.comm	_VideoFormatPALM,4,2            ## @VideoFormatPALM
	.comm	_V4L2_STD_PAL_N,4,2             ## @V4L2_STD_PAL_N
	.comm	_VideoFormatPALN,4,2            ## @VideoFormatPALN
	.comm	_V4L2_STD_PAL_Nc,4,2            ## @V4L2_STD_PAL_Nc
	.comm	_VideoFormatPALNC,4,2           ## @VideoFormatPALNC
	.comm	_V4L2_STD_PAL_60,4,2            ## @V4L2_STD_PAL_60
	.comm	_VideoFormatPAL60,4,2           ## @VideoFormatPAL60
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_VideoFormatNTSC,4,2            ## @VideoFormatNTSC
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_VideoFormatSECAM,4,2           ## @VideoFormatSECAM
	.comm	_VideoFormatPAL,4,2             ## @VideoFormatPAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_tvnorm: \"%s\" fsc8=%d adc=%d vdec=%d db/dr=%d/%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"set_tvnorm: MO_INPUT_FORMAT  0x%08x [old=0x%08x]\n"

	.comm	_MO_INPUT_FORMAT,4,2            ## @MO_INPUT_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"set_tvnorm: MO_OUTPUT_FORMAT 0x%08x [old=0x%08x]\n"

	.comm	_MO_OUTPUT_FORMAT,4,2           ## @MO_OUTPUT_FORMAT
L_.str.3:                               ## @.str.3
	.asciz	"set_tvnorm: MO_SCONV_REG     0x%08x [old=0x%08x]\n"

	.comm	_MO_SCONV_REG,4,2               ## @MO_SCONV_REG
L_.str.4:                               ## @.str.4
	.asciz	"set_tvnorm: MO_SUB_STEP      0x%08x [old=0x%08x]\n"

	.comm	_MO_SUB_STEP,4,2                ## @MO_SUB_STEP
L_.str.5:                               ## @.str.5
	.asciz	"set_tvnorm: MO_SUB_STEP_DR   0x%08x [old=0x%08x]\n"

	.comm	_MO_SUB_STEP_DR,4,2             ## @MO_SUB_STEP_DR
L_.str.6:                               ## @.str.6
	.asciz	"set_tvnorm: MO_AGC_BURST     0x%08x [old=0x%08x,bdelay=%d,agcdelay=%d]\n"

	.comm	_MO_AGC_BURST,4,2               ## @MO_AGC_BURST
	.comm	_HLNotchFilter4xFsc,4,2         ## @HLNotchFilter4xFsc
L_.str.7:                               ## @.str.7
	.asciz	"set_tvnorm: MO_HTOTAL        0x%08x [old=0x%08x,htotal=%d]\n"

	.comm	_MO_HTOTAL,4,2                  ## @MO_HTOTAL
	.comm	_MO_VBI_PACKET,4,2              ## @MO_VBI_PACKET
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_s_std,4,2                      ## @s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_set_tvnorm                ; -- Begin function cx88_set_tvnorm
	.p2align	2
_cx88_set_tvnorm:                       ; @cx88_set_tvnorm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w22, #8
	movk	w22, #6175, lsl #16
	str	w1, [x0]
	mov	x0, x1
	bl	_norm_fsc8
	mov	x21, x0
Lloh0:
	adrp	x8, _xtal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xtal@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _V4L2_STD_NTSC_M_JP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_NTSC_M_JP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x26, _V4L2_STD_SECAM@GOTPAGE
Lloh7:
	ldr	x26, [x26, _V4L2_STD_SECAM@GOTPAGEOFF]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _VideoFormatNTSCJapan@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VideoFormatNTSCJapan@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x8, _V4L2_STD_NTSC_443@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_STD_NTSC_443@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.3:
Lloh13:
	adrp	x8, _VideoFormatNTSC443@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VideoFormatNTSC443@GOTPAGEOFF]
LBB0_4:
	mov	x25, x21
	mov	x27, x21
LBB0_5:
	ldr	w23, [x8]
	ldr	w0, [x20]
	bl	_v4l2_norm_to_name
	mov	x2, x0
	stp	x27, x25, [sp, #16]
	stp	x24, x21, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x21
	bl	_dprintk
	mov	x0, x20
	mov	w1, #2
	mov	x2, x21
	bl	_set_pll
Lloh17:
	adrp	x28, _MO_INPUT_FORMAT@GOTPAGE
Lloh18:
	ldr	x28, [x28, _MO_INPUT_FORMAT@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_cx_read
	and	w3, w0, #0xf
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_dprintk
	ldr	w0, [x28]
	ldr	w8, [x26]
	orr	w9, w23, #0x400
	tst	w8, w19
	csel	w2, w9, w23, eq
	mov	w1, #1039
	bl	_cx_andor
Lloh21:
	adrp	x23, _MO_OUTPUT_FORMAT@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MO_OUTPUT_FORMAT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	mov	x3, x0
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_dprintk
	ldr	w0, [x23]
	mov	x1, x22
	bl	_cx_write
	lsl	w22, w24, #17
	mov	x0, x22
	mov	x1, x21
	bl	_do_div
Lloh25:
	adrp	x23, _MO_SCONV_REG@GOTPAGE
Lloh26:
	ldr	x23, [x23, _MO_SCONV_REG@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	mov	x3, x0
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_dprintk
	ldr	w0, [x23]
	mov	x1, x22
	bl	_cx_write
	lsl	w22, w27, #22
	mov	x0, x22
	mov	x1, x21
	bl	_do_div
Lloh29:
	adrp	x23, _MO_SUB_STEP@GOTPAGE
Lloh30:
	ldr	x23, [x23, _MO_SUB_STEP@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	mov	x3, x0
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_dprintk
	ldr	w0, [x23]
	mov	x1, x22
	bl	_cx_write
	lsl	w22, w25, #22
	mov	x0, x22
	mov	x1, x21
	bl	_do_div
Lloh33:
	adrp	x23, _MO_SUB_STEP_DR@GOTPAGE
Lloh34:
	ldr	x23, [x23, _MO_SUB_STEP_DR@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	mov	x3, x0
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_dprintk
	ldr	w0, [x23]
	mov	x1, x22
	bl	_cx_write
	add	w8, w21, w21, lsl #6
	mov	w9, #51819
	movk	w9, #27487, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #55
	add	w8, w8, w10
	add	w23, w8, #21
	add	w8, w21, w21, lsl #4
	lsl	w8, w8, #2
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #55
	add	w8, w8, w9
	add	w24, w8, #15
	orr	w22, w24, w23, lsl #8
Lloh37:
	adrp	x25, _MO_AGC_BURST@GOTPAGE
Lloh38:
	ldr	x25, [x25, _MO_AGC_BURST@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_cx_read
	mov	x3, x0
	stp	x23, x24, [sp]
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_dprintk
	ldr	w0, [x25]
	mov	x1, x22
	bl	_cx_write
	mov	x0, x19
	bl	_norm_htotal
	mul	w22, w0, w21
	mov	x0, x22
	mov	x1, x21
	bl	_do_div
Lloh41:
	adrp	x8, _HLNotchFilter4xFsc@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HLNotchFilter4xFsc@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	orr	w21, w22, w8, lsl #11
Lloh44:
	adrp	x23, _MO_HTOTAL@GOTPAGE
Lloh45:
	ldr	x23, [x23, _MO_HTOTAL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	mov	x3, x0
	str	x22, [sp]
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_dprintk
	ldr	w0, [x23]
	mov	x1, x21
	bl	_cx_write
Lloh48:
	adrp	x8, _MO_VBI_PACKET@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MO_VBI_PACKET@GOTPAGEOFF]
Lloh50:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_norm_vbipack
	mov	w8, #20480
	orr	w1, w0, w8
	mov	x0, x21
	bl	_cx_write
Lloh51:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh52:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh53:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #320
	mov	w2, #240
	bl	_cx88_set_scale
	mov	x0, x20
	bl	_set_tvaudio
Lloh54:
	adrp	x8, _s_std@GOTPAGE
Lloh55:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x20
	mov	x3, x19
	bl	_call_all
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
Lloh57:
	adrp	x8, _V4L2_STD_PAL_M@GOTPAGE
Lloh58:
	ldr	x8, [x8, _V4L2_STD_PAL_M@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.7:
Lloh60:
	adrp	x8, _VideoFormatPALM@GOTPAGE
Lloh61:
	ldr	x8, [x8, _VideoFormatPALM@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh62:
	adrp	x8, _V4L2_STD_PAL_N@GOTPAGE
Lloh63:
	ldr	x8, [x8, _V4L2_STD_PAL_N@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.9:
Lloh65:
	adrp	x8, _VideoFormatPALN@GOTPAGE
Lloh66:
	ldr	x8, [x8, _VideoFormatPALN@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh67:
	adrp	x8, _V4L2_STD_PAL_Nc@GOTPAGE
Lloh68:
	ldr	x8, [x8, _V4L2_STD_PAL_Nc@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_13
; %bb.11:
Lloh70:
	adrp	x8, _VideoFormatPALNC@GOTPAGE
Lloh71:
	ldr	x8, [x8, _VideoFormatPALNC@GOTPAGEOFF]
LBB0_12:
	mov	x25, x21
	mov	x27, x21
	mov	w22, #8
	movk	w22, #7199, lsl #16
	b	LBB0_5
LBB0_13:
Lloh72:
	adrp	x8, _V4L2_STD_PAL_60@GOTPAGE
Lloh73:
	ldr	x8, [x8, _V4L2_STD_PAL_60@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_15
; %bb.14:
Lloh75:
	adrp	x8, _VideoFormatPAL60@GOTPAGE
Lloh76:
	ldr	x8, [x8, _VideoFormatPAL60@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
Lloh77:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh78:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_17
; %bb.16:
Lloh80:
	adrp	x8, _VideoFormatNTSC@GOTPAGE
Lloh81:
	ldr	x8, [x8, _VideoFormatNTSC@GOTPAGEOFF]
	b	LBB0_4
LBB0_17:
	ldr	w8, [x26]
	tst	w8, w19
	mov	w8, #57168
	movk	w8, #537, lsl #16
	csel	w25, w21, w8, eq
	mov	w8, #52352
	movk	w8, #518, lsl #16
	csel	w27, w21, w8, eq
Lloh82:
	adrp	x8, _VideoFormatSECAM@GOTPAGE
Lloh83:
	ldr	x8, [x8, _VideoFormatSECAM@GOTPAGEOFF]
Lloh84:
	adrp	x9, _VideoFormatPAL@GOTPAGE
Lloh85:
	ldr	x9, [x9, _VideoFormatPAL@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh82, Lloh83
	.cfi_endproc
                                        ; -- End function
	.comm	_xtal,4,2                       ; @xtal
	.comm	_V4L2_STD_NTSC_M_JP,4,2         ; @V4L2_STD_NTSC_M_JP
	.comm	_VideoFormatNTSCJapan,4,2       ; @VideoFormatNTSCJapan
	.comm	_V4L2_STD_NTSC_443,4,2          ; @V4L2_STD_NTSC_443
	.comm	_VideoFormatNTSC443,4,2         ; @VideoFormatNTSC443
	.comm	_V4L2_STD_PAL_M,4,2             ; @V4L2_STD_PAL_M
	.comm	_VideoFormatPALM,4,2            ; @VideoFormatPALM
	.comm	_V4L2_STD_PAL_N,4,2             ; @V4L2_STD_PAL_N
	.comm	_VideoFormatPALN,4,2            ; @VideoFormatPALN
	.comm	_V4L2_STD_PAL_Nc,4,2            ; @V4L2_STD_PAL_Nc
	.comm	_VideoFormatPALNC,4,2           ; @VideoFormatPALNC
	.comm	_V4L2_STD_PAL_60,4,2            ; @V4L2_STD_PAL_60
	.comm	_VideoFormatPAL60,4,2           ; @VideoFormatPAL60
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_VideoFormatNTSC,4,2            ; @VideoFormatNTSC
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_VideoFormatSECAM,4,2           ; @VideoFormatSECAM
	.comm	_VideoFormatPAL,4,2             ; @VideoFormatPAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_tvnorm: \"%s\" fsc8=%d adc=%d vdec=%d db/dr=%d/%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"set_tvnorm: MO_INPUT_FORMAT  0x%08x [old=0x%08x]\n"

	.comm	_MO_INPUT_FORMAT,4,2            ; @MO_INPUT_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"set_tvnorm: MO_OUTPUT_FORMAT 0x%08x [old=0x%08x]\n"

	.comm	_MO_OUTPUT_FORMAT,4,2           ; @MO_OUTPUT_FORMAT
l_.str.3:                               ; @.str.3
	.asciz	"set_tvnorm: MO_SCONV_REG     0x%08x [old=0x%08x]\n"

	.comm	_MO_SCONV_REG,4,2               ; @MO_SCONV_REG
l_.str.4:                               ; @.str.4
	.asciz	"set_tvnorm: MO_SUB_STEP      0x%08x [old=0x%08x]\n"

	.comm	_MO_SUB_STEP,4,2                ; @MO_SUB_STEP
l_.str.5:                               ; @.str.5
	.asciz	"set_tvnorm: MO_SUB_STEP_DR   0x%08x [old=0x%08x]\n"

	.comm	_MO_SUB_STEP_DR,4,2             ; @MO_SUB_STEP_DR
l_.str.6:                               ; @.str.6
	.asciz	"set_tvnorm: MO_AGC_BURST     0x%08x [old=0x%08x,bdelay=%d,agcdelay=%d]\n"

	.comm	_MO_AGC_BURST,4,2               ; @MO_AGC_BURST
	.comm	_HLNotchFilter4xFsc,4,2         ; @HLNotchFilter4xFsc
l_.str.7:                               ; @.str.7
	.asciz	"set_tvnorm: MO_HTOTAL        0x%08x [old=0x%08x,htotal=%d]\n"

	.comm	_MO_HTOTAL,4,2                  ; @MO_HTOTAL
	.comm	_MO_VBI_PACKET,4,2              ; @MO_VBI_PACKET
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_s_std,4,2                      ; @s_std
.subsections_via_symbols
