	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_ports_make
_nvmet_ports_make:                      ## @nvmet_ports_make
	.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, %r14
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %rdx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_kstrtou16
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	jmp	LBB0_2
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_NVMET_MAX_ANAGRPS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	incl	%edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.7:
	movl	$1, %edi
	movq	_NVMET_DEFAULT_ANA_GRPID@GOTPCREL(%rip), %rdx
	movq	_NVME_ANA_OPTIMIZED@GOTPCREL(%rip), %r8
	movq	_NVME_ANA_INACCESSIBLE@GOTPCREL(%rip), %r9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r9), %ecx
	movl	%ecx, (%rax,%rdi,4)
	movl	(%r12), %ecx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%rdi), %rsi
	movslq	%ecx, %rbx
	cmpq	%rbx, %rdi
	movq	%rsi, %rdi
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	cmpq	%rsi, %rdi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r8), %esi
	movl	%esi, 4(%rax)
	jmp	LBB0_11
LBB0_12:
	leaq	60(%r15), %rdi
	movq	_nvmet_ports_list@GOTPCREL(%rip), %rsi
	callq	_list_add
	leaq	56(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movl	$-1, (%r15)
	movl	-36(%rbp), %edi
	callq	_cpu_to_le16
	movl	%eax, 44(%r15)
	movq	_NVMF_TREQ_DISABLE_SQFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	leaq	4(%r15), %rbx
	movq	_nvmet_port_type@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_config_group_init_type_name
	leaq	36(%r15), %r14
	leaq	L_.str(%rip), %rsi
	movq	_nvmet_port_subsys_type@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_config_group_init_type_name
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_configfs_add_default_group
	leaq	32(%r15), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	_nvmet_referrals_type@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_config_group_init_type_name
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_configfs_add_default_group
	leaq	8(%r15), %r14
	leaq	L_.str.2(%rip), %rsi
	movq	_nvmet_ana_groups_type@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_config_group_init_type_name
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_configfs_add_default_group
	movq	%r15, 24(%r15)
	movq	_NVMET_DEFAULT_ANA_GRPID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r15)
	addq	$20, %r15
	callq	___stringify
	movq	_nvmet_ana_group_type@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_config_group_init_type_name
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_configfs_add_default_group
	jmp	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NVMET_MAX_ANAGRPS,4,2          ## @NVMET_MAX_ANAGRPS
	.comm	_NVMET_DEFAULT_ANA_GRPID,4,2    ## @NVMET_DEFAULT_ANA_GRPID
	.comm	_NVME_ANA_OPTIMIZED,4,2         ## @NVME_ANA_OPTIMIZED
	.comm	_NVME_ANA_INACCESSIBLE,4,2      ## @NVME_ANA_INACCESSIBLE
	.comm	_nvmet_ports_list,4,2           ## @nvmet_ports_list
	.comm	_NVMF_TREQ_DISABLE_SQFLOW,4,2   ## @NVMF_TREQ_DISABLE_SQFLOW
	.comm	_nvmet_port_type,4,2            ## @nvmet_port_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subsystems"

	.comm	_nvmet_port_subsys_type,4,2     ## @nvmet_port_subsys_type
L_.str.1:                               ## @.str.1
	.asciz	"referrals"

	.comm	_nvmet_referrals_type,4,2       ## @nvmet_referrals_type
L_.str.2:                               ## @.str.2
	.asciz	"ana_groups"

	.comm	_nvmet_ana_groups_type,4,2      ## @nvmet_ana_groups_type
	.comm	_nvmet_ana_group_type,4,2       ## @nvmet_ana_group_type
	.no_dead_strip	_nvmet_ports_make
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_ports_make
_nvmet_ports_make:                      ; @nvmet_ports_make
	.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	x20, x1
	add	x2, sp, #12
	mov	x0, x1
	mov	w1, #0
	bl	_kstrtou16
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x19, x0
Lloh4:
	adrp	x21, _NVMET_MAX_ANAGRPS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _NVMET_MAX_ANAGRPS@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w0, w8, #1
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_11
; %bb.4:
	ldr	w8, [x21]
Lloh6:
	adrp	x22, _NVMET_DEFAULT_ANA_GRPID@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NVMET_DEFAULT_ANA_GRPID@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w9, #1
Lloh8:
	adrp	x10, _NVME_ANA_OPTIMIZED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NVME_ANA_OPTIMIZED@GOTPAGEOFF]
Lloh10:
	adrp	x11, _NVME_ANA_INACCESSIBLE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _NVME_ANA_INACCESSIBLE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x11]
	str	w8, [x0, x9, lsl #2]
	ldr	w8, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	x9, w8, sxtw
	add	x9, x9, #1
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x22]
	cmp	x9, x12
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x10]
	str	w12, [x0, #4]
	b	LBB0_7
LBB0_10:
	add	x0, x19, #60
Lloh12:
	adrp	x1, _nvmet_ports_list@GOTPAGE
Lloh13:
	ldr	x1, [x1, _nvmet_ports_list@GOTPAGEOFF]
	bl	_list_add
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
	add	x0, x19, #52
	bl	_INIT_LIST_HEAD
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	mov	w8, #-1
	str	w8, [x19]
	ldr	w0, [sp, #12]
	bl	_cpu_to_le16
Lloh14:
	adrp	x8, _NVMF_TREQ_DISABLE_SQFLOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NVMF_TREQ_DISABLE_SQFLOW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #40]
	add	x21, x19, #4
Lloh17:
	adrp	x2, _nvmet_port_type@GOTPAGE
Lloh18:
	ldr	x2, [x2, _nvmet_port_type@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_config_group_init_type_name
	add	x20, x19, #36
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
Lloh21:
	adrp	x2, _nvmet_port_subsys_type@GOTPAGE
Lloh22:
	ldr	x2, [x2, _nvmet_port_subsys_type@GOTPAGEOFF]
	mov	x0, x20
	bl	_config_group_init_type_name
	mov	x0, x20
	mov	x1, x21
	bl	_configfs_add_default_group
	add	x20, x19, #32
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh25:
	adrp	x2, _nvmet_referrals_type@GOTPAGE
Lloh26:
	ldr	x2, [x2, _nvmet_referrals_type@GOTPAGEOFF]
	mov	x0, x20
	bl	_config_group_init_type_name
	mov	x0, x20
	mov	x1, x21
	bl	_configfs_add_default_group
	add	x20, x19, #8
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh29:
	adrp	x2, _nvmet_ana_groups_type@GOTPAGE
Lloh30:
	ldr	x2, [x2, _nvmet_ana_groups_type@GOTPAGEOFF]
	mov	x0, x20
	bl	_config_group_init_type_name
	mov	x0, x20
	mov	x1, x21
	bl	_configfs_add_default_group
	str	x19, [x19, #24]
	ldr	w0, [x22]
	str	w0, [x19, #16]
	add	x19, x19, #20
	bl	___stringify
	mov	x1, x0
Lloh31:
	adrp	x2, _nvmet_ana_group_type@GOTPAGE
Lloh32:
	ldr	x2, [x2, _nvmet_ana_group_type@GOTPAGEOFF]
	mov	x0, x19
	bl	_config_group_init_type_name
	mov	x0, x19
	mov	x1, x20
	bl	_configfs_add_default_group
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x21, x0
LBB0_14:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NVMET_MAX_ANAGRPS,4,2          ; @NVMET_MAX_ANAGRPS
	.comm	_NVMET_DEFAULT_ANA_GRPID,4,2    ; @NVMET_DEFAULT_ANA_GRPID
	.comm	_NVME_ANA_OPTIMIZED,4,2         ; @NVME_ANA_OPTIMIZED
	.comm	_NVME_ANA_INACCESSIBLE,4,2      ; @NVME_ANA_INACCESSIBLE
	.comm	_nvmet_ports_list,4,2           ; @nvmet_ports_list
	.comm	_NVMF_TREQ_DISABLE_SQFLOW,4,2   ; @NVMF_TREQ_DISABLE_SQFLOW
	.comm	_nvmet_port_type,4,2            ; @nvmet_port_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subsystems"

	.comm	_nvmet_port_subsys_type,4,2     ; @nvmet_port_subsys_type
l_.str.1:                               ; @.str.1
	.asciz	"referrals"

	.comm	_nvmet_referrals_type,4,2       ; @nvmet_referrals_type
l_.str.2:                               ; @.str.2
	.asciz	"ana_groups"

	.comm	_nvmet_ana_groups_type,4,2      ; @nvmet_ana_groups_type
	.comm	_nvmet_ana_group_type,4,2       ; @nvmet_ana_group_type
	.no_dead_strip	_nvmet_ports_make
.subsections_via_symbols
