	.file	"548530.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	"Use <SPACE> to select or unselect an item."
	.align 8
.LC9:
	.string	"<ENTER> to see presently selected items(F1 to Exit)"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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, 264
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	initscr@PLT
	call	cbreak@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	DWORD PTR -256[rbp], 8
	mov	eax, DWORD PTR -256[rbp]
	add	eax, 1
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -248[rbp], rax
	mov	DWORD PTR -260[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, choices[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, choices[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	ecx, DWORD PTR -260[rbp]
	movsx	rcx, ecx
	lea	rsi, 0[0+rcx*8]
	mov	rcx, QWORD PTR -248[rbp]
	lea	rbx, [rsi+rcx]
	mov	rsi, rdx
	mov	rdi, rax
	call	new_item@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -260[rbp], 1
.L2:
	mov	eax, DWORD PTR -260[rbp]
	cmp	eax, DWORD PTR -256[rbp]
	jl	.L3
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	new_menu@PLT
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	menu_opts_off@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 -240[rbp]
	mov	rdi, rax
	call	post_menu@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	jmp	.L4
.L12:
	cmp	DWORD PTR -252[rbp], 259
	je	.L5
	cmp	DWORD PTR -252[rbp], 259
	jg	.L4
	cmp	DWORD PTR -252[rbp], 258
	je	.L6
	cmp	DWORD PTR -252[rbp], 258
	jg	.L4
	cmp	DWORD PTR -252[rbp], 10
	je	.L7
	cmp	DWORD PTR -252[rbp], 32
	je	.L8
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 515
	mov	rdi, rax
	call	menu_driver@PLT
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 514
	mov	rdi, rax
	call	menu_driver@PLT
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 524
	mov	rdi, rax
	call	menu_driver@PLT
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	menu_items@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	BYTE PTR -224[rbp], 0
	mov	DWORD PTR -260[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	item_value@PLT
	test	al, al
	je	.L10
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	item_name@PLT
	mov	rdx, rax
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -224[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
.L10:
	add	DWORD PTR -260[rbp], 1
.L9:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	item_count@PLT
	cmp	DWORD PTR -260[rbp], eax
	jl	.L11
	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
	lea	rax, -224[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 20
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
.L4:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], 265
	jne	.L12
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free_item@PLT
	mov	rax, QWORD PTR -248[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free_item@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	free_menu@PLT
	call	endwin@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"548530.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	"Use <SPACE> to select or unselect an item.\000"
	.align	2
.LC9:
	.ascii	"<ENTER> to see presently selected items(F1 to Exit)"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	" \000"
	.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 = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #236
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	initscr
	bl	cbreak
	bl	noecho
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	mov	r3, #8
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-232]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L2
.L3:
	ldr	r2, .L15+8
	ldr	r3, [fp, #-240]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, .L15+8
	ldr	r3, [fp, #-240]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-240]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-232]
	add	r4, r2, r3
	bl	new_item
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L2:
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-236]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-236]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-232]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-232]
	bl	new_menu
	str	r0, [fp, #-228]
	mov	r1, #1
	ldr	r0, [fp, #-228]
	bl	menu_opts_off
	ldr	r3, .L15+12
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r2, .L15+16
	mov	r1, #0
	mov	r0, r3
	bl	mvprintw
	ldr	r3, .L15+12
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L15+20
	mov	r1, #0
	mov	r0, r3
	bl	mvprintw
	ldr	r0, [fp, #-228]
	bl	post_menu
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	b	.L4
.L12:
	ldr	r3, [fp, #-224]
	ldr	r2, .L15+24
	cmp	r3, r2
	beq	.L5
	ldr	r3, [fp, #-224]
	cmp	r3, #260
	bge	.L4
	ldr	r3, [fp, #-224]
	ldr	r2, .L15+28
	cmp	r3, r2
	beq	.L6
	ldr	r3, [fp, #-224]
	ldr	r2, .L15+28
	cmp	r3, r2
	bgt	.L4
	ldr	r3, [fp, #-224]
	cmp	r3, #10
	beq	.L7
	ldr	r3, [fp, #-224]
	cmp	r3, #32
	beq	.L8
	b	.L4
.L6:
	ldr	r1, .L15+32
	ldr	r0, [fp, #-228]
	bl	menu_driver
	b	.L4
.L5:
	ldr	r1, .L15+36
	ldr	r0, [fp, #-228]
	bl	menu_driver
	b	.L4
.L8:
	mov	r1, #524
	ldr	r0, [fp, #-228]
	bl	menu_driver
	b	.L4
.L7:
	ldr	r0, [fp, #-228]
	bl	menu_items
	str	r0, [fp, #-220]
	mov	r3, #0
	strb	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L9
.L11:
	ldr	r3, [fp, #-240]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-220]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	item_value
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-240]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-220]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	item_name
	mov	r2, r0
	sub	r3, fp, #216
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #216
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #216
	add	r3, r3, r2
	ldr	r2, .L15+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L10:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L9:
	ldr	r0, [fp, #-228]
	bl	item_count
	mov	r2, r0
	ldr	r3, [fp, #-240]
	cmp	r3, r2
	blt	.L11
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #20
	mov	r0, r3
	bl	wmove
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclrtoeol
	sub	r3, fp, #216
	mov	r2, r3
	mov	r1, #0
	mov	r0, #20
	bl	mvprintw
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
.L4:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	ldr	r2, .L15+44
	cmp	r3, r2
	bne	.L12
	ldr	r3, [fp, #-232]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free_item
	ldr	r3, [fp, #-232]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free_item
	ldr	r0, [fp, #-228]
	bl	free_menu
	bl	endwin
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC11
	.word	stdscr
	.word	choices
	.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
