	.file	"extr_console.c_testScroll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Scrolling SB\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Expected ERROR_NOT_ENOUGH_MEMORY, got %u\n"
	.text
	.p2align 4
	.type	testScroll, @function
testScroll:
.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, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	sar	r14, 32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	mov	edx, DWORD PTR TRUE[rip]
	mov	QWORD PTR 48[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 72[rsp], r14
	call	resetContent@PLT
	lea	rsi, 80[rsp]
	xor	edx, edx
	mov	edi, ebp
	movabs	rax, 42949672960
	mov	QWORD PTR 64[rsp], rsi
	movabs	rcx, 42949672974
	mov	QWORD PTR 80[rsp], rax
	movabs	rax, 25769803776
	mov	QWORD PTR 88[rsp], rax
	mov	rax, QWORD PTR TEST_ATTRIB[rip]
	mov	BYTE PTR 120[rsp], 35
	mov	QWORD PTR 112[rsp], rax
	mov	eax, r15d
	sub	eax, 1
	mov	DWORD PTR 96[rsp], 0
	mov	DWORD PTR 40[rsp], eax
	mov	DWORD PTR 100[rsp], eax
	mov	eax, r14d
	sub	eax, 1
	mov	DWORD PTR 104[rsp], 0
	mov	DWORD PTR 44[rsp], eax
	mov	DWORD PTR 108[rsp], eax
	lea	rax, 112[rsp]
	mov	r8, rax
	mov	QWORD PTR 56[rsp], rax
	call	ScrollConsoleScreenBufferA@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	xor	eax, eax
	call	ok@PLT
	test	r14d, r14d
	jle	.L2
	mov	DWORD PTR 20[rsp], r14d
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r14d, -10[r12]
	mov	eax, r12d
	xor	r15d, r15d
	sal	r14, 32
	mov	QWORD PTR 8[rsp], rax
	mov	QWORD PTR 24[rsp], r14
	test	ebx, ebx
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	r15d, 13
	jbe	.L4
	mov	eax, DWORD PTR 84[rsp]
	add	eax, 14
	sub	eax, DWORD PTR 80[rsp]
	cmp	eax, r15d
	jl	.L4
	cmp	r12d, 9
	jle	.L4
	mov	eax, DWORD PTR 92[rsp]
	add	eax, 10
	sub	eax, DWORD PTR 88[rsp]
	cmp	eax, r12d
	jl	.L4
	cmp	DWORD PTR 96[rsp], r15d
	jg	.L4
	cmp	DWORD PTR 100[rsp], r15d
	jl	.L4
	cmp	DWORD PTR 104[rsp], r12d
	jg	.L4
	cmp	DWORD PTR 108[rsp], r12d
	jge	.L79
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR 80[rsp], r15d
	jg	.L6
	cmp	DWORD PTR 84[rsp], r15d
	jl	.L6
	cmp	DWORD PTR 88[rsp], r12d
	jg	.L6
	cmp	DWORD PTR 92[rsp], r12d
	jl	.L6
	cmp	DWORD PTR 96[rsp], r15d
	jg	.L6
	cmp	DWORD PTR 100[rsp], r15d
	jl	.L6
	cmp	DWORD PTR 104[rsp], r12d
	jg	.L6
	cmp	DWORD PTR 108[rsp], r12d
	jge	.L80
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR 8[rsp]
	mov	r13d, r15d
	mov	r14, QWORD PTR DEFAULT_ATTRIB[rip]
	sal	rsi, 32
	or	r13, rsi
	mov	rdi, r13
	call	CONTENT@PLT
.L74:
	movsx	edx, al
	mov	rcx, r14
	mov	rsi, r13
	mov	edi, ebp
	call	okCHAR@PLT
.L5:
	add	r15d, 1
	cmp	ebx, r15d
	jne	.L7
.L9:
	add	r12d, 1
	cmp	r12d, DWORD PTR 20[rsp]
	jne	.L3
.L2:
	mov	edx, DWORD PTR TRUE[rip]
	mov	rsi, QWORD PTR 48[rsp]
	mov	edi, ebp
	call	resetContent@PLT
	mov	r8, QWORD PTR 56[rsp]
	xor	edx, edx
	mov	edi, ebp
	movabs	rax, 42949672960
	mov	rsi, QWORD PTR 64[rsp]
	movabs	rcx, 12884901893
	mov	BYTE PTR 120[rsp], 35
	mov	QWORD PTR 80[rsp], rax
	movabs	rax, 25769803776
	mov	QWORD PTR 88[rsp], rax
	mov	rax, QWORD PTR TEST_ATTRIB[rip]
	mov	DWORD PTR 96[rsp], 0
	mov	QWORD PTR 112[rsp], rax
	mov	eax, DWORD PTR 40[rsp]
	mov	DWORD PTR 104[rsp], 0
	mov	DWORD PTR 100[rsp], eax
	mov	eax, DWORD PTR 44[rsp]
	mov	DWORD PTR 108[rsp], eax
	call	ScrollConsoleScreenBufferA@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 72[rsp]
	test	eax, eax
	jle	.L10
	mov	DWORD PTR 32[rsp], eax
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L11:
	test	ebx, ebx
	jle	.L17
	lea	eax, -3[r12]
	cmp	eax, 6
	mov	DWORD PTR 24[rsp], eax
	mov	eax, r12d
	setbe	BYTE PTR 20[rsp]
	xor	r15d, r15d
	mov	QWORD PTR 8[rsp], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, QWORD PTR 8[rsp]
	mov	eax, r15d
	mov	r13, QWORD PTR DEFAULT_ATTRIB[rip]
	sal	rsi, 32
	or	rax, rsi
	mov	rdi, rax
	mov	r14, rax
	call	CONTENT@PLT
.L75:
	movsx	edx, al
	mov	rcx, r13
	mov	rsi, r14
	mov	edi, ebp
	call	okCHAR@PLT
	add	r15d, 1
	cmp	ebx, r15d
	je	.L17
.L15:
	lea	eax, -5[r15]
	cmp	eax, 10
	ja	.L12
	cmp	BYTE PTR 20[rsp], 0
	jne	.L81
.L12:
	cmp	r12d, 6
	jg	.L14
	cmp	r15d, 10
	jg	.L14
	mov	rsi, QWORD PTR 8[rsp]
	mov	eax, r15d
	mov	edx, 35
	mov	edi, ebp
	mov	rcx, QWORD PTR TEST_ATTRIB[rip]
	add	r15d, 1
	sal	rsi, 32
	or	rax, rsi
	mov	rsi, rax
	call	okCHAR@PLT
	cmp	ebx, r15d
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	add	r12d, 1
	cmp	r12d, DWORD PTR 32[rsp]
	jne	.L11
.L10:
	mov	edx, DWORD PTR TRUE[rip]
	mov	rsi, QWORD PTR 48[rsp]
	mov	edi, ebp
	call	resetContent@PLT
	mov	esi, DWORD PTR 40[rsp]
	movabs	rax, 42949672960
	mov	edi, 16
	mov	QWORD PTR 80[rsp], rax
	movabs	rax, 25769803776
	mov	QWORD PTR 88[rsp], rax
	mov	rax, QWORD PTR TEST_ATTRIB[rip]
	mov	BYTE PTR 120[rsp], 35
	mov	QWORD PTR 112[rsp], rax
	mov	DWORD PTR 96[rsp], 5
	call	min@PLT
	mov	esi, DWORD PTR 44[rsp]
	mov	edi, 10
	mov	DWORD PTR 104[rsp], 3
	mov	DWORD PTR 100[rsp], eax
	call	min@PLT
	mov	edi, -559038737
	mov	DWORD PTR 108[rsp], eax
	call	SetLastError@PLT
	lea	rax, 96[rsp]
	mov	r8, QWORD PTR 56[rsp]
	mov	edi, ebp
	mov	rsi, QWORD PTR 64[rsp]
	mov	rdx, rax
	mov	QWORD PTR 32[rsp], rax
	movabs	rcx, 42949672974
	call	ScrollConsoleScreenBufferA@PLT
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR 72[rsp]
	test	eax, eax
	jle	.L21
	mov	DWORD PTR 20[rsp], eax
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L20:
	lea	r14d, -10[r12]
	mov	eax, r12d
	xor	r15d, r15d
	sal	r14, 32
	mov	QWORD PTR 8[rsp], rax
	mov	QWORD PTR 24[rsp], r14
	test	ebx, ebx
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	r15d, 13
	jbe	.L22
	mov	eax, DWORD PTR 84[rsp]
	add	eax, 14
	sub	eax, DWORD PTR 80[rsp]
	cmp	eax, r15d
	jl	.L22
	cmp	r12d, 9
	jle	.L22
	mov	eax, DWORD PTR 92[rsp]
	add	eax, 10
	sub	eax, DWORD PTR 88[rsp]
	cmp	eax, r12d
	jl	.L22
	cmp	DWORD PTR 96[rsp], r15d
	jg	.L22
	cmp	DWORD PTR 100[rsp], r15d
	jl	.L22
	cmp	DWORD PTR 104[rsp], r12d
	jg	.L22
	cmp	DWORD PTR 108[rsp], r12d
	jge	.L82
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	DWORD PTR 80[rsp], r15d
	jg	.L24
	cmp	DWORD PTR 84[rsp], r15d
	jl	.L24
	cmp	DWORD PTR 88[rsp], r12d
	jg	.L24
	cmp	DWORD PTR 92[rsp], r12d
	jl	.L24
	cmp	DWORD PTR 96[rsp], r15d
	jg	.L24
	cmp	DWORD PTR 100[rsp], r15d
	jl	.L24
	cmp	DWORD PTR 104[rsp], r12d
	jle	.L83
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, QWORD PTR 8[rsp]
	mov	r13d, r15d
	mov	r14, QWORD PTR DEFAULT_ATTRIB[rip]
	sal	rsi, 32
	or	r13, rsi
	mov	rdi, r13
	call	CONTENT@PLT
.L76:
	movsx	edx, al
	mov	rcx, r14
	mov	rsi, r13
	mov	edi, ebp
	call	okCHAR@PLT
.L23:
	add	r15d, 1
	cmp	ebx, r15d
	jne	.L25
.L27:
	add	r12d, 1
	cmp	r12d, DWORD PTR 20[rsp]
	jne	.L20
.L21:
	mov	edx, DWORD PTR TRUE[rip]
	mov	rsi, QWORD PTR 48[rsp]
	mov	edi, ebp
	call	resetContent@PLT
	mov	esi, DWORD PTR 40[rsp]
	movabs	rax, 42949672960
	mov	edi, 16
	mov	QWORD PTR 80[rsp], rax
	movabs	rax, 25769803776
	mov	QWORD PTR 88[rsp], rax
	mov	rax, QWORD PTR TEST_ATTRIB[rip]
	mov	BYTE PTR 120[rsp], 35
	mov	QWORD PTR 112[rsp], rax
	mov	DWORD PTR 96[rsp], 5
	call	min@PLT
	mov	esi, DWORD PTR 44[rsp]
	mov	edi, 10
	mov	DWORD PTR 104[rsp], 3
	mov	DWORD PTR 100[rsp], eax
	call	min@PLT
	mov	r8, QWORD PTR 56[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	edi, ebp
	mov	rsi, QWORD PTR 64[rsp]
	mov	ecx, 2
	mov	DWORD PTR 108[rsp], eax
	call	ScrollConsoleScreenBufferA@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 72[rsp]
	test	eax, eax
	jle	.L1
	mov	DWORD PTR 20[rsp], eax
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L29:
	mov	eax, r13d
	xor	r12d, r12d
	mov	QWORD PTR 8[rsp], rax
	test	ebx, ebx
	jle	.L35
	.p2align 4,,10
	.p2align 3
.L33:
	cmp	r12d, 1
	jbe	.L30
	mov	eax, DWORD PTR 84[rsp]
	add	eax, 2
	sub	eax, DWORD PTR 80[rsp]
	cmp	eax, r12d
	jl	.L30
	mov	eax, DWORD PTR 92[rsp]
	sub	eax, DWORD PTR 88[rsp]
	cmp	eax, r13d
	jl	.L30
	cmp	DWORD PTR 96[rsp], r12d
	jg	.L30
	cmp	DWORD PTR 100[rsp], r12d
	jl	.L30
	cmp	DWORD PTR 104[rsp], r13d
	jg	.L30
	cmp	DWORD PTR 108[rsp], r13d
	jge	.L84
	.p2align 4,,10
	.p2align 3
.L30:
	cmp	DWORD PTR 80[rsp], r12d
	jg	.L32
	cmp	DWORD PTR 84[rsp], r12d
	jl	.L32
	cmp	DWORD PTR 88[rsp], r13d
	jg	.L32
	cmp	DWORD PTR 92[rsp], r13d
	jl	.L32
	cmp	DWORD PTR 96[rsp], r12d
	jg	.L32
	cmp	DWORD PTR 100[rsp], r12d
	jl	.L32
	cmp	DWORD PTR 104[rsp], r13d
	jg	.L32
	cmp	DWORD PTR 108[rsp], r13d
	jge	.L85
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rsi, QWORD PTR 8[rsp]
	mov	eax, r12d
	mov	r14, QWORD PTR DEFAULT_ATTRIB[rip]
	sal	rsi, 32
	or	rax, rsi
	mov	rdi, rax
	mov	r15, rax
	call	CONTENT@PLT
.L77:
	movsx	edx, al
	mov	rcx, r14
	mov	rsi, r15
	mov	edi, ebp
	call	okCHAR@PLT
.L31:
	add	r12d, 1
	cmp	r12d, ebx
	jne	.L33
.L35:
	add	r13d, 1
	cmp	DWORD PTR 20[rsp], r13d
	jne	.L29
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L86
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
	.p2align 4,,10
	.p2align 3
.L81:
	.cfi_restore_state
	mov	rdx, QWORD PTR 24[rsp]
	mov	edi, eax
	mov	r13, QWORD PTR DEFAULT_ATTRIB[rip]
	sal	rdx, 32
	or	rdi, rdx
	call	CONTENT@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, r15d
	sal	rsi, 32
	or	rdx, rsi
	mov	r14, rdx
	jmp	.L75
.L83:
	cmp	DWORD PTR 108[rsp], r12d
	jl	.L24
	mov	rsi, QWORD PTR 8[rsp]
	mov	r13d, r15d
	mov	edx, 35
	mov	edi, ebp
	mov	rcx, QWORD PTR TEST_ATTRIB[rip]
	sal	rsi, 32
	or	r13, rsi
	mov	rsi, r13
	call	okCHAR@PLT
	jmp	.L23
.L80:
	mov	rsi, QWORD PTR 8[rsp]
	mov	r13d, r15d
	mov	edx, 35
	mov	edi, ebp
	mov	rcx, QWORD PTR TEST_ATTRIB[rip]
	sal	rsi, 32
	or	r13, rsi
	mov	rsi, r13
	call	okCHAR@PLT
	jmp	.L5
.L85:
	mov	rsi, QWORD PTR 8[rsp]
	mov	eax, r12d
	mov	edx, 35
	mov	edi, ebp
	mov	rcx, QWORD PTR TEST_ATTRIB[rip]
	sal	rsi, 32
	or	rax, rsi
	mov	rsi, rax
	call	okCHAR@PLT
	jmp	.L31
.L84:
	mov	r15, QWORD PTR 8[rsp]
	lea	edi, -2[r12]
	mov	r14, QWORD PTR DEFAULT_ATTRIB[rip]
	sal	r15, 32
	or	rdi, r15
	call	CONTENT@PLT
	mov	edx, r12d
	or	r15, rdx
	jmp	.L77
.L18:
	xor	eax, eax
	call	GetLastError@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r12
	cmp	QWORD PTR ERROR_NOT_ENOUGH_MEMORY[rip], rax
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	jmp	.L21
.L79:
	lea	edi, -14[r15]
	or	rdi, QWORD PTR 24[rsp]
	mov	r14, QWORD PTR DEFAULT_ATTRIB[rip]
	mov	r13d, r15d
	call	CONTENT@PLT
	mov	rsi, QWORD PTR 8[rsp]
	sal	rsi, 32
	or	r13, rsi
	jmp	.L74
.L82:
	lea	edi, -14[r15]
	or	rdi, QWORD PTR 24[rsp]
	mov	r14, QWORD PTR DEFAULT_ATTRIB[rip]
	mov	r13d, r15d
	call	CONTENT@PLT
	mov	rsi, QWORD PTR 8[rsp]
	sal	rsi, 32
	or	r13, rsi
	jmp	.L76
.L86:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	testScroll, .-testScroll
	.comm	W,4,4
	.comm	TRUE,4,4
	.comm	TEST_ATTRIB,8,8
	.comm	H,4,4
	.comm	ERROR_NOT_ENOUGH_MEMORY,8,8
	.comm	DEFAULT_ATTRIB,8,8
	.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_console.c_testScroll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Scrolling SB\012\000"
	.align	2
.LC1:
	.ascii	"Expected ERROR_NOT_ENOUGH_MEMORY, got %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	testScroll, %function
testScroll:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #108
	add	r3, sp, #24
	stm	r3, {r1, r2}
	ldm	r3, {r1, r2}
	ldr	r3, .L66
	ldr	ip, .L66+4
	mov	fp, r1
	ldr	r3, [r3]
	mov	r7, #0
	ldr	r10, [sp, #28]
	ldr	ip, [ip]
	str	ip, [sp, #100]
	mov	ip,#0
	mov	r5, r0
	bl	resetContent
	mov	r3, #10
	mov	lr, #6
	mov	ip, #35
	ldr	r2, .L66+8
	sub	r1, fp, #1
	ldr	r2, [r2]
	add	r6, sp, #60
	str	r1, [sp, #16]
	sub	r4, r10, #1
	str	r3, [sp]
	str	r1, [sp, #88]
	str	r2, [sp, #60]
	str	r3, [sp, #72]
	mov	r2, r7
	mov	r3, #14
	add	r1, sp, #68
	mov	r0, r5
	str	r6, [sp, #4]
	str	lr, [sp, #80]
	strb	ip, [sp, #64]
	str	r4, [sp, #20]
	str	r4, [sp, #96]
	str	r7, [sp, #68]
	str	r7, [sp, #76]
	str	r7, [sp, #84]
	str	r7, [sp, #92]
	bl	ScrollConsoleScreenBufferA
	ldr	r1, .L66+12
	bl	ok
	cmp	r10, r7
	ble	.L2
	ldr	r8, .L66+16
	add	r6, sp, #44
.L3:
	cmp	fp, #0
	movgt	r4, #0
	subgt	r9, r7, #10
	ble	.L9
.L7:
	cmp	r4, #13
	ldrls	r2, [sp, #68]
	bls	.L4
	ldr	r3, [sp, #72]
	ldr	r2, [sp, #68]
	add	r3, r3, #14
	sub	r3, r3, r2
	cmp	r3, r4
	cmpge	r7, #9
	bgt	.L58
.L4:
	cmp	r2, r4
	bgt	.L6
	ldr	r3, [sp, #72]
	cmp	r3, r4
	blt	.L6
	ldr	r3, [sp, #76]
	cmp	r3, r7
	bgt	.L6
	ldr	r3, [sp, #80]
	cmp	r3, r7
	blt	.L6
	ldr	r3, [sp, #84]
	cmp	r3, r4
	bgt	.L6
	ldr	r3, [sp, #88]
	cmp	r3, r4
	blt	.L6
	ldr	r3, [sp, #92]
	cmp	r3, r7
	bgt	.L6
	ldr	r3, [sp, #96]
	cmp	r3, r7
	bge	.L59
.L6:
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	ldm	r6, {r0, r1}
	bl	CONTENT
	ldm	r6, {r1, r2}
	ldr	ip, [r8]
	mov	r3, r0
	str	ip, [sp]
	mov	r0, r5
	bl	okCHAR
.L5:
	add	r4, r4, #1
	cmp	fp, r4
	bne	.L7
.L9:
	add	r7, r7, #1
	cmp	r7, r10
	bne	.L3
.L2:
	ldr	r3, .L66
	add	r2, sp, #24
	ldm	r2, {r1, r2}
	ldr	r3, [r3]
	mov	r0, r5
	bl	resetContent
	mov	ip, #3
	mov	r7, #0
	mov	r3, #10
	mov	r1, #6
	mov	r0, #35
	ldr	lr, [sp, #16]
	str	ip, [sp]
	add	r2, sp, #60
	ldr	ip, .L66+8
	str	r2, [sp, #4]
	ldr	ip, [ip]
	str	lr, [sp, #88]
	ldr	lr, [sp, #20]
	mov	r2, r7
	str	r3, [sp, #72]
	str	r1, [sp, #80]
	mov	r3, #5
	add	r1, sp, #68
	strb	r0, [sp, #64]
	mov	r0, r5
	str	lr, [sp, #96]
	str	ip, [sp, #60]
	str	r7, [sp, #68]
	str	r7, [sp, #76]
	str	r7, [sp, #84]
	str	r7, [sp, #92]
	bl	ScrollConsoleScreenBufferA
	ldr	r1, .L66+12
	bl	ok
	cmp	r10, r7
	ble	.L10
	ldr	r9, .L66+16
	add	r6, sp, #44
	str	r10, [sp, #12]
.L11:
	cmp	fp, #0
	ble	.L17
	sub	r10, r7, #3
	cmp	r10, #6
	movhi	r8, #0
	movls	r8, #1
	mov	r4, #0
	b	.L15
.L14:
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	ldm	r6, {r0, r1}
	bl	CONTENT
	ldm	r6, {r1, r2}
	ldr	ip, [r9]
	mov	r3, r0
	str	ip, [sp]
	mov	r0, r5
	bl	okCHAR
.L13:
	add	r4, r4, #1
	cmp	fp, r4
	beq	.L17
.L15:
	sub	r3, r4, #5
	cmp	r3, #10
	movhi	r2, #0
	andls	r2, r8, #1
	cmp	r2, #0
	bne	.L60
	cmp	r7, #6
	cmple	r4, #10
	bgt	.L14
	ldr	r3, .L66+8
	str	r4, [sp, #44]
	ldr	r3, [r3]
	str	r7, [sp, #48]
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	r3, [sp]
	add	r4, r4, #1
	mov	r3, #35
	bl	okCHAR
	cmp	fp, r4
	bne	.L15
.L17:
	ldr	r3, [sp, #12]
	add	r7, r7, #1
	cmp	r7, r3
	bne	.L11
	ldr	r10, [sp, #12]
.L10:
	ldr	r3, .L66
	add	r2, sp, #24
	ldm	r2, {r1, r2}
	ldr	r3, [r3]
	mov	r0, r5
	bl	resetContent
	mov	r0, #6
	mov	ip, #35
	mov	r7, #0
	mov	r4, #10
	mov	r2, #5
	ldr	r3, .L66+8
	ldr	r1, [sp, #16]
	ldr	r3, [r3]
	str	r0, [sp, #80]
	mov	r0, #16
	strb	ip, [sp, #64]
	str	r2, [sp, #84]
	str	r3, [sp, #60]
	str	r7, [sp, #68]
	str	r7, [sp, #76]
	str	r4, [sp, #72]
	bl	min
	mov	r3, #3
	mov	r2, r0
	ldr	r1, [sp, #20]
	mov	r0, r4
	str	r2, [sp, #88]
	str	r3, [sp, #92]
	bl	min
	mov	r3, r0
	ldr	r0, .L66+20
	str	r3, [sp, #96]
	bl	SetLastError
	add	r3, sp, #60
	str	r3, [sp, #4]
	mov	r0, r5
	mov	r3, #14
	str	r4, [sp]
	add	r2, sp, #84
	add	r1, sp, #68
	bl	ScrollConsoleScreenBufferA
	cmp	r0, r7
	beq	.L18
	cmp	r10, r7
	ble	.L21
	ldr	r8, .L66+16
	add	r6, sp, #44
.L20:
	cmp	fp, #0
	movgt	r4, #0
	subgt	r9, r7, #10
	ble	.L27
.L25:
	cmp	r4, #13
	ldrls	r2, [sp, #68]
	bls	.L22
	ldr	r3, [sp, #72]
	ldr	r2, [sp, #68]
	add	r3, r3, #14
	sub	r3, r3, r2
	cmp	r3, r4
	cmpge	r7, #9
	bgt	.L61
.L22:
	cmp	r2, r4
	bgt	.L24
	ldr	r3, [sp, #72]
	cmp	r3, r4
	blt	.L24
	ldr	r3, [sp, #76]
	cmp	r3, r7
	bgt	.L24
	ldr	r3, [sp, #80]
	cmp	r3, r7
	blt	.L24
	ldr	r3, [sp, #84]
	cmp	r3, r4
	bgt	.L24
	ldr	r3, [sp, #88]
	cmp	r3, r4
	blt	.L24
	ldr	r3, [sp, #92]
	cmp	r3, r7
	ble	.L62
.L24:
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	ldm	r6, {r0, r1}
	bl	CONTENT
	ldm	r6, {r1, r2}
	ldr	ip, [r8]
	mov	r3, r0
	str	ip, [sp]
	mov	r0, r5
	bl	okCHAR
.L23:
	add	r4, r4, #1
	cmp	fp, r4
	bne	.L25
.L27:
	add	r7, r7, #1
	cmp	r7, r10
	bne	.L20
.L21:
	add	r3, sp, #24
	ldm	r3, {r1, r2}
	ldr	r3, .L66
	mov	r0, r5
	ldr	r3, [r3]
	bl	resetContent
	mov	r3, #6
	mov	r0, #35
	mov	r7, #0
	mov	r2, #5
	mov	r4, #10
	str	r3, [sp, #80]
	ldr	r3, .L66+8
	ldr	r1, [sp, #16]
	ldr	r3, [r3]
	strb	r0, [sp, #64]
	mov	r0, #16
	str	r2, [sp, #84]
	str	r3, [sp, #60]
	str	r7, [sp, #68]
	str	r7, [sp, #76]
	str	r4, [sp, #72]
	bl	min
	mov	r3, #3
	mov	r2, r0
	ldr	r1, [sp, #20]
	mov	r0, r4
	str	r2, [sp, #88]
	str	r3, [sp, #92]
	bl	min
	mov	ip, r0
	add	r3, sp, #60
	str	r3, [sp, #4]
	add	r2, sp, #84
	mov	r3, #2
	add	r1, sp, #68
	mov	r0, r5
	str	r7, [sp]
	str	ip, [sp, #96]
	bl	ScrollConsoleScreenBufferA
	ldr	r1, .L66+12
	bl	ok
	cmp	r10, r7
	ble	.L1
	ldr	r8, .L66+16
	add	r6, sp, #44
.L29:
	cmp	fp, #0
	movgt	r4, #0
	addgt	r9, sp, #52
	ble	.L35
.L33:
	cmp	r4, #1
	ldrls	r2, [sp, #68]
	bls	.L30
	ldr	r3, [sp, #72]
	ldr	r2, [sp, #68]
	add	r3, r3, #2
	sub	r3, r3, r2
	cmp	r3, r4
	blt	.L30
	ldr	r3, [sp, #80]
	ldr	r1, [sp, #76]
	sub	r3, r3, r1
	cmp	r3, r7
	blt	.L30
	ldr	r3, [sp, #84]
	cmp	r3, r4
	bgt	.L30
	ldr	r3, [sp, #88]
	cmp	r3, r4
	blt	.L30
	ldr	r3, [sp, #92]
	cmp	r3, r7
	bgt	.L30
	ldr	r3, [sp, #96]
	cmp	r3, r7
	bge	.L63
.L30:
	cmp	r2, r4
	bgt	.L32
	ldr	r3, [sp, #72]
	cmp	r3, r4
	blt	.L32
	ldr	r3, [sp, #76]
	cmp	r3, r7
	bgt	.L32
	ldr	r3, [sp, #80]
	cmp	r3, r7
	blt	.L32
	ldr	r3, [sp, #84]
	cmp	r3, r4
	bgt	.L32
	ldr	r3, [sp, #88]
	cmp	r3, r4
	blt	.L32
	ldr	r3, [sp, #92]
	cmp	r3, r7
	bgt	.L32
	ldr	r3, [sp, #96]
	cmp	r3, r7
	bge	.L64
.L32:
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	ldm	r6, {r0, r1}
	bl	CONTENT
	ldm	r6, {r1, r2}
	ldr	ip, [r8]
	mov	r3, r0
	str	ip, [sp]
	mov	r0, r5
	bl	okCHAR
.L31:
	add	r4, r4, #1
	cmp	r4, fp
	bne	.L33
.L35:
	add	r7, r7, #1
	cmp	r10, r7
	bne	.L29
.L1:
	ldr	r3, .L66+4
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L65
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L58:
	ldr	r3, [sp, #80]
	ldr	r1, [sp, #76]
	add	r3, r3, #10
	sub	r3, r3, r1
	cmp	r3, r7
	blt	.L4
	ldr	r3, [sp, #84]
	cmp	r3, r4
	bgt	.L4
	ldr	r3, [sp, #88]
	cmp	r3, r4
	blt	.L4
	ldr	r3, [sp, #92]
	cmp	r3, r7
	bgt	.L4
	ldr	r3, [sp, #96]
	cmp	r3, r7
	blt	.L4
	sub	r3, r4, #14
	mov	r1, r9
	mov	r0, r3
	str	r3, [sp, #52]
	str	r9, [sp, #56]
	bl	CONTENT
	ldr	ip, [r8]
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	mov	r3, r0
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	ip, [sp]
	bl	okCHAR
	b	.L5
.L61:
	ldr	r3, [sp, #80]
	ldr	r1, [sp, #76]
	add	r3, r3, #10
	sub	r3, r3, r1
	cmp	r3, r7
	blt	.L22
	ldr	r3, [sp, #84]
	cmp	r3, r4
	bgt	.L22
	ldr	r3, [sp, #88]
	cmp	r3, r4
	blt	.L22
	ldr	r3, [sp, #92]
	cmp	r3, r7
	bgt	.L22
	ldr	r3, [sp, #96]
	cmp	r3, r7
	blt	.L22
	sub	r3, r4, #14
	mov	r1, r9
	mov	r0, r3
	str	r3, [sp, #52]
	str	r9, [sp, #56]
	bl	CONTENT
	ldr	ip, [r8]
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	mov	r3, r0
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	ip, [sp]
	bl	okCHAR
	b	.L23
.L60:
	str	r3, [sp, #52]
	str	r10, [sp, #56]
	add	r3, sp, #52
	ldm	r3, {r0, r1}
	bl	CONTENT
	ldr	ip, [r9]
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	mov	r3, r0
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	ip, [sp]
	bl	okCHAR
	b	.L13
.L62:
	ldr	r3, [sp, #96]
	cmp	r3, r7
	blt	.L24
	ldr	r3, .L66+8
	str	r4, [sp, #44]
	ldr	r3, [r3]
	str	r7, [sp, #48]
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	r3, [sp]
	mov	r3, #35
	bl	okCHAR
	b	.L23
.L59:
	ldr	r3, .L66+8
	str	r4, [sp, #44]
	ldr	r3, [r3]
	str	r7, [sp, #48]
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	r3, [sp]
	mov	r3, #35
	bl	okCHAR
	b	.L5
.L64:
	ldr	r3, .L66+8
	str	r4, [sp, #44]
	ldr	r3, [r3]
	str	r7, [sp, #48]
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	r3, [sp]
	mov	r3, #35
	bl	okCHAR
	b	.L31
.L63:
	sub	r3, r4, #2
	str	r3, [sp, #52]
	str	r7, [sp, #56]
	ldm	r9, {r0, r1}
	bl	CONTENT
	ldr	ip, [r8]
	str	r4, [sp, #44]
	str	r7, [sp, #48]
	mov	r3, r0
	ldm	r6, {r1, r2}
	mov	r0, r5
	str	ip, [sp]
	bl	okCHAR
	b	.L31
.L18:
	bl	GetLastError
	ldr	r3, .L66+24
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	bl	GetLastError
	lsr	r4, r4, #5
	mov	r2, r0
	ldr	r1, .L66+28
	mov	r0, r4
	bl	ok
	b	.L21
.L65:
	bl	__stack_chk_fail
.L67:
	.align	2
.L66:
	.word	TRUE
	.word	.LC2
	.word	TEST_ATTRIB
	.word	.LC0
	.word	DEFAULT_ATTRIB
	.word	-559038737
	.word	ERROR_NOT_ENOUGH_MEMORY
	.word	.LC1
	.size	testScroll, .-testScroll
	.comm	W,4,4
	.comm	TRUE,4,4
	.comm	TEST_ATTRIB,4,4
	.comm	H,4,4
	.comm	ERROR_NOT_ENOUGH_MEMORY,4,4
	.comm	DEFAULT_ATTRIB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
