	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_capture_start          ## -- Begin function cx231xx_capture_start
	.p2align	4, 0x90
_cx231xx_capture_start:                 ## @cx231xx_capture_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r14
	movq	$-1, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.1:
	leal	-128(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_10
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_ENABLE_EP1@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_ENABLE_EP5@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENABLE_EP2@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_ENABLE_EP4@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_ENABLE_EP3@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_ENABLE_EP6@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rbx
LBB0_10:
	testl	%esi, %esi
	je	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_cx231xx_initialize_stream_xfer
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	testq	%rbx, %rbx
	jle	LBB0_16
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cx231xx_start_stream           ## TAILCALL
LBB0_14:
	testq	%rbx, %rbx
	jle	LBB0_15
## %bb.17:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cx231xx_stop_stream            ## TAILCALL
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ENABLE_EP4,8,3                 ## @ENABLE_EP4
	.comm	_ENABLE_EP3,8,3                 ## @ENABLE_EP3
	.comm	_ENABLE_EP5,8,3                 ## @ENABLE_EP5
	.comm	_ENABLE_EP6,8,3                 ## @ENABLE_EP6
	.comm	_ENABLE_EP1,8,3                 ## @ENABLE_EP1
	.comm	_ENABLE_EP2,8,3                 ## @ENABLE_EP2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_capture_start          ; -- Begin function cx231xx_capture_start
	.p2align	2
_cx231xx_capture_start:                 ; @cx231xx_capture_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	sub	w8, w2, #128
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _ENABLE_EP1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENABLE_EP1@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	mov	x20, #-1
	cbnz	w1, LBB0_14
LBB0_5:
	cmp	x20, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx231xx_stop_stream
LBB0_7:
	mov	w0, #-1
	b	LBB0_17
LBB0_8:
Lloh4:
	adrp	x8, _ENABLE_EP5@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENABLE_EP5@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _ENABLE_EP2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENABLE_EP2@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x8, _ENABLE_EP4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENABLE_EP4@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh10:
	adrp	x8, _ENABLE_EP3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENABLE_EP3@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x8, _ENABLE_EP6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENABLE_EP6@GOTPAGEOFF]
LBB0_13:
	ldr	x20, [x8]
	cbz	w1, LBB0_5
LBB0_14:
	mov	x0, x19
	mov	x1, x2
	bl	_cx231xx_initialize_stream_xfer
	tbnz	w0, #31, LBB0_17
; %bb.15:
	cmp	x20, #1
	b.lt	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx231xx_start_stream
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_ENABLE_EP4,8,3                 ; @ENABLE_EP4
	.comm	_ENABLE_EP3,8,3                 ; @ENABLE_EP3
	.comm	_ENABLE_EP5,8,3                 ; @ENABLE_EP5
	.comm	_ENABLE_EP6,8,3                 ; @ENABLE_EP6
	.comm	_ENABLE_EP1,8,3                 ; @ENABLE_EP1
	.comm	_ENABLE_EP2,8,3                 ; @ENABLE_EP2
.subsections_via_symbols
