	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libusb_hotplug_enumerate
_libusb_hotplug_enumerate:              ## @libusb_hotplug_enumerate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	leaq	-40(%rbp), %rsi
	callq	_libusb_get_device_list
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	_hotplug_entry@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_TAILQ_INSERT_TAIL
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
LBB0_5:
	movq	-40(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_libusb_free_device_list
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hotplug_entry,4,2              ## @hotplug_entry
	.no_dead_strip	_libusb_hotplug_enumerate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libusb_hotplug_enumerate
_libusb_hotplug_enumerate:              ; @libusb_hotplug_enumerate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	add	x1, sp, #8
	bl	_libusb_get_device_list
	tbnz	x0, #63, LBB0_5
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x22, _hotplug_entry@GOTPAGE
Lloh1:
	ldr	x22, [x22, _hotplug_entry@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x1, [x8, x21, lsl #3]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_TAILQ_INSERT_TAIL
	add	x21, x21, #1
	cmp	x20, x21
	b.ne	LBB0_3
LBB0_4:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_libusb_free_device_list
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hotplug_entry,4,2              ; @hotplug_entry
	.no_dead_strip	_libusb_hotplug_enumerate
.subsections_via_symbols
