	.file	"11238.c"
	.intel_syntax noprefix
	.text
	.globl	choices
	.section	.rodata
.LC0:
	.string	"Choice 1"
.LC1:
	.string	"Choice 2"
.LC2:
	.string	"Choice 3"
.LC3:
	.string	"Choice 4"
.LC4:
	.string	"Choice 5"
.LC5:
	.string	"Choice 6"
.LC6:
	.string	"Choice 7"
.LC7:
	.string	"Exit"
	.section	.data.rel.local,"aw"
	.align 32
	.type	choices, @object
	.size	choices, 64
choices:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.section	.rodata
	.align 8
.LC8:
	.string	"Press <ENTER> to see the option selected"
	.align 8
.LC9:
	.string	"Up and Down arrow keys to naviage (F1 to Exit)"
.LC10:
	.string	"Item selected is : %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	call	initscr@PLT
	call	start_color@PLT
	call	cbreak@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	init_pair@PLT
	mov	edx, 0
	mov	esi, 5
	mov	edi, 3
	call	init_pair@PLT
	mov	DWORD PTR -40[rbp], 8
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, choices[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, choices[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	ecx, DWORD PTR -44[rbp]
	movsx	rcx, ecx
	lea	rsi, 0[0+rcx*8]
	mov	rcx, QWORD PTR -32[rbp]
	lea	rbx, [rsi+rcx]
	mov	rsi, rdx
	mov	rdi, rax
	call	new_item@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -44[rbp], 1
.L2:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L3
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	item_opts_off@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	item_opts_off@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	new_menu@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 262400
	mov	rdi, rax
	call	set_menu_fore@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	set_menu_back@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 768
	mov	rdi, rax
	call	set_menu_grey@PLT
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, 3
	lea	rdx, .LC8[rip]
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, 2
	lea	rdx, .LC9[rip]
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	post_menu@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	jmp	.L4
.L7:
	cmp	DWORD PTR -36[rbp], 259
	je	.L5
	cmp	DWORD PTR -36[rbp], 259
	jg	.L4
	cmp	DWORD PTR -36[rbp], 10
	je	.L6
	cmp	DWORD PTR -36[rbp], 258
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 515
	mov	rdi, rax
	call	menu_driver@PLT
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 514
	mov	rdi, rax
	call	menu_driver@PLT
	jmp	.L4
.L6:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 20
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclrtoeol@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	current_item@PLT
	mov	rdi, rax
	call	item_name@PLT
	mov	rcx, rax
	lea	rdx, .LC10[rip]
	mov	esi, 0
	mov	edi, 20
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pos_menu_cursor@PLT
	nop
.L4:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 265
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	unpost_menu@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free_item@PLT
	add	DWORD PTR -44[rbp], 1
.L8:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free_menu@PLT
	call	endwin@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"11238.c"
	.text
	.global	choices
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Choice 1\000"
	.align	2
.LC1:
	.ascii	"Choice 2\000"
	.align	2
.LC2:
	.ascii	"Choice 3\000"
	.align	2
.LC3:
	.ascii	"Choice 4\000"
	.align	2
.LC4:
	.ascii	"Choice 5\000"
	.align	2
.LC5:
	.ascii	"Choice 6\000"
	.align	2
.LC6:
	.ascii	"Choice 7\000"
	.align	2
.LC7:
	.ascii	"Exit\000"
	.data
	.align	2
	.type	choices, %object
	.size	choices, 32
choices:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Press <ENTER> to see the option selected\000"
	.align	2
.LC9:
	.ascii	"Up and Down arrow keys to naviage (F1 to Exit)\000"
	.align	2
.LC10:
	.ascii	"Item selected is : %s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	bl	initscr
	bl	start_color
	bl	cbreak
	bl	noecho
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	init_pair
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	init_pair
	mov	r2, #0
	mov	r1, #5
	mov	r0, #3
	bl	init_pair
	mov	r3, #8
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L2
.L3:
	ldr	r2, .L11+4
	ldr	r3, [fp, #-32]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, .L11+4
	ldr	r3, [fp, #-32]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	bl	new_item
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L2:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	item_opts_off
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	item_opts_off
	ldr	r0, [fp, #-24]
	bl	new_menu
	str	r0, [fp, #-20]
	ldr	r1, .L11+8
	ldr	r0, [fp, #-20]
	bl	set_menu_fore
	mov	r1, #512
	ldr	r0, [fp, #-20]
	bl	set_menu_back
	mov	r1, #768
	ldr	r0, [fp, #-20]
	bl	set_menu_grey
	ldr	r3, .L11+12
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r2, .L11+16
	mov	r1, #0
	mov	r0, r3
	bl	mvprintw
	ldr	r3, .L11+12
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L11+20
	mov	r1, #0
	mov	r0, r3
	bl	mvprintw
	ldr	r0, [fp, #-20]
	bl	post_menu
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	b	.L4
.L7:
	ldr	r3, [fp, #-16]
	ldr	r2, .L11+24
	cmp	r3, r2
	beq	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #260
	bge	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	beq	.L6
	ldr	r3, [fp, #-16]
	ldr	r2, .L11+28
	cmp	r3, r2
	bne	.L4
	ldr	r1, .L11+32
	ldr	r0, [fp, #-20]
	bl	menu_driver
	b	.L4
.L5:
	ldr	r1, .L11+36
	ldr	r0, [fp, #-20]
	bl	menu_driver
	b	.L4
.L6:
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #20
	mov	r0, r3
	bl	wmove
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclrtoeol
	ldr	r0, [fp, #-20]
	bl	current_item
	mov	r3, r0
	mov	r0, r3
	bl	item_name
	mov	r3, r0
	ldr	r2, .L11+40
	mov	r1, #0
	mov	r0, #20
	bl	mvprintw
	ldr	r0, [fp, #-20]
	bl	pos_menu_cursor
	nop
.L4:
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L11+44
	cmp	r3, r2
	bne	.L7
	ldr	r0, [fp, #-20]
	bl	unpost_menu
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L8
.L9:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free_item
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L9
	ldr	r0, [fp, #-20]
	bl	free_menu
	bl	endwin
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	stdscr
	.word	choices
	.word	262400
	.word	LINES
	.word	.LC8
	.word	.LC9
	.word	259
	.word	258
	.word	515
	.word	514
	.word	.LC10
	.word	265
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
