	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_wait_ready
_nvme_wait_ready:                       ## @nvme_wait_ready
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_NVME_CAP_TIMEOUT
	incl	%eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%ecx, %r15
	movl	%r14d, %r13d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_NVME_CSTS_RDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_2:
	addq	%rax, %r15
	movq	_NVME_REG_CSTS@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_NVME_CSTS_RDY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	%r13d, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$100, %edi
	callq	_msleep
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fatal_signal_pending
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	movq	_EINTR@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_NVME_CSTS_RDY,4,2              ## @NVME_CSTS_RDY
	.comm	_NVME_REG_CSTS,4,2              ## @NVME_REG_CSTS
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device not ready; aborting %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"initialisation"

L_.str.2:                               ## @.str.2
	.asciz	"reset"

	.no_dead_strip	_nvme_wait_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_wait_ready
_nvme_wait_ready:                       ; @nvme_wait_ready
	.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, x2
	mov	x20, x0
	mov	x0, x1
	bl	_NVME_CAP_TIMEOUT
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	madd	w8, w8, w0, w8
	cmp	w8, #0
	cinc	w8, w8, lt
Lloh3:
	adrp	x22, _jiffies@GOTPAGE
Lloh4:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	asr	w8, w8, #1
	ldrsw	x9, [x22]
	add	x21, x9, w8, sxtw
Lloh5:
	adrp	x23, _NVME_CSTS_RDY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NVME_CSTS_RDY@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w19, #0
	csel	w24, wzr, w8, eq
Lloh7:
	adrp	x25, _NVME_REG_CSTS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _NVME_REG_CSTS@GOTPAGEOFF]
Lloh9:
	adrp	x26, _current@GOTPAGE
Lloh10:
	ldr	x26, [x26, _current@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x23]
	and	w8, w9, w8
	cmp	w8, w24
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x26]
	bl	_fatal_signal_pending
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_time_after
	cbz	x0, LBB0_1
; %bb.6:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x2, x9, x8, eq
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_7:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _EINTR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_NVME_CSTS_RDY,4,2              ; @NVME_CSTS_RDY
	.comm	_NVME_REG_CSTS,4,2              ; @NVME_REG_CSTS
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device not ready; aborting %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"initialisation"

l_.str.2:                               ; @.str.2
	.asciz	"reset"

	.no_dead_strip	_nvme_wait_ready
.subsections_via_symbols
