	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_ana_groups_make_group
_nvmet_ana_groups_make_group:           ## @nvmet_ana_groups_make_group
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_ana_groups_to_port
	movq	%rax, %r14
	xorl	%r12d, %r12d
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_kstrtou32
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_7:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	-36(%rbp), %eax
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.4:
	movq	_NVMET_MAX_ANAGRPS@GOTPCREL(%rip), %rcx
	movl	%r12d, %ebx
	cmpl	(%rcx), %eax
	jg	LBB0_3
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r12
	movq	%r14, 8(%rax)
	movl	-36(%rbp), %eax
	movl	%eax, (%r12)
	movq	_nvmet_ana_sem@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_down_write
	movq	_nvmet_ana_group_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-36(%rbp), %rcx
	incl	(%rax,%rcx,4)
	movq	%rbx, %rdi
	callq	_up_write
	movq	8(%r12), %rdi
	callq	_nvmet_port_send_ana_event
	addq	$4, %r12
	movq	_nvmet_ana_group_type@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_config_group_init_type_name
	jmp	LBB0_7
LBB0_2:
	movl	%r12d, %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NVMET_MAX_ANAGRPS,4,2          ## @NVMET_MAX_ANAGRPS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_nvmet_ana_sem,4,2              ## @nvmet_ana_sem
	.comm	_nvmet_ana_group_enabled,8,3    ## @nvmet_ana_group_enabled
	.comm	_nvmet_ana_group_type,4,2       ## @nvmet_ana_group_type
	.no_dead_strip	_nvmet_ana_groups_make_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_ana_groups_make_group
_nvmet_ana_groups_make_group:           ; @nvmet_ana_groups_make_group
	.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, x1
	bl	_ana_groups_to_port
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_kstrtou32
	cbnz	w0, LBB0_6
; %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, #2
	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_6
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	str	x20, [x0, #8]
	ldr	w8, [sp, #12]
	str	w8, [x0]
Lloh12:
	adrp	x20, _nvmet_ana_sem@GOTPAGE
Lloh13:
	ldr	x20, [x20, _nvmet_ana_sem@GOTPAGEOFF]
	mov	x0, x20
	bl	_down_write
Lloh14:
	adrp	x8, _nvmet_ana_group_enabled@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nvmet_ana_group_enabled@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldrsw	x9, [sp, #12]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	x0, x20
	bl	_up_write
	ldr	x0, [x21, #8]
	bl	_nvmet_port_send_ana_event
	add	x20, x21, #4
Lloh17:
	adrp	x2, _nvmet_ana_group_type@GOTPAGE
Lloh18:
	ldr	x2, [x2, _nvmet_ana_group_type@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_config_group_init_type_name
	b	LBB0_7
LBB0_5:
	neg	w0, w22
LBB0_6:
	bl	_ERR_PTR
	mov	x20, x0
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NVMET_MAX_ANAGRPS,4,2          ; @NVMET_MAX_ANAGRPS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_nvmet_ana_sem,4,2              ; @nvmet_ana_sem
	.comm	_nvmet_ana_group_enabled,8,3    ; @nvmet_ana_group_enabled
	.comm	_nvmet_ana_group_type,4,2       ; @nvmet_ana_group_type
	.no_dead_strip	_nvmet_ana_groups_make_group
.subsections_via_symbols
