	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_input
_set_input:                             ## @set_input
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_CX18_DEBUG_INFO_DEV
	movq	_CX18_AV_COMPOSITE1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r15d, %eax
	ja	LBB0_3
## %bb.1:
	movq	_CX18_AV_COMPOSITE8@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jb	LBB0_3
## %bb.2:
	movl	%r15d, %ecx
	subl	%eax, %ecx
	addl	$240, %ecx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_28
## %bb.23:
	movl	%esi, %r12d
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_27:
	andl	$-193, %ecx
	orl	$64, %ecx
	movl	$4, %r14d
	jmp	LBB0_31
LBB0_3:
	movq	_CX18_AV_COMPONENT_LUMA1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%r15d, %ecx
	jbe	LBB0_4
## %bb.14:
	testl	$-4081, %r15d                   ## imm = 0xF00F
	jne	LBB0_12
## %bb.15:
	movl	%r15d, %ecx
	andl	$240, %ecx
	movq	_CX18_AV_SVIDEO_LUMA1@GOTPCREL(%rip), %rdx
	movl	%ecx, %eax
	subl	(%rdx), %eax
	jl	LBB0_12
## %bb.16:
	movq	_CX18_AV_SVIDEO_LUMA8@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_12
## %bb.17:
	movl	%r15d, %ecx
	andl	$3840, %ecx                     ## imm = 0xF00
	movq	_CX18_AV_SVIDEO_CHROMA4@GOTPCREL(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsi), %edx
	jl	LBB0_12
## %bb.18:
	movq	_CX18_AV_SVIDEO_CHROMA8@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jg	LBB0_12
## %bb.19:
	sarl	$4, %eax
	addl	$240, %eax
	movq	_CX18_AV_SVIDEO_CHROMA7@GOTPCREL(%rip), %rsi
	subl	(%rsi), %ecx
	jge	LBB0_20
## %bb.21:
	andl	$207, %eax
	sarl	$4, %edx
	orl	%eax, %edx
	movl	$2, %esi
	xorl	%r14d, %r14d
	movl	$3, %r13d
	movl	%edx, %ecx
	jmp	LBB0_22
LBB0_4:
	testl	$-16773121, %r15d               ## imm = 0xFF000FFF
	jne	LBB0_12
## %bb.5:
	movl	%r15d, %edx
	andl	$61440, %edx                    ## imm = 0xF000
	movl	%edx, %eax
	subl	%ecx, %eax
	jl	LBB0_12
## %bb.6:
	movq	_CX18_AV_COMPONENT_LUMA8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jg	LBB0_12
## %bb.7:
	movl	%r15d, %ecx
	andl	$983040, %ecx                   ## imm = 0xF0000
	movq	_CX18_AV_COMPONENT_R_CHROMA4@GOTPCREL(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsi), %edx
	jl	LBB0_12
## %bb.8:
	movq	_CX18_AV_COMPONENT_R_CHROMA6@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jg	LBB0_12
## %bb.9:
	movl	%r15d, %esi
	andl	$15728640, %esi                 ## imm = 0xF00000
	movq	_CX18_AV_COMPONENT_B_CHROMA7@GOTPCREL(%rip), %rdi
	movl	%esi, %ecx
	subl	(%rdi), %ecx
	jl	LBB0_12
## %bb.10:
	movq	_CX18_AV_COMPONENT_B_CHROMA8@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jg	LBB0_12
## %bb.11:
	orl	%eax, %edx
	sarl	$12, %edx
	sarl	$14, %ecx
	orl	%edx, %ecx
	movl	$5, %r14d
	movl	$6, %r13d
	movl	$6, %esi
	jmp	LBB0_22
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	jmp	LBB0_13
LBB0_28:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_13:
	callq	_CX18_ERR_DEV
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_36
LBB0_26:
	andl	$-193, %ecx
	movl	$4, %r14d
	jmp	LBB0_31
LBB0_25:
	andl	$-49, %ecx
	orl	$32, %ecx
	jmp	LBB0_30
LBB0_24:
	andl	$-49, %ecx
	orl	$16, %ecx
	jmp	LBB0_30
LBB0_29:
	andl	$-49, %ecx
LBB0_30:
	movl	$4, %r13d
LBB0_31:
	movq	%rbx, %rdi
	movl	$259, %esi                      ## imm = 0x103
	movl	%ecx, %edx
	movl	$247, %r8d
	callq	_cx18_av_write_expect
	movq	%rbx, %rdi
	movl	$1025, %esi                     ## imm = 0x401
	movl	$-7, %edx
	movl	%r12d, %ecx
	callq	_cx18_av_and_or
	movq	%rbx, %rdi
	movl	$258, %esi                      ## imm = 0x102
	callq	_cx18_av_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-7, %eax
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	setne	%cl
	leal	(%rax,%rcx,2), %eax
	addl	$-1, %r13d
	setb	%dl
	andb	%dl, %cl
	movzbl	%cl, %r12d
	leal	(%rax,%r12,4), %ecx
	movq	%rbx, %rdi
	movl	$258, %esi                      ## imm = 0x102
	movl	%ecx, %edx
	movl	$23, %r8d
	callq	_cx18_av_write_expect
	movq	_CXADEC_AFE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cx18_av_read4
	andl	$-16777216, %eax                ## imm = 0xFF000000
	testb	%r12b, %r12b
	movl	$20528, %ecx                    ## imm = 0x5030
	movl	$20480, %edx                    ## imm = 0x5000
	cmovnel	%ecx, %edx
	orl	%eax, %edx
	movl	$1024, %eax                     ## imm = 0x400
	cmpl	$3, %r13d
	ja	LBB0_33
## %bb.32:
	movslq	%r13d, %rax
	leaq	L_switch.table.set_input(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_33:
	orl	%eax, %edx
	decl	%r14d
	movl	$2048, %eax                     ## imm = 0x800
	cmpl	$3, %r14d
	ja	LBB0_35
## %bb.34:
	movslq	%r14d, %rax
	leaq	L_switch.table.set_input.3(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_35:
	orl	%eax, %edx
	movq	_CXADEC_AFE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cx18_av_write4
	movl	%r15d, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_cx18_av_audio_set_path
	movq	%rbx, %rdi
	callq	_input_change
	xorl	%eax, %eax
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	andl	$63, %eax
	sarl	$2, %ecx
	orl	%eax, %ecx
	movl	$2, %esi
	movl	$3, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_27
	.long	L0_0_set_26
	.long	L0_0_set_25
	.long	L0_0_set_24
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decoder set video input %d, audio input %d\n"

	.comm	_CX18_AV_COMPOSITE1,4,2         ## @CX18_AV_COMPOSITE1
	.comm	_CX18_AV_COMPOSITE8,4,2         ## @CX18_AV_COMPOSITE8
	.comm	_CX18_AV_COMPONENT_LUMA1,4,2    ## @CX18_AV_COMPONENT_LUMA1
	.comm	_CX18_AV_COMPONENT_LUMA8,4,2    ## @CX18_AV_COMPONENT_LUMA8
	.comm	_CX18_AV_COMPONENT_R_CHROMA4,4,2 ## @CX18_AV_COMPONENT_R_CHROMA4
	.comm	_CX18_AV_COMPONENT_R_CHROMA6,4,2 ## @CX18_AV_COMPONENT_R_CHROMA6
	.comm	_CX18_AV_COMPONENT_B_CHROMA7,4,2 ## @CX18_AV_COMPONENT_B_CHROMA7
	.comm	_CX18_AV_COMPONENT_B_CHROMA8,4,2 ## @CX18_AV_COMPONENT_B_CHROMA8
L_.str.1:                               ## @.str.1
	.asciz	"0x%06x is not a valid video input!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CX18_AV_SVIDEO_LUMA1,4,2       ## @CX18_AV_SVIDEO_LUMA1
	.comm	_CX18_AV_SVIDEO_LUMA8,4,2       ## @CX18_AV_SVIDEO_LUMA8
	.comm	_CX18_AV_SVIDEO_CHROMA4,4,2     ## @CX18_AV_SVIDEO_CHROMA4
	.comm	_CX18_AV_SVIDEO_CHROMA8,4,2     ## @CX18_AV_SVIDEO_CHROMA8
	.comm	_CX18_AV_SVIDEO_CHROMA7,4,2     ## @CX18_AV_SVIDEO_CHROMA7
L_.str.2:                               ## @.str.2
	.asciz	"0x%04x is not a valid audio input!\n"

	.comm	_CXADEC_AFE_CTRL,4,2            ## @CXADEC_AFE_CTRL
	.no_dead_strip	_set_input
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.set_input
L_switch.table.set_input:
	.long	8192                            ## 0x2000
	.long	8192                            ## 0x2000
	.long	1024                            ## 0x400
	.long	1152                            ## 0x480

	.p2align	2                               ## @switch.table.set_input.3
L_switch.table.set_input.3:
	.long	8192                            ## 0x2000
	.long	8192                            ## 0x2000
	.long	2048                            ## 0x800
	.long	2304                            ## 0x900

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_input
_set_input:                             ; @set_input
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x22, x0, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	mov	x3, x20
	bl	_CX18_DEBUG_INFO_DEV
Lloh2:
	adrp	x8, _CX18_AV_COMPOSITE1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CX18_AV_COMPOSITE1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CX18_AV_COMPOSITE8@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CX18_AV_COMPOSITE8@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #0, ls
	b.hs	LBB0_5
; %bb.1:
Lloh8:
	adrp	x8, _CX18_AV_COMPONENT_LUMA1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CX18_AV_COMPONENT_LUMA1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ls	LBB0_9
; %bb.2:
	tst	w19, #0xfffff00f
	b.ne	LBB0_12
; %bb.3:
	and	w11, w19, #0xf0
	and	w8, w19, #0xf00
Lloh11:
	adrp	x9, _CX18_AV_SVIDEO_LUMA1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CX18_AV_SVIDEO_LUMA1@GOTPAGEOFF]
Lloh13:
	adrp	x10, _CX18_AV_SVIDEO_LUMA8@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CX18_AV_SVIDEO_LUMA8@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x9]
Lloh16:
	ldr	w13, [x10]
Lloh17:
	adrp	x9, _CX18_AV_SVIDEO_CHROMA4@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CX18_AV_SVIDEO_CHROMA4@GOTPAGEOFF]
Lloh19:
	adrp	x10, _CX18_AV_SVIDEO_CHROMA8@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CX18_AV_SVIDEO_CHROMA8@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	ldr	w14, [x10]
	subs	w10, w11, w12
	ccmp	w11, w13, #0, ge
	ccmp	w8, w9, #8, le
	ccmp	w8, w14, #0, ge
	b.gt	LBB0_12
; %bb.4:
	asr	w10, w10, #4
Lloh23:
	adrp	x11, _CX18_AV_SVIDEO_CHROMA7@GOTPAGE
Lloh24:
	ldr	x11, [x11, _CX18_AV_SVIDEO_CHROMA7@GOTPAGEOFF]
	add	w10, w10, #240
	mov	w12, #207
Lloh25:
	ldr	w11, [x11]
	and	w12, w10, w12
	sub	w9, w8, w9
	orr	w9, w12, w9, asr #4
	mov	w12, #2
	mov	w13, #3
	and	w10, w10, #0x3f
	sub	w14, w8, w11
	orr	w10, w10, w14, asr #2
	mov	w14, #2
	mov	w15, #3
	cmp	w8, w11
	csel	w25, w13, wzr, lt
	csel	w24, wzr, w15, lt
	csel	w23, w12, w14, lt
	csel	w2, w9, w10, lt
	b	LBB0_6
LBB0_5:
	mov	w25, #0
	mov	w24, #0
	mov	w23, #0
	sub	w8, w19, w8
	add	w2, w8, #240
LBB0_6:
	sub	w8, w20, #128
	cmp	w8, #6
	b.hi	LBB0_13
; %bb.7:
Lloh26:
	adrp	x9, lJTI0_0@PAGE
Lloh27:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	and	w8, w2, #0xffffff3f
	orr	w2, w8, #0x40
	mov	w24, #4
	b	LBB0_20
LBB0_9:
	tst	w19, #0xff000fff
	b.ne	LBB0_12
; %bb.10:
	and	w13, w19, #0xf000
	and	w10, w19, #0xf0000
	and	w9, w19, #0xf00000
Lloh28:
	adrp	x11, _CX18_AV_COMPONENT_LUMA8@GOTPAGE
Lloh29:
	ldr	x11, [x11, _CX18_AV_COMPONENT_LUMA8@GOTPAGEOFF]
Lloh30:
	ldr	w14, [x11]
Lloh31:
	adrp	x11, _CX18_AV_COMPONENT_R_CHROMA4@GOTPAGE
Lloh32:
	ldr	x11, [x11, _CX18_AV_COMPONENT_R_CHROMA4@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
Lloh34:
	adrp	x12, _CX18_AV_COMPONENT_R_CHROMA6@GOTPAGE
Lloh35:
	ldr	x12, [x12, _CX18_AV_COMPONENT_R_CHROMA6@GOTPAGEOFF]
Lloh36:
	ldr	w15, [x12]
Lloh37:
	adrp	x12, _CX18_AV_COMPONENT_B_CHROMA7@GOTPAGE
Lloh38:
	ldr	x12, [x12, _CX18_AV_COMPONENT_B_CHROMA7@GOTPAGEOFF]
Lloh39:
	ldr	w12, [x12]
Lloh40:
	adrp	x16, _CX18_AV_COMPONENT_B_CHROMA8@GOTPAGE
Lloh41:
	ldr	x16, [x16, _CX18_AV_COMPONENT_B_CHROMA8@GOTPAGEOFF]
Lloh42:
	ldr	w16, [x16]
	subs	w8, w13, w8
	ccmp	w13, w14, #0, ge
	ccmp	w10, w11, #8, le
	ccmp	w10, w15, #0, ge
	ccmp	w9, w12, #8, le
	ccmp	w9, w16, #0, ge
	b.gt	LBB0_12
; %bb.11:
	sub	w10, w10, w11
	orr	w8, w10, w8
	sub	w9, w9, w12
	asr	w9, w9, #14
	orr	w2, w9, w8, asr #12
	mov	w24, #5
	mov	w25, #6
	mov	w23, #6
	b	LBB0_6
LBB0_12:
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	b	LBB0_14
LBB0_13:
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x20
LBB0_14:
	bl	_CX18_ERR_DEV
Lloh47:
	adrp	x8, _EINVAL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_15:
	and	w2, w2, #0xffffff3f
	mov	w24, #4
	b	LBB0_20
LBB0_16:
	and	w8, w2, #0xffffffcf
	orr	w2, w8, #0x20
	b	LBB0_19
LBB0_17:
	and	w8, w2, #0xffffffcf
	orr	w2, w8, #0x10
	b	LBB0_19
LBB0_18:
	and	w2, w2, #0xffffffcf
LBB0_19:
	mov	w25, #4
LBB0_20:
	mov	x0, x21
	mov	w1, #259
	mov	x3, x2
	mov	w4, #247
	bl	_cx18_av_write_expect
	mov	x0, x21
	mov	w1, #1025
	mov	w2, #-7
	mov	x3, x23
	bl	_cx18_av_and_or
	mov	x0, x21
	mov	w1, #258
	bl	_cx18_av_read
	and	w8, w0, #0xfffffff9
	cmp	w24, #0
	cset	w9, ne
	bfi	w8, w9, #1, #1
	subs	w23, w25, #1
	cset	w10, hs
	tst	w10, w9
	mov	w9, #4
	csel	w9, w9, wzr, ne
	orr	w2, w8, w9
	mov	w8, #20480
	mov	w9, #20528
	csel	w25, w9, w8, ne
	mov	x0, x21
	mov	w1, #258
	mov	x3, x2
	mov	w4, #23
	bl	_cx18_av_write_expect
Lloh50:
	adrp	x22, _CXADEC_AFE_CTRL@GOTPAGE
Lloh51:
	ldr	x22, [x22, _CXADEC_AFE_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_cx18_av_read4
	and	w8, w0, #0xff000000
	orr	w8, w8, w25
	cmp	w23, #3
	b.hi	LBB0_22
; %bb.21:
Lloh52:
	adrp	x9, l_switch.table.set_input@PAGE
Lloh53:
	add	x9, x9, l_switch.table.set_input@PAGEOFF
	ldr	w9, [x9, w23, sxtw #2]
	b	LBB0_23
LBB0_22:
	mov	w9, #1024
LBB0_23:
	orr	w8, w8, w9
	sub	w9, w24, #1
	cmp	w9, #3
	b.hi	LBB0_25
; %bb.24:
Lloh54:
	adrp	x10, l_switch.table.set_input.3@PAGE
Lloh55:
	add	x10, x10, l_switch.table.set_input.3@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_26
LBB0_25:
	mov	w9, #2048
LBB0_26:
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x21
	bl	_cx18_av_write4
	stp	w19, w20, [x21]
	mov	x0, x21
	bl	_cx18_av_audio_set_path
	mov	x0, x21
	bl	_input_change
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_8)>>2
	.byte	(LBB0_20-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decoder set video input %d, audio input %d\n"

	.comm	_CX18_AV_COMPOSITE1,4,2         ; @CX18_AV_COMPOSITE1
	.comm	_CX18_AV_COMPOSITE8,4,2         ; @CX18_AV_COMPOSITE8
	.comm	_CX18_AV_COMPONENT_LUMA1,4,2    ; @CX18_AV_COMPONENT_LUMA1
	.comm	_CX18_AV_COMPONENT_LUMA8,4,2    ; @CX18_AV_COMPONENT_LUMA8
	.comm	_CX18_AV_COMPONENT_R_CHROMA4,4,2 ; @CX18_AV_COMPONENT_R_CHROMA4
	.comm	_CX18_AV_COMPONENT_R_CHROMA6,4,2 ; @CX18_AV_COMPONENT_R_CHROMA6
	.comm	_CX18_AV_COMPONENT_B_CHROMA7,4,2 ; @CX18_AV_COMPONENT_B_CHROMA7
	.comm	_CX18_AV_COMPONENT_B_CHROMA8,4,2 ; @CX18_AV_COMPONENT_B_CHROMA8
l_.str.1:                               ; @.str.1
	.asciz	"0x%06x is not a valid video input!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CX18_AV_SVIDEO_LUMA1,4,2       ; @CX18_AV_SVIDEO_LUMA1
	.comm	_CX18_AV_SVIDEO_LUMA8,4,2       ; @CX18_AV_SVIDEO_LUMA8
	.comm	_CX18_AV_SVIDEO_CHROMA4,4,2     ; @CX18_AV_SVIDEO_CHROMA4
	.comm	_CX18_AV_SVIDEO_CHROMA8,4,2     ; @CX18_AV_SVIDEO_CHROMA8
	.comm	_CX18_AV_SVIDEO_CHROMA7,4,2     ; @CX18_AV_SVIDEO_CHROMA7
l_.str.2:                               ; @.str.2
	.asciz	"0x%04x is not a valid audio input!\n"

	.comm	_CXADEC_AFE_CTRL,4,2            ; @CXADEC_AFE_CTRL
	.no_dead_strip	_set_input
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.set_input
l_switch.table.set_input:
	.long	8192                            ; 0x2000
	.long	8192                            ; 0x2000
	.long	1024                            ; 0x400
	.long	1152                            ; 0x480

	.p2align	2                               ; @switch.table.set_input.3
l_switch.table.set_input.3:
	.long	8192                            ; 0x2000
	.long	8192                            ; 0x2000
	.long	2048                            ; 0x800
	.long	2304                            ; 0x900

.subsections_via_symbols
