	.file	"extr_tty3270.c_tty3270_erase_display.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tty3270_erase_display, @function
tty3270_erase_display:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	esi, esi
	je	.L15
	cmp	esi, 1
	je	.L16
	cmp	esi, 2
	je	.L17
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	tty3270_rebuild_update@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, ebx
	mov	rdi, rbp
	mov	QWORD PTR [rax+rbx*8], 0
	add	rbx, 1
	call	tty3270_convert_line@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L7
.L6:
	mov	rdi, rbp
	mov	esi, 1
	call	tty3270_erase_line@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	tty3270_rebuild_update@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	tty3270_erase_line@PLT
	mov	eax, DWORD PTR 0[rbp]
	lea	ebx, 1[rax]
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, 2
	cmp	ebx, eax
	jge	.L8
	movsx	r12, ebx
	sal	r12, 3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	mov	QWORD PTR [rax+r12], 0
	add	r12, 8
	call	tty3270_convert_line@PLT
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, 2
	cmp	eax, ebx
	jg	.L4
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	tty3270_rebuild_update@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	cmp	DWORD PTR 16[rdi], 2
	jle	.L8
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, ebx
	mov	rdi, rbp
	mov	QWORD PTR [rax+rbx*8], 0
	add	rbx, 1
	call	tty3270_convert_line@PLT
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, 2
	cmp	eax, ebx
	jg	.L9
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	tty3270_rebuild_update@PLT
	.cfi_endproc
.LFE0:
	.size	tty3270_erase_display, .-tty3270_erase_display
	.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_tty3270.c_tty3270_erase_display.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty3270_erase_display, %function
tty3270_erase_display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r1, #0
	mov	r4, r0
	beq	.L15
	cmp	r6, #1
	beq	.L16
	cmp	r6, #2
	beq	.L17
.L8:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	tty3270_rebuild_update
.L16:
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L6
	mov	r5, #0
	mov	r6, r5
.L7:
	ldr	r3, [r4, #4]
	mov	r1, r5
	str	r6, [r3, r5, lsl #2]
	mov	r0, r4
	bl	tty3270_convert_line
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L7
.L6:
	mov	r0, r4
	mov	r1, #1
	bl	tty3270_erase_line
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	tty3270_rebuild_update
.L15:
	bl	tty3270_erase_line
	ldr	r5, [r4]
	ldr	r3, [r4, #8]
	add	r5, r5, #1
	sub	r3, r3, #2
	cmp	r5, r3
	bge	.L8
.L4:
	ldr	r3, [r4, #4]
	mov	r1, r5
	str	r6, [r3, r5, lsl #2]
	mov	r0, r4
	bl	tty3270_convert_line
	ldr	r3, [r4, #8]
	add	r5, r5, #1
	sub	r3, r3, #2
	cmp	r3, r5
	bgt	.L4
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	tty3270_rebuild_update
.L17:
	ldr	r3, [r0, #8]
	cmp	r3, #2
	ble	.L8
	mov	r5, #0
	mov	r6, r5
.L9:
	ldr	r3, [r4, #4]
	mov	r1, r5
	str	r6, [r3, r5, lsl #2]
	mov	r0, r4
	bl	tty3270_convert_line
	ldr	r3, [r4, #8]
	add	r5, r5, #1
	sub	r3, r3, #2
	cmp	r3, r5
	bgt	.L9
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	tty3270_rebuild_update
	.size	tty3270_erase_display, .-tty3270_erase_display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
