	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_timeout
_nvme_timeout:                          ## @nvme_timeout
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_blk_mq_rq_to_pdu
	movq	%rax, %r12
	movq	8(%rax), %r15
	movq	8(%r15), %r13
	movq	_NVME_REG_CSTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r13), %rdi
	callq	_readl
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_mb
	movl	16(%r13), %edi
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_channel_offline
	movq	_BLK_EH_RESET_TIMER@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_19
## %bb.1:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nvme_should_reset
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nvme_warn_reset
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_nvme_dev_disable
	movq	%r13, %rdi
	callq	_nvme_reset_ctrl
	movq	_BLK_EH_DONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_3:
	movq	%r14, %rbx
	movl	20(%r14), %esi
	movq	%r15, %rdi
	callq	_nvme_poll_irqdisable
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	12(%r13), %edi
	movl	20(%rbx), %edx
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_BLK_EH_DONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_5:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_18
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r13, %rdi
	movl	$129, %esi
	callq	_nvme_change_ctrl_state
LBB0_9:
	movl	12(%r13), %edi
	movl	20(%rbx), %edx
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn_ratelimited
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_nvme_dev_disable
	jmp	LBB0_10
LBB0_11:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.12:
	cmpl	$0, (%r12)
	je	LBB0_14
LBB0_13:
	movl	12(%r13), %edi
	movl	20(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_nvme_dev_disable
	movq	%r13, %rdi
	callq	_nvme_reset_ctrl
LBB0_10:
	movq	_NVME_REQ_CANCELLED@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movl	(%rax), %ebx
	callq	_nvme_req
	orl	%ebx, (%rax)
	movq	_BLK_EH_DONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_14:
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_atomic_dec_return
	testq	%rax, %rax
	js	LBB0_15
## %bb.16:
	movl	$1, (%r12)
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_nvme_admin_abort_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	(%r15), %edi
	callq	_cpu_to_le16
	movl	%eax, -56(%rbp)
	movq	8(%r15), %rax
	movl	12(%rax), %edi
	movl	20(%rbx), %edx
	movl	(%r15), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movl	8(%r13), %edi
	movq	_BLK_MQ_REQ_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NVME_QID_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_nvme_alloc_request
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:
	movq	%r14, %rdi
	callq	_atomic_inc
	jmp	LBB0_18
LBB0_17:
	movq	_ADMIN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	movq	_abort_endio@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq_nowait
LBB0_18:
	movq	_BLK_EH_RESET_TIMER@GOTPCREL(%rip), %rcx
LBB0_19:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_REG_CSTS,8,3              ## @NVME_REG_CSTS
	.comm	_BLK_EH_RESET_TIMER,4,2         ## @BLK_EH_RESET_TIMER
	.comm	_BLK_EH_DONE,4,2                ## @BLK_EH_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O %d QID %d timeout, completion polled\n"

L_.str.1:                               ## @.str.1
	.asciz	"I/O %d QID %d timeout, disable controller\n"

	.comm	_NVME_REQ_CANCELLED,4,2         ## @NVME_REQ_CANCELLED
L_.str.2:                               ## @.str.2
	.asciz	"I/O %d QID %d timeout, reset controller\n"

	.comm	_nvme_admin_abort_cmd,4,2       ## @nvme_admin_abort_cmd
L_.str.3:                               ## @.str.3
	.asciz	"I/O %d QID %d timeout, aborting\n"

	.comm	_BLK_MQ_REQ_NOWAIT,4,2          ## @BLK_MQ_REQ_NOWAIT
	.comm	_NVME_QID_ANY,4,2               ## @NVME_QID_ANY
	.comm	_ADMIN_TIMEOUT,4,2              ## @ADMIN_TIMEOUT
	.comm	_abort_endio,4,2                ## @abort_endio
	.no_dead_strip	_nvme_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_timeout
_nvme_timeout:                          ; @nvme_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	bl	_blk_mq_rq_to_pdu
	mov	x22, x0
	ldr	x21, [x0, #8]
	ldr	x19, [x21, #8]
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _NVME_REG_CSTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_REG_CSTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	bl	_mb
	ldr	w0, [x19, #16]
	bl	_to_pci_dev
	bl	_pci_channel_offline
	cbz	x0, LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _BLK_EH_RESET_TIMER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_EH_RESET_TIMER@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	mov	x0, x19
	mov	x1, x23
	bl	_nvme_should_reset
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x23
	bl	_nvme_warn_reset
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_dev_disable
	mov	x0, x19
	bl	_nvme_reset_ctrl
	b	LBB0_15
LBB0_4:
	ldr	w1, [x20, #20]
	mov	x0, x21
	bl	_nvme_poll_irqdisable
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
	ldr	w2, [x20, #20]
	ldr	w3, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_15
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_1
; %bb.7:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #129
	bl	_nvme_change_ctrl_state
LBB0_10:
	ldr	w0, [x19, #12]
	ldr	w2, [x20, #20]
	ldr	w3, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn_ratelimited
	mov	x0, x19
	mov	w1, #1
	bl	_nvme_dev_disable
	b	LBB0_14
LBB0_11:
	ldr	w3, [x21]
	cbz	w3, LBB0_13
; %bb.12:
	ldr	w8, [x22]
	cbz	w8, LBB0_17
LBB0_13:
	ldr	w0, [x19, #12]
	ldr	w2, [x20, #20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_dev_disable
	mov	x0, x19
	bl	_nvme_reset_ctrl
LBB0_14:
Lloh11:
	adrp	x8, _NVME_REQ_CANCELLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVME_REQ_CANCELLED@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_nvme_req
	ldr	w8, [x0]
	orr	w8, w8, w19
	str	w8, [x0]
LBB0_15:
Lloh14:
	adrp	x8, _BLK_EH_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BLK_EH_DONE@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
	add	x23, x19, #4
	mov	x0, x23
	bl	_atomic_dec_return
	tbnz	x0, #63, LBB0_19
; %bb.18:
	mov	w8, #1
	str	w8, [x22]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh16:
	adrp	x8, _nvme_admin_abort_cmd@GOTPAGE
Lloh17:
	ldr	x8, [x8, _nvme_admin_abort_cmd@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	stp	w9, w8, [sp, #4]
	ldr	w0, [x21]
	bl	_cpu_to_le16
	str	w0, [sp]
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #12]
	ldr	w2, [x20, #20]
	ldr	w3, [x21]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	ldr	w0, [x19, #8]
Lloh21:
	adrp	x8, _BLK_MQ_REQ_NOWAIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BLK_MQ_REQ_NOWAIT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _NVME_QID_ANY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NVME_QID_ANY@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x1, sp
	bl	_nvme_alloc_request
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
LBB0_19:
	mov	x0, x23
	bl	_atomic_inc
	b	LBB0_1
LBB0_20:
Lloh27:
	adrp	x8, _ADMIN_TIMEOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ADMIN_TIMEOUT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	ldr	w0, [x19]
Lloh30:
	adrp	x8, _abort_endio@GOTPAGE
Lloh31:
	ldr	x8, [x8, _abort_endio@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_blk_execute_rq_nowait
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_REG_CSTS,8,3              ; @NVME_REG_CSTS
	.comm	_BLK_EH_RESET_TIMER,4,2         ; @BLK_EH_RESET_TIMER
	.comm	_BLK_EH_DONE,4,2                ; @BLK_EH_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O %d QID %d timeout, completion polled\n"

l_.str.1:                               ; @.str.1
	.asciz	"I/O %d QID %d timeout, disable controller\n"

	.comm	_NVME_REQ_CANCELLED,4,2         ; @NVME_REQ_CANCELLED
l_.str.2:                               ; @.str.2
	.asciz	"I/O %d QID %d timeout, reset controller\n"

	.comm	_nvme_admin_abort_cmd,4,2       ; @nvme_admin_abort_cmd
l_.str.3:                               ; @.str.3
	.asciz	"I/O %d QID %d timeout, aborting\n"

	.comm	_BLK_MQ_REQ_NOWAIT,4,2          ; @BLK_MQ_REQ_NOWAIT
	.comm	_NVME_QID_ANY,4,2               ; @NVME_QID_ANY
	.comm	_ADMIN_TIMEOUT,4,2              ; @ADMIN_TIMEOUT
	.comm	_abort_endio,4,2                ; @abort_endio
	.no_dead_strip	_nvme_timeout
.subsections_via_symbols
