	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_readid_op                 ## -- Begin function nand_readid_op
	.p2align	4, 0x90
_nand_readid_op:                        ## @nand_readid_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -76(%rbp)
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_3:
	movq	%r13, %rdi
	callq	_nand_has_exec_op
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	20(%r13), %rdi
	callq	_nand_get_sdr_timings
	movq	%rax, %r12
	movq	_NAND_CMD_READID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_NAND_OP_CMD
	movl	%eax, -64(%rbp)
	movl	(%r12), %edi
	callq	_PSEC_TO_NSEC
	leaq	-76(%rbp), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_NAND_OP_ADDR
	movl	%eax, -60(%rbp)
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_NAND_OP_8BIT_DATA_IN
	movl	%eax, -56(%rbp)
	movl	16(%r13), %edi
	leaq	-64(%rbp), %rsi
	callq	_NAND_OPERATION
	cmpl	$1, %r15d
	sbbl	$0, %eax
	movl	%eax, -72(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_nand_exec_op
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_5:
	movq	_NAND_CMD_READID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	$-1, %ecx
	callq	*8(%r13)
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:
	movl	%r15d, %r12d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	*(%r13)
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	xorl	%r15d, %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NAND_CMD_READID,4,2            ## @NAND_CMD_READID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_readid_op                 ; -- Begin function nand_readid_op
	.p2align	2
_nand_readid_op:                        ; @nand_readid_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	w1, [sp, #4]
	cbnz	x2, LBB0_3
; %bb.1:
	cbz	w21, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_nand_has_exec_op
	cbz	x0, LBB0_5
; %bb.4:
	cmp	w21, #0
	cset	w23, eq
	add	x0, x19, #20
	bl	_nand_get_sdr_timings
	mov	x22, x0
Lloh6:
	adrp	x8, _NAND_CMD_READID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAND_CMD_READID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_NAND_OP_CMD
	str	w0, [sp, #8]
	ldr	w0, [x22]
	bl	_PSEC_TO_NSEC
	mov	x2, x0
	add	x1, sp, #4
	mov	w0, #1
	bl	_NAND_OP_ADDR
	str	w0, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_NAND_OP_8BIT_DATA_IN
	str	w0, [sp, #16]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_NAND_OPERATION
	sub	w8, w0, w23
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_nand_exec_op
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _NAND_CMD_READID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NAND_CMD_READID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #-1
	blr	x8
	cbz	w21, LBB0_8
; %bb.6:
	mov	w21, w21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	str	w0, [x20], #4
	subs	x21, x21, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.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
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NAND_CMD_READID,4,2            ; @NAND_CMD_READID
.subsections_via_symbols
