	.file	"extr_vt.c_csi_K.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	csi_K, @function
csi_K:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	r12, QWORD PTR 24[rdi]
	cmp	esi, 1
	je	.L2
	cmp	esi, 2
	je	.L3
	test	esi, esi
	je	.L11
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rdi]
	xor	esi, esi
	lea	r13d, 1[rax]
	neg	eax
	cdqe
	lea	r12, [r12+rax*2]
.L5:
	mov	edx, r13d
	mov	rdi, rbp
	call	vc_uniscr_clear_line@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, r12
	lea	edx, [r13+r13]
	call	scr_memsetw@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	call	con_should_update@PLT
	test	rax, rax
	je	.L1
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	do_update_region@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rdi]
	mov	r13d, DWORD PTR [rdi]
	sub	r13d, esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[rdi]
	mov	r13d, DWORD PTR [rdi]
	xor	esi, esi
	neg	eax
	cdqe
	lea	r12, [r12+rax*2]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	csi_K, .-csi_K
	.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_vt.c_csi_K.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	csi_K, %function
csi_K:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #1
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, [r0, #16]
	beq	.L2
	cmp	r1, #2
	beq	.L3
	cmp	r1, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r0, #4]
	ldr	r5, [r0]
	mov	r1, r3
	sub	r5, r5, r3
.L5:
	mov	r2, r5
	mov	r0, r4
	bl	vc_uniscr_clear_line
	ldr	r1, [r4, #12]
	lsl	r2, r5, #1
	mov	r0, r6
	bl	scr_memsetw
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #8]
	bl	con_should_update
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	do_update_region
.L3:
	ldr	r3, [r0, #4]
	mov	r1, #0
	rsb	r3, r3, r3, lsl #31
	ldr	r5, [r0]
	add	r6, r6, r3, lsl #1
	b	.L5
.L2:
	ldr	r5, [r0, #4]
	mov	r1, #0
	rsb	r3, r5, r5, lsl #31
	add	r6, r6, r3, lsl #1
	add	r5, r5, #1
	b	.L5
	.size	csi_K, .-csi_K
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
