	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_soft_waitrdy              ## -- Begin function nand_soft_waitrdy
	.p2align	4, 0x90
_nand_soft_waitrdy:                     ## @nand_soft_waitrdy
	.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	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	callq	_nand_has_exec_op
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_nand_get_sdr_timings
	movl	(%rax), %edi
	callq	_PSEC_TO_NSEC
	movl	%eax, %edi
	callq	_ndelay
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_nand_status_op
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_msecs_to_jiffies
	movq	%rax, %r14
	addq	%rbx, %r14
	leaq	-44(%rbp), %r15
	movq	_NAND_STATUS_READY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	callq	_nand_read_data_op
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	movq	%r12, %rdi
	callq	_nand_exit_status_op
	movl	(%r13), %eax
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, -44(%rbp)
	cmovnel	%edx, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_nand_exit_status_op
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_NAND_STATUS_READY,4,2          ## @NAND_STATUS_READY
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_soft_waitrdy              ; -- Begin function nand_soft_waitrdy
	.p2align	2
_nand_soft_waitrdy:                     ; @nand_soft_waitrdy
	.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, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_nand_has_exec_op
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_nand_get_sdr_timings
	ldr	w0, [x0]
	bl	_PSEC_TO_NSEC
	bl	_ndelay
	mov	x0, x19
	mov	x1, #0
	bl	_nand_status_op
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x21, [x22]
	mov	x0, x20
	bl	_msecs_to_jiffies
	add	x20, x0, x21
Lloh2:
	adrp	x23, _NAND_STATUS_READY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NAND_STATUS_READY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	mov	w3, #1
	bl	_nand_read_data_op
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_before
	cbnz	x0, LBB0_3
LBB0_6:
	mov	x0, x19
	bl	_nand_exit_status_op
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
Lloh4:
	adrp	x10, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ETIMEDOUT@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w9, w8
	csneg	w21, wzr, w10, ne
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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_9:
	mov	x21, x0
	mov	x0, x19
	bl	_nand_exit_status_op
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_NAND_STATUS_READY,4,2          ; @NAND_STATUS_READY
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
