	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function se401_stop_stream
_se401_stop_stream:                     ## @se401_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r14d
	cmpq	$0, 24(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, 32(%rdi)
	je	LBB0_10
## %bb.2:
	movq	$0, 24(%r12)
	movq	_SE401_REQ_STOP_CONTINUOUS_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_se401_sndctrl
	movq	_SE401_REQ_LED_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_se401_sndctrl
	movq	_SE401_REQ_CAMERA_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_se401_sndctrl
	movq	_SE401_NUMSBUF@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_usb_kill_urb
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_usb_free_urb
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movl	(%r15), %eax
	jmp	LBB0_6
LBB0_7:
	movq	_SE401_NUMSCRATCH@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.8:
	movq	(%r12), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_9
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SE401_REQ_STOP_CONTINUOUS_CAPTURE,4,2 ## @SE401_REQ_STOP_CONTINUOUS_CAPTURE
	.comm	_SE401_REQ_LED_CONTROL,4,2      ## @SE401_REQ_LED_CONTROL
	.comm	_SE401_REQ_CAMERA_POWER,4,2     ## @SE401_REQ_CAMERA_POWER
	.comm	_SE401_NUMSBUF,4,2              ## @SE401_NUMSBUF
	.comm	_SE401_NUMSCRATCH,4,2           ## @SE401_NUMSCRATCH
	.no_dead_strip	_se401_stop_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function se401_stop_stream
_se401_stop_stream:                     ; @se401_stop_stream
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_7
; %bb.2:
	str	xzr, [x19, #24]
Lloh0:
	adrp	x8, _SE401_REQ_STOP_CONTINUOUS_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SE401_REQ_STOP_CONTINUOUS_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #1
	mov	x1, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_se401_sndctrl
Lloh3:
	adrp	x8, _SE401_REQ_LED_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SE401_REQ_LED_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #1
	mov	x1, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_se401_sndctrl
Lloh6:
	adrp	x8, _SE401_REQ_CAMERA_POWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SE401_REQ_CAMERA_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w0, #1
	mov	x1, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_se401_sndctrl
Lloh9:
	adrp	x20, _SE401_NUMSBUF@GOTPAGE
Lloh10:
	ldr	x20, [x20, _SE401_NUMSBUF@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_usb_kill_urb
	ldr	x8, [x19, #16]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_usb_free_urb
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	w8, [x20]
	b	LBB0_4
LBB0_7:
	mov	w0, #1
	b	LBB0_12
LBB0_8:
Lloh11:
	adrp	x20, _SE401_NUMSCRATCH@GOTPAGE
Lloh12:
	ldr	x20, [x20, _SE401_NUMSCRATCH@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
	ldr	x8, [x19]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x9, [x20]
	cmp	x21, x9
	b.lt	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SE401_REQ_STOP_CONTINUOUS_CAPTURE,4,2 ; @SE401_REQ_STOP_CONTINUOUS_CAPTURE
	.comm	_SE401_REQ_LED_CONTROL,4,2      ; @SE401_REQ_LED_CONTROL
	.comm	_SE401_REQ_CAMERA_POWER,4,2     ; @SE401_REQ_CAMERA_POWER
	.comm	_SE401_NUMSBUF,4,2              ; @SE401_NUMSBUF
	.comm	_SE401_NUMSCRATCH,4,2           ; @SE401_NUMSCRATCH
	.no_dead_strip	_se401_stop_stream
.subsections_via_symbols
