	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rdi, %rdx
	movl	%esi, %edi
	movq	%rbx, %rsi
	callq	_arg_parse
	movq	_opt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
	movl	-12(%rbp), %edi
	movq	_NVME_RESET_CONTROLLER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_opt,4,2                        ## @opt
	.comm	_NVME_RESET_CONTROLLER,4,2      ## @NVME_RESET_CONTROLLER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset request to %s failed"

	.comm	_optind,8,3                     ## @optind
	.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:
	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
	mov	x19, x2
	mov	x2, x0
	mov	x0, x1
	mov	x1, x19
	bl	_arg_parse
Lloh0:
	adrp	x8, _opt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _opt@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #1
	mov	w3, #1
	bl	_open_dev
	ldr	w0, [sp, #12]
Lloh3:
	adrp	x8, _NVME_RESET_CONTROLLER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_RESET_CONTROLLER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _optind@GOTPAGE
Lloh7:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x2, [x19, x8, lsl #3]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_opt,4,2                        ; @opt
	.comm	_NVME_RESET_CONTROLLER,4,2      ; @NVME_RESET_CONTROLLER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset request to %s failed"

	.comm	_optind,8,3                     ; @optind
	.no_dead_strip	_reset
.subsections_via_symbols
