	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_devlist
_parse_devlist:                         ## @parse_devlist
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movl	(%rdi), %eax
	addl	$-48, %eax
	cmpl	$9, %eax
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	leaq	_parse_devlist.dev(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sysfs_attr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, _parse_devlist.dev+24(%rip)
LBB0_8:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sysfs_attr
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, _parse_devlist.dev+16(%rip)
LBB0_10:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sysfs_attr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movq	%rax, _parse_devlist.dev+8(%rip)
LBB0_12:
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_sysfs_attr
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movq	%rax, _parse_devlist.dev(%rip)
LBB0_14:
	movq	(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_sysfs_attr
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	_parse_devlist.dev+36(%rip), %edi
	movq	%rax, %rsi
	callq	_strcpy
LBB0_16:
	movq	(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_sysfs_attr
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	_parse_devlist.dev+32(%rip), %edi
	movq	%rax, %rsi
	callq	_strcpy
LBB0_18:
	movq	_parse_devlist.dev(%rip), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r14
	movq	_parse_devlist.dev+8(%rip), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r14
	movq	_parse_devlist.dev+16(%rip), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r14
	movq	_parse_devlist.dev+24(%rip), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r14
	jmp	LBB0_19
LBB0_1:
	xorl	%r14d, %r14d
LBB0_19:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_parse_devlist.dev,40,3 ## @parse_devlist.dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"busnum"

L_.str.1:                               ## @.str.1
	.asciz	"devnum"

L_.str.2:                               ## @.str.2
	.asciz	"idVendor"

L_.str.3:                               ## @.str.3
	.asciz	"idProduct"

L_.str.4:                               ## @.str.4
	.asciz	"manufacturer"

L_.str.5:                               ## @.str.5
	.asciz	"product"

	.no_dead_strip	_parse_devlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_devlist
_parse_devlist:                         ; @parse_devlist
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_readdir
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x19, x0
	cbz	x0, LBB0_18
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	w8, [x0]
	sub	w8, w8, #48
	cmp	w8, #9
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #58
	bl	_strchr
	cbnz	x0, LBB0_2
; %bb.5:
Lloh0:
	adrp	x20, _parse_devlist.dev@PAGE
Lloh1:
	add	x20, x20, _parse_devlist.dev@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sysfs_attr
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	adrp	x8, _parse_devlist.dev@PAGE+24
	str	x0, [x8, _parse_devlist.dev@PAGEOFF+24]
LBB0_7:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sysfs_attr
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	adrp	x8, _parse_devlist.dev@PAGE+16
	str	x0, [x8, _parse_devlist.dev@PAGEOFF+16]
LBB0_9:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sysfs_attr
	cbz	x0, LBB0_11
; %bb.10:
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	adrp	x8, _parse_devlist.dev@PAGE+8
	str	x0, [x8, _parse_devlist.dev@PAGEOFF+8]
LBB0_11:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sysfs_attr
	cbz	x0, LBB0_13
; %bb.12:
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	adrp	x8, _parse_devlist.dev@PAGE
	str	x0, [x8, _parse_devlist.dev@PAGEOFF]
LBB0_13:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sysfs_attr
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, x0
Lloh12:
	adrp	x8, _parse_devlist.dev@PAGE+36
Lloh13:
	ldr	w0, [x8, _parse_devlist.dev@PAGEOFF+36]
	bl	_strcpy
LBB0_15:
	ldr	x0, [x19]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_sysfs_attr
	cbz	x0, LBB0_17
; %bb.16:
	mov	x1, x0
Lloh16:
	adrp	x8, _parse_devlist.dev@PAGE+32
Lloh17:
	ldr	w0, [x8, _parse_devlist.dev@PAGEOFF+32]
	bl	_strcpy
LBB0_17:
	ldp	x9, x8, [x20, #16]
	ldp	x11, x10, [x20]
	cmp	x11, #0
	ccmp	x10, #0, #4, ne
	ccmp	x9, #0, #4, ne
	ccmp	x8, #0, #4, ne
	csel	x0, x20, xzr, ne
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdr	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_parse_devlist.dev,40,3 ; @parse_devlist.dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"busnum"

l_.str.1:                               ; @.str.1
	.asciz	"devnum"

l_.str.2:                               ; @.str.2
	.asciz	"idVendor"

l_.str.3:                               ; @.str.3
	.asciz	"idProduct"

l_.str.4:                               ; @.str.4
	.asciz	"manufacturer"

l_.str.5:                               ; @.str.5
	.asciz	"product"

	.no_dead_strip	_parse_devlist
.subsections_via_symbols
