	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt819_s_routing
_bt819_s_routing:                       ## @bt819_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	%esi, %ebx
	movq	%rdi, %r15
	callq	_to_bt819
	movq	%rax, %r14
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%ebx, %r8d
	callq	_v4l2_dbg
	cmpl	$8, %ebx
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_2:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rax)
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
LBB0_5:
	xorl	%r12d, %r12d
	cmpl	%ebx, (%r14)
	je	LBB0_7
## %bb.6:
	movq	_BT819_FIFO_RESET_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_subdev_notify
	movl	%ebx, (%r14)
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	sete	%r13b
	setne	%cl
	movq	%r14, %rdi
	movl	$11, %esi
	movl	$6, %edx
	callq	_bt819_setbit
	movq	%r14, %rdi
	movl	$26, %esi
	movl	$1, %edx
	movl	%r13d, %ecx
	callq	_bt819_setbit
	movq	_BT819_FIFO_RESET_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_subdev_notify
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set input %x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"no notify found!\n"

	.comm	_BT819_FIFO_RESET_LOW,4,2       ## @BT819_FIFO_RESET_LOW
	.comm	_BT819_FIFO_RESET_HIGH,4,2      ## @BT819_FIFO_RESET_HIGH
	.no_dead_strip	_bt819_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt819_s_routing
_bt819_s_routing:                       ; @bt819_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
	mov	x21, x1
	mov	x19, x0
	bl	_to_bt819
	mov	x20, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x21
	bl	_v4l2_dbg
	cmp	w21, #8
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _BT819_FIFO_RESET_LOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BT819_FIFO_RESET_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_subdev_notify
	str	w21, [x20]
	cmp	w21, #0
	cset	w21, eq
	cset	w3, ne
	mov	x0, x20
	mov	w1, #11
	mov	w2, #6
	bl	_bt819_setbit
	mov	x0, x20
	mov	w1, #26
	mov	w2, #1
	mov	x3, x21
	bl	_bt819_setbit
Lloh13:
	adrp	x8, _BT819_FIFO_RESET_HIGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BT819_FIFO_RESET_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_subdev_notify
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set input %x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"no notify found!\n"

	.comm	_BT819_FIFO_RESET_LOW,4,2       ; @BT819_FIFO_RESET_LOW
	.comm	_BT819_FIFO_RESET_HIGH,4,2      ; @BT819_FIFO_RESET_HIGH
	.no_dead_strip	_bt819_s_routing
.subsections_via_symbols
