	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_alloc_ns_head
_nvme_alloc_ns_head:                    ## @nvme_alloc_ns_head
	.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, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	(%r14), %rdi
	movl	(%r12), %ecx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movl	%ebx, (%r15)
	leaq	32(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_init_srcu_struct
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%r14), %rax
	movq	%rax, 24(%r15)
	movl	%r13d, 4(%r15)
	leaq	20(%r15), %rdi
	callq	_kref_init
	leaq	16(%r15), %rcx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_nvme_report_ns_ids
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	___nvme_check_ids
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nvme_mpath_alloc_disk
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_7:
	movq	%r12, %rdi
	callq	_cleanup_srcu_struct
LBB0_8:
	movq	(%r14), %rdi
	movl	(%r15), %esi
	callq	_ida_simple_remove
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
LBB0_10:
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.11:
	movl	%ebx, %edi
	callq	_nvme_error_status
	movl	%eax, %edi
	callq	_blk_status_to_errno
	movl	%eax, %ebx
LBB0_12:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_13:
	movq	%r15, %rdi
	addq	$12, %rdi
	movq	(%r14), %rsi
	addq	$8, %rsi
	callq	_list_add_tail
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_kref_get
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"duplicate IDs for nsid %d\n"

	.no_dead_strip	_nvme_alloc_ns_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_alloc_ns_head
_nvme_alloc_ns_head:                    ; @nvme_alloc_ns_head
	.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	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20]
	ldr	w3, [x23]
	mov	w1, #1
	mov	w2, #0
	bl	_ida_simple_get
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
	mov	x23, x19
	str	w22, [x23], #8
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	bl	_init_srcu_struct
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x20]
	str	x8, [x19, #24]
	str	w21, [x19, #4]
	add	x0, x19, #20
	bl	_kref_init
	add	x3, x19, #16
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_nvme_report_ns_ids
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x0, [x20]
	mov	x1, x19
	bl	___nvme_check_ids
	cbz	w0, LBB0_7
; %bb.5:
	mov	x22, x0
	ldr	w0, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_8
LBB0_6:
	neg	w22, w22
	cmp	w22, #1
	b.ge	LBB0_11
	b	LBB0_12
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_mpath_alloc_disk
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_8:
	mov	x0, x23
	bl	_cleanup_srcu_struct
LBB0_9:
	ldr	x0, [x20]
	ldr	w1, [x19]
	bl	_ida_simple_remove
LBB0_10:
	mov	x0, x19
	bl	_kfree
	cmp	w22, #1
	b.lt	LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_nvme_error_status
	bl	_blk_status_to_errno
	mov	x22, x0
LBB0_12:
	mov	x0, x22
	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
	b	_ERR_PTR
LBB0_13:
	add	x0, x19, #12
	ldr	x8, [x20]
	add	x1, x8, #8
	bl	_list_add_tail
	ldr	x8, [x20]
	add	x0, x8, #4
	bl	_kref_get
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"duplicate IDs for nsid %d\n"

	.no_dead_strip	_nvme_alloc_ns_head
.subsections_via_symbols
