	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_wait
_nand_wait:                             ## @nand_wait
	.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
	movl	$100, %edi
	callq	_ndelay
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_nand_status_op
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	xorl	%eax, %eax
	callq	_in_interrupt
	movq	_oops_in_progress@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movl	$400, %esi                      ## imm = 0x190
	movq	%rbx, %rdi
	callq	_panic_nand_wait
LBB0_9:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	callq	_nand_read_data_op
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_NAND_STATUS_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	-44(%rbp), %eax
	sete	%dil
	callq	_WARN_ON
	movl	-44(%rbp), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	movl	$400, %edi                      ## imm = 0x190
	callq	_msecs_to_jiffies
	movq	%rax, %r14
	addq	%r15, %r14
	leaq	-44(%rbp), %r15
	movq	_NAND_STATUS_READY@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	callq	_nand_read_data_op
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_oops_in_progress,8,3           ## @oops_in_progress
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_NAND_STATUS_READY,4,2          ## @NAND_STATUS_READY
	.no_dead_strip	_nand_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_wait
_nand_wait:                             ; @nand_wait
	.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	x19, x0
	mov	w0, #100
	bl	_ndelay
	mov	x0, x19
	mov	x1, #0
	bl	_nand_status_op
	cbnz	w0, LBB0_5
; %bb.1:
	bl	_in_interrupt
Lloh0:
	adrp	x8, _oops_in_progress@GOTPAGE
Lloh1:
	ldr	x8, [x8, _oops_in_progress@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	orr	x8, x0, x8
	cbz	x8, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #400
	bl	_panic_nand_wait
LBB0_3:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	mov	w3, #1
	bl	_nand_read_data_op
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _NAND_STATUS_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_STATUS_READY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [sp, #12]
LBB0_5:
	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
LBB0_6:
Lloh6:
	adrp	x21, _jiffies@GOTPAGE
Lloh7:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x20, [x21]
	mov	w0, #400
	bl	_msecs_to_jiffies
	add	x20, x0, x20
Lloh8:
	adrp	x22, _NAND_STATUS_READY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _NAND_STATUS_READY@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_cond_resched
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	mov	w3, #1
	bl	_nand_read_data_op
	cbnz	w0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_oops_in_progress,8,3           ; @oops_in_progress
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_NAND_STATUS_READY,4,2          ; @NAND_STATUS_READY
	.no_dead_strip	_nand_wait
.subsections_via_symbols
