	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_ns_alloc                 ## -- Begin function nvmet_ns_alloc
	.p2align	4, 0x90
_nvmet_ns_alloc:                        ## @nvmet_ns_alloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_init_completion
	movl	%r15d, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	_nvmet_ana_sem@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_down_write
	movq	_NVMET_DEFAULT_ANA_GRPID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_nvmet_ana_group_enabled@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rcx,%rax,4)
	movq	%r14, %rdi
	callq	_up_write
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_uuid_gen
	movl	$0, 8(%rbx)
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_nvmet_ana_sem,4,2              ## @nvmet_ana_sem
	.comm	_NVMET_DEFAULT_ANA_GRPID,8,3    ## @NVMET_DEFAULT_ANA_GRPID
	.comm	_nvmet_ana_group_enabled,8,3    ## @nvmet_ana_group_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_ns_alloc                 ; -- Begin function nvmet_ns_alloc
	.p2align	2
_nvmet_ns_alloc:                        ; @nvmet_ns_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_init_completion
	str	w21, [x19, #24]
	str	x20, [x19, #16]
Lloh3:
	adrp	x20, _nvmet_ana_sem@GOTPAGE
Lloh4:
	ldr	x20, [x20, _nvmet_ana_sem@GOTPAGEOFF]
	mov	x0, x20
	bl	_down_write
Lloh5:
	adrp	x8, _NVMET_DEFAULT_ANA_GRPID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NVMET_DEFAULT_ANA_GRPID@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh8:
	adrp	x9, _nvmet_ana_group_enabled@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nvmet_ana_group_enabled@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	add	w10, w10, #1
	str	w10, [x9, x8]
	mov	x0, x20
	bl	_up_write
	add	x0, x19, #12
	bl	_uuid_gen
	str	wzr, [x19, #8]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_nvmet_ana_sem,4,2              ; @nvmet_ana_sem
	.comm	_NVMET_DEFAULT_ANA_GRPID,8,3    ; @NVMET_DEFAULT_ANA_GRPID
	.comm	_nvmet_ana_group_enabled,8,3    ; @nvmet_ana_group_enabled
.subsections_via_symbols
