// File: tewalds[P]morat/hex/../lib/gtpbase.h
// Function: Morat::GTPBase::GTPBase(_IO_FILE*, _IO_FILE*)
GTPBase(FILE * i = stdin, FILE * o = stdout){
		in = i;
		out = o;
		longest_cmd = 0;
		running = false;

		newcallback("list_commands",    std::bind(&GTPBase::gtp_list_commands,    this, _1, false), "List the commands");
		newcallback("help",             std::bind(&GTPBase::gtp_list_commands,    this, _1, true),  "List the commands, with descriptions");
		newcallback("quit",             std::bind(&GTPBase::gtp_quit,             this, _1), "Quit the program");
		newcallback("exit",             std::bind(&GTPBase::gtp_quit,             this, _1), "Alias for quit");
		newcallback("protocol_version", std::bind(&GTPBase::gtp_protocol_version, this, _1), "Show the gtp protocol version");
	}

// Assembly:
subq $0x3c8, %rsp            # imm = 0x3C8
movq %rdi, 0x3c0(%rsp)
movq %rsi, 0x3b8(%rsp)
movq %rdx, 0x3b0(%rsp)
movq 0x3c0(%rsp), %rdi
movq %rdi, 0x50(%rsp)
addq $0x10, %rdi
movq %rdi, 0x48(%rsp)
callq 0xd030
movq 0x50(%rsp), %rax
movq 0x3b8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x3b0(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x28(%rax)
movb $0x0, 0x2c(%rax)
leaq 0x38f(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x5770
movq 0x58(%rsp), %rdx
leaq 0x402c1(%rip), %rsi     # 0x4c7d0
leaq 0x390(%rsp), %rdi
callq 0x5590
jmp 0xc51e
movq 0x50(%rsp), %rax
leaq 0xb66(%rip), %rcx       # 0xd090
movq %rcx, 0x328(%rsp)
movq $0x0, 0x330(%rsp)
movq %rax, 0x320(%rsp)
movb $0x0, 0x31f(%rsp)
movq 0x60a6b(%rip), %rcx     # 0x6cfc0
leaq 0x338(%rsp), %rdi
leaq 0x328(%rsp), %rsi
leaq 0x320(%rsp), %rdx
leaq 0x31f(%rsp), %r8
callq 0xd040
jmp 0xc57c
leaq 0x358(%rsp), %rdi
leaq 0x338(%rsp), %rsi
callq 0xd3a0
jmp 0xc593
leaq 0x2f7(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdx
leaq 0x4022d(%rip), %rsi     # 0x4c7de
leaq 0x2f8(%rsp), %rdi
callq 0x5590
jmp 0xc5c0
movq 0x50(%rsp), %rdi
leaq 0x390(%rsp), %rsi
leaq 0x358(%rsp), %rdx
leaq 0x2f8(%rsp), %rcx
callq 0xc0d0
jmp 0xc5e4
leaq 0x2f8(%rsp), %rdi
callq 0x5260
leaq 0x2f7(%rsp), %rdi
callq 0x5450
leaq 0x358(%rsp), %rdi
callq 0xc350
leaq 0x390(%rsp), %rdi
callq 0x5260
leaq 0x38f(%rsp), %rdi
callq 0x5450
leaq 0x2cf(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x5770
movq 0x38(%rsp), %rdx
leaq 0x3fba5(%rip), %rsi     # 0x4c1e8
leaq 0x2d0(%rsp), %rdi
callq 0x5590
jmp 0xc652
movq 0x50(%rsp), %rax
leaq 0xa32(%rip), %rcx       # 0xd090
movq %rcx, 0x278(%rsp)
movq $0x0, 0x280(%rsp)
movq %rax, 0x270(%rsp)
movb $0x1, 0x26f(%rsp)
movq 0x60937(%rip), %rcx     # 0x6cfc0
leaq 0x288(%rsp), %rdi
leaq 0x278(%rsp), %rsi
leaq 0x270(%rsp), %rdx
leaq 0x26f(%rsp), %r8
callq 0xd040
jmp 0xc6b0
leaq 0x2a8(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0xd3a0
jmp 0xc6c7
leaq 0x247(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x5770
movq 0x30(%rsp), %rdx
leaq 0x4010b(%rip), %rsi     # 0x4c7f0
leaq 0x248(%rsp), %rdi
callq 0x5590
jmp 0xc6f4
movq 0x50(%rsp), %rdi
leaq 0x2d0(%rsp), %rsi
leaq 0x2a8(%rsp), %rdx
leaq 0x248(%rsp), %rcx
callq 0xc0d0
jmp 0xc718
leaq 0x248(%rsp), %rdi
callq 0x5260
leaq 0x247(%rsp), %rdi
callq 0x5450
leaq 0x2a8(%rsp), %rdi
callq 0xc350
leaq 0x2d0(%rsp), %rdi
callq 0x5260
leaq 0x2cf(%rsp), %rdi
callq 0x5450
leaq 0x21f(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x5770
movq 0x28(%rsp), %rdx
leaq 0x400be(%rip), %rsi     # 0x4c835
leaq 0x220(%rsp), %rdi
callq 0x5590
jmp 0xc786
movq 0x50(%rsp), %rax
leaq 0xcfe(%rip), %rcx       # 0xd490
movq %rcx, 0x1d0(%rsp)
movq $0x0, 0x1d8(%rsp)
movq %rax, 0x1c8(%rsp)
movq 0x6080b(%rip), %rcx     # 0x6cfc0
leaq 0x1e0(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
leaq 0x1c8(%rsp), %rdx
callq 0xd450
jmp 0xc7d4
leaq 0x1f8(%rsp), %rdi
leaq 0x1e0(%rsp), %rsi
callq 0xd550
jmp 0xc7eb
leaq 0x1a7(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x5770
movq 0x20(%rsp), %rdx
leaq 0x4000c(%rip), %rsi     # 0x4c815
leaq 0x1a8(%rsp), %rdi
callq 0x5590
jmp 0xc818
movq 0x50(%rsp), %rdi
leaq 0x220(%rsp), %rsi
leaq 0x1f8(%rsp), %rdx
leaq 0x1a8(%rsp), %rcx
callq 0xc0d0
jmp 0xc83c
leaq 0x1a8(%rsp), %rdi
callq 0x5260
leaq 0x1a7(%rsp), %rdi
callq 0x5450
leaq 0x1f8(%rsp), %rdi
callq 0xc350
leaq 0x220(%rsp), %rdi
callq 0x5260
leaq 0x21f(%rsp), %rdi
callq 0x5450
leaq 0x17f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5770
movq 0x18(%rsp), %rdx
leaq 0x3ff8b(%rip), %rsi     # 0x4c826
leaq 0x180(%rsp), %rdi
callq 0x5590
jmp 0xc8aa
movq 0x50(%rsp), %rax
leaq 0xbda(%rip), %rcx       # 0xd490
movq %rcx, 0x130(%rsp)
movq $0x0, 0x138(%rsp)
movq %rax, 0x128(%rsp)
movq 0x606e7(%rip), %rcx     # 0x6cfc0
leaq 0x140(%rsp), %rdi
leaq 0x130(%rsp), %rsi
leaq 0x128(%rsp), %rdx
callq 0xd450
jmp 0xc8f8
leaq 0x158(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0xd550
jmp 0xc90f
leaq 0x107(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5770
movq 0x10(%rsp), %rdx
leaq 0x3fefe(%rip), %rsi     # 0x4c82b
leaq 0x108(%rsp), %rdi
callq 0x5590
jmp 0xc93c
movq 0x50(%rsp), %rdi
leaq 0x180(%rsp), %rsi
leaq 0x158(%rsp), %rdx
leaq 0x108(%rsp), %rcx
callq 0xc0d0
jmp 0xc960
leaq 0x108(%rsp), %rdi
callq 0x5260
leaq 0x107(%rsp), %rdi
callq 0x5450
leaq 0x158(%rsp), %rdi
callq 0xc350
leaq 0x180(%rsp), %rdi
callq 0x5260
leaq 0x17f(%rsp), %rdi
callq 0x5450
leaq 0xdf(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5770
movq 0x8(%rsp), %rdx
leaq 0x3fe7b(%rip), %rsi     # 0x4c83a
leaq 0xe0(%rsp), %rdi
callq 0x5590
jmp 0xc9ce
movq 0x50(%rsp), %rax
leaq 0xc26(%rip), %rcx       # 0xd600
movq %rcx, 0x90(%rsp)
movq $0x0, 0x98(%rsp)
movq %rax, 0x88(%rsp)
movq 0x605c3(%rip), %rcx     # 0x6cfc0
leaq 0xa0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xd450
jmp 0xca1c
leaq 0xb8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0xd550
jmp 0xca33
leaq 0x67(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x5770
movq (%rsp), %rdx
leaq 0x3fdff(%rip), %rsi     # 0x4c84b
leaq 0x68(%rsp), %rdi
callq 0x5590
jmp 0xca58
movq 0x50(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
leaq 0x68(%rsp), %rcx
callq 0xc0d0
jmp 0xca79
leaq 0x68(%rsp), %rdi
callq 0x5260
leaq 0x67(%rsp), %rdi
callq 0x5450
leaq 0xb8(%rsp), %rdi
callq 0xc350
leaq 0xe0(%rsp), %rdi
callq 0x5260
leaq 0xdf(%rsp), %rdi
callq 0x5450
addq $0x3c8, %rsp            # imm = 0x3C8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcb46
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcb39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcb1f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
leaq 0x2f8(%rsp), %rdi
callq 0x5260
leaq 0x2f7(%rsp), %rdi
callq 0x5450
leaq 0x358(%rsp), %rdi
callq 0xc350
leaq 0x390(%rsp), %rdi
callq 0x5260
leaq 0x38f(%rsp), %rdi
callq 0x5450
jmp 0xcdbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcbe2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcbd5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcbbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
leaq 0x248(%rsp), %rdi
callq 0x5260
leaq 0x247(%rsp), %rdi
callq 0x5450
leaq 0x2a8(%rsp), %rdi
callq 0xc350
leaq 0x2d0(%rsp), %rdi
callq 0x5260
leaq 0x2cf(%rsp), %rdi
callq 0x5450
jmp 0xcdbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcc7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcc71
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcc57
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
leaq 0x1a8(%rsp), %rdi
callq 0x5260
leaq 0x1a7(%rsp), %rdi
callq 0x5450
leaq 0x1f8(%rsp), %rdi
callq 0xc350
leaq 0x220(%rsp), %rdi
callq 0x5260
leaq 0x21f(%rsp), %rdi
callq 0x5450
jmp 0xcdbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcd1a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcd0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xccf3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
leaq 0x108(%rsp), %rdi
callq 0x5260
leaq 0x107(%rsp), %rdi
callq 0x5450
leaq 0x158(%rsp), %rdi
callq 0xc350
leaq 0x180(%rsp), %rdi
callq 0x5260
leaq 0x17f(%rsp), %rdi
callq 0x5450
jmp 0xcdbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcdb0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcda3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
jmp 0xcd8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x380(%rsp)
movl %eax, 0x37c(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x5260
leaq 0x67(%rsp), %rdi
callq 0x5450
leaq 0xb8(%rsp), %rdi
callq 0xc350
leaq 0xe0(%rsp), %rdi
callq 0x5260
leaq 0xdf(%rsp), %rdi
callq 0x5450
movq 0x48(%rsp), %rdi
callq 0xd6c0
movq 0x380(%rsp), %rdi
callq 0x5760
nopw %cs:(%rax,%rax)
nop