	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsattached
_nsattached:                            ## @nsattached
	.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
	movl	$8272, %eax                     ## imm = 0x2050
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	%esi, %edi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_arg_parse
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.2:
	addq	$8272, %rsp                     ## imm = 0x2050
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_attached_opt@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_arg_help
LBB0_5:
	movl	8(%r12), %edi
	leaq	-8244(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
	movl	-8244(%rbp), %edi
	leaq	-8248(%rbp), %rsi
	callq	_read_controller_data
	movl	-8248(%rbp), %eax
	movq	_NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_NVME_CTRLR_DATA_OACS_NSMGMT_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_7:
	leaq	-8296(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_NVME_OPC_IDENTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8256(%rbp)
	movl	(%r12), %edi
	callq	_htole32
	movq	%rax, -8264(%rbp)
	movl	$18, %edi
	callq	_htole32
	movq	%rax, -8272(%rbp)
	leaq	-8240(%rbp), %rax
	movq	%rax, -8280(%rbp)
	movabsq	$4294975488, %rax               ## imm = 0x100002000
	movq	%rax, -8296(%rbp)
	movl	-8244(%rbp), %edi
	movq	_NVME_PASSTHROUGH_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	leaq	-8288(%rbp), %rdi
	callq	_nvme_completion_is_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_11:
	movl	-8240(%rbp), %edi
	callq	_le16toh
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.12:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	leaq	L_.str.5(%rip), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-8236(%rbp,%rbx,4), %edi
	incq	%rbx
	callq	_le16toh
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_printf
	cmpq	%rbx, %r15
	jne	LBB0_13
LBB0_14:
	xorl	%edi, %edi
	callq	_exit
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_attached_opt,16,3              ## @attached_opt
	.comm	_NONE,8,3                       ## @NONE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No valid NSID specified\n"

	.comm	_NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT,4,2 ## @NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT
	.comm	_NVME_CTRLR_DATA_OACS_NSMGMT_MASK,4,2 ## @NVME_CTRLR_DATA_OACS_NSMGMT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"controller does not support namespace management"

	.comm	_NVME_OPC_IDENTIFY,4,2          ## @NVME_OPC_IDENTIFY
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ## @NVME_PASSTHROUGH_CMD
L_.str.2:                               ## @.str.2
	.asciz	"identify request failed"

L_.str.3:                               ## @.str.3
	.asciz	"identify request returned error"

L_.str.4:                               ## @.str.4
	.asciz	"Attached %d controller(s):\n"

L_.str.5:                               ## @.str.5
	.asciz	"  0x%04x\n"

	.no_dead_strip	_nsattached
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function nsattached
lCPI0_0:
	.long	8192                            ; 0x2000
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nsattached:                            ; @nsattached
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	mov	w9, #8272
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_arg_parse
	cbz	x0, LBB0_3
; %bb.1:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.2:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #80
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh8:
	adrp	x22, _attached_opt@GOTPAGE
Lloh9:
	ldr	x22, [x22, _attached_opt@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _NONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NONE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_arg_help
LBB0_5:
	ldr	w0, [x22, #8]
	add	x1, sp, #12
	mov	w2, #1
	mov	w3, #1
	bl	_open_dev
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	bl	_read_controller_data
	ldr	w8, [sp, #16]
Lloh18:
	adrp	x9, _NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh21:
	adrp	x9, _NVME_CTRLR_DATA_OACS_NSMGMT_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NVME_CTRLR_DATA_OACS_NSMGMT_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w8, w9
	b.ne	LBB0_7
; %bb.6:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_7:
	add	x19, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh26:
	adrp	x8, _NVME_OPC_IDENTIFY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NVME_OPC_IDENTIFY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	ldr	w0, [x22]
	bl	_htole32
	str	x0, [sp, #56]
	mov	w0, #18
	bl	_htole32
	add	x8, sp, #72
	stp	x8, x0, [sp, #40]
Lloh29:
	adrp	x8, lCPI0_0@PAGE
Lloh30:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	ldr	w0, [sp, #12]
Lloh31:
	adrp	x8, _NVME_PASSTHROUGH_CMD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NVME_PASSTHROUGH_CMD@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	add	x0, x19, #8
	bl	_nvme_completion_is_error
	cbz	x0, LBB0_11
; %bb.10:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_11:
	ldr	w0, [sp, #72]
	bl	_le16toh
	mov	x19, x0
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_printf
	cmp	w19, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w20, w19
	add	x8, sp, #72
	add	x21, x8, #4
Lloh40:
	adrp	x19, l_.str.5@PAGE
Lloh41:
	add	x19, x19, l_.str.5@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21], #4
	bl	_le16toh
	mov	x1, x0
	mov	x0, x19
	bl	_printf
	subs	x20, x20, #1
	b.ne	LBB0_13
LBB0_14:
	mov	w0, #0
	bl	_exit
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdrp	Lloh29, Lloh31
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_attached_opt,16,3              ; @attached_opt
	.comm	_NONE,8,3                       ; @NONE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No valid NSID specified\n"

	.comm	_NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT,4,2 ; @NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT
	.comm	_NVME_CTRLR_DATA_OACS_NSMGMT_MASK,4,2 ; @NVME_CTRLR_DATA_OACS_NSMGMT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"controller does not support namespace management"

	.comm	_NVME_OPC_IDENTIFY,4,2          ; @NVME_OPC_IDENTIFY
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ; @NVME_PASSTHROUGH_CMD
l_.str.2:                               ; @.str.2
	.asciz	"identify request failed"

l_.str.3:                               ; @.str.3
	.asciz	"identify request returned error"

l_.str.4:                               ; @.str.4
	.asciz	"Attached %d controller(s):\n"

l_.str.5:                               ; @.str.5
	.asciz	"  0x%04x\n"

	.no_dead_strip	_nsattached
.subsections_via_symbols
