	.file	"extr_screen-write.c_screen_write_deletecharacter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	screen_write_deletecharacter
	.type	screen_write_deletecharacter, @function
screen_write_deletecharacter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	jne	.L2
	mov	rdi, rbp
	mov	ebx, 1
	call	screen_size_x@PLT
	mov	r13, QWORD PTR 0[rbp]
	cdqe
	sub	rax, r13
	test	rax, rax
	jle	.L5
.L3:
	mov	rdi, rbp
	call	screen_size_x@PLT
	sub	eax, 1
	cdqe
	cmp	rax, r13
	jl	.L1
	mov	r13, rsp
	mov	rdi, r12
	mov	rsi, r13
	call	screen_write_initctx@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	r8, r14
	mov	edi, DWORD PTR 12[rbp]
	mov	rcx, rbx
	mov	QWORD PTR 8[rsp], r14
	call	grid_view_delete_cells@PLT
	xor	esi, esi
	mov	rdi, r12
	call	screen_write_collect_flush@PLT
	mov	edi, DWORD PTR tty_cmd_deletecharacter[rip]
	mov	rsi, r13
	mov	QWORD PTR [rsp], rbx
	call	tty_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	mov	rbx, rsi
	call	screen_size_x@PLT
	mov	r13, QWORD PTR 0[rbp]
	cdqe
	sub	rax, r13
	cmp	rax, rbx
	jge	.L3
.L5:
	mov	rdi, rbp
	call	screen_size_x@PLT
	mov	r13, QWORD PTR 0[rbp]
	movsx	rbx, eax
	sub	rbx, r13
	jne	.L3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	screen_write_deletecharacter, .-screen_write_deletecharacter
	.comm	tty_cmd_deletecharacter,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_screen-write.c_screen_write_deletecharacter.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	screen_write_deletecharacter
	.syntax unified
	.arm
	.fpu softvfp
	.type	screen_write_deletecharacter, %function
screen_write_deletecharacter:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L15
	ldr	r7, [r0]
	sub	sp, sp, #28
	subs	r4, r1, #0
	mov	r5, r0
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r0, r7
	bne	.L2
	bl	screen_size_x
	ldr	r3, [r7]
	sub	r0, r0, r3
	cmp	r0, #0
	movgt	r4, #1
	ble	.L5
.L3:
	mov	r0, r7
	bl	screen_size_x
	ldr	r3, [r7]
	cmp	r0, r3
	ble	.L1
	add	r1, sp, #12
	mov	r0, r5
	bl	screen_write_initctx
	ldm	r7, {r1, r2}
	mov	r3, r4
	ldr	r0, [r7, #8]
	str	r6, [sp]
	str	r6, [sp, #16]
	bl	grid_view_delete_cells
	mov	r0, r5
	mov	r1, #0
	bl	screen_write_collect_flush
	ldr	r3, .L15+4
	add	r1, sp, #12
	ldr	r0, [r3]
	str	r4, [sp, #12]
	bl	tty_write
	b	.L1
.L2:
	bl	screen_size_x
	ldr	r3, [r7]
	sub	r0, r0, r3
	cmp	r0, r4
	bge	.L3
.L5:
	mov	r0, r7
	bl	screen_size_x
	ldr	r3, [r7]
	subs	r4, r0, r3
	bne	.L3
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	tty_cmd_deletecharacter
	.size	screen_write_deletecharacter, .-screen_write_deletecharacter
	.comm	tty_cmd_deletecharacter,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
