	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$2, %edi
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_3
## %bb.2:
	leaq	-16(%rbp), %rdi
	leaq	-12(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_3:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_strlen
	cmpl	$127, %eax
	jg	LBB0_9
## %bb.6:
	movq	8(%rbx), %r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_7:
	callq	_find_device
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rdi
	callq	_reset_device
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_list_devices
	jmp	LBB0_11
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
LBB0_11:
	movl	$1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%3d/%3d"

L_.str.1:                               ## @.str.1
	.asciz	"%4x:%4x"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"No such device found\n"

L_str:                                  ## @str
	.asciz	"Usage:\n  usbreset PPPP:VVVV - reset by product and vendor id\n  usbreset BBB/DDD   - reset by bus and device number\n  usbreset \"Product\" - reset by product name\n\nDevices:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.2:
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, #0
	mov	x3, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.4:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, #0
	mov	x1, #0
LBB0_5:
	mov	x4, #0
	bl	_find_device
	cbz	x0, LBB0_9
LBB0_6:
	bl	_reset_device
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_strlen
	cmp	w0, #127
	b.gt	LBB0_10
; %bb.8:
	ldr	x4, [x19, #8]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_find_device
	cbnz	x0, LBB0_6
LBB0_9:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	bl	_list_devices
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%3d/%3d"

l_.str.1:                               ; @.str.1
	.asciz	"%4x:%4x"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"No such device found\n"

l_str:                                  ; @str
	.asciz	"Usage:\n  usbreset PPPP:VVVV - reset by product and vendor id\n  usbreset BBB/DDD   - reset by bus and device number\n  usbreset \"Product\" - reset by product name\n\nDevices:"

.subsections_via_symbols
