	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_dev_start
_nvme_dev_start:                        ## @nvme_dev_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_nvme_dev_map
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_nvme_configure_admin_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	%r14, %rdi
	callq	_nvme_dev_unmap
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_dev_list_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_dev_list@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_nvme_setup_io_queues
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_7
## %bb.5:
	movq	_dev_list_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_list_del_init
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_list_lock,4,2              ## @dev_list_lock
	.comm	_dev_list,4,2                   ## @dev_list
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_nvme_dev_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_dev_start
_nvme_dev_start:                        ; @nvme_dev_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_nvme_dev_map
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_nvme_configure_admin_queue
	mov	x20, x0
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_nvme_dev_unmap
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x20, _dev_list_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dev_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
Lloh2:
	adrp	x1, _dev_list@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	bl	_nvme_setup_io_queues
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.5:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w20, w8
	b.eq	LBB0_3
; %bb.6:
Lloh7:
	adrp	x21, _dev_list_lock@GOTPAGE
Lloh8:
	ldr	x21, [x21, _dev_list_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x19
	bl	_list_del_init
	mov	x0, x21
	bl	_spin_unlock
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_list_lock,4,2              ; @dev_list_lock
	.comm	_dev_list,4,2                   ; @dev_list
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_nvme_dev_start
.subsections_via_symbols
