	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_std_setup              ## -- Begin function cx18_av_std_setup
	.p2align	4, 0x90
_cx18_av_std_setup:                     ## @cx18_av_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	12(%rdi), %r13
	movl	(%rdi), %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
	movl	$1183, %esi                     ## imm = 0x49F
	callq	_cx18_av_write
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movl	%ebx, -108(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movl	$132, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$93, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$38, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$579, -52(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x243
	movl	$48, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$2, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$688700, %eax                   ## imm = 0xA823C
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$32, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_4:
	movq	_V4L2_STD_PAL_60@GOTPCREL(%rip), %rax
	movl	$122, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$26, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$481, -52(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x1E1
	movl	$38, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.5:
	movl	$90, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$688700, %eax                   ## imm = 0xA823C
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$32, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_3:
	movl	$132, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$93, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$38, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$579, -52(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x243
	movl	$48, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$2, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_V4L2_STD_PAL_Nc@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	(%rax), %ebx
	sete	%dl
	movl	$556422, %eax                   ## imm = 0x87D86
	movl	$672314, %ecx                   ## imm = 0xA423A
	cmovel	%eax, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	shll	$5, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_6:
	movq	_V4L2_STD_PAL_M@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movl	$32, %eax
	movl	$102, %ecx
	cmovel	%eax, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	$555421, %eax                   ## imm = 0x8799D
	movl	$556032, %ecx                   ## imm = 0x87C00
	cmovel	%eax, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	$97, %eax
	movl	$90, %ecx
	cmovel	%eax, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_7:
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	%r12, %rdi
	movl	$264, %esi                      ## imm = 0x108
	callq	_cx18_av_read
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$268, %esi                      ## imm = 0x10C
	callq	_cx18_av_read4
	movl	%eax, %ebx
	andl	$33554431, %ebx                 ## imm = 0x1FFFFFF
	movq	%r12, %rdi
	movl	$265, %esi                      ## imm = 0x109
	callq	_cx18_av_read
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_CX18_DEBUG_INFO_DEV
	testl	%r14d, %r14d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_10
## %bb.9:
	shll	$25, %r15d
	orl	%r15d, %ebx
	movslq	%ebx, %rax
	imulq	$28636360, %rax, %rax           ## imm = 0x1B4F4C8
	shrq	$25, %rax
                                        ## kill: def $eax killed $eax killed $rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cltd
	idivl	%r14d
	movslq	%eax, %r14
	imulq	$1125899907, %r14, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %r15
	shrq	$32, %r15
	movl	%r15d, %edx
	sarl	$18, %edx
	shrq	$63, %rbx
	addl	%ebx, %edx
	imull	$1000000, %edx, %eax            ## imm = 0xF4240
	movl	%r14d, %ecx
	subl	%eax, %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_CX18_DEBUG_INFO_DEV
	sarl	$21, %r15d
	addl	%ebx, %r15d
	leal	7(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$3, %eax
	movslq	%eax, %rcx
	imulq	$1125899907, %rcx, %rax         ## imm = 0x431BDE83
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$32, %rax
	sarl	$18, %eax
	addl	%edx, %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	subl	%eax, %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_CX18_DEBUG_INFO_DEV
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	movl	$121, %ecx
	xorl	%eax, %eax
	callq	_CX18_DEBUG_INFO_DEV
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	imull	$28636360, %r14d, %ebx          ## imm = 0x1B4F4C8
	movl	%ebx, %edi
	movl	$543, %esi                      ## imm = 0x21F
	callq	_do_div
	shrl	$13, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_CX18_DEBUG_INFO_DEV
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$720, %ecx                      ## imm = 0x2D0
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r14
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	$543                            ## imm = 0x21F
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_CX18_DEBUG_INFO_DEV
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$64, %rsp
LBB0_10:
	movq	%r12, %rdi
	movl	$1136, %esi                     ## imm = 0x470
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1137, %esi                     ## imm = 0x471
	xorl	%edx, %edx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1138, %esi                     ## imm = 0x472
	movl	$45, %edx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1139, %esi                     ## imm = 0x473
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1140, %esi                     ## imm = 0x474
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_cx18_av_write
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	shll	$4, %edx
	andl	$48, %edx
	movq	%r12, %rdi
	movl	$1141, %esi                     ## imm = 0x475
	callq	_cx18_av_write
	shrl	$4, %ebx
	movq	%r12, %rdi
	movl	$1142, %esi                     ## imm = 0x476
	movl	%ebx, %edx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1143, %esi                     ## imm = 0x477
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1144, %esi                     ## imm = 0x478
	movl	$31, %edx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1145, %esi                     ## imm = 0x479
	movl	$2, %edx
	callq	_cx18_av_write
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	shll	$6, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	shll	$4, %edx
	orl	%eax, %edx
	movq	%r12, %rdi
	movl	$1146, %esi                     ## imm = 0x47A
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1147, %esi                     ## imm = 0x47B
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cx18_av_write
	movq	%r12, %rdi
	movl	$1148, %esi                     ## imm = 0x47C
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_cx18_av_write
	movzbl	%bh, %edx
	movq	%r12, %rdi
	movl	$1149, %esi                     ## imm = 0x47D
	callq	_cx18_av_write
	shrl	$16, %ebx
	movq	%r12, %rdi
	movl	$1150, %esi                     ## imm = 0x47E
	movl	%ebx, %edx
	callq	_cx18_av_write
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	-108(%rbp), %ecx                ## 4-byte Reload
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	sete	%al
	setne	%dl
	leal	(%rax,%rax,2), %eax
	addl	$5, %eax
	movl	%edx, 4(%r12)
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	movl	$1151, %esi                     ## imm = 0x47F
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx18_av_write                  ## TAILCALL
	.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_PAL,4,2               ## @V4L2_STD_PAL
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL regs = int: %u, frac: %u, post: %u\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Pixel rate = %d.%06d Mpixel/sec\n"

L_.str.3:                               ## @.str.3
	.asciz	"ADC XTAL/pixel clock decimation ratio = %d.%03d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Chroma sub-carrier initial 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	_cx18_av_std_setup              ; -- Begin function cx18_av_std_setup
	.p2align	2
_cx18_av_std_setup:                     ; @cx18_av_std_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x22, x0
	ldr	w20, [x22], #12
Lloh0:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w20, w8
	mov	w8, #17
	mov	w9, #20
	csel	w2, w9, w8, eq
	mov	w1, #1183
	bl	_cx18_av_write
Lloh3:
	adrp	x8, _V4L2_STD_625_50@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stur	w20, [x29, #-84]                ; 4-byte Folded Spill
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldur	w9, [x29, #-84]                 ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #33340
	movk	w8, #10, lsl #16
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	mov	w25, #132
	mov	w8, #93
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
	mov	w20, #38
	mov	w24, #579
	mov	w8, #32
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	w8, #1
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _V4L2_STD_PAL_60@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_STD_PAL_60@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w11, #90
	mov	w9, #32
	stur	x9, [x29, #-96]                 ; 8-byte Folded Spill
	ldur	w9, [x29, #-84]                 ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.4:
	mov	w9, #90
	mov	w8, #33340
	movk	w8, #10, lsl #16
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	mov	w25, #122
	mov	w20, #26
	mov	w24, #481
	mov	w8, #1
	stp	x8, x9, [sp, #96]               ; 16-byte Folded Spill
	mov	w23, #2
	mov	w26, #38
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _V4L2_STD_PAL_Nc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_STD_PAL_Nc@GOTPAGEOFF]
	mov	w9, #31133
	movk	w9, #8, lsl #16
Lloh14:
	ldr	w8, [x8]
	add	w9, w9, #1001
	mov	w10, #16954
	movk	w10, #10, lsl #16
	ldur	w11, [x29, #-84]                ; 4-byte Folded Reload
	cmp	w11, w8
	csel	w11, w9, w10, eq
	cset	w8, eq
	stp	x11, x8, [sp, #88]              ; 16-byte Folded Spill
	lsl	w8, w8, #5
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	w25, #132
	mov	w8, #93
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
	mov	w20, #38
	mov	w24, #579
LBB0_6:
	mov	w23, #2
	mov	w26, #48
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _V4L2_STD_PAL_M@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_STD_PAL_M@GOTPAGEOFF]
	mov	w9, #102
Lloh17:
	ldr	w8, [x8]
	ldur	w10, [x29, #-84]                ; 4-byte Folded Reload
	cmp	w10, w8
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	csel	w8, w8, w9, eq
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	w8, #31133
	movk	w8, #8, lsl #16
	add	w9, w8, #611
	csel	w10, w8, w9, eq
	mov	w8, #97
	csel	w11, w8, w11, eq
	str	x11, [sp, #104]                 ; 8-byte Folded Spill
	mov	w25, #122
	mov	w20, #26
	mov	w24, #481
	mov	w23, #1
	mov	w26, #38
	mov	w8, #1
	stp	x10, x8, [sp, #88]              ; 16-byte Folded Spill
LBB0_8:
	mov	x0, x19
	mov	w1, #264
	bl	_cx18_av_read
	mov	x27, x0
	mov	x0, x19
	mov	w1, #268
	bl	_cx18_av_read4
	and	w28, w0, #0x1ffffff
	mov	x0, x19
	mov	w1, #265
	bl	_cx18_av_read
	mov	x21, x0
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x27
	mov	x3, x28
	bl	_CX18_DEBUG_INFO_DEV
	cbz	w21, LBB0_10
; %bb.9:
	bfi	w28, w27, #25, #7
	mov	w8, #62664
	movk	w8, #436, lsl #16
	smull	x8, w28, w8
	lsr	x8, x8, #25
	sdiv	w21, w8, w21
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w21, w8
	stp	x26, x23, [sp, #72]             ; 16-byte Folded Spill
	lsr	x23, x8, #32
	lsr	x26, x8, #63
	add	w2, w26, w23, asr #18
	mov	w27, #16960
	movk	w27, #15, lsl #16
	msub	w3, w2, w27, w21
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_CX18_DEBUG_INFO_DEV
	add	w2, w26, w23, asr #21
	ldur	x26, [x29, #-96]                ; 8-byte Folded Reload
	mov	x23, x20
	ldp	x28, x20, [sp, #88]             ; 16-byte Folded Reload
	add	w8, w21, #7
	cmp	w21, #0
	csel	w8, w8, w21, 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
	msub	w3, w9, w27, w8
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_CX18_DEBUG_INFO_DEV
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	w2, #2
	mov	w3, #121
	bl	_CX18_DEBUG_INFO_DEV
	mov	w8, #62664
	movk	w8, #436, lsl #16
	mul	w21, w28, w8
	mov	w27, #543
	mov	x0, x21
	mov	w1, #543
	bl	_do_div
	lsr	w3, w21, #13
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_CX18_DEBUG_INFO_DEV
	stp	x26, x28, [sp, #56]
	ldp	x26, x8, [sp, #72]              ; 16-byte Folded Reload
	stp	x8, x20, [sp, #40]
	mov	x20, x23
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	stp	x27, x8, [sp, #24]
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	stp	x24, x26, [sp, #8]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	str	x20, [sp]
	mov	x0, x22
	mov	x2, x25
	mov	w3, #720
	bl	_CX18_DEBUG_INFO_DEV
LBB0_10:
	mov	x0, x19
	mov	w1, #1136
	mov	x2, x25
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1137
	mov	w2, #0
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1138
	mov	w2, #45
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1139
	ldr	x2, [sp, #104]                  ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1140
	mov	x2, x20
	bl	_cx18_av_write
	ubfiz	w2, w24, #4, #2
	mov	x0, x19
	mov	w1, #1141
	bl	_cx18_av_write
	lsr	w2, w24, #4
	mov	x0, x19
	mov	w1, #1142
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1143
	mov	x2, x26
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1144
	mov	w2, #31
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1145
	mov	w2, #2
	bl	_cx18_av_write
	lsl	w2, w23, #6
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	bfi	w2, w8, #4, #1
	mov	x0, x19
	mov	w1, #1146
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1147
	ldur	x2, [x29, #-96]                 ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cx18_av_write
	mov	x0, x19
	mov	w1, #1148
	ldr	x20, [sp, #88]                  ; 8-byte Folded Reload
	mov	x2, x20
	bl	_cx18_av_write
	ubfx	w2, w20, #8, #8
	mov	x0, x19
	mov	w1, #1149
	bl	_cx18_av_write
	lsr	w2, w20, #16
	mov	x0, x19
	mov	w1, #1150
	bl	_cx18_av_write
Lloh30:
	adrp	x8, _V4L2_STD_625_50@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldur	w9, [x29, #-84]                 ; 4-byte Folded Reload
	tst	w8, w9
	cset	w2, ne
	mov	w8, #5
	mov	w9, #8
	csel	w8, w9, w8, eq
	stp	w2, w8, [x19, #4]
	mov	x0, x19
	mov	w1, #1151
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_cx18_av_write
	.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	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.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_PAL,4,2               ; @V4L2_STD_PAL
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL regs = int: %u, frac: %u, post: %u\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Pixel rate = %d.%06d Mpixel/sec\n"

l_.str.3:                               ; @.str.3
	.asciz	"ADC XTAL/pixel clock decimation ratio = %d.%03d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Chroma sub-carrier initial 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
