	.file	"extr_cadence-quadspi.c_cqspi_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cqspi_read, @function
cqspi_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	mov	r13, QWORD PTR [rdi]
	call	cqspi_set_protocol@PLT
	test	eax, eax
	je	.L7
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	mov	rdi, r14
	call	cqspi_read_setup@PLT
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 0[r13], 0
	mov	rcx, rbx
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r14
	jne	.L8
	call	cqspi_indirect_read_execute@PLT
.L4:
	test	eax, eax
	cmove	eax, ebx
	pop	rbx
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	call	cqspi_direct_read_execute@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	cqspi_read, .-cqspi_read
	.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_cadence-quadspi.c_cqspi_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cqspi_read, %function
cqspi_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r1, #1
	mov	r4, r0
	mov	r5, r2
	mov	r6, r3
	ldr	r8, [r0]
	bl	cqspi_set_protocol
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	cqspi_read_setup
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r8]
	mov	r2, r7
	cmp	r3, #0
	mov	r1, r6
	mov	r0, r4
	mov	r3, r5
	bne	.L7
	bl	cqspi_indirect_read_execute
.L4:
	cmp	r0, #0
	moveq	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	bl	cqspi_direct_read_execute
	b	.L4
	.size	cqspi_read, .-cqspi_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
