	.file	"481256.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"My Form"
	.align 8
.LC1:
	.string	"Use UP, DOWN arrow keys to switch between fields"
	.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
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	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	r9d, 0
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 6
	mov	esi, 10
	mov	edi, 1
	call	new_field@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 8
	mov	esi, 10
	mov	edi, 1
	call	new_field@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 131072
	mov	rdi, rax
	call	set_field_back@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	field_opts_off@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 131072
	mov	rdi, rax
	call	set_field_back@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	field_opts_off@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	new_form@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rdx, -56[rbp]
	lea	rcx, -60[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	scale_form@PLT
	mov	eax, DWORD PTR -56[rbp]
	lea	esi, 4[rax]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 4
	mov	ecx, 4
	mov	edx, 4
	mov	edi, eax
	call	newwin@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	set_form_win@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8d, 2
	mov	ecx, 2
	mov	rdi, rax
	call	derwin@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	set_form_sub@PLT
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9d, 256
	lea	r8, .LC0[rip]
	mov	ecx, edx
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	print_in_middle
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	post_form@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, 2
	lea	rdx, .LC1[rip]
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	jmp	.L2
.L6:
	cmp	DWORD PTR -52[rbp], 258
	je	.L3
	cmp	DWORD PTR -52[rbp], 259
	je	.L4
	jmp	.L9
.L3:
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 516
	mov	rdi, rax
	call	form_driver@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 537
	mov	rdi, rax
	call	form_driver@PLT
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 517
	mov	rdi, rax
	call	form_driver@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 537
	mov	rdi, rax
	call	form_driver@PLT
	jmp	.L2
.L9:
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	form_driver@PLT
	nop
.L2:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 265
	jne	.L6
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	unpost_form@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free_form@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free_field@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free_field@PLT
	call	endwin@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"%s"
	.text
	.globl	print_in_middle
	.type	print_in_middle, @function
print_in_middle:
.LFB7:
	.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	QWORD PTR -48[rbp], r8
	mov	DWORD PTR -40[rbp], r9d
	cmp	QWORD PTR -24[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR stdscr[rip]
	mov	QWORD PTR -24[rbp], rax
.L11:
	cmp	QWORD PTR -24[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	cwde
	jmp	.L13
.L12:
	mov	eax, -1
.L13:
	mov	DWORD PTR -16[rbp], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 2[rax]
	cwde
	jmp	.L15
.L14:
	mov	eax, -1
.L15:
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -12[rbp], eax
.L16:
	cmp	DWORD PTR -28[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
.L17:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L18
	mov	DWORD PTR -36[rbp], 80
.L18:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	cvttss2si	edx, xmm0
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	ecx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wattr_on@PLT
	mov	rcx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	lea	rcx, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	ecx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wattr_off@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_in_middle, .-print_in_middle
	.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	"481256.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"My Form\000"
	.align	2
.LC1:
	.ascii	"Use UP, DOWN arrow keys to switch between fields\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	initscr
	bl	start_color
	bl	cbreak
	bl	noecho
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	init_pair
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #6
	mov	r1, #10
	mov	r0, #1
	bl	new_field
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #8
	mov	r1, #10
	mov	r0, #1
	bl	new_field
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	mov	r1, #131072
	mov	r0, r3
	bl	set_field_back
	ldr	r3, [fp, #-20]
	mov	r1, #64
	mov	r0, r3
	bl	field_opts_off
	ldr	r3, [fp, #-16]
	mov	r1, #131072
	mov	r0, r3
	bl	set_field_back
	ldr	r3, [fp, #-16]
	mov	r1, #64
	mov	r0, r3
	bl	field_opts_off
	sub	r3, fp, #20
	mov	r0, r3
	bl	new_form
	str	r0, [fp, #-32]
	sub	r2, fp, #36
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	scale_form
	ldr	r3, [fp, #-40]
	add	r0, r3, #4
	ldr	r3, [fp, #-36]
	add	r1, r3, #4
	mov	r3, #4
	mov	r2, #4
	bl	newwin
	str	r0, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	keypad
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	set_form_win
	ldr	r1, [fp, #-40]
	ldr	r2, [fp, #-36]
	mov	r3, #2
	str	r3, [sp]
	mov	r3, #2
	ldr	r0, [fp, #-28]
	bl	derwin
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	set_form_sub
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	wborder
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	mov	r2, #256
	str	r2, [sp, #4]
	ldr	r2, .L10+8
	str	r2, [sp]
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	print_in_middle
	ldr	r0, [fp, #-32]
	bl	post_form
	ldr	r0, [fp, #-28]
	bl	wrefresh
	ldr	r3, .L10+12
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L10+16
	mov	r1, #0
	mov	r0, r3
	bl	mvprintw
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	b	.L2
.L6:
	ldr	r3, [fp, #-24]
	ldr	r2, .L10+20
	cmp	r3, r2
	beq	.L3
	ldr	r3, [fp, #-24]
	ldr	r2, .L10+24
	cmp	r3, r2
	beq	.L4
	b	.L9
.L3:
	mov	r1, #516
	ldr	r0, [fp, #-32]
	bl	form_driver
	ldr	r1, .L10+28
	ldr	r0, [fp, #-32]
	bl	form_driver
	b	.L2
.L4:
	ldr	r1, .L10+32
	ldr	r0, [fp, #-32]
	bl	form_driver
	ldr	r1, .L10+28
	ldr	r0, [fp, #-32]
	bl	form_driver
	b	.L2
.L9:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	form_driver
	nop
.L2:
	ldr	r0, [fp, #-28]
	bl	wgetch
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L10+36
	cmp	r3, r2
	bne	.L6
	ldr	r0, [fp, #-32]
	bl	unpost_form
	ldr	r0, [fp, #-32]
	bl	free_form
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free_field
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	free_field
	bl	endwin
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	stdscr
	.word	.LC0
	.word	LINES
	.word	.LC1
	.word	258
	.word	259
	.word	537
	.word	517
	.word	265
	.size	main, .-main
	.global	__aeabi_i2f
	.global	__aeabi_f2iz
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%s\000"
	.text
	.align	2
	.global	print_in_middle
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_in_middle, %function
print_in_middle:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L13:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3]
	b	.L15
.L14:
	mvn	r3, #0
.L15:
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #2]
	b	.L17
.L16:
	mvn	r3, #0
.L17:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
.L18:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
.L19:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L20
	mov	r3, #80
	str	r3, [fp, #-36]
.L20:
	ldr	r0, [fp, #4]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_f2iz
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	mov	r2, #0
	ldr	r1, [fp, #8]
	ldr	r0, [fp, #-24]
	bl	wattr_on
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, .L21+4
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	mvwprintw
	mov	r2, #0
	ldr	r1, [fp, #8]
	ldr	r0, [fp, #-24]
	bl	wattr_off
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	stdscr
	.word	.LC3
	.size	print_in_middle, .-print_in_middle
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
