	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_stop_stream            ## -- Begin function cx231xx_stop_stream
	.p2align	4, 0x90
_cx231xx_stop_stream:                   ## @cx231xx_stop_stream
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_cx231xx_info
	movq	_VRT_GET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EP_MODE_SET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	callq	_cx231xx_read_ctrl_reg
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	notl	%ebx
	andl	-48(%rbp), %ebx
	movl	%ebx, -48(%rbp)
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, -44(%rbp)
	movl	%ebx, %eax
	sarl	$16, %eax
	movl	%eax, -40(%rbp)
	sarl	$24, %ebx
	movl	%ebx, -36(%rbp)
	movq	_VRT_SET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	callq	_cx231xx_write_ctrl_reg
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx231xx_stop_stream():: ep_mask = %x\n"

	.comm	_VRT_GET_REGISTER,4,2           ## @VRT_GET_REGISTER
	.comm	_EP_MODE_SET,4,2                ## @EP_MODE_SET
	.comm	_VRT_SET_REGISTER,4,2           ## @VRT_SET_REGISTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cx231xx_stop_stream
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cx231xx_stop_stream
	.p2align	2
_cx231xx_stop_stream:                   ; @cx231xx_stop_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cx231xx_info
Lloh5:
	adrp	x8, _VRT_GET_REGISTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VRT_GET_REGISTER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x21, _EP_MODE_SET@GOTPAGE
Lloh9:
	ldr	x21, [x21, _EP_MODE_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #4
	bl	_cx231xx_read_ctrl_reg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [sp, #8]
	bic	w8, w8, w20
	str	w8, [sp, #8]
	dup.2s	v0, w8
Lloh10:
	adrp	x9, lCPI0_0@PAGE
Lloh11:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	stur	d0, [sp, #12]
	asr	w8, w8, #24
	str	w8, [sp, #20]
Lloh12:
	adrp	x8, _VRT_SET_REGISTER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VRT_SET_REGISTER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #4
	bl	_cx231xx_write_ctrl_reg
LBB0_2:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx231xx_stop_stream():: ep_mask = %x\n"

	.comm	_VRT_GET_REGISTER,4,2           ; @VRT_GET_REGISTER
	.comm	_EP_MODE_SET,4,2                ; @EP_MODE_SET
	.comm	_VRT_SET_REGISTER,4,2           ; @VRT_SET_REGISTER
.subsections_via_symbols
