	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_file_ns_enable           ## -- Begin function nvmet_file_ns_enable
	.p2align	4, 0x90
_nvmet_file_ns_enable:                  ## @nvmet_file_ns_enable
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_LARGEFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpl	$0, 36(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_O_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %esi
	movl	32(%rbx), %edi
	xorl	%edx, %edx
	callq	_filp_open
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movl	32(%rbx), %r14d
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pr_err
	movq	24(%rbx), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	24(%rbx), %rdi
	movq	_STATX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AT_STATX_FORCE_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rsi
	callq	_vfs_getattr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	-24(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	_u8@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	24(%rbx), %rdi
	callq	_file_inode
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	$12, %edx
	callq	_min_t
	movq	%rax, (%rbx)
	movq	_NVMET_MAX_MPOOL_BVEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	_SLAB_HWCACHE_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_NVMET_MIN_MPOOL_OBJ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_mempool_alloc_slab@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_mempool_free_slab@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	callq	_mempool_create
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%rbx, %rdi
	callq	_nvmet_file_ns_disable
LBB0_8:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_LARGEFILE,4,2                ## @O_LARGEFILE
	.comm	_O_DIRECT,4,2                   ## @O_DIRECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open file %s: (%ld)\n"

	.comm	_STATX_SIZE,4,2                 ## @STATX_SIZE
	.comm	_AT_STATX_FORCE_SYNC,4,2        ## @AT_STATX_FORCE_SYNC
	.comm	_u8,4,2                         ## @u8
L_.str.1:                               ## @.str.1
	.asciz	"nvmet-bvec"

	.comm	_NVMET_MAX_MPOOL_BVEC,4,2       ## @NVMET_MAX_MPOOL_BVEC
	.comm	_SLAB_HWCACHE_ALIGN,4,2         ## @SLAB_HWCACHE_ALIGN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NVMET_MIN_MPOOL_OBJ,4,2        ## @NVMET_MIN_MPOOL_OBJ
	.comm	_mempool_alloc_slab,4,2         ## @mempool_alloc_slab
	.comm	_mempool_free_slab,4,2          ## @mempool_free_slab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_file_ns_enable           ; -- Begin function nvmet_file_ns_enable
	.p2align	2
_nvmet_file_ns_enable:                  ; @nvmet_file_ns_enable
	.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, x0
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_LARGEFILE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_LARGEFILE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _O_DIRECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_DIRECT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldp	w0, w10, [x0, #32]
	cmp	w10, #0
	csel	w9, w9, wzr, eq
	orr	w1, w8, w9
	mov	w2, #0
	bl	_filp_open
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19, #32]
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x2, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	ldr	x0, [x19, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_2:
	ldr	x0, [x19, #24]
Lloh11:
	adrp	x8, _STATX_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATX_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _AT_STATX_FORCE_SYNC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AT_STATX_FORCE_SYNC@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x1, sp, #8
	bl	_vfs_getattr
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
Lloh17:
	adrp	x8, _u8@GOTPAGE
Lloh18:
	ldr	x8, [x8, _u8@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	ldr	x0, [x19, #24]
	bl	_file_inode
	ldr	w1, [x0]
	mov	x0, x20
	mov	w2, #12
	bl	_min_t
Lloh20:
	adrp	x8, _NVMET_MAX_MPOOL_BVEC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NVMET_MAX_MPOOL_BVEC@GOTPAGEOFF]
	str	x0, [x19]
Lloh22:
	ldr	w8, [x8]
	lsl	w1, w8, #2
Lloh23:
	adrp	x8, _SLAB_HWCACHE_ALIGN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SLAB_HWCACHE_ALIGN@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
	str	w0, [x19, #20]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x3, x0
Lloh28:
	adrp	x8, _NVMET_MIN_MPOOL_OBJ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NVMET_MIN_MPOOL_OBJ@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _mempool_alloc_slab@GOTPAGE
Lloh32:
	ldr	x8, [x8, _mempool_alloc_slab@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _mempool_free_slab@GOTPAGE
Lloh35:
	ldr	x8, [x8, _mempool_free_slab@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_mempool_create
	str	w0, [x19, #16]
	cbz	w0, LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	stp	xzr, xzr, [x19]
	mov	x0, x19
	bl	_nvmet_file_ns_disable
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_LARGEFILE,4,2                ; @O_LARGEFILE
	.comm	_O_DIRECT,4,2                   ; @O_DIRECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open file %s: (%ld)\n"

	.comm	_STATX_SIZE,4,2                 ; @STATX_SIZE
	.comm	_AT_STATX_FORCE_SYNC,4,2        ; @AT_STATX_FORCE_SYNC
	.comm	_u8,4,2                         ; @u8
l_.str.1:                               ; @.str.1
	.asciz	"nvmet-bvec"

	.comm	_NVMET_MAX_MPOOL_BVEC,4,2       ; @NVMET_MAX_MPOOL_BVEC
	.comm	_SLAB_HWCACHE_ALIGN,4,2         ; @SLAB_HWCACHE_ALIGN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NVMET_MIN_MPOOL_OBJ,4,2        ; @NVMET_MIN_MPOOL_OBJ
	.comm	_mempool_alloc_slab,4,2         ; @mempool_alloc_slab
	.comm	_mempool_free_slab,4,2          ; @mempool_free_slab
.subsections_via_symbols
