	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_shutdown_ctrl             ## -- Begin function nvme_shutdown_ctrl
	.p2align	4, 0x90
_nvme_shutdown_ctrl:                    ## @nvme_shutdown_ctrl
	.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	%rdi, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	imulq	(%rdi), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_NVME_CC_SHN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	24(%rdi), %edx
	movq	_NVME_CC_SHN_NORMAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 24(%rdi)
	movq	16(%rdi), %rax
	movq	_NVME_REG_CC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	leaq	-44(%rbp), %r15
	movq	_NVME_CSTS_SHST_CMPLT@GOTPCREL(%rip), %r12
	movq	_current@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	_NVME_REG_CSTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NVME_CSTS_SHST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_fatal_signal_pending
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_EINTR@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_NVME_CC_SHN_MASK,4,2           ## @NVME_CC_SHN_MASK
	.comm	_NVME_CC_SHN_NORMAL,4,2         ## @NVME_CC_SHN_NORMAL
	.comm	_NVME_REG_CC,4,2                ## @NVME_REG_CC
	.comm	_NVME_REG_CSTS,4,2              ## @NVME_REG_CSTS
	.comm	_NVME_CSTS_SHST_MASK,4,2        ## @NVME_CSTS_SHST_MASK
	.comm	_NVME_CSTS_SHST_CMPLT,4,2       ## @NVME_CSTS_SHST_CMPLT
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device shutdown incomplete; abort shutdown\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_shutdown_ctrl             ; -- Begin function nvme_shutdown_ctrl
	.p2align	2
_nvme_shutdown_ctrl:                    ; @nvme_shutdown_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x20, [x21]
	ldr	x22, [x0]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
Lloh5:
	adrp	x8, _NVME_CC_SHN_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NVME_CC_SHN_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	bic	w8, w9, w8
Lloh8:
	adrp	x9, _NVME_CC_SHN_NORMAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NVME_CC_SHN_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [x0, #24]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _NVME_REG_CC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NVME_REG_CC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	blr	x8
	cbnz	w0, LBB0_10
; %bb.1:
	madd	x20, x23, x22, x20
Lloh14:
	adrp	x22, _NVME_REG_CSTS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _NVME_REG_CSTS@GOTPAGEOFF]
Lloh16:
	adrp	x23, _NVME_CSTS_SHST_MASK@GOTPAGE
Lloh17:
	ldr	x23, [x23, _NVME_CSTS_SHST_MASK@GOTPAGEOFF]
Lloh18:
	adrp	x24, _NVME_CSTS_SHST_CMPLT@GOTPAGE
Lloh19:
	ldr	x24, [x24, _NVME_CSTS_SHST_CMPLT@GOTPAGEOFF]
Lloh20:
	adrp	x25, _current@GOTPAGE
Lloh21:
	ldr	x25, [x25, _current@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	and	w8, w9, w8
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x25]
	bl	_fatal_signal_pending
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.6:
	ldr	w0, [x19, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh26:
	adrp	x8, _EINTR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_NVME_CC_SHN_MASK,4,2           ; @NVME_CC_SHN_MASK
	.comm	_NVME_CC_SHN_NORMAL,4,2         ; @NVME_CC_SHN_NORMAL
	.comm	_NVME_REG_CC,4,2                ; @NVME_REG_CC
	.comm	_NVME_REG_CSTS,4,2              ; @NVME_REG_CSTS
	.comm	_NVME_CSTS_SHST_MASK,4,2        ; @NVME_CSTS_SHST_MASK
	.comm	_NVME_CSTS_SHST_CMPLT,4,2       ; @NVME_CSTS_SHST_CMPLT
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device shutdown incomplete; abort shutdown\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
