	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpx3220_s_routing
_vpx3220_s_routing:                     ## @vpx3220_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
	cmpl	$3, %esi
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_inputs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%esi, %r14
	movl	(%rcx,%r14,4), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_v4l2_dbg
	leaq	l___const.vpx3220_s_routing.input_vals(%rip), %r15
	movl	(%r15,%r14,8), %edx
	movq	%rbx, %rdi
	movl	$51, %esi
	callq	_vpx3220_write
	movq	%rbx, %rdi
	movl	$242, %esi
	callq	_vpx3220_fp_read
	andl	$-33, %eax
	js	LBB0_4
## %bb.3:
	movl	4(%r15,%r14,8), %ecx
	shll	$5, %ecx
	orl	%ecx, %eax
	orl	$16, %eax
	movq	%rbx, %rdi
	movl	$242, %esi
	movl	%eax, %edx
	callq	_vpx3220_fp_write
	movl	$10, %edi
	callq	_udelay
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.vpx3220_s_routing.input_vals
l___const.vpx3220_s_routing.input_vals:
	.long	12                              ## 0xc
	.long	0                               ## 0x0
	.long	13                              ## 0xd
	.long	0                               ## 0x0
	.long	14                              ## 0xe
	.long	1                               ## 0x1

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input switched to %s\n"

	.comm	_inputs,8,3                     ## @inputs
	.no_dead_strip	_vpx3220_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpx3220_s_routing
_vpx3220_s_routing:                     ; @vpx3220_s_routing
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w1, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _inputs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _inputs@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w4, [x8, w20, sxtw #2]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	sbfiz	x8, x20, #3, #32
Lloh11:
	adrp	x21, l___const.vpx3220_s_routing.input_vals@PAGE
Lloh12:
	add	x21, x21, l___const.vpx3220_s_routing.input_vals@PAGEOFF
	ldr	w2, [x21, x8]
	mov	x0, x19
	mov	w1, #51
	bl	_vpx3220_write
	mov	x0, x19
	mov	w1, #242
	bl	_vpx3220_fp_read
	ands	w0, w0, #0xffffffdf
	b.lt	LBB0_4
; %bb.3:
	sxtw	x8, w20
	add	x8, x21, x8, lsl #3
	ldr	w8, [x8, #4]
	orr	w8, w0, w8, lsl #5
	orr	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #242
	bl	_vpx3220_fp_write
	mov	w0, #10
	bl	_udelay
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.vpx3220_s_routing.input_vals
l___const.vpx3220_s_routing.input_vals:
	.long	12                              ; 0xc
	.long	0                               ; 0x0
	.long	13                              ; 0xd
	.long	0                               ; 0x0
	.long	14                              ; 0xe
	.long	1                               ; 0x1

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input switched to %s\n"

	.comm	_inputs,8,3                     ; @inputs
	.no_dead_strip	_vpx3220_s_routing
.subsections_via_symbols
