	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tea6415c_s_routing
_tea6415c_s_routing:                    ## @tea6415c_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	cmpl	$20, %ebx
	ja	LBB0_3
## %bb.1:
	movl	$1052010, %eax                  ## imm = 0x100D6A
	btl	%ebx, %eax
	jae	LBB0_3
## %bb.2:
	leal	-19(%r13), %eax
	cmpl	$-7, %eax
	ja	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movl	%r13d, %eax
	addl	$-13, %eax
	leal	-104(,%r13,8), %ecx
	movl	$40, %esi
	subl	%ecx, %esi
	xorl	%r12d, %r12d
	cmpl	$5, %eax
	cmovael	%r12d, %esi
	decl	%ebx
	cmpl	$19, %ebx
	ja	LBB0_13
## %bb.5:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	orl	$3, %esi
	jmp	LBB0_13
LBB0_7:
	orl	$2, %esi
	jmp	LBB0_13
LBB0_9:
	orl	$1, %esi
	jmp	LBB0_13
LBB0_6:
	orl	$4, %esi
	jmp	LBB0_13
LBB0_10:
	orl	$5, %esi
	jmp	LBB0_13
LBB0_12:
	orl	$7, %esi
	jmp	LBB0_13
LBB0_8:
	orl	$6, %esi
LBB0_13:
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i=%d, o=%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	_tea6415c_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tea6415c_s_routing
_tea6415c_s_routing:                    ; @tea6415c_s_routing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_v4l2_get_subdevdata
	mov	x20, x0
Lloh0:
	adrp	x23, _debug@GOTPAGE
Lloh1:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w1, [x23]
	str	x22, [sp]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w24, #1
	mov	w0, #1
	mov	x2, x19
	mov	x4, x21
	bl	_v4l2_dbg
	cmp	w21, #20
	b.hi	LBB0_3
; %bb.1:
	lsl	w8, w24, w21
	mov	w9, #3434
	movk	w9, #16, lsl #16
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	sub	w8, w22, #19
	cmn	w8, #7
	b.hi	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	sub	w8, w22, #13
	mov	w9, #40
	sub	w9, w9, w8, lsl #3
	cmp	w8, #5
	csel	w1, w9, wzr, lo
	sub	w8, w21, #1
	cmp	w8, #19
	b.hi	LBB0_13
; %bb.5:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	orr	w1, w1, #0x3
	b	LBB0_13
LBB0_7:
	orr	w1, w1, #0x2
	b	LBB0_13
LBB0_8:
	orr	w1, w1, #0x1
	b	LBB0_13
LBB0_9:
	orr	w1, w1, #0x4
	b	LBB0_13
LBB0_10:
	mov	w8, #5
	orr	w1, w1, w8
	b	LBB0_13
LBB0_11:
	orr	w1, w1, #0x7
	b	LBB0_13
LBB0_12:
	orr	w1, w1, #0x6
LBB0_13:
	mov	x0, x20
	bl	_i2c_smbus_write_byte
	cbz	w0, LBB0_16
; %bb.14:
	mov	x4, x0
	ldr	w1, [x23]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i=%d, o=%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	_tea6415c_s_routing
.subsections_via_symbols
