	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset
_reset:                                 ## @reset
	.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	%rsi, %r15
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_reset_usage
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$100, %eax
	jne	LBB0_4
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r14d
	jmp	LBB0_2
LBB0_5:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	subl	%r12d, %ebx
	cmpl	$1, %ebx
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_reset_usage
LBB0_7:
	movq	(%r15,%r12,8), %rdi
	movl	%r14d, %esi
	callq	_devctl_reset
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	(%r15,%r12,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d"

	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"Failed to reset %s"

	.no_dead_strip	_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset
_reset:                                 ; @reset
	.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, x1
	mov	x21, x0
	mov	w20, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_reset_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #100
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #1
	b	LBB0_2
LBB0_5:
Lloh2:
	adrp	x8, _optind@GOTPAGE
Lloh3:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
	sub	w8, w21, w22
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.6:
	bl	_reset_usage
LBB0_7:
	ldr	x0, [x19, x22, lsl #3]
	mov	x1, x20
	bl	_devctl_reset
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	x2, [x19, x22, lsl #3]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d"

	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"Failed to reset %s"

	.no_dead_strip	_reset
.subsections_via_symbols
