	.file	"extr_stream_file.c_stream_file_read_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stream_file_read_pages, @function
stream_file_read_pages:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, edx
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	sub	eax, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	cmp	eax, DWORD PTR [rdi]
	jle	.L2
	mov	eax, DWORD PTR READ_PAGE_FAIL[rip]
	mov	DWORD PTR 28[rdi], eax
.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
.L2:
	.cfi_restore_state
	mov	r14d, esi
	mov	esi, DWORD PTR 24[rbx]
	mov	edi, edx
	mov	r13, rcx
	call	R_MIN@PLT
	cmp	r14d, eax
	jge	.L1
	movsx	rdx, r14d
	not	r14d
	mov	ebp, DWORD PTR 16[rbx]
	add	eax, r14d
	lea	r12, 0[0+rdx*4]
	lea	r14, 1[rdx+rax]
	sal	r14, 2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR R_BUF_SET[rip]
	mov	esi, ebp
	add	r12, 4
	call	r_buf_seek@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 20[rbx]
	mov	rdx, r13
	mov	esi, ebp
	call	r_buf_read_at@PLT
	movsx	rax, DWORD PTR 16[rbx]
	mov	rbp, rax
	add	r13, rax
	cmp	r12, r14
	je	.L1
.L6:
	mov	rax, QWORD PTR 8[rbx]
	imul	ebp, DWORD PTR [rax+r12]
	test	ebp, ebp
	jg	.L11
	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
	.cfi_endproc
.LFE0:
	.size	stream_file_read_pages, .-stream_file_read_pages
	.comm	R_BUF_SET,4,4
	.comm	READ_PAGE_FAIL,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_stream_file.c_stream_file_read_pages.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stream_file_read_pages, %function
stream_file_read_pages:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	sub	r1, r2, r1
	cmp	r1, r0
	ble	.L2
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [r5, #20]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r2
	ldr	r1, [r5, #16]
	mov	r7, r3
	bl	R_MIN
	cmp	r6, r0
	mov	r8, r0
	popge	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r4, [r5, #8]
	ldr	r9, .L10+4
.L6:
	ldr	r3, [r5, #4]
	ldr	r1, [r3, r6, lsl #2]
	add	r6, r6, #1
	mul	r4, r1, r4
	cmp	r4, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r4
	ldr	r2, [r9]
	ldr	r0, [r5, #12]
	bl	r_buf_seek
	mov	r1, r4
	mov	r2, r7
	ldr	r3, [r5, #8]
	ldr	r0, [r5, #12]
	bl	r_buf_read_at
	ldr	r4, [r5, #8]
	cmp	r8, r6
	add	r7, r7, r4
	bne	.L6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	READ_PAGE_FAIL
	.word	R_BUF_SET
	.size	stream_file_read_pages, .-stream_file_read_pages
	.comm	R_BUF_SET,4,4
	.comm	READ_PAGE_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
