	.file	"433002.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"[ ] "
.LC1:
	.string	"%s"
	.text
	.globl	slist
	.type	slist, @function
slist:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printw@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
.L2:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	test	eax, eax
	jne	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	slist, .-slist
	.globl	detectkey
	.type	detectkey, @function
detectkey:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 66
	je	.L6
	cmp	DWORD PTR -4[rbp], 66
	jg	.L7
	cmp	DWORD PTR -4[rbp], 32
	je	.L8
	cmp	DWORD PTR -4[rbp], 65
	je	.L9
	jmp	.L7
.L8:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L7
.L9:
	mov	DWORD PTR -8[rbp], 2
	jmp	.L7
.L6:
	mov	DWORD PTR -8[rbp], 3
	nop
.L7:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	detectkey, .-detectkey
	.section	.rodata
.LC2:
	.string	"First Entry"
.LC3:
	.string	"Second Entry"
.LC4:
	.string	"Third Entry"
.LC5:
	.string	"Fourth Entry"
.LC6:
	.string	"*"
.LC7:
	.string	" "
.LC8:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	sub	rsp, 112
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	initscr@PLT
	call	noecho@PLT
	mov	DWORD PTR -116[rbp], 10
	mov	DWORD PTR -112[rbp], 1
	mov	DWORD PTR -108[rbp], 4
	lea	rax, .LC2[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	ecx, DWORD PTR -112[rbp]
	mov	edx, DWORD PTR -116[rbp]
	mov	esi, DWORD PTR -108[rbp]
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	slist
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	add	eax, 1
	mov	DWORD PTR -104[rbp], eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -104[rbp]
	mov	ecx, DWORD PTR -128[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	DWORD PTR -132[rbp], 0
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -96[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L12:
	cmp	rsp, rdx
	je	.L13
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L12
.L13:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L14
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L14:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -124[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -124[rbp], 1
.L15:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L16
.L28:
	mov	eax, 0
	call	detectkey
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 3
	je	.L17
	cmp	DWORD PTR -100[rbp], 3
	jg	.L18
	cmp	DWORD PTR -100[rbp], 1
	je	.L19
	cmp	DWORD PTR -100[rbp], 2
	je	.L20
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L21
	cmp	eax, 1
	je	.L22
	jmp	.L18
.L21:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printw@PLT
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printw@PLT
	nop
.L23:
	jmp	.L18
.L20:
	cmp	DWORD PTR -132[rbp], 0
	je	.L30
	sub	DWORD PTR -132[rbp], 1
	sub	DWORD PTR -128[rbp], 1
	jmp	.L30
.L17:
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 1
	cmp	DWORD PTR -132[rbp], eax
	je	.L31
	add	DWORD PTR -132[rbp], 1
	add	DWORD PTR -128[rbp], 1
	jmp	.L31
.L30:
	nop
	jmp	.L18
.L31:
	nop
.L18:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	wmove@PLT
	mov	DWORD PTR -120[rbp], 0
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -120[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printw@PLT
	add	DWORD PTR -120[rbp], 1
.L26:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L27
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -104[rbp]
	mov	ecx, DWORD PTR -128[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	jmp	.L28
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"433002.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"First Entry\000"
	.align	2
.LC1:
	.ascii	"Second Entry\000"
	.align	2
.LC2:
	.ascii	"Third Entry\000"
	.align	2
.LC3:
	.ascii	"Fourth Entry\000"
	.text
	.section	.rodata
	.align	2
.LC5:
	.ascii	"[ ] \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.text
	.align	2
	.global	slist
	.syntax unified
	.arm
	.fpu softvfp
	.type	slist, %function
slist:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	wmove
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r0, .L5+4
	bl	printw
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L5+8
	bl	printw
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	wmove
.L2:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stdscr
	.word	.LC5
	.word	.LC6
	.size	slist, .-slist
	.align	2
	.global	detectkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	detectkey, %function
detectkey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #66
	beq	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #66
	bgt	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	beq	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #65
	beq	.L11
	b	.L9
.L10:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L9
.L11:
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L9
.L8:
	mov	r3, #3
	str	r3, [fp, #-12]
	nop
.L9:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	stdscr
	.size	detectkey, .-detectkey
	.section	.rodata
	.align	2
.LC8:
	.ascii	"*\000"
	.align	2
.LC9:
	.ascii	" \000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC7:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	initscr
	bl	noecho
	mov	r3, #10
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-48]
	mov	r3, #4
	str	r3, [fp, #-44]
	ldr	r3, .L33+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r0, fp, #24
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-44]
	bl	slist
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	wmove
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	ip, [fp, #-44]
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L16
.L17:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-60]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L16:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L17
.L29:
	bl	detectkey
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	beq	.L18
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bgt	.L19
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L20
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	beq	.L21
	b	.L19
.L20:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-68]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L22
	cmp	r3, #1
	beq	.L23
	b	.L19
.L22:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-68]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	ldr	r0, .L33+12
	bl	printw
	b	.L24
.L23:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-68]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r0, .L33+16
	bl	printw
	nop
.L24:
	b	.L19
.L21:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-68]
	sub	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L31
.L18:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	beq	.L32
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L32
.L31:
	nop
	b	.L19
.L32:
	nop
.L19:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #1
	mov	r0, r3
	bl	wmove
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L27
.L28:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printw
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L27:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L28
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	wmove
	b	.L29
.L34:
	.align	2
.L33:
	.word	.LC11
	.word	.LC7
	.word	stdscr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
