	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_std_setup              ## -- Begin function cx25840_std_setup
	.p2align	4, 0x90
_cx25840_std_setup:                     ## @cx25840_std_setup
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %r14
	movl	(%rax), %ebx
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	xorl	%ecx, %ecx
	testl	%eax, %ebx
	sete	%cl
	leal	(%rcx,%rcx,2), %edx
	addl	$17, %edx
	movq	%r15, %rdi
	movl	$1183, %esi                     ## imm = 0x49F
	callq	_cx25840_write
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rax
	testl	%ebx, (%rcx)
	movl	%ebx, -116(%rbp)                ## 4-byte Spill
	je	LBB0_6
## %bb.1:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	38(%rcx,%rcx), %edx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leal	576(,%rcx,4), %edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	leal	34(%rcx,%rcx), %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rcx
	movl	$132, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$93, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	$2, %edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	testl	%ebx, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	$672351, %eax                   ## imm = 0xA425F
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_6:
	movq	_V4L2_STD_PAL_60@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	$26, %eax
	movl	$20, %edx
	cmovel	%eax, %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leal	24(%rcx,%rcx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leal	89(%rcx,%rcx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$122, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$487, %eax                      ## imm = 0x1E7
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$688739, %eax                   ## imm = 0xA8263
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$32, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_12
LBB0_3:
	movq	_V4L2_STD_PAL_Nc@GOTPCREL(%rip), %rcx
	movl	$32, %edx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpl	(%rcx), %ebx
	jne	LBB0_4
## %bb.5:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%cl
	sete	%dl
	incl	%edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leal	(%rcx,%rcx), %eax
	addl	$93, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$556453, %eax                   ## imm = 0x87DA5
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_8:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rcx
	movl	$122, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$487, %edx                      ## imm = 0x1E7
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	$1, %edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	cmpl	(%rcx), %ebx
	jne	LBB0_10
## %bb.9:
	movl	$97, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$20, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$555452, %eax                   ## imm = 0x879BC
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$32, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$24, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_4:
	movl	$688739, %eax                   ## imm = 0xA8263
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_10:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	24(%rcx,%rcx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$26, %eax
	movl	$20, %ecx
	cmovel	%eax, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	$91, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$556063, %eax                   ## imm = 0x87C1F
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$102, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_11:
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_is_cx231xx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	movq	%r15, %rdi
	movl	$264, %esi                      ## imm = 0x108
	callq	_cx25840_read
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	callq	_cx25840_read4
	movl	%eax, %r12d
	andl	$33554431, %r12d                ## imm = 0x1FFFFFF
	movq	%r15, %rdi
	movl	$265, %esi                      ## imm = 0x109
	callq	_cx25840_read
	movq	%rax, %r13
	movq	_cx25840_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	pushq	%r13
	callq	_v4l_dbg
	addq	$16, %rsp
	testq	%r13, %r13
	je	LBB0_18
## %bb.14:
	movl	%r12d, %eax
	shlq	$25, %r14
	orq	%rax, %r14
	movl	$3665454464, %eax               ## imm = 0xDA7A6580
	imulq	%r14, %rax
	sarq	$32, %rax
	movq	%r13, %rcx
	orq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_15
## %bb.16:
	cqto
	idivq	%r13
	jmp	LBB0_17
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:
	movq	_cx25840_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rcx, %rbx
	movslq	%eax, %r14
	imulq	$1125899907, %r14, %r12         ## imm = 0x431BDE83
	movq	%r12, %r13
	shrq	$32, %r13
	movl	%r13d, %r8d
	sarl	$18, %r8d
	shrq	$63, %r12
	addl	%r12d, %r8d
	imull	$1000000, %r8d, %eax            ## imm = 0xF4240
	movl	%r14d, %r9d
	subl	%eax, %r9d
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_v4l_dbg
	movl	(%rbx), %esi
	sarl	$21, %r13d
	addl	%r12d, %r13d
	leal	7(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$3, %eax
	movslq	%eax, %r9
	imulq	$1125899907, %r9, %rax          ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$18, %eax
	addl	%ecx, %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	subl	%eax, %r9d
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%r13d, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_v4l_dbg
	imulq	$543, %r14, %r9                 ## imm = 0x21F
	sarq	$12, %r9
	movq	%rbx, %r12
	movl	(%rbx), %esi
	imulq	$1125899907, %r9, %r8           ## imm = 0x431BDE83
	movq	%r8, %rax
	shrq	$63, %rax
	shrq	$32, %r8
	sarl	$18, %r8d
	addl	%eax, %r8d
	imull	$1000000, %r8d, %eax            ## imm = 0xF4240
	subl	%eax, %r9d
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_v4l_dbg
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r9d
	imulq	%r14, %r9
	sarq	$24, %r9
	movl	(%r12), %esi
	imulq	$1125899907, %r9, %r8           ## imm = 0x431BDE83
	movq	%r8, %rax
	shrq	$63, %rax
	shrq	$32, %r8
	sarl	$18, %r8d
	addl	%eax, %r8d
	imull	$1000000, %r8d, %eax            ## imm = 0xF4240
	subl	%eax, %r9d
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_v4l_dbg
	movl	(%r12), %esi
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	$720, %r9d                      ## imm = 0x2D0
	xorl	%eax, %eax
	pushq	%rbx
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	$543                            ## imm = 0x21F
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_v4l_dbg
	addq	$80, %rsp
LBB0_18:
	movq	%r15, %rdi
	movl	$1136, %esi                     ## imm = 0x470
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1137, %esi                     ## imm = 0x471
	xorl	%edx, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1138, %esi                     ## imm = 0x472
	movl	$45, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1139, %esi                     ## imm = 0x473
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1140, %esi                     ## imm = 0x474
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx25840_write
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %edx
	shll	$4, %edx
	andl	$112, %edx
	movq	%r15, %rdi
	movl	$1141, %esi                     ## imm = 0x475
	callq	_cx25840_write
	shrl	$4, %ebx
	movq	%r15, %rdi
	movl	$1142, %esi                     ## imm = 0x476
	movl	%ebx, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1143, %esi                     ## imm = 0x477
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	$31, %edx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1145, %esi                     ## imm = 0x479
	movl	$2, %edx
	callq	_cx25840_write
	movq	-104(%rbp), %rax                ## 8-byte Reload
	shll	$6, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	shll	$4, %edx
	orl	%eax, %edx
	movq	%r15, %rdi
	movl	$1146, %esi                     ## imm = 0x47A
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1147, %esi                     ## imm = 0x47B
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx25840_write
	movq	%r15, %rdi
	movl	$1148, %esi                     ## imm = 0x47C
	movq	%r14, %rbx
	movl	%ebx, %edx
	callq	_cx25840_write
	movzbl	%bh, %edx
	movq	%r15, %rdi
	movl	$1149, %esi                     ## imm = 0x47D
	callq	_cx25840_write
	shrl	$16, %ebx
	movq	%r15, %rdi
	movl	$1150, %esi                     ## imm = 0x47E
	movl	%ebx, %edx
	callq	_cx25840_write
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	sete	%al
	setne	%dl
	leal	(%rax,%rax,2), %ebx
	addl	$5, %ebx
	movq	%r15, %rdi
	movl	$1151, %esi                     ## imm = 0x47F
	callq	_cx25840_write
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%ebx, 4(%rax)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_V4L2_STD_PAL_Nc,4,2            ## @V4L2_STD_PAL_Nc
	.comm	_V4L2_STD_PAL_60,4,2            ## @V4L2_STD_PAL_60
	.comm	_V4L2_STD_PAL_M,4,2             ## @V4L2_STD_PAL_M
	.comm	_cx25840_debug,4,2              ## @cx25840_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL regs = int: %u, frac: %u, post: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"PLL = %d.%06d MHz\n"

L_.str.2:                               ## @.str.2
	.asciz	"PLL/8 = %d.%06d MHz\n"

L_.str.3:                               ## @.str.3
	.asciz	"ADC Sampling freq = %d.%06d MHz\n"

L_.str.4:                               ## @.str.4
	.asciz	"Chroma sub-carrier freq = %d.%06d MHz\n"

L_.str.5:                               ## @.str.5
	.asciz	"hblank %i, hactive %i, vblank %i, vactive %i, vblank656 %i, src_dec %i, burst 0x%02x, luma_lpf %i, uv_lpf %i, comb 0x%02x, sc 0x%06x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_std_setup              ; -- Begin function cx25840_std_setup
	.p2align	2
_cx25840_std_setup:                     ; @cx25840_std_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x0
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
	ldr	w23, [x0]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w23, w8
	mov	w8, #17
	mov	w9, #20
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #1183
	bl	_cx25840_write
Lloh3:
	adrp	x8, _V4L2_STD_625_50@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	x8, [x20, #8]
	tst	w9, w23
	b.eq	LBB0_3
; %bb.1:
	cmp	x8, #0
	mov	w9, #38
	mov	w10, #40
	csel	w9, w10, w9, eq
	stur	x9, [x29, #-88]                 ; 8-byte Folded Spill
	mov	w9, #576
	mov	w10, #580
	csel	w24, w10, w9, eq
	mov	w9, #34
	mov	w10, #36
	csel	w9, w10, w9, eq
	str	x9, [sp, #96]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x9, _V4L2_STD_SECAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_6
; %bb.2:
	stp	xzr, xzr, [sp, #80]             ; 16-byte Folded Spill
	mov	w26, #132
	mov	w25, #93
	mov	w21, #16991
	movk	w21, #10, lsl #16
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x9, _V4L2_STD_PAL_60@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_STD_PAL_60@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w23, w9
	b.ne	LBB0_7
; %bb.4:
	mov	w21, #33379
	movk	w21, #10, lsl #16
	cmp	x8, #0
	mov	w8, #24
	mov	w9, #26
	csel	w8, w9, w8, eq
	stur	x8, [x29, #-88]                 ; 8-byte Folded Spill
	mov	w8, #20
	csel	w10, w9, w8, eq
	mov	w8, #89
	mov	w9, #91
	csel	w25, w9, w8, eq
	mov	w26, #122
	mov	w24, #487
	mov	w8, #32
	stp	x8, x10, [sp, #88]              ; 16-byte Folded Spill
	mov	w8, #1
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
LBB0_5:
	mov	w8, #2
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	b	LBB0_8
LBB0_6:
	mov	w9, #33379
	movk	w9, #10, lsl #16
Lloh12:
	adrp	x10, _V4L2_STD_PAL_Nc@GOTPAGE
Lloh13:
	ldr	x10, [x10, _V4L2_STD_PAL_Nc@GOTPAGEOFF]
	mov	w11, #132
	mov	w12, #93
Lloh14:
	ldr	w10, [x10]
	mov	w13, #32
	mov	w14, #1
	mov	w15, #2
	cmp	x8, #0
	cinc	w8, w14, eq
	mov	w16, #95
	csel	w16, w12, w16, eq
	mov	w17, #31164
	movk	w17, #8, lsl #16
	add	w17, w17, #1001
	mov	w0, #132
	mov	w1, #32
	cmp	w23, w10
	csel	w10, w15, w8, ne
	csel	w8, w14, w14, ne
	stp	x10, x8, [sp, #72]              ; 16-byte Folded Spill
	csel	w8, w13, w1, ne
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	csel	w21, w9, w17, ne
	csel	w25, w12, w16, ne
	csel	w26, w11, w0, ne
	b	LBB0_8
LBB0_7:
	mov	w9, #31164
	movk	w9, #8, lsl #16
Lloh15:
	adrp	x10, _V4L2_STD_PAL_M@GOTPAGE
Lloh16:
	ldr	x10, [x10, _V4L2_STD_PAL_M@GOTPAGEOFF]
	mov	w11, #122
	mov	w12, #97
Lloh17:
	ldr	w10, [x10]
	mov	w13, #20
	mov	w14, #487
	mov	w15, #32
	mov	w16, #1
	mov	w17, #24
	cmp	x8, #0
	mov	w8, #26
	csel	w0, w8, w17, eq
	csel	w8, w8, w13, eq
	add	w1, w9, #611
	mov	w2, #122
	mov	w3, #91
	mov	w4, #487
	mov	w5, #102
	mov	w6, #1
	cmp	w23, w10
	csel	w10, w17, w0, eq
	stur	x10, [x29, #-88]                ; 8-byte Folded Spill
	csel	w10, w16, w6, eq
	str	x10, [sp, #72]                  ; 8-byte Folded Spill
	csel	w10, w16, w6, eq
	str	x10, [sp, #80]                  ; 8-byte Folded Spill
	csel	w10, w15, w5, eq
	csel	w21, w9, w1, eq
	csel	w24, w14, w4, eq
	csel	w8, w13, w8, eq
	stp	x10, x8, [sp, #88]              ; 16-byte Folded Spill
	csel	w25, w12, w3, eq
	csel	w26, w11, w2, eq
LBB0_8:
	mov	x0, x20
	bl	_is_cx231xx
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #264
	bl	_cx25840_read
	mov	x27, x0
	mov	x0, x19
	mov	w1, #268
	bl	_cx25840_read4
	and	w28, w0, #0x1ffffff
	mov	x0, x19
	mov	w1, #265
	bl	_cx25840_read
	mov	x22, x0
Lloh18:
	adrp	x8, _cx25840_debug@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cx25840_debug@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x27
	mov	x5, x28
	bl	_v4l_dbg
	cbz	x22, LBB0_11
; %bb.10:
	bfi	x28, x27, #25, #39
	mov	w8, #25984
	movk	w8, #55930, lsl #16
	mul	x8, x28, x8
	asr	x8, x8, #32
	sdiv	x28, x8, x22
Lloh23:
	adrp	x8, _cx25840_debug@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cx25840_debug@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w28, w8
	lsr	x22, x8, #32
	lsr	x27, x8, #63
	add	w4, w27, w22, asr #18
	mov	w8, #16960
	movk	w8, #15, lsl #16
	msub	w5, w4, w8, w28
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
Lloh28:
	adrp	x8, _cx25840_debug@GOTPAGE
Lloh29:
	ldr	x8, [x8, _cx25840_debug@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	w4, w27, w22, asr #21
	add	w8, w28, #7
	cmp	w28, #0
	csel	w8, w8, w28, lt
	asr	w8, w8, #3
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #18
	mov	w10, #16960
	movk	w10, #15, lsl #16
	msub	w5, w9, w10, w8
Lloh31:
	adrp	x3, l_.str.2@PAGE
Lloh32:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
	sxtw	x22, w28
	mov	w8, #543
	smull	x8, w28, w8
	lsr	x8, x8, #12
Lloh33:
	adrp	x27, _cx25840_debug@GOTPAGE
Lloh34:
	ldr	x27, [x27, _cx25840_debug@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w28, #56963
	movk	w28, #17179, lsl #16
	smull	x9, w8, w28
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w4, w9, w10, asr #18
	mov	w9, #16960
	movk	w9, #15, lsl #16
	msub	w5, w4, w9, w8
Lloh35:
	adrp	x3, l_.str.3@PAGE
Lloh36:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
	mov	w8, w21
	mul	x8, x22, x8
	lsr	x8, x8, #24
	ldr	w1, [x27]
	smull	x9, w8, w28
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w4, w9, w10, asr #18
	mov	w9, #16960
	movk	w9, #15, lsl #16
	msub	w5, w4, w9, w8
Lloh37:
	adrp	x3, l_.str.4@PAGE
Lloh38:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
	ldr	w1, [x27]
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	stp	x8, x21, [sp, #56]
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #40]
	mov	w8, #543
	stp	x8, x25, [sp, #24]
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	stp	x24, x8, [sp, #8]
Lloh39:
	adrp	x3, l_.str.5@PAGE
Lloh40:
	add	x3, x3, l_.str.5@PAGEOFF
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	str	x8, [sp]
	mov	w0, #1
	mov	x2, x19
	mov	x4, x26
	mov	w5, #720
	bl	_v4l_dbg
LBB0_11:
	mov	x0, x19
	mov	w1, #1136
	mov	x2, x26
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1137
	mov	w2, #0
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1138
	mov	w2, #45
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1139
	mov	x2, x25
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1140
	ldr	x2, [sp, #96]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cx25840_write
	ubfiz	w2, w24, #4, #3
	mov	x0, x19
	mov	w1, #1141
	bl	_cx25840_write
	lsr	w2, w24, #4
	mov	x0, x19
	mov	w1, #1142
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1143
	ldur	x2, [x29, #-88]                 ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1144
	mov	w2, #31
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1145
	mov	w2, #2
	bl	_cx25840_write
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	lsl	w2, w8, #6
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	bfi	w2, w8, #4, #1
	mov	x0, x19
	mov	w1, #1146
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1147
	ldr	x2, [sp, #88]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1148
	mov	x2, x21
	bl	_cx25840_write
	ubfx	w2, w21, #8, #8
	mov	x0, x19
	mov	w1, #1149
	bl	_cx25840_write
	lsr	w2, w21, #16
	mov	x0, x19
	mov	w1, #1150
	bl	_cx25840_write
Lloh41:
	adrp	x8, _V4L2_STD_625_50@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w2, ne
	mov	w8, #5
	mov	w9, #8
	csel	w21, w9, w8, eq
	mov	x0, x19
	mov	w1, #1151
	bl	_cx25840_write
	str	w21, [x20, #4]
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_V4L2_STD_PAL_Nc,4,2            ; @V4L2_STD_PAL_Nc
	.comm	_V4L2_STD_PAL_60,4,2            ; @V4L2_STD_PAL_60
	.comm	_V4L2_STD_PAL_M,4,2             ; @V4L2_STD_PAL_M
	.comm	_cx25840_debug,4,2              ; @cx25840_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL regs = int: %u, frac: %u, post: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"PLL = %d.%06d MHz\n"

l_.str.2:                               ; @.str.2
	.asciz	"PLL/8 = %d.%06d MHz\n"

l_.str.3:                               ; @.str.3
	.asciz	"ADC Sampling freq = %d.%06d MHz\n"

l_.str.4:                               ; @.str.4
	.asciz	"Chroma sub-carrier freq = %d.%06d MHz\n"

l_.str.5:                               ; @.str.5
	.asciz	"hblank %i, hactive %i, vblank %i, vactive %i, vblank656 %i, src_dec %i, burst 0x%02x, luma_lpf %i, uv_lpf %i, comb 0x%02x, sc 0x%06x\n"

.subsections_via_symbols
