	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_remove
_nvme_remove:                           ## @nvme_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	_NVME_CTRL_DELETING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvme_change_ctrl_state
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%r14, %rdi
	callq	_pci_device_is_present
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_NVME_CTRL_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvme_change_ctrl_state
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvme_dev_disable
	movq	%rbx, %rdi
	callq	_nvme_dev_remove_admin
LBB0_2:
	movq	%rbx, %rdi
	callq	_flush_work
	movq	%rbx, %rdi
	callq	_nvme_stop_ctrl
	movq	%rbx, %rdi
	callq	_nvme_remove_namespaces
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_nvme_dev_disable
	movq	%rbx, %rdi
	callq	_nvme_release_cmb
	movq	%rbx, %rdi
	callq	_nvme_free_host_mem
	movq	%rbx, %rdi
	callq	_nvme_dev_remove_admin
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_nvme_free_queues
	movq	%rbx, %rdi
	callq	_nvme_uninit_ctrl
	movq	%rbx, %rdi
	callq	_nvme_release_prp_pools
	movq	%rbx, %rdi
	callq	_nvme_dev_unmap
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nvme_put_ctrl                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CTRL_DELETING,4,2         ## @NVME_CTRL_DELETING
	.comm	_NVME_CTRL_DEAD,4,2             ## @NVME_CTRL_DEAD
	.no_dead_strip	_nvme_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_remove
_nvme_remove:                           ; @nvme_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _NVME_CTRL_DELETING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_CTRL_DELETING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nvme_change_ctrl_state
	mov	x0, x20
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_pci_device_is_present
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NVME_CTRL_DEAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_CTRL_DEAD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvme_change_ctrl_state
	mov	x0, x19
	mov	w1, #1
	bl	_nvme_dev_disable
	mov	x0, x19
	bl	_nvme_dev_remove_admin
LBB0_2:
	mov	x0, x19
	bl	_flush_work
	mov	x0, x19
	bl	_nvme_stop_ctrl
	mov	x0, x19
	bl	_nvme_remove_namespaces
	mov	x0, x19
	mov	w1, #1
	bl	_nvme_dev_disable
	mov	x0, x19
	bl	_nvme_release_cmb
	mov	x0, x19
	bl	_nvme_free_host_mem
	mov	x0, x19
	bl	_nvme_dev_remove_admin
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_free_queues
	mov	x0, x19
	bl	_nvme_uninit_ctrl
	mov	x0, x19
	bl	_nvme_release_prp_pools
	mov	x0, x19
	bl	_nvme_dev_unmap
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nvme_put_ctrl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CTRL_DELETING,4,2         ; @NVME_CTRL_DELETING
	.comm	_NVME_CTRL_DEAD,4,2             ; @NVME_CTRL_DEAD
	.no_dead_strip	_nvme_remove
.subsections_via_symbols
