	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcm_stop_data
_qcm_stop_data:                         ## @qcm_stop_data
	.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
	cmpq	$0, 40(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	cmpq	$0, 16(%rdi)
	je	LBB0_10
## %bb.2:
	movq	48(%r12), %r14
	movq	%r12, %rdi
	callq	_qcm_camera_off
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_4:
	movq	$0, 40(%r12)
	movq	_USBVIDEO_NUMSBUF@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_usb_kill_urb
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_qcm_stop_int_data
	cmpl	$0, 24(%r12)
	jne	LBB0_10
## %bb.8:
	movq	16(%r12), %rdi
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_err
	movl	%r14d, (%r12)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't turn the cam off.\n"

	.comm	_USBVIDEO_NUMSBUF,4,2           ## @USBVIDEO_NUMSBUF
L_.str.1:                               ## @.str.1
	.asciz	"usb_set_interface() error %d."

	.no_dead_strip	_qcm_stop_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcm_stop_data
_qcm_stop_data:                         ; @qcm_stop_data
	.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, #40]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x20, [x19, #48]
	mov	x0, x19
	bl	_qcm_camera_off
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_4:
	str	xzr, [x19, #40]
Lloh2:
	adrp	x21, _USBVIDEO_NUMSBUF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _USBVIDEO_NUMSBUF@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x22, lsl #2]
	bl	_usb_kill_urb
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x20
	bl	_qcm_stop_int_data
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_10
; %bb.8:
	ldr	x0, [x19, #16]
	ldp	w2, w1, [x19, #4]
	bl	_usb_set_interface
	tbz	w0, #31, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_err
	str	w20, [x19]
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't turn the cam off.\n"

	.comm	_USBVIDEO_NUMSBUF,4,2           ; @USBVIDEO_NUMSBUF
l_.str.1:                               ; @.str.1
	.asciz	"usb_set_interface() error %d."

	.no_dead_strip	_qcm_stop_data
.subsections_via_symbols
