	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_ana_group_ana_state_store
_nvmet_ana_group_ana_state_store:       ## @nvmet_ana_group_ana_state_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	callq	_to_ana_group
	movq	%rax, %r14
	movq	_nvmet_ana_state_names@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	4(%rax,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_6
LBB0_5:
	movq	_nvmet_ana_sem@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_down_write
	movq	(%r12), %rax
	movl	(%rax,%rbx,8), %eax
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	_nvmet_ana_chgcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r13, %rdi
	callq	_up_write
	movq	8(%r14), %rdi
	callq	_nvmet_port_send_ana_event
LBB0_6:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvmet_ana_state_names,8,3      ## @nvmet_ana_state_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid value '%s' for ana_state\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_nvmet_ana_sem,4,2              ## @nvmet_ana_sem
	.comm	_nvmet_ana_chgcnt,4,2           ## @nvmet_ana_chgcnt
	.no_dead_strip	_nvmet_ana_group_ana_state_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_ana_group_ana_state_store
_nvmet_ana_group_ana_state_store:       ; @nvmet_ana_group_ana_state_store
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	bl	_to_ana_group
	mov	x20, x0
Lloh0:
	adrp	x22, _nvmet_ana_state_names@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nvmet_ana_state_names@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_sysfs_streq
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #8
	cmp	x24, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x21, _nvmet_ana_sem@GOTPAGE
Lloh8:
	ldr	x21, [x21, _nvmet_ana_sem@GOTPAGEOFF]
	mov	x0, x21
	bl	_down_write
	ldr	x8, [x22]
	ldr	w8, [x8, x23]
	ldp	x10, x9, [x20]
	ldr	x9, [x9]
	str	w8, [x9, x10, lsl #2]
Lloh9:
	adrp	x8, _nvmet_ana_chgcnt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nvmet_ana_chgcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x21
	bl	_up_write
	ldr	x0, [x20, #8]
	bl	_nvmet_port_send_ana_event
LBB0_6:
	mov	x0, x19
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_nvmet_ana_state_names,8,3      ; @nvmet_ana_state_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid value '%s' for ana_state\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_nvmet_ana_sem,4,2              ; @nvmet_ana_sem
	.comm	_nvmet_ana_chgcnt,4,2           ; @nvmet_ana_chgcnt
	.no_dead_strip	_nvmet_ana_group_ana_state_store
.subsections_via_symbols
