	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks0127_s_routing
_ks0127_s_routing:                      ## @ks0127_s_routing
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_to_ks0127
	movq	%rax, %r15
	leal	-132(%rbx), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.4:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	_KS_CMDA@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$252, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$-65, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$176, %edx
	movl	%ebx, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$112, %edx
	movl	$10, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_CTRACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$207, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_LUMA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_reg_defaults@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %ecx
	orl	$12, %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ks0127_and_or
	movq	_KS_VERTIA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$129, %ecx
	callq	_ks0127_and_or
	movq	_KS_VERTIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$15, %edx
	movl	$144, %ecx
	callq	_ks0127_and_or
	movq	_KS_CHROMB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$15, %edx
	movl	$144, %ecx
	callq	_ks0127_and_or
	movq	_KS_UGAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
	movq	_KS_VGAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
	movq	_KS_UVOFFH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
	movq	_KS_UVOFFL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rax
	jmp	LBB0_5
LBB0_1:
	leal	-129(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.6:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	_KS_CMDA@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$252, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$-65, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$176, %edx
	movl	%ebx, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$112, %edx
	movl	$10, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_CTRACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$207, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_LUMA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_reg_defaults@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax,%rsi,4), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ks0127_and_or
	movq	_KS_VERTIA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
	movl	$240, %ebx
	movl	(%rax,%rsi,4), %ecx
	andl	%ebx, %ecx
	orl	$1, %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_ks0127_and_or
	movq	_KS_VERTIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
	movl	(%rax,%rsi,4), %ecx
	andl	%ebx, %ecx
	movq	%r14, %rdi
	movl	$15, %edx
	callq	_ks0127_and_or
	movq	_KS_CHROMB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
	andl	(%rax,%rsi,4), %ebx
	movq	%r14, %rdi
	movl	$15, %edx
	movl	%ebx, %ecx
	callq	_ks0127_and_or
	movq	_KS_UGAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
	movq	_KS_VGAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
	movq	_KS_UVOFFH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
	movq	_KS_UVOFFL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
LBB0_5:
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
LBB0_8:
	movq	_KS_DEMOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_reg_defaults@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r14, %rdi
	callq	_ks0127_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.3:
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movq	_KS_CMDA@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	cmpl	$1, %eax
	movl	$3, %ecx
	sbbl	$0, %ecx
	movq	%r14, %rdi
	movl	$252, %edx
	callq	_ks0127_and_or
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	$255, %edx
	movl	$64, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$176, %edx
	movl	$192, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$112, %edx
	movl	$135, %ecx
	callq	_ks0127_and_or
	movq	_KS_CMDD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	movl	$8, %ecx
	callq	_ks0127_and_or
	movq	_KS_CTRACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$207, %edx
	movl	$48, %ecx
	callq	_ks0127_and_or
	movq	_KS_LUMA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$113, %ecx
	callq	_ks0127_and_or
	movq	_KS_VERTIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_reg_defaults@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	$240, %ebx
	movl	(%rax,%rsi,4), %ecx
	andl	%ebx, %ecx
	movq	%r14, %rdi
	movl	$15, %edx
	callq	_ks0127_and_or
	movq	_KS_VERTIA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$129, %ecx
	callq	_ks0127_and_or
	movq	_KS_CHROMB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r15), %rax
	andl	(%rax,%rsi,4), %ebx
	movq	%r14, %rdi
	movl	$15, %edx
	movl	%ebx, %ecx
	callq	_ks0127_and_or
	movq	_KS_CON@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_BRT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$32, %ecx
	callq	_ks0127_and_or
	movq	_KS_SAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$232, %ecx
	callq	_ks0127_and_or
	movq	_KS_HUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_UGAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$238, %ecx
	callq	_ks0127_and_or
	movq	_KS_VGAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	movq	_KS_UVOFFH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$79, %ecx
	callq	_ks0127_and_or
	movq	_KS_UVOFFL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ks0127_and_or
	jmp	LBB0_8
LBB0_7:
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s_routing %d: Composite\n"

	.comm	_KS_CMDA,8,3                    ## @KS_CMDA
	.comm	_KS_CMDB,8,3                    ## @KS_CMDB
	.comm	_KS_CMDC,8,3                    ## @KS_CMDC
	.comm	_KS_CMDD,8,3                    ## @KS_CMDD
	.comm	_KS_CTRACK,8,3                  ## @KS_CTRACK
	.comm	_KS_LUMA,8,3                    ## @KS_LUMA
	.comm	_reg_defaults,8,3               ## @reg_defaults
	.comm	_KS_VERTIA,8,3                  ## @KS_VERTIA
	.comm	_KS_VERTIC,8,3                  ## @KS_VERTIC
	.comm	_KS_CHROMB,8,3                  ## @KS_CHROMB
	.comm	_KS_UGAIN,8,3                   ## @KS_UGAIN
	.comm	_KS_VGAIN,8,3                   ## @KS_VGAIN
	.comm	_KS_UVOFFH,8,3                  ## @KS_UVOFFH
	.comm	_KS_UVOFFL,8,3                  ## @KS_UVOFFL
L_.str.1:                               ## @.str.1
	.asciz	"s_routing %d: S-Video\n"

L_.str.2:                               ## @.str.2
	.asciz	"s_routing 15: YUV656\n"

	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_KS_CON,8,3                     ## @KS_CON
	.comm	_KS_BRT,8,3                     ## @KS_BRT
	.comm	_KS_SAT,8,3                     ## @KS_SAT
	.comm	_KS_HUE,8,3                     ## @KS_HUE
L_.str.3:                               ## @.str.3
	.asciz	"s_routing: Unknown input %d\n"

	.comm	_KS_DEMOD,8,3                   ## @KS_DEMOD
	.no_dead_strip	_ks0127_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks0127_s_routing
_ks0127_s_routing:                      ; @ks0127_s_routing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_to_ks0127
	sub	w8, w20, #132
Lloh0:
	adrp	x22, _reg_defaults@GOTPAGE
Lloh1:
	ldr	x22, [x22, _reg_defaults@GOTPAGEOFF]
	cmp	w8, #6
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh7:
	adrp	x21, _KS_CMDA@GOTPAGE
Lloh8:
	ldr	x21, [x21, _KS_CMDA@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	mov	w2, #252
	mov	w3, #0
	bl	_ks0127_and_or
	ldr	x1, [x21]
	mov	x0, x19
	mov	w2, #-65
	mov	w3, #0
	bl	_ks0127_and_or
Lloh9:
	adrp	x8, _KS_CMDB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KS_CMDB@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #176
	mov	x3, x20
	bl	_ks0127_and_or
Lloh12:
	adrp	x8, _KS_CMDC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KS_CMDC@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #112
	mov	w3, #10
	bl	_ks0127_and_or
Lloh15:
	adrp	x8, _KS_CMDD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KS_CMDD@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	bl	_ks0127_and_or
Lloh18:
	adrp	x8, _KS_CTRACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KS_CTRACK@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #207
	mov	w3, #0
	bl	_ks0127_and_or
Lloh21:
	adrp	x8, _KS_LUMA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KS_LUMA@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8, x1, lsl #2]
	orr	w3, w8, #0xc
	mov	x0, x19
	mov	w2, #0
	bl	_ks0127_and_or
Lloh24:
	adrp	x8, _KS_VERTIA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KS_VERTIA@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #129
	bl	_ks0127_and_or
Lloh27:
	adrp	x8, _KS_VERTIC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KS_VERTIC@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #15
	mov	w3, #144
	bl	_ks0127_and_or
Lloh30:
	adrp	x8, _KS_CHROMB@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KS_CHROMB@GOTPAGEOFF]
Lloh32:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #15
	mov	w3, #144
	b	LBB0_4
LBB0_2:
	sub	w8, w20, #129
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.3:
Lloh33:
	adrp	x8, _debug@GOTPAGE
Lloh34:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x8, x20
	str	x8, [sp]
Lloh36:
	adrp	x3, l_.str.1@PAGE
Lloh37:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh38:
	adrp	x21, _KS_CMDA@GOTPAGE
Lloh39:
	ldr	x21, [x21, _KS_CMDA@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	mov	w2, #252
	mov	w3, #0
	bl	_ks0127_and_or
	ldr	x1, [x21]
	mov	x0, x19
	mov	w2, #-65
	mov	w3, #0
	bl	_ks0127_and_or
Lloh40:
	adrp	x8, _KS_CMDB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _KS_CMDB@GOTPAGEOFF]
Lloh42:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #176
	mov	x3, x20
	bl	_ks0127_and_or
Lloh43:
	adrp	x8, _KS_CMDC@GOTPAGE
Lloh44:
	ldr	x8, [x8, _KS_CMDC@GOTPAGEOFF]
Lloh45:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #112
	mov	w3, #10
	bl	_ks0127_and_or
Lloh46:
	adrp	x8, _KS_CMDD@GOTPAGE
Lloh47:
	ldr	x8, [x8, _KS_CMDD@GOTPAGEOFF]
Lloh48:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	bl	_ks0127_and_or
Lloh49:
	adrp	x8, _KS_CTRACK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _KS_CTRACK@GOTPAGEOFF]
Lloh51:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #207
	mov	w3, #0
	bl	_ks0127_and_or
Lloh52:
	adrp	x8, _KS_LUMA@GOTPAGE
Lloh53:
	ldr	x8, [x8, _KS_LUMA@GOTPAGEOFF]
Lloh54:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w3, [x8, x1, lsl #2]
	mov	x0, x19
	mov	w2, #0
	bl	_ks0127_and_or
Lloh55:
	adrp	x8, _KS_VERTIA@GOTPAGE
Lloh56:
	ldr	x8, [x8, _KS_VERTIA@GOTPAGEOFF]
Lloh57:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8, x1, lsl #2]
	and	w8, w8, #0xf0
	orr	w3, w8, #0x1
	mov	x0, x19
	mov	w2, #8
	bl	_ks0127_and_or
Lloh58:
	adrp	x8, _KS_VERTIC@GOTPAGE
Lloh59:
	ldr	x8, [x8, _KS_VERTIC@GOTPAGEOFF]
Lloh60:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8, x1, lsl #2]
	and	w3, w8, #0xf0
	mov	x0, x19
	mov	w2, #15
	bl	_ks0127_and_or
Lloh61:
	adrp	x8, _KS_CHROMB@GOTPAGE
Lloh62:
	ldr	x8, [x8, _KS_CHROMB@GOTPAGEOFF]
Lloh63:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8, x1, lsl #2]
	and	w3, w8, #0xf0
	mov	x0, x19
	mov	w2, #15
LBB0_4:
	bl	_ks0127_and_or
Lloh64:
	adrp	x8, _KS_UGAIN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _KS_UGAIN@GOTPAGEOFF]
Lloh66:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_ks0127_write
Lloh67:
	adrp	x8, _KS_VGAIN@GOTPAGE
Lloh68:
	ldr	x8, [x8, _KS_VGAIN@GOTPAGEOFF]
Lloh69:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_ks0127_write
Lloh70:
	adrp	x8, _KS_UVOFFH@GOTPAGE
Lloh71:
	ldr	x8, [x8, _KS_UVOFFH@GOTPAGEOFF]
Lloh72:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_ks0127_write
Lloh73:
	adrp	x8, _KS_UVOFFL@GOTPAGE
Lloh74:
	ldr	x8, [x8, _KS_UVOFFL@GOTPAGEOFF]
Lloh75:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_ks0127_write
LBB0_5:
Lloh76:
	adrp	x8, _KS_DEMOD@GOTPAGE
Lloh77:
	ldr	x8, [x8, _KS_DEMOD@GOTPAGEOFF]
Lloh78:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_ks0127_write
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.7:
	mov	x21, x0
Lloh79:
	adrp	x8, _debug@GOTPAGE
Lloh80:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x3, l_.str.2@PAGE
Lloh83:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	ldr	w8, [x21]
Lloh84:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh85:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
Lloh87:
	adrp	x20, _KS_CMDA@GOTPAGE
Lloh88:
	ldr	x20, [x20, _KS_CMDA@GOTPAGEOFF]
	ldr	x1, [x20]
	tst	w9, w8
	mov	w8, #2
	cinc	w3, w8, ne
	mov	x0, x19
	mov	w2, #252
	bl	_ks0127_and_or
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #255
	mov	w3, #64
	bl	_ks0127_and_or
Lloh89:
	adrp	x8, _KS_CMDB@GOTPAGE
Lloh90:
	ldr	x8, [x8, _KS_CMDB@GOTPAGEOFF]
Lloh91:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #176
	mov	w3, #192
	bl	_ks0127_and_or
Lloh92:
	adrp	x8, _KS_CMDC@GOTPAGE
Lloh93:
	ldr	x8, [x8, _KS_CMDC@GOTPAGEOFF]
Lloh94:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #112
	mov	w3, #135
	bl	_ks0127_and_or
Lloh95:
	adrp	x8, _KS_CMDD@GOTPAGE
Lloh96:
	ldr	x8, [x8, _KS_CMDD@GOTPAGEOFF]
Lloh97:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #8
	bl	_ks0127_and_or
Lloh98:
	adrp	x8, _KS_CTRACK@GOTPAGE
Lloh99:
	ldr	x8, [x8, _KS_CTRACK@GOTPAGEOFF]
Lloh100:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #207
	mov	w3, #48
	bl	_ks0127_and_or
Lloh101:
	adrp	x8, _KS_LUMA@GOTPAGE
Lloh102:
	ldr	x8, [x8, _KS_LUMA@GOTPAGEOFF]
Lloh103:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #113
	bl	_ks0127_and_or
Lloh104:
	adrp	x8, _KS_VERTIC@GOTPAGE
Lloh105:
	ldr	x8, [x8, _KS_VERTIC@GOTPAGEOFF]
Lloh106:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8, x1, lsl #2]
	and	w3, w8, #0xf0
	mov	x0, x19
	mov	w2, #15
	bl	_ks0127_and_or
Lloh107:
	adrp	x8, _KS_VERTIA@GOTPAGE
Lloh108:
	ldr	x8, [x8, _KS_VERTIA@GOTPAGEOFF]
Lloh109:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	w3, #129
	bl	_ks0127_and_or
Lloh110:
	adrp	x8, _KS_CHROMB@GOTPAGE
Lloh111:
	ldr	x8, [x8, _KS_CHROMB@GOTPAGEOFF]
Lloh112:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8, x1, lsl #2]
	and	w3, w8, #0xf0
	mov	x0, x19
	mov	w2, #15
	bl	_ks0127_and_or
Lloh113:
	adrp	x8, _KS_CON@GOTPAGE
Lloh114:
	ldr	x8, [x8, _KS_CON@GOTPAGEOFF]
Lloh115:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ks0127_and_or
Lloh116:
	adrp	x8, _KS_BRT@GOTPAGE
Lloh117:
	ldr	x8, [x8, _KS_BRT@GOTPAGEOFF]
Lloh118:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #32
	bl	_ks0127_and_or
Lloh119:
	adrp	x8, _KS_SAT@GOTPAGE
Lloh120:
	ldr	x8, [x8, _KS_SAT@GOTPAGEOFF]
Lloh121:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #232
	bl	_ks0127_and_or
Lloh122:
	adrp	x8, _KS_HUE@GOTPAGE
Lloh123:
	ldr	x8, [x8, _KS_HUE@GOTPAGEOFF]
Lloh124:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ks0127_and_or
Lloh125:
	adrp	x8, _KS_UGAIN@GOTPAGE
Lloh126:
	ldr	x8, [x8, _KS_UGAIN@GOTPAGEOFF]
Lloh127:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #238
	bl	_ks0127_and_or
Lloh128:
	adrp	x8, _KS_VGAIN@GOTPAGE
Lloh129:
	ldr	x8, [x8, _KS_VGAIN@GOTPAGEOFF]
Lloh130:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ks0127_and_or
Lloh131:
	adrp	x8, _KS_UVOFFH@GOTPAGE
Lloh132:
	ldr	x8, [x8, _KS_UVOFFH@GOTPAGEOFF]
Lloh133:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #79
	bl	_ks0127_and_or
Lloh134:
	adrp	x8, _KS_UVOFFL@GOTPAGE
Lloh135:
	ldr	x8, [x8, _KS_UVOFFL@GOTPAGEOFF]
Lloh136:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ks0127_and_or
	b	LBB0_5
LBB0_8:
Lloh137:
	adrp	x8, _debug@GOTPAGE
Lloh138:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh139:
	ldr	w1, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh140:
	adrp	x3, l_.str.3@PAGE
Lloh141:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_routing %d: Composite\n"

	.comm	_KS_CMDA,8,3                    ; @KS_CMDA
	.comm	_KS_CMDB,8,3                    ; @KS_CMDB
	.comm	_KS_CMDC,8,3                    ; @KS_CMDC
	.comm	_KS_CMDD,8,3                    ; @KS_CMDD
	.comm	_KS_CTRACK,8,3                  ; @KS_CTRACK
	.comm	_KS_LUMA,8,3                    ; @KS_LUMA
	.comm	_reg_defaults,8,3               ; @reg_defaults
	.comm	_KS_VERTIA,8,3                  ; @KS_VERTIA
	.comm	_KS_VERTIC,8,3                  ; @KS_VERTIC
	.comm	_KS_CHROMB,8,3                  ; @KS_CHROMB
	.comm	_KS_UGAIN,8,3                   ; @KS_UGAIN
	.comm	_KS_VGAIN,8,3                   ; @KS_VGAIN
	.comm	_KS_UVOFFH,8,3                  ; @KS_UVOFFH
	.comm	_KS_UVOFFL,8,3                  ; @KS_UVOFFL
l_.str.1:                               ; @.str.1
	.asciz	"s_routing %d: S-Video\n"

l_.str.2:                               ; @.str.2
	.asciz	"s_routing 15: YUV656\n"

	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_KS_CON,8,3                     ; @KS_CON
	.comm	_KS_BRT,8,3                     ; @KS_BRT
	.comm	_KS_SAT,8,3                     ; @KS_SAT
	.comm	_KS_HUE,8,3                     ; @KS_HUE
l_.str.3:                               ; @.str.3
	.asciz	"s_routing: Unknown input %d\n"

	.comm	_KS_DEMOD,8,3                   ; @KS_DEMOD
	.no_dead_strip	_ks0127_s_routing
.subsections_via_symbols
