	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt856_init
_bt856_init:                            ## @bt856_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_bt856
	movq	%rax, %rbx
	movq	_debug@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	movq	%rbx, %rdi
	movl	$220, %esi
	movl	$24, %edx
	callq	_bt856_write
	movq	%rbx, %rdi
	movl	$218, %esi
	xorl	%edx, %edx
	callq	_bt856_write
	movq	%rbx, %rdi
	movl	$222, %esi
	xorl	%edx, %edx
	callq	_bt856_write
	movq	%rbx, %rdi
	movl	$220, %esi
	movl	$3, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movq	%rbx, %rdi
	movl	$220, %esi
	movl	$4, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rbx), %eax
	sete	%cl
	movq	%rbx, %rdi
	movl	$220, %esi
	movl	$2, %edx
	callq	_bt856_setbit
	movq	%rbx, %rdi
	movl	$220, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movq	%rbx, %rdi
	movl	$222, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_bt856_setbit
	movq	%rbx, %rdi
	movl	$222, %esi
	movl	$3, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_bt856_dump
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init\n"

	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.no_dead_strip	_bt856_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt856_init
_bt856_init:                            ; @bt856_init
	.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	x20, x0
	bl	_to_bt856
	mov	x19, x0
Lloh0:
	adrp	x21, _debug@GOTPAGE
Lloh1:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
	mov	x0, x19
	mov	w1, #220
	mov	w2, #24
	bl	_bt856_write
	mov	x0, x19
	mov	w1, #218
	mov	w2, #0
	bl	_bt856_write
	mov	x0, x19
	mov	w1, #222
	mov	w2, #0
	bl	_bt856_write
	mov	x0, x19
	mov	w1, #220
	mov	w2, #3
	mov	w3, #1
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #220
	mov	w2, #4
	mov	w3, #1
	bl	_bt856_setbit
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w3, eq
	mov	x0, x19
	mov	w1, #220
	mov	w2, #2
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #220
	mov	w2, #1
	mov	w3, #1
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #222
	mov	w2, #4
	mov	w3, #0
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #222
	mov	w2, #3
	mov	w3, #1
	bl	_bt856_setbit
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_bt856_dump
LBB0_2:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init\n"

	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.no_dead_strip	_bt856_init
.subsections_via_symbols
