	.file	"extr_util.c_dialog_clear.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[...] "
	.text
	.p2align 4
	.globl	dialog_clear
	.type	dialog_clear, @function
dialog_clear:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edi, DWORD PTR stdscr[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	getmaxy@PLT
	mov	edi, DWORD PTR stdscr[rip]
	mov	ebp, eax
	call	getmaxx@PLT
	mov	ecx, DWORD PTR dlg[rip+16]
	mov	edi, DWORD PTR stdscr[rip]
	mov	esi, ebp
	mov	edx, eax
	mov	r14d, eax
	call	attr_clear@PLT
	cmp	QWORD PTR dlg[rip+8], 0
	je	.L8
	mov	esi, DWORD PTR dlg[rip+16]
	mov	edi, DWORD PTR stdscr[rip]
	call	wattrset@PLT
	mov	rcx, QWORD PTR dlg[rip+8]
	mov	edi, DWORD PTR stdscr[rip]
	xor	esi, esi
	mov	edx, 1
	call	mvwaddstr@PLT
	mov	rbx, QWORD PTR dlg[rip]
	test	rbx, rbx
	je	.L19
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR [rbx]
	call	strlen@PLT
	mov	rbx, QWORD PTR 8[rbx]
	lea	ebp, 3[rbp+rax]
	test	rbx, rbx
	jne	.L4
	lea	r12d, 1[rbp]
.L3:
	mov	edi, DWORD PTR stdscr[rip]
	mov	edx, 1
	mov	esi, 1
	lea	r13d, -1[r14]
	call	wmove@PLT
	xor	eax, eax
	cmp	r13d, ebp
	jle	.L28
.L5:
	mov	rbp, QWORD PTR dlg[rip]
	test	rbp, rbp
	je	.L17
.L6:
	test	eax, eax
	je	.L16
	lea	ebx, -2[rax]
	cmp	eax, 1
	je	.L10
	mov	rdi, QWORD PTR 0[rbp]
	call	strlen@PLT
	cmp	eax, ebx
	jle	.L13
.L29:
	mov	edi, DWORD PTR stdscr[rip]
	movsx	rsi, ebx
	add	rsi, QWORD PTR 0[rbp]
	call	waddstr@PLT
.L14:
	mov	edi, DWORD PTR stdscr[rip]
	mov	esi, 32
	call	waddch@PLT
	mov	rbp, QWORD PTR 8[rbp]
	test	rbp, rbp
	je	.L17
.L16:
	movsx	esi, BYTE PTR ACS_RARROW[rip]
	mov	edi, DWORD PTR stdscr[rip]
	call	waddch@PLT
.L10:
	mov	edi, DWORD PTR stdscr[rip]
	mov	esi, 32
	xor	ebx, ebx
	call	waddch@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	strlen@PLT
	cmp	eax, ebx
	jg	.L29
.L13:
	mov	rdi, QWORD PTR 0[rbp]
	call	strlen@PLT
	sub	ebx, eax
	je	.L14
	mov	rbp, QWORD PTR 8[rbp]
	lea	eax, -1[rbx]
	test	rbp, rbp
	jne	.L6
.L17:
	cmp	r13d, r12d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	movsx	esi, BYTE PTR ACS_HLINE[rip]
	mov	edi, DWORD PTR stdscr[rip]
	add	r12d, 1
	call	waddch@PLT
	cmp	r13d, r12d
	jne	.L18
.L8:
	mov	edi, DWORD PTR stdscr[rip]
	pop	rbx
	.cfi_remember_state
	.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
	jmp	wnoutrefresh@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	r12d, 1
	xor	ebp, ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR stdscr[rip]
	lea	rsi, .LC0[rip]
	sub	ebp, r14d
	call	waddstr@PLT
	lea	rdi, .LC0[rip]
	call	strlen@PLT
	lea	eax, 2[rbp+rax]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	dialog_clear, .-dialog_clear
	.comm	stdscr,4,4
	.comm	dlg,24,16
	.comm	ACS_RARROW,1,1
	.comm	ACS_HLINE,1,1
	.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_util.c_dialog_clear.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[...] \000"
	.text
	.align	2
	.global	dialog_clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	dialog_clear, %function
dialog_clear:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L31
	ldr	r9, .L31+4
	ldr	r0, [r6]
	bl	getmaxy
	mov	r5, r0
	ldr	r0, [r6]
	bl	getmaxx
	ldr	r3, [r9, #8]
	mov	r2, r0
	mov	r10, r0
	mov	r1, r5
	ldr	r0, [r6]
	bl	attr_clear
	ldr	r3, [r9, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [r9, #8]
	ldr	r0, [r6]
	bl	wattrset
	mov	r2, #1
	mov	r1, #0
	ldr	r3, [r9, #4]
	ldr	r0, [r6]
	bl	mvwaddstr
	ldr	r5, [r9]
	cmp	r5, #0
	beq	.L20
	mov	r4, #0
.L4:
	ldr	r0, [r5]
	bl	strlen
	ldr	r5, [r5, #4]
	add	r0, r0, #3
	cmp	r5, #0
	add	r4, r4, r0
	bne	.L4
	add	r7, r4, #1
.L3:
	mov	r2, #1
	ldr	r0, [r6]
	mov	r1, r2
	sub	r8, r10, #1
	bl	wmove
	cmp	r8, r4
	movgt	r4, #0
	ble	.L29
.L5:
	ldr	r5, [r9]
	ldr	r10, [r6]
	cmp	r5, #0
	beq	.L6
	ldr	r9, .L31+8
.L16:
	cmp	r4, #0
	beq	.L15
	cmp	r4, #1
	subne	r4, r4, #2
	beq	.L8
.L10:
	ldr	fp, [r5]
	mov	r0, fp
	bl	strlen
	cmp	r0, r4
	bgt	.L30
	subs	r4, r4, r0
	beq	.L12
	ldr	r5, [r5, #4]
	sub	r4, r4, #1
	cmp	r5, #0
	bne	.L16
.L6:
	cmp	r8, r7
	ble	.L17
	ldr	r4, .L31+12
.L19:
	mov	r0, r10
	ldrb	r1, [r4]	@ zero_extendqisi2
	add	r7, r7, #1
	bl	waddch
	cmp	r8, r7
	ldr	r10, [r6]
	bne	.L19
.L17:
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	wnoutrefresh
.L30:
	mov	r0, r10
	add	r1, fp, r4
	bl	waddstr
	ldr	r10, [r6]
.L12:
	mov	r0, r10
	mov	r1, #32
	bl	waddch
	ldr	r5, [r5, #4]
	ldr	r10, [r6]
	cmp	r5, #0
	beq	.L6
.L15:
	mov	r0, r10
	ldrb	r1, [r9]	@ zero_extendqisi2
	bl	waddch
	ldr	r10, [r6]
.L8:
	mov	r0, r10
	mov	r1, #32
	bl	waddch
	mov	r4, #0
	ldr	r10, [r6]
	b	.L10
.L2:
	ldr	r10, [r6]
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	wnoutrefresh
.L20:
	mov	r4, r5
	mov	r7, #1
	b	.L3
.L29:
	ldr	r1, .L31+16
	ldr	r0, [r6]
	sub	r10, r10, #8
	bl	waddstr
	sub	r4, r4, r10
	b	.L5
.L32:
	.align	2
.L31:
	.word	stdscr
	.word	dlg
	.word	ACS_RARROW
	.word	ACS_HLINE
	.word	.LC0
	.size	dialog_clear, .-dialog_clear
	.comm	stdscr,4,4
	.comm	dlg,12,4
	.comm	ACS_RARROW,1,1
	.comm	ACS_HLINE,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
