	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tea6420_s_routing
_tea6420_s_routing:                     ## @tea6420_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_v4l2_get_subdevdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r15d
	shrl	$4, %r15d
	andl	$15, %r15d
	movl	%r14d, %ebx
	andl	$15, %ebx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, (%rsp)
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	testb	$16, %r14b
	jne	LBB0_4
## %bb.1:
	cmpl	$6, %r15d
	ja	LBB0_4
## %bb.2:
	leal	-7(%r13), %eax
	cmpl	$-6, %eax
	jb	LBB0_4
## %bb.3:
	leal	-5(%rbx), %eax
	cmpl	$-5, %eax
	jbe	LBB0_4
## %bb.5:
	shll	$5, %ebx
	addl	$-32, %ebx
	decl	%r13d
	orl	%ebx, %r13d
	cmpl	$4, %r15d
	je	LBB0_10
## %bb.6:
	cmpl	$2, %r15d
	je	LBB0_9
## %bb.7:
	testl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_12
## %bb.8:
	orl	$24, %r13d
	jmp	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_10:
	orl	$8, %r13d
	jmp	LBB0_11
LBB0_9:
	orl	$16, %r13d
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	movl	%r13d, %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i=%d, o=%d, g=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"i2c_smbus_write_byte() failed, ret:%d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_tea6420_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tea6420_s_routing
_tea6420_s_routing:                     ; @tea6420_s_routing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	ubfx	w24, w22, #4, #4
	and	w25, w22, #0xf
Lloh0:
	adrp	x23, _debug@GOTPAGE
Lloh1:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	stp	x25, x24, [sp]
	mov	w0, #1
	mov	x2, x19
	mov	x4, x21
	bl	_v4l2_dbg
	tbnz	w22, #4, LBB0_6
; %bb.1:
	cmp	w24, #6
	b.hi	LBB0_6
; %bb.2:
	sub	w8, w21, #7
	cmn	w8, #6
	b.lo	LBB0_6
; %bb.3:
	sub	w8, w25, #5
	cmn	w8, #5
	b.ls	LBB0_6
; %bb.4:
	lsl	w8, w25, #5
	sub	w8, w8, #32
	sub	w9, w21, #1
	orr	w8, w8, w9
	orr	w9, w8, #0x8
	orr	w10, w8, #0x10
	orr	w11, w8, #0x18
	cmp	w24, #0
	csel	w8, w8, w11, ne
	cmp	w24, #2
	csel	w8, w10, w8, eq
	cmp	w24, #4
	csel	w1, w9, w8, eq
	mov	x0, x20
	bl	_i2c_smbus_write_byte
	cbz	w0, LBB0_8
; %bb.5:
	mov	x4, x0
	ldr	w1, [x23]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i=%d, o=%d, g=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"i2c_smbus_write_byte() failed, ret:%d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_tea6420_s_routing
.subsections_via_symbols
