	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function konicawc_stop_data
_konicawc_stop_data:                    ## @konicawc_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
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 48(%rdi)
	je	LBB0_9
## %bb.2:
	cmpq	$0, 16(%r15)
	je	LBB0_9
## %bb.3:
	movq	%r15, %rdi
	callq	_konicawc_camera_off
	movq	$0, 48(%r15)
	movq	40(%r15), %r12
	movq	$0, 8(%r12)
	movq	_USBVIDEO_NUMSBUF@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_usb_kill_urb
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_usb_kill_urb
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	cmpl	$0, 24(%r15)
	jne	LBB0_9
## %bb.7:
	movq	16(%r15), %rdi
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_err
	movl	%r14d, (%r15)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USBVIDEO_NUMSBUF,4,2           ## @USBVIDEO_NUMSBUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb_set_interface() error %d."

	.no_dead_strip	_konicawc_stop_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function konicawc_stop_data
_konicawc_stop_data:                    ; @konicawc_stop_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_konicawc_camera_off
	str	xzr, [x19, #48]
	ldr	x20, [x19, #40]
	str	xzr, [x20, #8]
Lloh0:
	adrp	x21, _USBVIDEO_NUMSBUF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _USBVIDEO_NUMSBUF@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	lsl	x23, x22, #2
	ldr	w0, [x8, x23]
	bl	_usb_kill_urb
	ldr	x8, [x20]
	ldr	w0, [x8, x23]
	bl	_usb_kill_urb
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	x0, [x19, #16]
	ldp	w2, w1, [x19, #4]
	bl	_usb_set_interface
	tbz	w0, #31, LBB0_9
; %bb.8:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_err
	str	w20, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_USBVIDEO_NUMSBUF,4,2           ; @USBVIDEO_NUMSBUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb_set_interface() error %d."

	.no_dead_strip	_konicawc_stop_data
.subsections_via_symbols
