	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_wait_rdy_op
_nand_wait_rdy_op:                      ## @nand_wait_rdy_op
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_nand_has_exec_op
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	callq	_PSEC_TO_MSEC
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_PSEC_TO_NSEC
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_NAND_OP_WAIT_RDY
	movl	%eax, -40(%rbp)
	movl	8(%rbx), %edi
	leaq	-40(%rbp), %rsi
	callq	_NAND_OPERATION
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nand_exec_op
	jmp	LBB0_6
LBB0_2:
	cmpl	$0, 4(%rbx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_nand_wait_ready
	jmp	LBB0_5
LBB0_3:
	movl	(%rbx), %edi
	callq	_udelay
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nand_wait_rdy_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_wait_rdy_op
_nand_wait_rdy_op:                      ; @nand_wait_rdy_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_nand_has_exec_op
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PSEC_TO_MSEC
	mov	x21, x0
	mov	x0, x20
	bl	_PSEC_TO_NSEC
	mov	x1, x0
	mov	x0, x21
	bl	_NAND_OP_WAIT_RDY
	str	w0, [sp, #8]
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_NAND_OPERATION
	str	w0, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_nand_exec_op
	b	LBB0_6
LBB0_2:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_nand_wait_ready
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_udelay
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nand_wait_rdy_op
.subsections_via_symbols
