	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vv6410_start
_vv6410_start:                          ## @vv6410_start
	.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, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	_VV6410_SUBSAMPLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%rax,4)
	je	LBB0_2
## %bb.1:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
	movl	$16, %r14d
	movl	$6, %r15d
	movl	$2, %edx
	jmp	LBB0_3
LBB0_2:
	xorl	%r14d, %r14d
	movl	$10, %r15d
	movl	$1, %edx
LBB0_3:
	movq	_STV_Y_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stv06xx_write_bridge
	movq	_STV_X_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_stv06xx_write_bridge
	movq	_STV_SCAN_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stv06xx_write_bridge
	movq	_STV_LED_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LED_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stv06xx_write_bridge
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_VV6410_SETUP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv06xx_write_sensor
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VV6410_SUBSAMPLE,4,2           ## @VV6410_SUBSAMPLE
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling subsampling\n"

	.comm	_STV_Y_CTRL,4,2                 ## @STV_Y_CTRL
	.comm	_STV_X_CTRL,4,2                 ## @STV_X_CTRL
	.comm	_STV_SCAN_RATE,4,2              ## @STV_SCAN_RATE
	.comm	_STV_LED_CTRL,4,2               ## @STV_LED_CTRL
	.comm	_LED_ON,4,2                     ## @LED_ON
	.comm	_VV6410_SETUP0,4,2              ## @VV6410_SETUP0
	.comm	_D_STREAM,4,2                   ## @D_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"Starting stream\n"

	.no_dead_strip	_vv6410_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vv6410_start
_vv6410_start:                          ; @vv6410_start
	.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	x19, x0
	ldp	x9, x8, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x9, _VV6410_SUBSAMPLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VV6410_SUBSAMPLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _D_CONF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	mov	w20, #16
	mov	w21, #6
	mov	w2, #2
	b	LBB0_3
LBB0_2:
	mov	w20, #0
	mov	w21, #10
	mov	w2, #1
LBB0_3:
Lloh8:
	adrp	x8, _STV_Y_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STV_Y_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv06xx_write_bridge
Lloh11:
	adrp	x8, _STV_X_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STV_X_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_stv06xx_write_bridge
Lloh14:
	adrp	x8, _STV_SCAN_RATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STV_SCAN_RATE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_stv06xx_write_bridge
Lloh17:
	adrp	x8, _STV_LED_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STV_LED_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _LED_ON@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LED_ON@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stv06xx_write_bridge
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh23:
	adrp	x8, _VV6410_SETUP0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VV6410_SETUP0@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv06xx_write_sensor
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.1@PAGE
Lloh30:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	mov	w0, #0
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_VV6410_SUBSAMPLE,4,2           ; @VV6410_SUBSAMPLE
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling subsampling\n"

	.comm	_STV_Y_CTRL,4,2                 ; @STV_Y_CTRL
	.comm	_STV_X_CTRL,4,2                 ; @STV_X_CTRL
	.comm	_STV_SCAN_RATE,4,2              ; @STV_SCAN_RATE
	.comm	_STV_LED_CTRL,4,2               ; @STV_LED_CTRL
	.comm	_LED_ON,4,2                     ; @LED_ON
	.comm	_VV6410_SETUP0,4,2              ; @VV6410_SETUP0
	.comm	_D_STREAM,4,2                   ; @D_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"Starting stream\n"

	.no_dead_strip	_vv6410_start
.subsections_via_symbols
