	.file	"extr_mdacon.c_mdacon_scroll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mdacon_scroll, @function
mdacon_scroll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdi]
	call	mda_convert_attr@PLT
	test	ebx, ebx
	je	.L2
	cmp	DWORD PTR [r15], ebx
	mov	r14d, eax
	cmovbe	ebx, DWORD PTR [r15]
	cmp	r13d, 128
	je	.L3
	cmp	r13d, 129
	je	.L4
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L4:
	.cfi_restore_state
	sub	ebp, r12d
	mov	esi, r12d
	xor	edi, edi
	mov	r13d, ebp
	sub	r13d, ebx
	imul	r13d, DWORD PTR mda_num_columns[rip]
	call	mda_addr@PLT
	lea	esi, [rbx+r12]
	xor	edi, edi
	mov	ebp, eax
	call	mda_addr@PLT
	add	r13d, r13d
	mov	esi, ebp
	mov	edx, r13d
	mov	edi, eax
	call	scr_memmovew@PLT
	imul	ebx, DWORD PTR mda_num_columns[rip]
	mov	esi, r12d
	xor	edi, edi
	call	mda_addr@PLT
	mov	esi, r14d
	mov	edi, eax
	lea	r13d, [rbx+rbx]
	mov	edx, r13d
	call	scr_memsetw@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r13d, ebp
	lea	esi, [rbx+r12]
	xor	edi, edi
	sub	r13d, r12d
	sub	r13d, ebx
	imul	r13d, DWORD PTR mda_num_columns[rip]
	call	mda_addr@PLT
	mov	esi, r12d
	xor	edi, edi
	mov	r15d, eax
	call	mda_addr@PLT
	add	r13d, r13d
	mov	esi, r15d
	mov	edx, r13d
	mov	edi, eax
	call	scr_memmovew@PLT
	mov	r12d, DWORD PTR mda_num_columns[rip]
	mov	esi, ebp
	xor	edi, edi
	sub	esi, ebx
	call	mda_addr@PLT
	imul	r12d, ebx
	mov	esi, r14d
	mov	edi, eax
	add	r12d, r12d
	mov	edx, r12d
	call	scr_memsetw@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mdacon_scroll, .-mdacon_scroll
	.comm	mda_num_columns,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_mdacon.c_mdacon_scroll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdacon_scroll, %function
mdacon_scroll:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [sp, #32]
	mov	r9, r0
	ldr	r0, [r0, #4]
	mov	r6, r1
	mov	r7, r2
	mov	r4, r3
	bl	mda_convert_attr
	cmp	r5, #0
	beq	.L2
	ldr	r2, [r9]
	mov	r8, r0
	cmp	r5, r2
	movcs	r5, r2
	cmp	r4, #128
	beq	.L3
	cmp	r4, #129
	bne	.L2
	add	r1, r5, r6
	mov	r0, #0
	bl	mda_addr
	mov	r1, r6
	mov	r4, r0
	mov	r0, #0
	bl	mda_addr
	ldr	r9, .L11
	sub	r2, r7, r6
	ldr	r3, [r9]
	sub	r2, r2, r5
	mul	r2, r3, r2
	mov	r1, r0
	lsl	r2, r2, #1
	mov	r0, r4
	bl	scr_memmovew
	mov	r1, r6
.L9:
	mov	r0, #0
	bl	mda_addr
	ldr	r2, [r9]
	mov	r1, r8
	mul	r2, r5, r2
	lsl	r2, r2, #1
	bl	scr_memsetw
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r1, r6
	mov	r0, #0
	bl	mda_addr
	add	r1, r5, r6
	mov	r4, r0
	mov	r0, #0
	bl	mda_addr
	ldr	r9, .L11
	sub	r2, r7, r6
	ldr	r6, [r9]
	sub	r2, r2, r5
	mul	r2, r6, r2
	mov	r1, r0
	lsl	r2, r2, #1
	mov	r0, r4
	bl	scr_memmovew
	sub	r1, r7, r5
	b	.L9
.L12:
	.align	2
.L11:
	.word	mda_num_columns
	.size	mdacon_scroll, .-mdacon_scroll
	.comm	mda_num_columns,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
