	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt866_s_routing
_bt866_s_routing:                       ## @bt866_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, %r15d
	movq	%rdi, %r14
	callq	_to_bt866
	movq	%rax, %r12
	leaq	_bt866_s_routing.init(%rip), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %esi
	movl	4(%r13,%rbx,4), %edx
	movq	%r12, %rdi
	callq	_bt866_write
	addq	$2, %rbx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	(%r12), %rax
	movl	880(%rax), %eax
	xorl	%edx, %edx
	testl	%r15d, %r15d
	sete	%dl
	andl	$-65, %eax
	shll	$6, %edx
	orl	%eax, %edx
	movq	%r12, %rdi
	movl	$220, %esi
	callq	_bt866_write
	movq	(%r12), %rax
	movl	816(%rax), %eax
	xorl	%edx, %edx
	cmpl	$2, %r15d
	sete	%dl
	andl	$-2, %eax
	orl	%eax, %edx
	movq	%r12, %rdi
	movl	$204, %esi
	callq	_bt866_write
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	callq	_v4l2_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpl	$3, %r15d
	cmovbl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @bt866_s_routing.init
_bt866_s_routing.init:
	.long	200                             ## 0xc8
	.long	204                             ## 0xcc
	.long	202                             ## 0xca
	.long	145                             ## 0x91
	.long	204                             ## 0xcc
	.long	36                              ## 0x24
	.long	218                             ## 0xda
	.long	0                               ## 0x0
	.long	220                             ## 0xdc
	.long	36                              ## 0x24
	.long	222                             ## 0xde
	.long	2                               ## 0x2
	.long	112                             ## 0x70
	.long	235                             ## 0xeb
	.long	144                             ## 0x90
	.long	128                             ## 0x80
	.long	176                             ## 0xb0
	.long	128                             ## 0x80
	.long	114                             ## 0x72
	.long	162                             ## 0xa2
	.long	146                             ## 0x92
	.long	142                             ## 0x8e
	.long	178                             ## 0xb2
	.long	44                              ## 0x2c
	.long	116                             ## 0x74
	.long	131                             ## 0x83
	.long	148                             ## 0x94
	.long	44                              ## 0x2c
	.long	180                             ## 0xb4
	.long	156                             ## 0x9c
	.long	118                             ## 0x76
	.long	112                             ## 0x70
	.long	150                             ## 0x96
	.long	58                              ## 0x3a
	.long	182                             ## 0xb6
	.long	72                              ## 0x48
	.long	120                             ## 0x78
	.long	84                              ## 0x54
	.long	152                             ## 0x98
	.long	198                             ## 0xc6
	.long	184                             ## 0xb8
	.long	184                             ## 0xb8
	.long	122                             ## 0x7a
	.long	65                              ## 0x41
	.long	154                             ## 0x9a
	.long	212                             ## 0xd4
	.long	186                             ## 0xba
	.long	100                             ## 0x64
	.long	124                             ## 0x7c
	.long	35                              ## 0x23
	.long	156                             ## 0x9c
	.long	114                             ## 0x72
	.long	188                             ## 0xbc
	.long	212                             ## 0xd4
	.long	126                             ## 0x7e
	.long	16                              ## 0x10
	.long	158                             ## 0x9e
	.long	128                             ## 0x80
	.long	190                             ## 0xbe
	.long	128                             ## 0x80
	.long	96                              ## 0x60
	.long	235                             ## 0xeb
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	192                             ## 0xc0
	.long	128                             ## 0x80
	.long	98                              ## 0x62
	.long	162                             ## 0xa2
	.long	130                             ## 0x82
	.long	142                             ## 0x8e
	.long	194                             ## 0xc2
	.long	44                              ## 0x2c
	.long	100                             ## 0x64
	.long	131                             ## 0x83
	.long	132                             ## 0x84
	.long	44                              ## 0x2c
	.long	196                             ## 0xc4
	.long	156                             ## 0x9c
	.long	102                             ## 0x66
	.long	112                             ## 0x70
	.long	134                             ## 0x86
	.long	58                              ## 0x3a
	.long	198                             ## 0xc6
	.long	72                              ## 0x48
	.long	104                             ## 0x68
	.long	84                              ## 0x54
	.long	136                             ## 0x88
	.long	198                             ## 0xc6
	.long	200                             ## 0xc8
	.long	184                             ## 0xb8
	.long	106                             ## 0x6a
	.long	65                              ## 0x41
	.long	138                             ## 0x8a
	.long	212                             ## 0xd4
	.long	202                             ## 0xca
	.long	100                             ## 0x64
	.long	108                             ## 0x6c
	.long	35                              ## 0x23
	.long	140                             ## 0x8c
	.long	114                             ## 0x72
	.long	204                             ## 0xcc
	.long	212                             ## 0xd4
	.long	110                             ## 0x6e
	.long	16                              ## 0x10
	.long	142                             ## 0x8e
	.long	128                             ## 0x80
	.long	206                             ## 0xce
	.long	128                             ## 0x80

	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set input %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bt866_s_routing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt866_s_routing
_bt866_s_routing:                       ; @bt866_s_routing
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_to_bt866
	mov	x21, x0
Lloh0:
	adrp	x22, _bt866_s_routing.init@PAGE
Lloh1:
	add	x22, x22, _bt866_s_routing.init@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x22, x23, lsl #2
	ldp	w1, w2, [x8]
	mov	x0, x21
	bl	_bt866_write
	add	x23, x23, #2
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	cmp	x23, w8, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x21]
	ldr	w2, [x8, #880]
	cmp	w19, #0
	cset	w8, eq
	bfi	w2, w8, #6, #1
	mov	x0, x21
	mov	w1, #220
	bl	_bt866_write
	ldr	x8, [x21]
	ldr	w8, [x8, #816]
	cmp	w19, #2
	cset	w9, eq
	and	w8, w8, #0xfffffffe
	orr	w2, w8, w9
	mov	x0, x21
	mov	w1, #204
	bl	_bt866_write
Lloh2:
	adrp	x8, _debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	mov	x4, x19
	bl	_v4l2_dbg
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w19, #3
	csneg	w0, wzr, w8, lo
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @bt866_s_routing.init
_bt866_s_routing.init:
	.long	200                             ; 0xc8
	.long	204                             ; 0xcc
	.long	202                             ; 0xca
	.long	145                             ; 0x91
	.long	204                             ; 0xcc
	.long	36                              ; 0x24
	.long	218                             ; 0xda
	.long	0                               ; 0x0
	.long	220                             ; 0xdc
	.long	36                              ; 0x24
	.long	222                             ; 0xde
	.long	2                               ; 0x2
	.long	112                             ; 0x70
	.long	235                             ; 0xeb
	.long	144                             ; 0x90
	.long	128                             ; 0x80
	.long	176                             ; 0xb0
	.long	128                             ; 0x80
	.long	114                             ; 0x72
	.long	162                             ; 0xa2
	.long	146                             ; 0x92
	.long	142                             ; 0x8e
	.long	178                             ; 0xb2
	.long	44                              ; 0x2c
	.long	116                             ; 0x74
	.long	131                             ; 0x83
	.long	148                             ; 0x94
	.long	44                              ; 0x2c
	.long	180                             ; 0xb4
	.long	156                             ; 0x9c
	.long	118                             ; 0x76
	.long	112                             ; 0x70
	.long	150                             ; 0x96
	.long	58                              ; 0x3a
	.long	182                             ; 0xb6
	.long	72                              ; 0x48
	.long	120                             ; 0x78
	.long	84                              ; 0x54
	.long	152                             ; 0x98
	.long	198                             ; 0xc6
	.long	184                             ; 0xb8
	.long	184                             ; 0xb8
	.long	122                             ; 0x7a
	.long	65                              ; 0x41
	.long	154                             ; 0x9a
	.long	212                             ; 0xd4
	.long	186                             ; 0xba
	.long	100                             ; 0x64
	.long	124                             ; 0x7c
	.long	35                              ; 0x23
	.long	156                             ; 0x9c
	.long	114                             ; 0x72
	.long	188                             ; 0xbc
	.long	212                             ; 0xd4
	.long	126                             ; 0x7e
	.long	16                              ; 0x10
	.long	158                             ; 0x9e
	.long	128                             ; 0x80
	.long	190                             ; 0xbe
	.long	128                             ; 0x80
	.long	96                              ; 0x60
	.long	235                             ; 0xeb
	.long	128                             ; 0x80
	.long	128                             ; 0x80
	.long	192                             ; 0xc0
	.long	128                             ; 0x80
	.long	98                              ; 0x62
	.long	162                             ; 0xa2
	.long	130                             ; 0x82
	.long	142                             ; 0x8e
	.long	194                             ; 0xc2
	.long	44                              ; 0x2c
	.long	100                             ; 0x64
	.long	131                             ; 0x83
	.long	132                             ; 0x84
	.long	44                              ; 0x2c
	.long	196                             ; 0xc4
	.long	156                             ; 0x9c
	.long	102                             ; 0x66
	.long	112                             ; 0x70
	.long	134                             ; 0x86
	.long	58                              ; 0x3a
	.long	198                             ; 0xc6
	.long	72                              ; 0x48
	.long	104                             ; 0x68
	.long	84                              ; 0x54
	.long	136                             ; 0x88
	.long	198                             ; 0xc6
	.long	200                             ; 0xc8
	.long	184                             ; 0xb8
	.long	106                             ; 0x6a
	.long	65                              ; 0x41
	.long	138                             ; 0x8a
	.long	212                             ; 0xd4
	.long	202                             ; 0xca
	.long	100                             ; 0x64
	.long	108                             ; 0x6c
	.long	35                              ; 0x23
	.long	140                             ; 0x8c
	.long	114                             ; 0x72
	.long	204                             ; 0xcc
	.long	212                             ; 0xd4
	.long	110                             ; 0x6e
	.long	16                              ; 0x10
	.long	142                             ; 0x8e
	.long	128                             ; 0x80
	.long	206                             ; 0xce
	.long	128                             ; 0x80

	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set input %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bt866_s_routing
.subsections_via_symbols
