// File: /workspace/github_c_makefile_star2_O0/ArchLuke[P]YouSuck/Engine.c
// Function: Console_Loop
static void Console_Loop()
{
    
    printf("mode is console\n");
    S_MOVELIST list[1];
    while(1)
    {
        memset(line, 0, sizeof(line));

        fgets(line, INPUTBUFFER, stdin);
        if(strncmp(line, "fen", 3)==0)
        {
            line += 4;
            ParseFen(line, pos);    
        }else if (strncmp(line, "go", 2)==0)
        {
            ParseGo(line, info, pos);
        }else if (strncmp(line, "eval", 4)==0)
        {
            PrintPositionalEvals(pos);        
        }else if (strncmp(line, "genmoves", 8)==0)
   	 {
        GenerateAllMoves(pos, list, FALSE);
        PrintMoves(list);
    
    }else if (strncmp (line, "printmoves", 10)==0)
    {
        PrintMoves(list);
    }
    else if(strncmp(line,"popmove", 7)==0)
    {
        ParsePop(line, list);
    }else if(strncmp(line, "Evalcap",7)==0){
	EvalCap(line, pos);
    }
    else if(strncmp(line, "q", 1)==0)
        {
            break;        
        }
    }
}

// Assembly:
subq $0x808, %rsp            # imm = 0x808
leaq 0x30d5(%rip), %rdi      # 0xbec3
movb $0x0, %al
callq 0x1060
movq 0x6e84(%rip), %rdi      # 0xfc80
xorl %esi, %esi
movl $0x8, %edx
callq 0x1080
movq 0x6e71(%rip), %rdi      # 0xfc80
movq 0x61ca(%rip), %rax      # 0xefe0
movq (%rax), %rdx
movl $0xa00, %esi            # imm = 0xA00
callq 0x1090
movq 0x6e56(%rip), %rdi      # 0xfc80
leaq 0x2ea5(%rip), %rsi      # 0xbcd6
movl $0x3, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8e6a
movq 0x6e39(%rip), %rax      # 0xfc80
addq $0x4, %rax
movq %rax, 0x6e2e(%rip)      # 0xfc80
movq 0x6e27(%rip), %rdi      # 0xfc80
leaq 0x6e30(%rip), %rsi      # 0xfc90
callq 0x3580
jmp 0x8fc6
movq 0x6e0f(%rip), %rdi      # 0xfc80
leaq 0x2e99(%rip), %rsi      # 0xbd11
movl $0x2, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8ea6
movq 0x6df2(%rip), %rdi      # 0xfc80
leaq 0x222cb(%rip), %rsi     # 0x2b160
leaq 0x6df4(%rip), %rdx      # 0xfc90
callq 0x32d0
jmp 0x8fc4
movq 0x6dd3(%rip), %rdi      # 0xfc80
leaq 0x3020(%rip), %rsi      # 0xbed4
movl $0x4, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8ed4
leaq 0x6dc6(%rip), %rdi      # 0xfc90
callq 0x8fe0
jmp 0x8fc2
movq 0x6da5(%rip), %rdi      # 0xfc80
leaq 0x2ff7(%rip), %rsi      # 0xbed9
movl $0x8, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8f0f
movq %rsp, %rsi
leaq 0x6d95(%rip), %rdi      # 0xfc90
xorl %edx, %edx
callq 0x45e0
movq %rsp, %rdi
callq 0x9180
jmp 0x8fc0
movq 0x6d6a(%rip), %rdi      # 0xfc80
leaq 0x2fc5(%rip), %rsi      # 0xbee2
movl $0xa, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8f39
movq %rsp, %rdi
callq 0x9180
jmp 0x8fbe
movq 0x6d40(%rip), %rdi      # 0xfc80
leaq 0x2fa6(%rip), %rsi      # 0xbeed
movl $0x7, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8f67
movq 0x6d23(%rip), %rdi      # 0xfc80
movq %rsp, %rsi
callq 0x91f0
jmp 0x8fbc
movq 0x6d12(%rip), %rdi      # 0xfc80
leaq 0x2f80(%rip), %rsi      # 0xbef5
movl $0x7, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8f99
movq 0x6cf5(%rip), %rdi      # 0xfc80
leaq 0x6cfe(%rip), %rsi      # 0xfc90
callq 0x9250
jmp 0x8fba
movq 0x6ce0(%rip), %rdi      # 0xfc80
leaq 0x2cae(%rip), %rsi      # 0xbc55
movl $0x1, %edx
callq 0x1040
cmpl $0x0, %eax
jne 0x8fb8
jmp 0x8fcb
jmp 0x8fba
jmp 0x8fbc
jmp 0x8fbe
jmp 0x8fc0
jmp 0x8fc2
jmp 0x8fc4
jmp 0x8fc6
jmp 0x8df5
addq $0x808, %rsp            # imm = 0x808
retq
nopw %cs:(%rax,%rax)