	.file	"3262884.c"
	.intel_syntax noprefix
	.text
	.globl	store_n_discs
	.bss
	.align 4
	.type	store_n_discs, @object
	.size	store_n_discs, 4
store_n_discs:
	.zero	4
	.globl	welcome_string
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the number of discs you want to be solved: "
	.section	.data.rel.local,"aw"
	.align 8
	.type	welcome_string, @object
	.size	welcome_string, 8
welcome_string:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"%d"
	.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	initscr@PLT
	call	cbreak@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	edi, 0
	call	curs_set@PLT
	mov	rdx, QWORD PTR welcome_string[rip]
	mov	eax, DWORD PTR COLS[rip]
	mov	ecx, DWORD PTR LINES[rip]
	mov	esi, ecx
	shr	esi, 31
	add	ecx, esi
	sar	ecx
	mov	esi, ecx
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, eax
	mov	edi, 0
	call	print_in_middle
	lea	rax, -84[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 300
	mov	rdi, rax
	call	wtimeout@PLT
	call	noecho@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR store_n_discs[rip], eax
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	init_pegs
	mov	edx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR stdscr[rip]
	lea	rcx, -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	show_pegs
	mov	esi, DWORD PTR -84[rbp]
	lea	rax, -80[rbp]
	mov	r8d, 2
	mov	ecx, 1
	mov	edx, 0
	mov	rdi, rax
	call	solve_hanoi
	mov	edx, DWORD PTR -84[rbp]
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free_pegs
	call	endwin@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	solve_hanoi
	.type	solve_hanoi, @function
solve_hanoi:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -24[rbp], r8d
	cmp	DWORD PTR -12[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	edi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	solve_hanoi
	mov	esi, DWORD PTR store_n_discs[rip]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	move_disc
	mov	edx, DWORD PTR store_n_discs[rip]
	mov	rax, QWORD PTR stdscr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	show_pegs
	mov	edx, DWORD PTR store_n_discs[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	check_usr_response
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	edi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	solve_hanoi
	jmp	.L4
.L7:
	nop
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	solve_hanoi, .-solve_hanoi
	.globl	check_usr_response
	.type	check_usr_response, @function
check_usr_response:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L11
	cmp	DWORD PTR -4[rbp], 265
	jne	.L8
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free_pegs
	call	endwin@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	nop
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_usr_response, .-check_usr_response
	.globl	move_disc
	.type	move_disc, @function
move_disc:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	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	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L13
.L15:
	add	DWORD PTR -8[rbp], 1
.L13:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L15
.L14:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L16
.L18:
	add	DWORD PTR -8[rbp], 1
.L16:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L18
.L17:
	sub	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	move_disc, .-move_disc
	.globl	init_pegs
	.type	init_pegs, @function
init_pegs:
.LFB10:
	.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
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -24[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rcx+rax]
	mov	esi, 4
	mov	rdi, rdx
	call	calloc@PLT
	mov	QWORD PTR 16[rbx], rax
	add	DWORD PTR -24[rbp], 1
.L20:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L21
	mov	DWORD PTR -28[rbp], 3
	mov	DWORD PTR -24[rbp], 0
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -24[rbp], 1
	add	DWORD PTR -28[rbp], 2
.L22:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L23
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 11[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 7[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	ecx, 2[rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, [rax+rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 24
	add	edx, ecx
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 24
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 7
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 24
	mov	eax, DWORD PTR 4[rax]
	lea	ecx, 2[rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, [rax+rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 48
	add	edx, ecx
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 48
	mov	edx, DWORD PTR -44[rbp]
	add	edx, 7
	mov	DWORD PTR 8[rax], edx
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	init_pegs, .-init_pegs
	.section	.rodata
.LC2:
	.string	"Press F1 to Exit"
.LC3:
	.string	"%c"
	.text
	.globl	show_pegs
	.type	show_pegs, @function
show_pegs:
.LFB11:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	wclear@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 262144
	mov	rdi, rax
	call	wattr_on@PLT
	lea	rdx, .LC2[rip]
	mov	esi, 0
	mov	edi, 24
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 262144
	mov	rdi, rax
	call	wattr_off@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	sub	eax, DWORD PTR -52[rbp]
	lea	esi, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8d, 35
	lea	rcx, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	DWORD PTR -24[rbp], 1
.L25:
	cmp	DWORD PTR -24[rbp], 2
	jle	.L26
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	sub	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L27
.L34:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L28
.L33:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L29
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	neg	eax
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L30
.L31:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8d, 42
	lea	rcx, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	DWORD PTR -16[rbp], 1
.L30:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L31
	jmp	.L32
.L29:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8d, 35
	lea	rcx, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
.L32:
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L28:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L33
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	sub	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -24[rbp], 1
.L27:
	cmp	DWORD PTR -24[rbp], 2
	jle	.L34
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	show_pegs, .-show_pegs
	.globl	free_pegs
	.type	free_pegs, @function
free_pegs:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L36:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L37
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	free_pegs, .-free_pegs
	.section	.rodata
.LC4:
	.string	"%s"
	.text
	.globl	print_in_middle
	.type	print_in_middle, @function
print_in_middle:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -48[rbp], r8
	cmp	QWORD PTR -48[rbp], 0
	jne	.L39
	mov	rax, QWORD PTR stdscr[rip]
	mov	QWORD PTR -48[rbp], rax
.L39:
	cmp	QWORD PTR -48[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR [rax]
	cwde
	jmp	.L41
.L40:
	mov	eax, -1
.L41:
	mov	DWORD PTR -16[rbp], eax
	cmp	QWORD PTR -48[rbp], 0
	je	.L42
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR 2[rax]
	cwde
	jmp	.L43
.L42:
	mov	eax, -1
.L43:
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L44
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
.L44:
	cmp	DWORD PTR -24[rbp], 0
	je	.L45
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -16[rbp], eax
.L45:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L46
	mov	DWORD PTR -28[rbp], 80
.L46:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -28[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 -20[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	r8, rcx
	lea	rcx, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"3262884.c"
	.text
	.comm	store_n_discs,4,4
	.global	welcome_string
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number of discs you want to be solved: \000"
	.data
	.align	2
	.type	welcome_string, %object
	.size	welcome_string, 4
welcome_string:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	initscr
	bl	cbreak
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	mov	r0, #0
	bl	curs_set
	ldr	r3, .L4+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	ldr	r3, .L4+12
	ldr	r2, [r3]
	ldr	r3, .L4+16
	ldr	r3, [r3]
	mov	r1, #0
	str	r1, [sp]
	mov	r1, r0
	mov	r0, #0
	bl	print_in_middle
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L4+20
	bl	scanw
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, #300
	mov	r0, r3
	bl	wtimeout
	bl	noecho
	ldr	r3, [fp, #-60]
	ldr	r2, .L4+24
	str	r3, [r2]
	ldr	r2, [fp, #-60]
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	init_pegs
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	sub	r1, fp, #56
	mov	r0, r3
	bl	show_pegs
	ldr	r1, [fp, #-60]
	sub	r0, fp, #56
	mov	r3, #2
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #0
	bl	solve_hanoi
	ldr	r2, [fp, #-60]
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	free_pegs
	bl	endwin
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	stdscr
	.word	LINES
	.word	COLS
	.word	welcome_string
	.word	.LC1
	.word	store_n_discs
	.size	main, .-main
	.align	2
	.global	solve_hanoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve_hanoi, %function
solve_hanoi:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	solve_hanoi
	ldr	r3, .L10
	ldr	r1, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	move_disc
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, .L10
	ldr	r2, [r2]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	show_pegs
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	check_usr_response
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	solve_hanoi
	b	.L6
.L9:
	nop
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	store_n_discs
	.word	stdscr
	.size	solve_hanoi, .-solve_hanoi
	.align	2
	.global	check_usr_response
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_usr_response, %function
check_usr_response:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L15
	ldr	r3, [fp, #-8]
	ldr	r2, .L16+4
	cmp	r3, r2
	bne	.L12
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	free_pegs
	bl	endwin
	mov	r0, #0
	bl	exit
.L15:
	nop
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stdscr
	.word	265
	.size	check_usr_response, .-check_usr_response
	.align	2
	.global	move_disc
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_disc, %function
move_disc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L21:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L21
.L20:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L24:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L24
.L23:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	move_disc, .-move_disc
	.align	2
	.global	init_pegs
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_pegs, %function
init_pegs:
	@ 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
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L26
.L27:
	ldr	r0, [fp, #-36]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	mov	r1, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4, #12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L26:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L27
	mov	r3, #3
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L28
.L29:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	str	r3, [fp, #-24]
.L28:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r2, r3, #11
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	add	r2, r3, #7
	ldr	r3, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r1, r3, #2
	ldr	r3, [fp, #-16]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	add	r2, r1, r2
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	ldr	r2, [fp, #-36]
	add	r2, r2, #7
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	ldr	r3, [r3, #4]
	add	r1, r3, #2
	ldr	r3, [fp, #-16]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-32]
	add	r3, r3, #32
	add	r2, r1, r2
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #32
	ldr	r2, [fp, #-36]
	add	r2, r2, #7
	str	r2, [r3, #8]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	init_pegs, .-init_pegs
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Press F1 to Exit\000"
	.align	2
.LC4:
	.ascii	"%c\000"
	.text
	.align	2
	.global	show_pegs
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_pegs, %function
show_pegs:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	wclear
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #262144
	mov	r0, r3
	bl	wattr_on
	ldr	r2, .L41+4
	mov	r1, #0
	mov	r0, #24
	bl	mvprintw
	ldr	r3, .L41
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #262144
	mov	r0, r3
	bl	wattr_off
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L31
.L32:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	sub	r1, r3, #1
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	mov	r3, #35
	str	r3, [sp]
	ldr	r3, .L41+8
	ldr	r0, [fp, #-32]
	bl	mvwprintw
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L31:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L32
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L33
.L40:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L34
.L39:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L36
.L37:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	mov	r3, #42
	str	r3, [sp]
	ldr	r3, .L41+8
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	mvwprintw
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L36:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L37
	b	.L38
.L35:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	mov	r3, #35
	str	r3, [sp]
	ldr	r3, .L41+8
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	mvwprintw
.L38:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L34:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L39
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L33:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L40
	ldr	r0, [fp, #-32]
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	stdscr
	.word	.LC3
	.word	.LC4
	.size	show_pegs, .-show_pegs
	.align	2
	.global	free_pegs
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_pegs, %function
free_pegs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L44
.L45:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L44:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L45
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_pegs, .-free_pegs
	.global	__aeabi_i2f
	.global	__aeabi_f2iz
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s\000"
	.text
	.align	2
	.global	print_in_middle
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_in_middle, %function
print_in_middle:
	@ args = 4, 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, #4]
	cmp	r3, #0
	bne	.L47
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #4]
.L47:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #4]
	ldrsh	r3, [r3]
	b	.L49
.L48:
	mvn	r3, #0
.L49:
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #4]
	ldrsh	r3, [r3, #2]
	b	.L51
.L50:
	mvn	r3, #0
.L51:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
.L52:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
.L53:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L54
	mov	r3, #80
	str	r3, [fp, #-32]
.L54:
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	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, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	ldr	r3, .L55+4
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #4]
	bl	mvwprintw
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	stdscr
	.word	.LC5
	.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
