	.file	"extr_ui_basic.c_EditString.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	EditString, @function
EditString:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	mov	rdi, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r9d
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 32[rsp], rdx
	mov	QWORD PTR 16[rsp], rcx
	mov	DWORD PTR 44[rsp], r8d
	mov	DWORD PTR 40[rsp], r9d
	call	strlen@PLT
	mov	DWORD PTR 8[rsp], 0
	mov	r14d, eax
	mov	eax, DWORD PTR 112[rsp]
	add	eax, 2
	mov	DWORD PTR 28[rsp], eax
	lea	eax, 1[rbx]
	mov	DWORD PTR 12[rsp], eax
	add	eax, DWORD PTR 120[rsp]
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR 112[rsp]
	lea	r15d, 1[rax]
.L2:
	mov	r9d, DWORD PTR 28[rsp]
	mov	r8d, DWORD PTR 24[rsp]
	mov	esi, ebp
	mov	edi, r12d
	mov	ecx, DWORD PTR 112[rsp]
	mov	edx, DWORD PTR 40[rsp]
	call	Box@PLT
	mov	r9d, DWORD PTR 120[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	edi, ebp
	mov	r8d, DWORD PTR 112[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	esi, r12d
	call	Print@PLT
	mov	eax, r14d
	sub	eax, DWORD PTR 8[rsp]
	cmp	eax, DWORD PTR 120[rsp]
	jl	.L3
	mov	eax, r14d
	sub	eax, DWORD PTR 120[rsp]
	add	eax, 1
	mov	DWORD PTR 8[rsp], eax
.L4:
	movsx	rbx, DWORD PTR 8[rsp]
	mov	esi, DWORD PTR 120[rsp]
	mov	edi, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 120[rsp]
	mov	rax, rbx
	add	rbx, QWORD PTR 16[rsp]
	add	esi, eax
	sub	edi, eax
	mov	r13d, eax
	mov	DWORD PTR [rsp], esi
	mov	DWORD PTR 4[rsp], edi
	test	ecx, ecx
	jg	.L21
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L17:
	test	al, al
	je	.L20
	add	rbx, 1
	movsx	edx, al
.L20:
	mov	r8d, r15d
	mov	esi, ebp
	mov	edi, r12d
	add	r13d, 1
	call	Plot@PLT
	cmp	r13d, DWORD PTR [rsp]
	je	.L22
.L21:
	mov	eax, DWORD PTR 4[rsp]
	mov	edx, 32
	lea	ecx, [rax+r13]
	movzx	eax, BYTE PTR [rbx]
	cmp	r14d, r13d
	jne	.L17
	test	al, al
	je	.L18
	add	rbx, 1
	movsx	edx, al
.L18:
	mov	r8d, r15d
	mov	esi, r12d
	mov	edi, ebp
	add	r13d, 1
	call	Plot@PLT
	cmp	r13d, DWORD PTR [rsp]
	jne	.L21
	.p2align 4,,10
	.p2align 3
.L22:
	xor	eax, eax
	call	GetKeyPress@PLT
	mov	ebx, eax
	cmp	eax, 126
	je	.L6
	jg	.L7
	cmp	eax, 30
	je	.L8
	jle	.L51
	cmp	eax, 31
	jne	.L52
	mov	rsi, QWORD PTR 16[rsp]
	movsx	rax, r14d
	cmp	BYTE PTR [rsi+rax], 1
	sbb	r14d, -1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	eax, 156
	je	.L13
	cmp	eax, 254
	jne	.L53
	movsx	rax, r14d
	add	rax, QWORD PTR 16[rsp]
	cmp	BYTE PTR [rax], 0
	je	.L2
	.p2align 4,,10
	.p2align 3
.L25:
	movzx	edx, BYTE PTR 1[rax]
	add	rax, 1
	mov	BYTE PTR -1[rax], dl
	test	dl, dl
	je	.L2
	movzx	edx, BYTE PTR 1[rax]
	add	rax, 1
	mov	BYTE PTR -1[rax], dl
	test	dl, dl
	jne	.L25
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L53:
	cmp	eax, 155
	jne	.L11
	mov	edx, DWORD PTR 136[rsp]
	mov	eax, DWORD PTR TRUE[rip]
	test	edx, edx
	js	.L1
	mov	rax, QWORD PTR 16[rsp]
	cmp	BYTE PTR [rax], 0
	je	.L10
	mov	rbx, QWORD PTR 16[rsp]
	mov	rdi, rbx
	call	strlen@PLT
	cdqe
	movzx	edx, BYTE PTR -1[rbx+rax]
	cmp	dl, 47
	setne	cl
	xor	eax, eax
	cmp	dl, 92
	setne	al
	and	eax, ecx
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	cmp	eax, 125
	jne	.L54
.L13:
	mov	rax, QWORD PTR 16[rsp]
	xor	r14d, r14d
	mov	BYTE PTR [rax], 0
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L51:
	cmp	eax, 27
	jne	.L11
.L10:
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rsp]
	cmp	eax, r14d
	cmovg	eax, r14d
	mov	DWORD PTR 8[rsp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR 16[rsp]
	call	strlen@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	test	r14d, r14d
	jle	.L2
	sub	r14d, 1
	movsx	rax, r14d
	add	rax, QWORD PTR 16[rsp]
	.p2align 4,,10
	.p2align 3
.L24:
	movzx	edx, BYTE PTR 1[rax]
	add	rax, 1
	mov	BYTE PTR -1[rax], dl
	test	dl, dl
	jne	.L24
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	test	r14d, r14d
	setg	al
	sub	r14d, eax
	jmp	.L2
.L54:
	mov	rdi, QWORD PTR 16[rsp]
	call	strlen@PLT
	lea	edx, 1[rax]
	cmp	edx, DWORD PTR 44[rsp]
	jge	.L2
	mov	rdx, QWORD PTR 16[rsp]
	cdqe
	.p2align 4,,10
	.p2align 3
.L29:
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	BYTE PTR 1[rdx+rax], cl
	sub	rax, 1
	cmp	r14d, eax
	jle	.L29
	mov	rsi, QWORD PTR 16[rsp]
	movsx	rax, r14d
	add	r14d, 1
	mov	BYTE PTR [rsi+rax], bl
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	EditString, .-EditString
	.comm	TRUE,4,4
	.comm	FILENAME_MAX,4,4
	.comm	FALSE,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_ui_basic.c_EditString.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	EditString, %function
EditString:
	@ args = 24, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #36
	mov	r0, r3
	str	r3, [sp, #16]
	str	r2, [sp, #28]
	mov	r7, r1
	bl	strlen
	mov	r3, #0
	mov	r6, r0
	str	r3, [sp, #8]
	ldr	r3, [sp, #76]
	ldr	r2, [sp, #84]
	add	r3, r3, #1
	str	r3, [sp, #12]
	add	r3, r2, r3
	str	r3, [sp, #24]
	ldr	r3, [sp, #80]
	add	r3, r3, #2
	str	r3, [sp, #20]
	ldr	r3, [sp, #80]
	add	fp, r3, #1
.L2:
	ldr	r3, [sp, #20]
	mov	r1, r7
	str	r3, [sp, #4]
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #76]
	str	r3, [sp]
	mov	r0, r8
	ldr	r3, [sp, #80]
	bl	Box
	ldr	r3, [sp, #84]
	ldr	r2, [sp, #28]
	str	r3, [sp, #4]
	ldr	r3, [sp, #80]
	mov	r1, r8
	str	r3, [sp]
	mov	r0, r7
	ldr	r3, [sp, #12]
	bl	Print
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #84]
	sub	r3, r6, r3
	cmp	r3, r2
	blt	.L3
	sub	r3, r6, r2
	add	r3, r3, #1
	str	r3, [sp, #8]
.L4:
	ldr	r3, [sp, #84]
	ldr	r2, [sp, #8]
	cmp	r3, #0
	ldr	r3, [sp, #16]
	add	r5, r3, r2
	ble	.L23
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #84]
	mov	r4, r3
	add	r10, r2, r3
	ldr	r2, [sp, #12]
	sub	r9, r2, r3
	b	.L22
.L18:
	cmp	r2, #0
	moveq	r2, #32
	add	r3, r9, r4
	mov	r1, r7
	mov	r0, r8
	str	fp, [sp]
	add	r4, r4, #1
	addne	r5, r5, #1
	bl	Plot
	cmp	r4, r10
	beq	.L23
.L22:
	cmp	r6, r4
	ldrb	r2, [r5]	@ zero_extendqisi2
	bne	.L18
	cmp	r2, #0
	moveq	r2, #32
	add	r3, r9, r4
	mov	r1, r8
	mov	r0, r7
	str	fp, [sp]
	add	r4, r4, #1
	addne	r5, r5, #1
	bl	Plot
	cmp	r4, r10
	bne	.L22
.L23:
	bl	GetKeyPress
	cmp	r0, #156
	mov	r4, r0
	bgt	.L6
	cmp	r0, #124
	bgt	.L7
	cmp	r0, #30
	beq	.L8
	cmp	r0, #31
	bne	.L52
	ldr	r3, [sp, #16]
	ldrb	r3, [r3, r6]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
.L49:
	add	r6, r6, #1
	b	.L2
.L7:
	sub	r3, r0, #125
	cmp	r3, #31
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L13:
	.word	.L12
	.word	.L15
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L14
	.word	.L12
.L14:
	ldr	r3, [sp, #92]
	cmp	r3, #0
	blt	.L26
	ldr	r3, [sp, #16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldr	r4, [sp, #16]
	mov	r0, r4
	bl	strlen
	add	r3, r4, r0
	ldrb	r0, [r3, #-1]	@ zero_extendqisi2
	cmp	r0, #47
	cmpne	r0, #92
	movne	r0, #1
	moveq	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	cmp	r6, #0
	beq	.L2
	ldr	r3, [sp, #16]
	sub	r6, r6, #1
	add	r3, r3, r6
.L24:
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #0
	strb	r2, [r3], #1
	bne	.L24
	b	.L2
.L12:
	mov	r6, #0
	ldr	r3, [sp, #16]
	strb	r6, [r3]
	b	.L2
.L6:
	cmp	r0, #254
	bne	.L2
	ldr	r3, [sp, #16]
	ldrb	r2, [r3, r6]	@ zero_extendqisi2
	add	r3, r3, r6
	cmp	r2, #0
	beq	.L2
.L25:
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #0
	strb	r2, [r3], #1
	beq	.L2
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #0
	strb	r2, [r3], #1
	bne	.L25
	b	.L2
.L52:
	cmp	r0, #27
	bne	.L11
.L10:
	ldr	r3, .L53
	ldr	r0, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [sp, #8]
	cmp	r3, r6
	movge	r3, r6
	str	r3, [sp, #8]
	b	.L4
.L8:
	cmp	r6, #0
	subne	r6, r6, #1
	b	.L2
.L26:
	ldr	r3, .L53+4
	ldr	r0, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r5, [sp, #16]
	mov	r0, r5
	bl	strlen
	ldr	r3, [sp, #72]
	add	r2, r0, #1
	cmp	r2, r3
	bge	.L2
	sub	r3, r4, #32
	cmp	r3, #94
	bhi	.L2
	mov	r0, r5
	add	r2, r5, r2
.L29:
	sub	r3, r2, #2
	sub	r3, r3, r0
	ldrb	r1, [r2, #-1]!	@ zero_extendqisi2
	cmp	r6, r3
	strb	r1, [r2, #1]
	ble	.L29
	ldr	r3, [sp, #16]
	strb	r4, [r3, r6]
	b	.L49
.L54:
	.align	2
.L53:
	.word	FALSE
	.word	TRUE
	.size	EditString, .-EditString
	.comm	TRUE,4,4
	.comm	FILENAME_MAX,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
