	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rsi, (%rdi)
	je	LBB0_25
## %bb.1:
	movq	%rdi, %r12
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	addq	$4, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	24(%r12), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_25
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%r12)
	movq	%rbx, %rdi
	callq	_norm_fsc8
	movl	%eax, %r13d
	movq	_xtal@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_V4L2_STD_NTSC_M_JP@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_10
## %bb.8:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_VideoFormatNTSCJapan@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_V4L2_STD_NTSC_443@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_12
## %bb.11:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_VideoFormatNTSC443@GOTPCREL(%rip), %rax
LBB0_9:
	movl	%r13d, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_24:
	movl	(%rax), %ebx
	movq	(%r12), %rdi
	callq	_v4l2_norm_to_name
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	movl	%eax, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_dprintk
	addq	$16, %rsp
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%r13d, %edx
	callq	_set_pll
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	_MO_INPUT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	andl	$15, %eax
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_MO_INPUT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	orl	$1024, %edx                     ## imm = 0x400
	testq	%rax, %rax
	cmovnel	%ebx, %edx
	movl	$1039, %esi                     ## imm = 0x40F
	callq	_cx_andor
	movq	_MO_OUTPUT_FORMAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_cx_read
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_cx_write
	shll	$17, %r14d
	movl	%r14d, %edi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_do_div
	movq	_MO_SCONV_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %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	(%r13), %edi
	movl	%r14d, %esi
	callq	_cx_write
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	shll	$22, %r14d
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%rbx, %r13
	callq	_do_div
	movq	_MO_SUB_STEP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_cx_read
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_cx_write
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	shll	$22, %ebx
	movl	%ebx, %edi
	movl	%r13d, %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	%r13d, %eax
	shll	$6, %eax
	leal	(%rax,%r13), %ecx
	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), %ebx
	addl	$15, %ebx
	movl	%r14d, %r13d
	shll	$8, %r13d
	orl	%ebx, %r13d
	movq	_MO_AGC_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_MO_AGC_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_cx_write
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_norm_htotal
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, %ebx
	imull	%eax, %ebx
	movl	%ebx, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_do_div
	movq	_MO_HTOTAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cx_read
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r14), %edi
	movl	$2047, %esi                     ## imm = 0x7FF
	movl	%ebx, %edx
	callq	_cx_andor
	movq	_MO_VBI_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	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	%r12, %rdi
	movl	$320, %esi                      ## imm = 0x140
	movl	$240, %edx
	callq	_cx88_set_scale
	movq	%r12, %rdi
	callq	_set_tvaudio
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rcx
	callq	_call_all
	movl	8(%r12), %edi
	movq	_VideoFormatSECAM@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	sete	%sil
	callq	_v4l2_ctrl_grab
LBB0_25:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_15
## %bb.13:
	movq	_VideoFormatPALM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_15:
	movq	_V4L2_STD_PAL_N@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_VideoFormatPALN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	movq	_V4L2_STD_PAL_Nc@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_19
## %bb.18:
	movq	_VideoFormatPALNC@GOTPCREL(%rip), %rax
LBB0_14:
	movl	%r13d, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$471793672, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x1C1F0008
	jmp	LBB0_24
LBB0_19:
	movq	_V4L2_STD_PAL_60@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_21
## %bb.20:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_VideoFormatPAL60@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_21:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	je	LBB0_23
## %bb.22:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_VideoFormatNTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_23:
	movl	$404684808, -44(%rbp)           ## 4-byte Folded Spill
                                        ## imm = 0x181F0008
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	movl	$35250000, %eax                 ## imm = 0x219DF50
	cmovel	%r13d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$34000000, %eax                 ## imm = 0x206CC80
	cmovel	%r13d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_VideoFormatSECAM@GOTPCREL(%rip), %rax
	cmoveq	_VideoFormatPAL@GOTPCREL(%rip), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_xtal,4,2                       ## @xtal
	.comm	_V4L2_STD_NTSC_M_JP,8,3         ## @V4L2_STD_NTSC_M_JP
	.comm	_VideoFormatNTSCJapan,4,2       ## @VideoFormatNTSCJapan
	.comm	_V4L2_STD_NTSC_443,8,3          ## @V4L2_STD_NTSC_443
	.comm	_VideoFormatNTSC443,4,2         ## @VideoFormatNTSC443
	.comm	_V4L2_STD_PAL_M,8,3             ## @V4L2_STD_PAL_M
	.comm	_VideoFormatPALM,4,2            ## @VideoFormatPALM
	.comm	_V4L2_STD_PAL_N,8,3             ## @V4L2_STD_PAL_N
	.comm	_VideoFormatPALN,4,2            ## @VideoFormatPALN
	.comm	_V4L2_STD_PAL_Nc,8,3            ## @V4L2_STD_PAL_Nc
	.comm	_VideoFormatPALNC,4,2           ## @VideoFormatPALNC
	.comm	_V4L2_STD_PAL_60,8,3            ## @V4L2_STD_PAL_60
	.comm	_VideoFormatPAL60,4,2           ## @VideoFormatPAL60
	.comm	_V4L2_STD_NTSC,8,3              ## @V4L2_STD_NTSC
	.comm	_VideoFormatNTSC,4,2            ## @VideoFormatNTSC
	.comm	_V4L2_STD_SECAM,8,3             ## @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
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	_video,4,2                      ## @video
	.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
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.2:
	add	x0, x8, #4
	bl	_vb2_is_busy
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x19, #24]
	bl	_vb2_is_busy
	cbnz	x0, LBB0_6
LBB0_4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_vb2_is_busy
	cbz	x0, LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_7:
	mov	w23, #8
	movk	w23, #6175, lsl #16
	str	x20, [x19]
	mov	x0, x20
	bl	_norm_fsc8
	mov	x21, x0
Lloh3:
	adrp	x8, _xtal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xtal@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _V4L2_STD_NTSC_M_JP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_STD_NTSC_M_JP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x27, _V4L2_STD_SECAM@GOTPAGE
Lloh10:
	ldr	x27, [x27, _V4L2_STD_SECAM@GOTPAGEOFF]
	tst	x8, x20
	b.eq	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _VideoFormatNTSCJapan@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VideoFormatNTSCJapan@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh13:
	adrp	x8, _V4L2_STD_NTSC_443@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_STD_NTSC_443@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_15
; %bb.10:
Lloh16:
	adrp	x8, _VideoFormatNTSC443@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VideoFormatNTSC443@GOTPAGEOFF]
LBB0_11:
	mov	x26, x21
	mov	x28, x21
LBB0_12:
	ldr	w22, [x8]
	ldr	x0, [x19]
	bl	_v4l2_norm_to_name
	mov	x2, x0
	stp	x28, x26, [sp, #16]
	stp	x25, x21, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x21
	bl	_dprintk
	mov	x0, x19
	mov	w1, #2
	mov	x2, x21
	bl	_set_pll
Lloh20:
	adrp	x24, _MO_INPUT_FORMAT@GOTPAGE
Lloh21:
	ldr	x24, [x24, _MO_INPUT_FORMAT@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cx_read
	and	w3, w0, #0xf
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_dprintk
	ldr	w0, [x24]
	ldr	x8, [x27]
	orr	w9, w22, #0x400
	tst	x8, x20
	csel	w2, w9, w22, eq
	mov	w1, #1039
	bl	_cx_andor
Lloh24:
	adrp	x24, _MO_OUTPUT_FORMAT@GOTPAGE
Lloh25:
	ldr	x24, [x24, _MO_OUTPUT_FORMAT@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cx_read
	mov	x3, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_dprintk
	ldr	w0, [x24]
	mov	x1, x23
	bl	_cx_write
	lsl	w23, w25, #17
	mov	x0, x23
	mov	x1, x21
	bl	_do_div
Lloh28:
	adrp	x24, _MO_SCONV_REG@GOTPAGE
Lloh29:
	ldr	x24, [x24, _MO_SCONV_REG@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cx_read
	mov	x3, x0
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_dprintk
	ldr	w0, [x24]
	mov	x1, x23
	bl	_cx_write
	lsl	w23, w28, #22
	mov	x0, x23
	mov	x1, x21
	bl	_do_div
Lloh32:
	adrp	x24, _MO_SUB_STEP@GOTPAGE
Lloh33:
	ldr	x24, [x24, _MO_SUB_STEP@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cx_read
	mov	x3, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_dprintk
	ldr	w0, [x24]
	mov	x1, x23
	bl	_cx_write
	lsl	w23, w26, #22
	mov	x0, x23
	mov	x1, x21
	bl	_do_div
Lloh36:
	adrp	x24, _MO_SUB_STEP_DR@GOTPAGE
Lloh37:
	ldr	x24, [x24, _MO_SUB_STEP_DR@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_cx_read
	mov	x3, x0
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_dprintk
	ldr	w0, [x24]
	mov	x1, x23
	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	w24, 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	w25, w8, #15
	orr	w23, w25, w24, lsl #8
Lloh40:
	adrp	x26, _MO_AGC_BURST@GOTPAGE
Lloh41:
	ldr	x26, [x26, _MO_AGC_BURST@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_cx_read
	mov	x3, x0
	stp	x24, x25, [sp]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_dprintk
	ldr	w0, [x26]
	mov	x1, x23
	bl	_cx_write
	mov	x0, x20
	bl	_norm_htotal
	mul	w23, w0, w21
	mov	x0, x23
	mov	x1, x21
	bl	_do_div
Lloh44:
	adrp	x21, _MO_HTOTAL@GOTPAGE
Lloh45:
	ldr	x21, [x21, _MO_HTOTAL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_cx_read
	mov	x3, x0
	str	x23, [sp]
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_dprintk
	ldr	w0, [x21]
	mov	w1, #2047
	mov	x2, x23
	bl	_cx_andor
Lloh48:
	adrp	x8, _MO_VBI_PACKET@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MO_VBI_PACKET@GOTPAGEOFF]
Lloh50:
	ldr	w21, [x8]
	mov	x0, x20
	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, x19
	mov	w1, #320
	mov	w2, #240
	bl	_cx88_set_scale
	mov	x0, x19
	bl	_set_tvaudio
Lloh54:
	adrp	x8, _video@GOTPAGE
Lloh55:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _s_std@GOTPAGE
Lloh58:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_call_all
	ldr	w0, [x19, #8]
Lloh60:
	adrp	x8, _VideoFormatSECAM@GOTPAGE
Lloh61:
	ldr	x8, [x8, _VideoFormatSECAM@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w1, eq
	bl	_v4l2_ctrl_grab
LBB0_13:
	mov	w0, #0
LBB0_14:
	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_15:
Lloh63:
	adrp	x8, _V4L2_STD_PAL_M@GOTPAGE
Lloh64:
	ldr	x8, [x8, _V4L2_STD_PAL_M@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_17
; %bb.16:
Lloh66:
	adrp	x8, _VideoFormatPALM@GOTPAGE
Lloh67:
	ldr	x8, [x8, _VideoFormatPALM@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
Lloh68:
	adrp	x8, _V4L2_STD_PAL_N@GOTPAGE
Lloh69:
	ldr	x8, [x8, _V4L2_STD_PAL_N@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_19
; %bb.18:
Lloh71:
	adrp	x8, _VideoFormatPALN@GOTPAGE
Lloh72:
	ldr	x8, [x8, _VideoFormatPALN@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
Lloh73:
	adrp	x8, _V4L2_STD_PAL_Nc@GOTPAGE
Lloh74:
	ldr	x8, [x8, _V4L2_STD_PAL_Nc@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_22
; %bb.20:
Lloh76:
	adrp	x8, _VideoFormatPALNC@GOTPAGE
Lloh77:
	ldr	x8, [x8, _VideoFormatPALNC@GOTPAGEOFF]
LBB0_21:
	mov	x26, x21
	mov	x28, x21
	mov	w23, #8
	movk	w23, #7199, lsl #16
	b	LBB0_12
LBB0_22:
Lloh78:
	adrp	x8, _V4L2_STD_PAL_60@GOTPAGE
Lloh79:
	ldr	x8, [x8, _V4L2_STD_PAL_60@GOTPAGEOFF]
Lloh80:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_24
; %bb.23:
Lloh81:
	adrp	x8, _VideoFormatPAL60@GOTPAGE
Lloh82:
	ldr	x8, [x8, _VideoFormatPAL60@GOTPAGEOFF]
	b	LBB0_11
LBB0_24:
Lloh83:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh84:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh85:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_26
; %bb.25:
Lloh86:
	adrp	x8, _VideoFormatNTSC@GOTPAGE
Lloh87:
	ldr	x8, [x8, _VideoFormatNTSC@GOTPAGEOFF]
	b	LBB0_11
LBB0_26:
	ldr	x8, [x27]
	tst	x8, x20
	mov	w8, #57168
	movk	w8, #537, lsl #16
	csel	w26, w21, w8, eq
	mov	w8, #52352
	movk	w8, #518, lsl #16
	csel	w28, w21, w8, eq
Lloh88:
	adrp	x8, _VideoFormatPAL@GOTPAGE
Lloh89:
	ldr	x8, [x8, _VideoFormatPAL@GOTPAGEOFF]
Lloh90:
	adrp	x9, _VideoFormatSECAM@GOTPAGE
Lloh91:
	ldr	x9, [x9, _VideoFormatSECAM@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_xtal,4,2                       ; @xtal
	.comm	_V4L2_STD_NTSC_M_JP,8,3         ; @V4L2_STD_NTSC_M_JP
	.comm	_VideoFormatNTSCJapan,4,2       ; @VideoFormatNTSCJapan
	.comm	_V4L2_STD_NTSC_443,8,3          ; @V4L2_STD_NTSC_443
	.comm	_VideoFormatNTSC443,4,2         ; @VideoFormatNTSC443
	.comm	_V4L2_STD_PAL_M,8,3             ; @V4L2_STD_PAL_M
	.comm	_VideoFormatPALM,4,2            ; @VideoFormatPALM
	.comm	_V4L2_STD_PAL_N,8,3             ; @V4L2_STD_PAL_N
	.comm	_VideoFormatPALN,4,2            ; @VideoFormatPALN
	.comm	_V4L2_STD_PAL_Nc,8,3            ; @V4L2_STD_PAL_Nc
	.comm	_VideoFormatPALNC,4,2           ; @VideoFormatPALNC
	.comm	_V4L2_STD_PAL_60,8,3            ; @V4L2_STD_PAL_60
	.comm	_VideoFormatPAL60,4,2           ; @VideoFormatPAL60
	.comm	_V4L2_STD_NTSC,8,3              ; @V4L2_STD_NTSC
	.comm	_VideoFormatNTSC,4,2            ; @VideoFormatNTSC
	.comm	_V4L2_STD_SECAM,8,3             ; @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
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	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
.subsections_via_symbols
