	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsallocated
_nsallocated:                           ## @nsallocated
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	movl	$8272, %eax                     ## imm = 0x2050
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -24(%rbp)
	movl	%esi, %edi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_arg_parse
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_13
## %bb.2:
	addq	$8272, %rsp                     ## imm = 0x2050
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_active_opt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-8228(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
	movl	-8228(%rbp), %edi
	leaq	-8232(%rbp), %rsi
	callq	_read_controller_data
	movl	-8232(%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_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_5:
	leaq	-8280(%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, -8240(%rbp)
	xorl	%edi, %edi
	callq	_htole32
	movq	%rax, -8248(%rbp)
	movl	$16, %edi
	callq	_htole32
	movq	%rax, -8256(%rbp)
	leaq	-8224(%rbp), %rax
	movq	%rax, -8280(%rbp)
	movabsq	$4294975488, %rax               ## imm = 0x100002000
	movq	%rax, -8272(%rbp)
	movl	-8228(%rbp), %edi
	movq	_NVME_PASSTHROUGH_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	leaq	-8264(%rbp), %rdi
	callq	_nvme_completion_is_error
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_9:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	-8224(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	leaq	-8216(%rbp), %rbx
	leaq	L_.str.4(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	callq	_le32toh
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_11
LBB0_12:
	xorl	%edi, %edi
	callq	_exit
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_active_opt,4,2                 ## @active_opt
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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.1:                               ## @.str.1
	.asciz	"identify request failed"

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

L_.str.4:                               ## @.str.4
	.asciz	"%10d\n"

L_str:                                  ## @str
	.asciz	"Allocated namespaces:"

	.no_dead_strip	_nsallocated
.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 nsallocated
lCPI0_0:
	.long	8192                            ; 0x2000
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nsallocated:                           ; @nsallocated
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	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	x8, x0
Lloh2:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	bl	_arg_parse
	cbz	x0, LBB0_3
; %bb.1:
	ldur	x8, [x29, #-40]
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_13
; %bb.2:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #80
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh8:
	adrp	x8, _active_opt@GOTPAGE
Lloh9:
	ldr	x8, [x8, _active_opt@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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]
Lloh11:
	adrp	x9, _NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NVME_CTRLR_DATA_OACS_NSMGMT_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh14:
	adrp	x9, _NVME_CTRLR_DATA_OACS_NSMGMT_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NVME_CTRLR_DATA_OACS_NSMGMT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w8, w9
	b.ne	LBB0_5
; %bb.4:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	add	x19, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh19:
	adrp	x8, _NVME_OPC_IDENTIFY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NVME_OPC_IDENTIFY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	mov	w0, #0
	bl	_htole32
	str	x0, [sp, #56]
	mov	w0, #16
	bl	_htole32
	str	x0, [sp, #48]
	add	x8, sp, #72
	str	x8, [sp, #24]
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #32]
	ldr	w0, [sp, #12]
Lloh24:
	adrp	x8, _NVME_PASSTHROUGH_CMD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NVME_PASSTHROUGH_CMD@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	add	x0, x19, #16
	bl	_nvme_completion_is_error
	cbz	x0, LBB0_9
; %bb.8:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_9:
Lloh31:
	adrp	x0, l_str@PAGE
Lloh32:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x0, [sp, #72]
	cbz	x0, LBB0_12
; %bb.10:
	add	x8, sp, #72
	add	x20, x8, #8
Lloh33:
	adrp	x19, l_.str.4@PAGE
Lloh34:
	add	x19, x19, l_.str.4@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	bl	_le32toh
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	bl	_printf
	ldr	x0, [x20], #8
	cbnz	x0, LBB0_11
LBB0_12:
	mov	w0, #0
	bl	_exit
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdrp	Lloh22, Lloh24
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_active_opt,4,2                 ; @active_opt
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.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.1:                               ; @.str.1
	.asciz	"identify request failed"

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

l_.str.4:                               ; @.str.4
	.asciz	"%10d\n"

l_str:                                  ; @str
	.asciz	"Allocated namespaces:"

	.no_dead_strip	_nsallocated
.subsections_via_symbols
