	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_ns_ana_grpid_store
_nvmet_ns_ana_grpid_store:              ## @nvmet_ns_ana_grpid_store
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_to_nvmet_ns
	movq	%rax, %r15
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtou32
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movq	_NVMET_MAX_ANAGRPS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_3
## %bb.4:
	movq	_nvmet_ana_sem@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_down_write
	movslq	(%r15), %rax
	movq	_nvmet_ana_group_enabled@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	-28(%rbp), %rdx
	incl	(%rcx,%rdx,4)
	movl	-28(%rbp), %edx
	movl	%edx, (%r15)
	decl	(%rcx,%rax,4)
	movq	_nvmet_ana_chgcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_up_write
	movl	4(%r15), %edi
	xorl	%esi, %esi
	callq	_nvmet_send_ana_event
	movl	%r14d, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_MAX_ANAGRPS,4,2          ## @NVMET_MAX_ANAGRPS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nvmet_ana_sem,4,2              ## @nvmet_ana_sem
	.comm	_nvmet_ana_group_enabled,8,3    ## @nvmet_ana_group_enabled
	.comm	_nvmet_ana_chgcnt,4,2           ## @nvmet_ana_chgcnt
	.no_dead_strip	_nvmet_ns_ana_grpid_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_ns_ana_grpid_store
_nvmet_ns_ana_grpid_store:              ; @nvmet_ns_ana_grpid_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_to_nvmet_ns
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtou32
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _NVMET_MAX_ANAGRPS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVMET_MAX_ANAGRPS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #1
	ccmp	w8, w9, #0, ge
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x21, _nvmet_ana_sem@GOTPAGE
Lloh7:
	ldr	x21, [x21, _nvmet_ana_sem@GOTPAGEOFF]
	mov	x0, x21
	bl	_down_write
Lloh8:
	adrp	x8, _nvmet_ana_group_enabled@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nvmet_ana_group_enabled@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldrsw	x9, [sp, #12]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	ldrsw	x11, [x20]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w9, [sp, #12]
	str	w9, [x20]
	lsl	x9, x11, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
Lloh11:
	adrp	x8, _nvmet_ana_chgcnt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nvmet_ana_chgcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x21
	bl	_up_write
	ldr	w0, [x20, #4]
	mov	x1, #0
	bl	_nvmet_send_ana_event
	mov	x0, x19
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_MAX_ANAGRPS,4,2          ; @NVMET_MAX_ANAGRPS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nvmet_ana_sem,4,2              ; @nvmet_ana_sem
	.comm	_nvmet_ana_group_enabled,8,3    ; @nvmet_ana_group_enabled
	.comm	_nvmet_ana_chgcnt,4,2           ; @nvmet_ana_chgcnt
	.no_dead_strip	_nvmet_ns_ana_grpid_store
.subsections_via_symbols
