	.file	"extr_util.c_on_key_esc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	on_key_esc
	.type	on_key_esc, @function
on_key_esc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR TRUE[rip]
	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
	call	nodelay@PLT
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, rbp
	call	keypad@PLT
	mov	rdi, rbp
	call	wgetch@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	wgetch@PLT
	mov	ebx, eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	wgetch@PLT
	cmp	DWORD PTR ERR[rip], eax
	jne	.L2
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, rbp
	call	nodelay@PLT
	mov	esi, DWORD PTR TRUE[rip]
	mov	rdi, rbp
	call	keypad@PLT
	cmp	DWORD PTR KEY_ESC[rip], r12d
	je	.L15
	mov	eax, DWORD PTR ERR[rip]
	cmp	r12d, eax
	je	.L8
	cmp	ebx, eax
	je	.L5
.L8:
	mov	r12d, -1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	DWORD PTR ERR[rip], ebx
	mov	eax, -1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	cmovne	r12d, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, r12d
	mov	r12d, -1
	call	ungetch@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	on_key_esc, .-on_key_esc
	.comm	TRUE,4,4
	.comm	KEY_ESC,4,4
	.comm	FALSE,4,4
	.comm	ERR,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_util.c_on_key_esc.c"
	.text
	.align	2
	.global	on_key_esc
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_key_esc, %function
on_key_esc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r8, .L11
	ldr	r9, .L11+4
	ldr	r1, [r8]
	bl	nodelay
	ldr	r1, [r9]
	mov	r0, r4
	bl	keypad
	mov	r0, r4
	bl	wgetch
	mov	r6, r0
	mov	r0, r4
	bl	wgetch
	mov	r7, r0
	ldr	r5, .L11+8
.L2:
	mov	r0, r4
	bl	wgetch
	ldr	r3, [r5]
	cmp	r3, r0
	bne	.L2
	ldr	r1, [r9]
	mov	r0, r4
	bl	nodelay
	mov	r0, r4
	ldr	r1, [r8]
	bl	keypad
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r3, r6
	ldr	r3, [r5]
	beq	.L10
	subs	r2, r6, r3
	movne	r2, #1
	cmp	r7, r3
	movne	r2, #0
	cmp	r2, #0
	bne	.L5
	mvn	r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	cmp	r3, r7
	mvnne	r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r0, r6
	mvn	r6, #0
	bl	ungetch
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	TRUE
	.word	FALSE
	.word	ERR
	.word	KEY_ESC
	.size	on_key_esc, .-on_key_esc
	.comm	TRUE,4,4
	.comm	KEY_ESC,4,4
	.comm	FALSE,4,4
	.comm	ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
