	.file	"extr_textbox.c_print_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	print_page, @function
print_page:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rcx, rcx
	je	.L2
	mov	r12, rcx
	mov	r15, r8
	test	esi, esi
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	add	ebx, 1
	call	get_line@PLT
	cmp	ebp, ebx
	jne	.L4
.L3:
	mov	rbx, QWORD PTR page[rip]
	mov	edi, ebp
	call	back_lines@PLT
	movsx	rax, DWORD PTR buf[rip]
	mov	rsi, QWORD PTR page[rip]
	mov	rcx, r15
	mov	rdx, rbx
	mov	rdi, rax
	sub	rdx, rax
	sub	rsi, rax
	call	r12
.L2:
	mov	QWORD PTR page_length[rip], 0
	test	ebp, ebp
	jle	.L5
	xor	r12d, r12d
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, r14d
	mov	esi, ebx
	mov	rdi, r13
	call	print_line@PLT
	test	r12d, r12d
	jne	.L6
	xor	r12d, r12d
	add	QWORD PTR page_length[rip], 1
	cmp	QWORD PTR end_reached[rip], 0
	setne	r12b
.L6:
	add	ebx, 1
	cmp	ebp, ebx
	jne	.L7
.L5:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.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	wnoutrefresh@PLT
	.cfi_endproc
.LFE0:
	.size	print_page, .-print_page
	.comm	page_length,8,8
	.comm	page,8,8
	.comm	end_reached,8,8
	.comm	buf,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_textbox.c_print_page.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_page, %function
print_page:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r3, #0
	mov	r7, r0
	mov	r6, r1
	mov	r8, r2
	ldr	r9, [sp, #32]
	beq	.L2
	cmp	r1, #0
	ble	.L3
	mov	r4, #0
.L4:
	add	r4, r4, #1
	bl	get_line
	cmp	r6, r4
	bne	.L4
.L3:
	ldr	r4, .L15
	mov	r0, r6
	ldr	r10, [r4]
	bl	back_lines
	ldr	r3, .L15+4
	ldr	r1, [r4]
	ldr	r0, [r3]
	mov	r3, r9
	sub	r2, r10, r0
	sub	r1, r1, r0
	blx	r5
.L2:
	mov	r5, #0
	ldr	r9, .L15+8
	cmp	r6, r5
	str	r5, [r9]
	ble	.L5
	mov	r4, r5
	ldr	r10, .L15+12
.L7:
	mov	r1, r4
	mov	r2, r8
	mov	r0, r7
	bl	print_line
	cmp	r5, #0
	add	r4, r4, #1
	bne	.L6
	ldr	r5, [r10]
	ldr	r3, [r9]
	subs	r5, r5, #0
	movne	r5, #1
	add	r3, r3, #1
	str	r3, [r9]
.L6:
	cmp	r6, r4
	bne	.L7
.L5:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	wnoutrefresh
.L16:
	.align	2
.L15:
	.word	page
	.word	buf
	.word	page_length
	.word	end_reached
	.size	print_page, .-print_page
	.comm	page_length,4,4
	.comm	page,4,4
	.comm	end_reached,4,4
	.comm	buf,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
