	.file	"extr_omap2.c_omap_read_buf_irq_pref.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap_read_buf_irq_pref, @function
omap_read_buf_irq_pref:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	nand_to_mtd@PLT
	mov	r13, rax
	mov	rdi, rax
	call	mtd_to_omap@PLT
	cmp	DWORD PTR 0[r13], r12d
	jge	.L9
	mov	rbp, rax
	mov	eax, DWORD PTR OMAP_NAND_IO_READ[rip]
	mov	QWORD PTR 24[rbp], r15
	lea	r14, 12[rbp]
	mov	DWORD PTR 32[rbp], eax
	mov	rdi, r14
	call	init_completion@PLT
	mov	eax, DWORD PTR PREFETCH_FIFOTHRESHOLD_MAX[rip]
	mov	edi, DWORD PTR 8[rbp]
	xor	edx, edx
	xor	r8d, r8d
	mov	r9, rbp
	mov	ecx, r12d
	mov	esi, eax
	shr	esi, 31
	add	esi, eax
	sar	esi
	call	omap_prefetch_enable@PLT
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR 4[rbp]
	test	DWORD PTR NAND_BUSWIDTH_16[rip], eax
	je	.L10
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	rsi, r15
	pop	r12
	.cfi_def_cfa_offset 32
	mov	rdi, r13
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	omap_read_buf16@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], r12d
	mov	edi, DWORD PTR 20[rbp]
	call	enable_irq@PLT
	mov	edi, DWORD PTR 16[rbp]
	call	enable_irq@PLT
	mov	rdi, r14
	call	wait_for_completion@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	omap_prefetch_reset@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	rsi, r15
	pop	r12
	.cfi_def_cfa_offset 32
	mov	rdi, r14
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	omap_read_buf_pref@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	rsi, r15
	pop	r12
	.cfi_def_cfa_offset 32
	mov	rdi, r13
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	omap_read_buf8@PLT
	.cfi_endproc
.LFE0:
	.size	omap_read_buf_irq_pref, .-omap_read_buf_irq_pref
	.comm	PREFETCH_FIFOTHRESHOLD_MAX,4,4
	.comm	OMAP_NAND_IO_READ,4,4
	.comm	NAND_BUSWIDTH_16,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_omap2.c_omap_read_buf_irq_pref.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_read_buf_irq_pref, %function
omap_read_buf_irq_pref:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r5, r2
	mov	r7, r1
	mov	r8, r0
	bl	nand_to_mtd
	mov	r6, r0
	bl	mtd_to_omap
	ldr	r3, [r6]
	cmp	r3, r5
	bge	.L9
	ldr	r3, .L11
	add	r8, r0, #12
	ldr	r3, [r3]
	mov	r4, r0
	str	r3, [r0, #28]
	str	r7, [r0, #24]
	mov	r0, r8
	bl	init_completion
	mov	r2, #0
	ldr	r3, .L11+4
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	mov	r3, r5
	add	r1, r1, r1, lsr #31
	str	r2, [sp]
	asr	r1, r1, #1
	str	r4, [sp, #4]
	bl	omap_prefetch_enable
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L11+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L10
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	omap_read_buf16
.L3:
	ldr	r0, [r4, #20]
	str	r5, [r4]
	bl	enable_irq
	ldr	r0, [r4, #16]
	bl	enable_irq
	mov	r0, r8
	bl	wait_for_completion
	mov	r1, r4
	ldr	r0, [r4, #8]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	omap_prefetch_reset
.L9:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	omap_read_buf_pref
.L10:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	omap_read_buf8
.L12:
	.align	2
.L11:
	.word	OMAP_NAND_IO_READ
	.word	PREFETCH_FIFOTHRESHOLD_MAX
	.word	NAND_BUSWIDTH_16
	.size	omap_read_buf_irq_pref, .-omap_read_buf_irq_pref
	.comm	PREFETCH_FIFOTHRESHOLD_MAX,4,4
	.comm	OMAP_NAND_IO_READ,4,4
	.comm	NAND_BUSWIDTH_16,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
