	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_init_subsystem
_nvme_init_subsystem:                   ## @nvme_init_subsystem
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$-1, (%rax)
	leaq	84(%rax), %rdi
	callq	_mutex_init
	leaq	80(%rbx), %rdi
	callq	_kref_init
	leaq	4(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	76(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_nvme_init_subnqn
	movl	72(%rbx), %edi
	movl	20(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	68(%rbx), %edi
	movl	16(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	64(%rbx), %edi
	movl	12(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%rbx)
	movq	_nvme_subsys_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%rbx), %r13
	movl	%eax, 20(%rbx)
	movq	_nvme_release_subsystem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_nvme_subsys_attrs_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_set_name
	movq	%r13, %rdi
	callq	_device_initialize
	movq	_nvme_subsystems_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	32(%rbx), %edi
	callq	___nvme_find_get_subsystem
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	callq	_put_device
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_nvme_validate_cntlid
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	%r12, %rbx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_5:
	movq	%r13, %rdi
	callq	_device_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_put_device
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_7:
	leaq	28(%rbx), %rdi
	callq	_ida_init
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_nvme_subsystems@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
LBB0_8:
	leaq	8(%rbx), %r15
	movq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_sysfs_create_link
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %r12
LBB0_14:
	movq	%r12, %rdi
	callq	_nvme_put_subsystem
LBB0_15:
	movq	_nvme_subsystems_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testq	%r12, %r12
	jne	LBB0_12
## %bb.11:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
LBB0_12:
	movq	%rbx, 8(%r14)
	addq	$4, %r14
	addq	$4, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	_nvme_subsystems_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nvme_subsys_class,4,2          ## @nvme_subsys_class
	.comm	_nvme_release_subsystem,4,2     ## @nvme_release_subsystem
	.comm	_nvme_subsys_attrs_groups,4,2   ## @nvme_subsys_attrs_groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvme-subsys%d"

	.comm	_nvme_subsystems_lock,4,2       ## @nvme_subsystems_lock
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to register subsystem device.\n"

	.comm	_nvme_subsystems,4,2            ## @nvme_subsystems
L_.str.2:                               ## @.str.2
	.asciz	"failed to create sysfs link from subsystem.\n"

	.comm	_NVME_IOPOLICY_NUMA,4,2         ## @NVME_IOPOLICY_NUMA
	.no_dead_strip	_nvme_init_subsystem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_init_subsystem
_nvme_init_subsystem:                   ; @nvme_init_subsystem
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w8, #-1
	str	w8, [x0], #84
	bl	_mutex_init
	add	x0, x20, #80
	bl	_kref_init
	add	x0, x20, #4
	bl	_INIT_LIST_HEAD
	add	x0, x20, #76
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_nvme_init_subnqn
	ldr	w0, [x20, #72]
	ldr	w1, [x21, #20]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #68]
	ldr	w1, [x21, #16]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #64]
	ldr	w1, [x21, #12]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	str	x0, [x20, #56]
	ldp	w0, w8, [x21]
	str	w8, [x20, #48]
	bl	_le16_to_cpu
	str	x0, [x20, #40]
Lloh3:
	adrp	x8, _nvme_subsys_class@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvme_subsys_class@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x23, x20, #8
	str	w8, [x20, #20]
Lloh6:
	adrp	x8, _nvme_release_subsystem@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nvme_release_subsystem@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _nvme_subsys_attrs_groups@GOTPAGE
Lloh10:
	ldr	x9, [x9, _nvme_subsys_attrs_groups@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	ldr	w2, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_set_name
	mov	x0, x23
	bl	_device_initialize
Lloh14:
	adrp	x0, _nvme_subsystems_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _nvme_subsystems_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w0, [x20, #32]
	bl	___nvme_find_get_subsystem
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x23
	bl	_put_device
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_nvme_validate_cntlid
	mov	x20, x22
	cbnz	w0, LBB0_8
; %bb.3:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_4:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_5:
	mov	x0, x23
	bl	_device_add
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	x0, [x19, #16]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x23
	bl	_put_device
	b	LBB0_11
LBB0_7:
	add	x0, x20, #28
	bl	_ida_init
	add	x0, x20, #24
Lloh24:
	adrp	x1, _nvme_subsystems@GOTPAGE
Lloh25:
	ldr	x1, [x1, _nvme_subsystems@GOTPAGEOFF]
	bl	_list_add_tail
LBB0_8:
	add	x21, x20, #8
	ldr	x23, [x19, #16]
	mov	x0, x23
	bl	_dev_name
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_sysfs_create_link
	cbz	w0, LBB0_13
; %bb.9:
	mov	x21, x0
	ldr	x0, [x19, #16]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x22, x20
LBB0_10:
	mov	x0, x22
	bl	_nvme_put_subsystem
LBB0_11:
Lloh28:
	adrp	x0, _nvme_subsystems_lock@GOTPAGE
Lloh29:
	ldr	x0, [x0, _nvme_subsystems_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	cbnz	x22, LBB0_15
; %bb.14:
	ldr	w8, [x19]
	str	w8, [x20]
LBB0_15:
	str	x20, [x19, #8]
	add	x0, x19, #4
	add	x1, x20, #4
	bl	_list_add_tail
Lloh30:
	adrp	x0, _nvme_subsystems_lock@GOTPAGE
Lloh31:
	ldr	x0, [x0, _nvme_subsystems_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w21, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nvme_subsys_class,4,2          ; @nvme_subsys_class
	.comm	_nvme_release_subsystem,4,2     ; @nvme_release_subsystem
	.comm	_nvme_subsys_attrs_groups,4,2   ; @nvme_subsys_attrs_groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvme-subsys%d"

	.comm	_nvme_subsystems_lock,4,2       ; @nvme_subsystems_lock
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to register subsystem device.\n"

	.comm	_nvme_subsystems,4,2            ; @nvme_subsystems
l_.str.2:                               ; @.str.2
	.asciz	"failed to create sysfs link from subsystem.\n"

	.comm	_NVME_IOPOLICY_NUMA,4,2         ; @NVME_IOPOLICY_NUMA
	.no_dead_strip	_nvme_init_subsystem
.subsections_via_symbols
