	.file	"extr_bt819.c_bt819_s_routing.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"set input %x\n"
.LC1:
	.string	"no notify found!\n"
	.text
	.p2align 4
	.type	bt819_s_routing, @function
bt819_s_routing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	to_bt819@PLT
	mov	r8d, ebx
	mov	rdx, rbp
	mov	edi, 1
	mov	esi, DWORD PTR debug[rip]
	lea	rcx, .LC0[rip]
	mov	r12, rax
	call	v4l2_dbg@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	ebx, 7
	ja	.L1
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L4
	cmp	QWORD PTR [rax], 0
	je	.L4
	xor	eax, eax
	cmp	DWORD PTR [r12], ebx
	jne	.L14
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR BT819_FIFO_RESET_LOW[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	v4l2_subdev_notify@PLT
	mov	DWORD PTR [r12], ebx
	test	ebx, ebx
	je	.L15
	mov	ecx, 1
	mov	edx, 6
	mov	esi, 11
	mov	rdi, r12
	call	bt819_setbit@PLT
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, r12
	mov	esi, 26
	call	bt819_setbit@PLT
.L7:
	mov	esi, DWORD PTR BT819_FIFO_RESET_HIGH[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	v4l2_subdev_notify@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	v4l2_err@PLT
	xor	eax, eax
	cmp	DWORD PTR [r12], ebx
	je	.L1
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	xor	ecx, ecx
	mov	rdi, r12
	mov	edx, 6
	mov	esi, 11
	call	bt819_setbit@PLT
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, r12
	mov	esi, 26
	call	bt819_setbit@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	bt819_s_routing, .-bt819_s_routing
	.comm	debug,4,4
	.comm	EINVAL,4,4
	.comm	BT819_FIFO_RESET_LOW,4,4
	.comm	BT819_FIFO_RESET_HIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bt819.c_bt819_s_routing.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"set input %x\012\000"
	.align	2
.LC1:
	.ascii	"no notify found!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bt819_s_routing, %function
bt819_s_routing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	sub	sp, sp, #8
	mov	r5, r0
	bl	to_bt819
	ldr	r3, .L17
	str	r4, [sp]
	ldr	r1, [r3]
	mov	r6, r0
	mov	r2, r5
	mov	r0, #1
	ldr	r3, .L17+4
	bl	v4l2_dbg
	cmp	r4, #7
	bhi	.L14
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r6]
	cmp	r3, r4
	moveq	r0, #0
	bne	.L15
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L17+8
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r3]
	bl	v4l2_subdev_notify
	cmp	r4, #0
	str	r4, [r6]
	beq	.L16
	mov	r3, #1
	mov	r2, #6
	mov	r1, #11
	mov	r0, r6
	bl	bt819_setbit
	mov	r0, r6
	mov	r3, #0
	mov	r2, #1
	mov	r1, #26
	bl	bt819_setbit
.L7:
	ldr	r3, .L17+12
	mov	r0, r5
	mov	r2, #0
	ldr	r1, [r3]
	bl	v4l2_subdev_notify
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r5
	ldr	r1, .L17+16
	bl	v4l2_err
	ldr	r3, [r6]
	cmp	r3, r4
	moveq	r0, #0
	beq	.L1
	b	.L15
.L14:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	mov	r3, r4
	mov	r2, #6
	mov	r1, #11
	mov	r0, r6
	bl	bt819_setbit
	mov	r3, #1
	mov	r0, r6
	mov	r2, r3
	mov	r1, #26
	bl	bt819_setbit
	b	.L7
.L18:
	.align	2
.L17:
	.word	debug
	.word	.LC0
	.word	BT819_FIFO_RESET_LOW
	.word	BT819_FIFO_RESET_HIGH
	.word	.LC1
	.word	EINVAL
	.size	bt819_s_routing, .-bt819_s_routing
	.comm	debug,4,4
	.comm	EINVAL,4,4
	.comm	BT819_FIFO_RESET_LOW,4,4
	.comm	BT819_FIFO_RESET_HIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
