	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perftest
_perftest:                              ## @perftest
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_NVME_IO_TEST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_arg_parse
	testq	%rax, %rax
	je	LBB0_1
## %bb.27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_opt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_arg_help
LBB0_3:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_NVME_TEST_FLAG_REFTHREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
LBB0_6:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	movq	_NVME_BIO_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movq	_opt@GOTPCREL(%rip), %rax
	movl	24(%rax), %edx
	leal	-129(%rdx), %eax
	cmpl	$-129, %eax
	ja	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_arg_help
	movq	_opt@GOTPCREL(%rip), %rax
	movl	24(%rax), %edx
LBB0_16:
	movl	%edx, -80(%rbp)
	movq	_opt@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:
	movq	_NVME_OPC_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_19:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	_NVME_OPC_WRITE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	jmp	LBB0_22
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_arg_help
LBB0_22:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	32(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_arg_help
	movq	_opt@GOTPCREL(%rip), %rax
	movq	32(%rax), %rax
LBB0_24:
	movq	%rax, -72(%rbp)
	movq	_opt@GOTPCREL(%rip), %rax
	movl	44(%rax), %edi
	movl	48(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
	movl	-44(%rbp), %edi
	leaq	-80(%rbp), %rdx
	movl	%r14d, %esi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_26
## %bb.25:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_26:
	movl	-44(%rbp), %edi
	callq	_close
	movq	_opt@GOTPCREL(%rip), %rax
	movl	40(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_print_perftest
	xorl	%edi, %edi
	callq	_exit
LBB0_10:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_13
LBB0_12:
	movl	(%rbx), %r14d
	jmp	LBB0_14
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_opt@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_arg_help
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_IO_TEST,4,2               ## @NVME_IO_TEST
	.comm	_opt,56,3                       ## @opt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refthread"

	.comm	_NVME_TEST_FLAG_REFTHREAD,4,2   ## @NVME_TEST_FLAG_REFTHREAD
L_.str.1:                               ## @.str.1
	.asciz	"bio"

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

	.comm	_NVME_BIO_TEST,4,2              ## @NVME_BIO_TEST
L_.str.3:                               ## @.str.3
	.asciz	"io"

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

	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"Unknown interrupt test type %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"Bad number of threads %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"read"

	.comm	_NVME_OPC_READ,4,2              ## @NVME_OPC_READ
L_.str.8:                               ## @.str.8
	.asciz	"write"

	.comm	_NVME_OPC_WRITE,4,2             ## @NVME_OPC_WRITE
L_.str.9:                               ## @.str.9
	.asciz	"\"%s\" not valid opcode.\n"

L_.str.10:                              ## @.str.10
	.asciz	"No time speciifed\n"

L_.str.11:                              ## @.str.11
	.asciz	"ioctl NVME_IO_TEST failed"

	.no_dead_strip	_perftest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perftest
_perftest:                              ; @perftest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _NVME_IO_TEST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NVME_IO_TEST@GOTPAGEOFF]
	ldr	w19, [x23]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_arg_parse
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh2:
	adrp	x24, _opt@GOTPAGE
Lloh3:
	ldr	x24, [x24, _opt@GOTPAGEOFF]
	ldr	x8, [x24]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_arg_help
LBB0_4:
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_7
; %bb.5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _NVME_TEST_FLAG_REFTHREAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_TEST_FLAG_REFTHREAD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]
	orr	w8, w9, w8
	str	w8, [sp, #40]
LBB0_7:
	ldr	x0, [x24, #16]
	cbz	x0, LBB0_11
; %bb.8:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x24, #16]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_24
LBB0_10:
Lloh13:
	adrp	x8, _NVME_BIO_TEST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NVME_BIO_TEST@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
LBB0_11:
	ldr	w8, [x24, #24]
	sub	w9, w8, #129
	cmn	w9, #129
	b.hi	LBB0_13
; %bb.12:
Lloh16:
	adrp	x9, _stderr@GOTPAGE
Lloh17:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_arg_help
	ldr	w8, [x24, #24]
LBB0_13:
	str	w8, [sp, #16]
	ldr	x23, [x24]
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_strcasecmp
	cbnz	x0, LBB0_15
; %bb.14:
Lloh23:
	adrp	x8, _NVME_OPC_READ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NVME_OPC_READ@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	bl	_strcasecmp
	cbnz	x0, LBB0_18
; %bb.16:
Lloh27:
	adrp	x8, _NVME_OPC_WRITE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NVME_OPC_WRITE@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	b	LBB0_19
LBB0_18:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_arg_help
LBB0_19:
	ldr	x8, [x24, #32]
	cbnz	x8, LBB0_21
; %bb.20:
Lloh34:
	adrp	x8, _stderr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.10@PAGE
Lloh38:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_arg_help
	ldr	x8, [x24, #32]
LBB0_21:
	str	x8, [sp, #24]
	ldp	w0, w8, [x24, #44]
	str	w8, [sp, #32]
	add	x1, sp, #12
	mov	w2, #1
	mov	w3, #1
	bl	_open_dev
	ldr	w0, [sp, #12]
	add	x2, sp, #16
	mov	x1, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_23
; %bb.22:
Lloh39:
	adrp	x1, l_.str.11@PAGE
Lloh40:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_23:
	ldr	w0, [sp, #12]
	bl	_close
	ldr	w1, [x24, #40]
	add	x0, sp, #16
	bl	_print_perftest
	mov	w0, #0
	bl	_exit
LBB0_24:
	ldr	x0, [x24, #16]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x0, [x24, #16]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_27
LBB0_26:
	ldr	w19, [x23]
	b	LBB0_11
LBB0_27:
Lloh45:
	adrp	x8, _stderr@GOTPAGE
Lloh46:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	x8, [x24, #16]
	str	x8, [sp]
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_arg_help
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_IO_TEST,4,2               ; @NVME_IO_TEST
	.comm	_opt,56,3                       ; @opt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refthread"

	.comm	_NVME_TEST_FLAG_REFTHREAD,4,2   ; @NVME_TEST_FLAG_REFTHREAD
l_.str.1:                               ; @.str.1
	.asciz	"bio"

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

	.comm	_NVME_BIO_TEST,4,2              ; @NVME_BIO_TEST
l_.str.3:                               ; @.str.3
	.asciz	"io"

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

	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"Unknown interrupt test type %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"Bad number of threads %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"read"

	.comm	_NVME_OPC_READ,4,2              ; @NVME_OPC_READ
l_.str.8:                               ; @.str.8
	.asciz	"write"

	.comm	_NVME_OPC_WRITE,4,2             ; @NVME_OPC_WRITE
l_.str.9:                               ; @.str.9
	.asciz	"\"%s\" not valid opcode.\n"

l_.str.10:                              ; @.str.10
	.asciz	"No time speciifed\n"

l_.str.11:                              ; @.str.11
	.asciz	"ioctl NVME_IO_TEST failed"

	.no_dead_strip	_perftest
.subsections_via_symbols
