	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_usb_capture
_start_usb_capture:                     ## @start_usb_capture
	.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
	movq	%rdi, %r14
	movq	_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_USB_CAPTURE_RUNNING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_kill_stream_urbs
	movq	_INTF_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_enable_iso_interface
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_CAPTURE_URB_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_first_capture_urb_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_submit_stream_urbs
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_stop_usb_capture
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DISCONNECTED,4,2               ## @DISCONNECTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_USB_CAPTURE_RUNNING,4,2        ## @USB_CAPTURE_RUNNING
	.comm	_INTF_CAPTURE,4,2               ## @INTF_CAPTURE
	.comm	_CAPTURE_URB_COMPLETED,4,2      ## @CAPTURE_URB_COMPLETED
	.comm	_first_capture_urb_complete,4,2 ## @first_capture_urb_complete
	.no_dead_strip	_start_usb_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_usb_capture
_start_usb_capture:                     ; @start_usb_capture
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x22, _USB_CAPTURE_RUNNING@GOTPAGE
Lloh7:
	ldr	x22, [x22, _USB_CAPTURE_RUNNING@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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
LBB0_5:
	mov	x0, x19
	bl	_kill_stream_urbs
Lloh8:
	adrp	x8, _INTF_CAPTURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTF_CAPTURE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_iso_interface
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _CAPTURE_URB_COMPLETED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAPTURE_URB_COMPLETED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh14:
	adrp	x8, _first_capture_urb_complete@GOTPAGE
Lloh15:
	ldr	x8, [x8, _first_capture_urb_complete@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	w8, [x9]
	stp	xzr, xzr, [x19, #16]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	mov	x1, x19
	bl	_submit_stream_urbs
	mov	x21, x0
	tbz	w0, #31, LBB0_4
; %bb.7:
	mov	x0, x19
	bl	_stop_usb_capture
	b	LBB0_4
LBB0_8:
	mov	x21, x0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DISCONNECTED,4,2               ; @DISCONNECTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_USB_CAPTURE_RUNNING,4,2        ; @USB_CAPTURE_RUNNING
	.comm	_INTF_CAPTURE,4,2               ; @INTF_CAPTURE
	.comm	_CAPTURE_URB_COMPLETED,4,2      ; @CAPTURE_URB_COMPLETED
	.comm	_first_capture_urb_complete,4,2 ; @first_capture_urb_complete
	.no_dead_strip	_start_usb_capture
.subsections_via_symbols
