	.file	"extr_nand_base.c_nand_read_param_page_op.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nand_read_param_page_op
	.type	nand_read_param_page_op, @function
nand_read_param_page_op:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 12[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	je	.L2
	test	rdx, rdx
	jne	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR 56[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L21
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	nand_has_exec_op@PLT
	test	rax, rax
	jne	.L22
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR NAND_CMD_PARAM[rip]
	mov	ecx, -1
	mov	rdi, r12
	call	[QWORD PTR 8[r12]]
	test	ebp, ebp
	je	.L6
	lea	eax, -1[rbp]
	lea	rbp, 4[rbx+rax*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r12
	add	rbx, 4
	call	[QWORD PTR [r12]]
	mov	DWORD PTR -4[rbx], eax
	cmp	rbx, rbp
	jne	.L7
.L6:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, 20[r12]
	call	nand_get_sdr_timings@PLT
	mov	edi, DWORD PTR NAND_CMD_PARAM[rip]
	xor	esi, esi
	mov	r13, rax
	call	NAND_OP_CMD@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	DWORD PTR 32[rsp], eax
	call	PSEC_TO_NSEC@PLT
	lea	rsi, 12[rsp]
	mov	edi, 1
	mov	edx, eax
	call	NAND_OP_ADDR@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	DWORD PTR 36[rsp], eax
	call	PSEC_TO_NSEC@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	r14d, eax
	call	PSEC_TO_MSEC@PLT
	mov	esi, r14d
	mov	edi, eax
	call	NAND_OP_WAIT_RDY@PLT
	xor	edx, edx
	mov	rsi, rbx
	mov	edi, ebp
	mov	DWORD PTR 40[rsp], eax
	call	NAND_OP_8BIT_DATA_IN@PLT
	mov	edi, DWORD PTR 16[r12]
	lea	rsi, 32[rsp]
	mov	DWORD PTR 44[rsp], eax
	call	NAND_OPERATION@PLT
	mov	DWORD PTR 28[rsp], eax
	test	ebp, ebp
	jne	.L5
	sub	DWORD PTR 28[rsp], 1
.L5:
	lea	rsi, 28[rsp]
	mov	rdi, r12
	call	nand_exec_op@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nand_read_param_page_op, .-nand_read_param_page_op
	.comm	NAND_CMD_PARAM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nand_base.c_nand_read_param_page_op.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nand_read_param_page_op
	.syntax unified
	.arm
	.fpu softvfp
	.type	nand_read_param_page_op, %function
nand_read_param_page_op:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	ip, r2
	cmp	r3, #0
	lsr	ip, ip, #5
	push	{r4, r5, r6, r7, r8, lr}
	movne	r6, ip
	moveq	r6, #0
	sub	sp, sp, #32
	str	r1, [sp, #4]
	ldr	r1, .L17
	cmp	r6, #0
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	beq	.L2
	ldr	r3, .L17+4
	ldr	r8, [r3]
	rsb	r8, r8, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r8
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r3
	mov	r4, r2
	mov	r7, r0
	bl	nand_has_exec_op
	subs	r8, r0, #0
	bne	.L16
	ldr	r3, .L17+8
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r6, [r7, #4]
	mvn	r3, #0
	ldr	r2, [sp, #4]
	blx	r6
	cmp	r5, #0
	beq	.L1
	add	r5, r4, r5, lsl #2
	sub	r5, r5, #4
	sub	r4, r4, #4
.L7:
	mov	r0, r7
	ldr	r3, [r7]
	blx	r3
	str	r0, [r4, #4]!
	cmp	r4, r5
	bne	.L7
	b	.L1
.L16:
	add	r0, r7, #12
	bl	nand_get_sdr_timings
	ldr	r3, .L17+8
	mov	r8, r0
	mov	r1, r6
	ldr	r0, [r3]
	bl	NAND_OP_CMD
	str	r0, [sp, #12]
	ldr	r0, [r8, #8]
	bl	PSEC_TO_NSEC
	add	r1, sp, #4
	mov	r2, r0
	mov	r0, #1
	bl	NAND_OP_ADDR
	str	r0, [sp, #16]
	ldr	r0, [r8, #4]
	bl	PSEC_TO_MSEC
	mov	r3, r0
	ldr	r0, [r8]
	mov	r8, r3
	bl	PSEC_TO_NSEC
	mov	r1, r0
	mov	r0, r8
	bl	NAND_OP_WAIT_RDY
	mov	r2, r6
	mov	r1, r4
	str	r0, [sp, #20]
	mov	r0, r5
	bl	NAND_OP_8BIT_DATA_IN
	add	r1, sp, #12
	str	r0, [sp, #24]
	ldr	r0, [r7, #8]
	bl	NAND_OPERATION
	cmp	r5, #0
	str	r0, [sp, #8]
	subeq	r0, r0, #1
	streq	r0, [sp, #8]
	add	r1, sp, #8
	mov	r0, r7
	bl	nand_exec_op
	mov	r8, r0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	EINVAL
	.word	NAND_CMD_PARAM
	.size	nand_read_param_page_op, .-nand_read_param_page_op
	.comm	NAND_CMD_PARAM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
