	.file	"extr_newport_con.c_newport_clear.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	newport_clear, @function
newport_clear:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR logo_active[rip], 0
	jne	.L1
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	add	r8d, edx
	mov	r9d, esi
	add	esi, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sal	r9d, 4
	sal	esi, 4
	lea	r12d, -1[0+r8*8]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	ebp, 0[0+rdx*8]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR topscan[rip]
	mov	r8d, DWORD PTR [rdi]
	add	r9d, eax
	lea	r13d, -1[rax+rsi]
	sar	r8d, 4
	and	r9d, 1023
	and	r13d, 1023
	and	r8d, 15
	cmp	r9d, r13d
	jl	.L9
	mov	ecx, 1023
	mov	edx, r12d
	mov	esi, r9d
	mov	edi, ebp
	call	newport_clear_screen@PLT
	mov	r8d, DWORD PTR [rbx]
	mov	ecx, r13d
	mov	edx, r12d
	xor	esi, esi
	sar	r8d, 4
	and	r8d, 15
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, ebp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	newport_clear_screen@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ecx, r13d
	mov	edx, r12d
	mov	esi, r9d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	newport_clear, .-newport_clear
	.comm	topscan,4,4
	.comm	logo_active,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_newport_con.c_newport_clear.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	newport_clear, %function
newport_clear:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L8
	sub	sp, sp, #8
	ldr	r6, [ip]
	mov	r5, r0
	cmp	r6, #0
	mov	r0, r2
	ldr	r2, [sp, #32]
	bne	.L1
	ldr	ip, .L8+4
	add	r4, r1, r3
	ldr	ip, [ip]
	ldr	r3, .L8+8
	add	r4, ip, r4, lsl #4
	add	r1, ip, r1, lsl #4
	sub	r4, r4, #1
	ldr	ip, [r5]
	add	r7, r0, r2
	and	r4, r4, r3
	and	r1, r1, r3
	lsl	r7, r7, #3
	asr	r2, ip, #4
	cmp	r1, r4
	sub	r7, r7, #1
	lsl	r8, r0, #3
	and	r2, r2, #15
	blt	.L7
	str	r2, [sp]
	mov	r0, r8
	mov	r2, r7
	bl	newport_clear_screen
	ldr	r2, [r5]
	mov	r3, r4
	asr	r2, r2, #4
	and	r2, r2, #15
	str	r2, [sp, #32]
	mov	r1, r6
	mov	r2, r7
	mov	r0, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	newport_clear_screen
.L7:
	str	r2, [sp, #32]
	mov	r3, r4
	mov	r2, r7
	mov	r0, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	newport_clear_screen
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	logo_active
	.word	topscan
	.word	1023
	.size	newport_clear, .-newport_clear
	.comm	topscan,4,4
	.comm	logo_active,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
