	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_findalldevs                ## -- Begin function usb_findalldevs
	.p2align	4, 0x90
_usb_findalldevs:                       ## @usb_findalldevs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_have_binary_usbmon
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_LINUX_USB_MON_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_30
## %bb.2:
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_30
## %bb.3:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jne	LBB0_29
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_28
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_strncmp
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r14, %r15
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	callq	_sscanf
	movl	%eax, %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_usb_dev_add
	jmp	LBB0_4
LBB0_9:
	movq	_SYS_USB_BUS_DIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rbx
	leaq	-52(%rbp), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, %eax
	jne	LBB0_29
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_28
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rax), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_strncmp
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$3, %r14
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_sscanf
	movl	%eax, %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-52(%rbp), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_usb_dev_add
	jmp	LBB0_11
LBB0_16:
	movq	_PROC_USB_BUS_DIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_30
## %bb.17:
	movq	%rax, %r12
	leaq	-52(%rbp), %r14
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_29
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rax, %r15
	movsbl	-1(%rax,%rbx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	addq	%r15, %rbx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	-2(%rbx), %edi
	callq	_isdigit
	decq	%rbx
	testq	%rax, %rax
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	-52(%rbp), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_usb_dev_add
	movl	%eax, %r13d
	jmp	LBB0_18
LBB0_28:
	xorl	%r13d, %r13d
LBB0_29:
	movq	%r12, %rdi
	callq	_closedir
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_LINUX_USB_MON_DEV,4,2          ## @LINUX_USB_MON_DEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_SYS_USB_BUS_DIR,8,3            ## @SYS_USB_BUS_DIR
L_.str.1:                               ## @.str.1
	.asciz	"usb"

	.comm	_PROC_USB_BUS_DIR,8,3           ## @PROC_USB_BUS_DIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_findalldevs                ; -- Begin function usb_findalldevs
	.p2align	2
_usb_findalldevs:                       ; @usb_findalldevs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	bl	_have_binary_usbmon
	cbz	x0, LBB0_10
; %bb.1:
Lloh8:
	adrp	x8, _LINUX_USB_MON_DEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LINUX_USB_MON_DEV@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_strlcpy
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_30
; %bb.2:
	mov	x22, x0
	strb	wzr, [x22], #1
	mov	x0, x22
	bl	_strlen
	mov	x23, x0
	mov	x0, x21
	bl	_opendir
	cbz	x0, LBB0_30
; %bb.3:
	mov	x21, x0
Lloh11:
	adrp	x24, l_.str@PAGE
Lloh12:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	cbnz	wzr, LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_readdir
	cbz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [x0]
	mov	x0, x25
	mov	x1, x22
	mov	x2, x23
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x25, x23
	sub	x2, x29, #76
	mov	x1, x24
	bl	_sscanf
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w1, [x29, #-76]
	mov	x0, x20
	mov	x2, x19
	bl	_usb_dev_add
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w0, LBB0_5
	b	LBB0_18
LBB0_10:
Lloh13:
	adrp	x8, _SYS_USB_BUS_DIR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SYS_USB_BUS_DIR@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	bl	_opendir
	cbz	x0, LBB0_20
; %bb.11:
	mov	x21, x0
Lloh16:
	adrp	x22, l_.str.1@PAGE
Lloh17:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh18:
	adrp	x23, l_.str@PAGE
Lloh19:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #0
	cbnz	wzr, LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_readdir
	cbz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x24, [x0]
	mov	x0, x24
	mov	x1, x22
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, x24, #3
	sub	x2, x29, #76
	mov	x1, x23
	bl	_sscanf
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	w1, [x29, #-76]
	mov	x0, x20
	mov	x2, x19
	bl	_usb_dev_add
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	cbz	w0, LBB0_13
LBB0_18:
	mov	w23, #0
LBB0_19:
	mov	x0, x21
	bl	_closedir
	b	LBB0_31
LBB0_20:
Lloh20:
	adrp	x8, _PROC_USB_BUS_DIR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PROC_USB_BUS_DIR@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	bl	_opendir
	cbz	x0, LBB0_30
; %bb.21:
	mov	x21, x0
Lloh23:
	adrp	x22, l_.str@PAGE
Lloh24:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w23, #0
	cbnz	wzr, LBB0_19
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	mov	x0, x21
	bl	_readdir
	cbz	x0, LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x23, [x0]
	mov	x0, x23
	bl	_strlen
	cbz	x0, LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x24, x0
	add	x8, x0, x23
	ldursb	w0, [x8, #-1]
	bl	_isdigit
	cbz	x0, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x23, x23, x24
LBB0_27:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldursb	w0, [x23, #-2]
	bl	_isdigit
	sub	x23, x23, #1
	cbnz	x0, LBB0_27
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	x2, x29, #76
	mov	x0, x23
	mov	x1, x22
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_22
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	ldur	w1, [x29, #-76]
	mov	x0, x20
	mov	x2, x19
	bl	_usb_dev_add
	mov	x23, x0
	cbz	w0, LBB0_23
	b	LBB0_19
LBB0_30:
	mov	w23, #0
LBB0_31:
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	mov	x0, x23
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_LINUX_USB_MON_DEV,4,2          ; @LINUX_USB_MON_DEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_SYS_USB_BUS_DIR,8,3            ; @SYS_USB_BUS_DIR
l_.str.1:                               ; @.str.1
	.asciz	"usb"

	.comm	_PROC_USB_BUS_DIR,8,3           ; @PROC_USB_BUS_DIR
.subsections_via_symbols
