	.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, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,4), %ebx
	movq	_VV6410_CROP_TO_QVGA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
	movl	$239, %r14d
	movl	$319, %edx                      ## imm = 0x13F
	jmp	LBB0_3
LBB0_2:
	movl	$293, %r14d                     ## imm = 0x125
	movl	$359, %edx                      ## imm = 0x167
LBB0_3:
	movq	_VV6410_XENDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_stv06xx_write_sensor
	movq	_VV6410_YENDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_stv06xx_write_sensor
	movq	_VV6410_SUBSAMPLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_PDEBUG
	movl	$16, %r14d
	movl	$6, %ebx
	movl	$2, %edx
	jmp	LBB0_6
LBB0_5:
	movl	$32, %r14d
	movl	$10, %ebx
	movl	$1, %edx
LBB0_6:
	movq	_STV_Y_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_stv06xx_write_bridge
	movq	_STV_X_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_stv06xx_write_bridge
	movq	_STV_SCAN_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %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	%r15, %rdi
	callq	_stv06xx_write_bridge
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	_VV6410_SETUP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stv06xx_write_sensor
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_PDEBUG
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VV6410_CROP_TO_QVGA,4,2        ## @VV6410_CROP_TO_QVGA
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cropping to QVGA"

	.comm	_VV6410_XENDH,4,2               ## @VV6410_XENDH
	.comm	_VV6410_YENDH,4,2               ## @VV6410_YENDH
	.comm	_VV6410_SUBSAMPLE,4,2           ## @VV6410_SUBSAMPLE
L_.str.1:                               ## @.str.1
	.asciz	"Enabling subsampling"

	.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.2:                               ## @.str.2
	.asciz	"Starting stream"

	.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	w21, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _VV6410_CROP_TO_QVGA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VV6410_CROP_TO_QVGA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _D_CONF@GOTPAGE
Lloh4:
	ldr	x22, [x22, _D_CONF@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	mov	w20, #239
	mov	w2, #319
	b	LBB0_3
LBB0_2:
	mov	w20, #293
	mov	w2, #359
LBB0_3:
Lloh7:
	adrp	x8, _VV6410_XENDH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VV6410_XENDH@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv06xx_write_sensor
Lloh10:
	adrp	x8, _VV6410_YENDH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VV6410_YENDH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_stv06xx_write_sensor
Lloh13:
	adrp	x8, _VV6410_SUBSAMPLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VV6410_SUBSAMPLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x22]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
	mov	w20, #16
	mov	w21, #6
	mov	w2, #2
	b	LBB0_6
LBB0_5:
	mov	w20, #32
	mov	w21, #10
	mov	w2, #1
LBB0_6:
Lloh18:
	adrp	x8, _STV_Y_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STV_Y_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv06xx_write_bridge
Lloh21:
	adrp	x8, _STV_X_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STV_X_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_stv06xx_write_bridge
Lloh24:
	adrp	x8, _STV_SCAN_RATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STV_SCAN_RATE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_stv06xx_write_bridge
Lloh27:
	adrp	x8, _STV_LED_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STV_LED_CTRL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _LED_ON@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LED_ON@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stv06xx_write_bridge
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh33:
	adrp	x8, _VV6410_SETUP0@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VV6410_SETUP0@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv06xx_write_sensor
	tbnz	w0, #31, LBB0_9
; %bb.8:
Lloh36:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_VV6410_CROP_TO_QVGA,4,2        ; @VV6410_CROP_TO_QVGA
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cropping to QVGA"

	.comm	_VV6410_XENDH,4,2               ; @VV6410_XENDH
	.comm	_VV6410_YENDH,4,2               ; @VV6410_YENDH
	.comm	_VV6410_SUBSAMPLE,4,2           ; @VV6410_SUBSAMPLE
l_.str.1:                               ; @.str.1
	.asciz	"Enabling subsampling"

	.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.2:                               ; @.str.2
	.asciz	"Starting stream"

	.no_dead_strip	_vv6410_start
.subsections_via_symbols
