// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
vxorps %xmm0, %xmm0, %xmm0
leaq 0x158(%rsp), %r15
movq %rdi, %rbx
movq $0x0, 0x20(%rdi)
vmovups %xmm0, 0x10(%rdi)
movq %rsi, (%rdi)
movq %rdx, 0x8(%rdi)
movl $0x0, 0x28(%rdi)
movb $0x0, 0x2c(%rdi)
movq %r15, -0x10(%r15)
leaq 0x277fc(%rip), %rsi     # 0x317c4
leaq 0x27802(%rip), %rdx     # 0x317d1
leaq 0x148(%rsp), %rdi
callq 0xb1dc
movq $0x0, 0x10(%rsp)
movl $0x20, %edi
callq 0x5320
leaq 0x5dc(%rip), %r14       # 0xa5d2
leaq 0x138(%rsp), %rbp
leaq 0x9c1(%rip), %r12       # 0xa9c6
leaq 0x9d6(%rip), %r13       # 0xa9e2
movq %rax, 0x8(%rsp)
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r12, 0x20(%rsp)
movq %rbx, 0x18(%rax)
movq %r13, 0x18(%rsp)
movq %rbp, -0x10(%rbp)
leaq 0x27799(%rip), %rsi     # 0x317d2
leaq 0x277a3(%rip), %rdx     # 0x317e3
leaq 0x128(%rsp), %rdi
callq 0xb1dc
leaq 0x148(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x128(%rsp), %rcx
movq %rbx, %rdi
callq 0x9dba
movq 0x128(%rsp), %rdi
cmpq %rbp, %rdi
je 0xa07c
callq 0x52e0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa095
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0xa0a7
callq 0x52e0
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x27122(%rip), %rsi     # 0x311dc
leaq 0x2711f(%rip), %rdx     # 0x311e0
leaq 0x108(%rsp), %rdi
callq 0xb1dc
movq $0x0, 0x10(%rsp)
movl $0x20, %edi
callq 0x5320
movq %rax, 0x8(%rsp)
movq %r12, 0x20(%rsp)
leaq 0xf8(%rsp), %r12
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
movb $0x1, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq %r13, 0x18(%rsp)
movq %r12, -0x10(%r12)
leaq 0x276cd(%rip), %rsi     # 0x317e4
leaq 0x276ea(%rip), %rdx     # 0x31808
leaq 0xe8(%rsp), %rdi
callq 0xb1dc
leaq 0x108(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0xe8(%rsp), %rcx
movq %rbx, %rdi
callq 0x9dba
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa15a
callq 0x52e0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa173
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0xa185
callq 0x52e0
leaq 0xd8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x27690(%rip), %rsi     # 0x31829
leaq 0x2768d(%rip), %rdx     # 0x3182d
leaq 0xc8(%rsp), %rdi
callq 0xb1dc
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x5320
leaq 0x5db(%rip), %r13       # 0xa7a2
leaq 0xb8(%rsp), %rbp
leaq 0x94e(%rip), %r14       # 0xab24
leaq 0x95f(%rip), %r15       # 0xab3c
movq %rax, 0x8(%rsp)
movq %r13, (%rax)
movq $0x0, 0x8(%rax)
movq %r14, 0x20(%rsp)
movq %rbx, 0x10(%rax)
movq %r15, 0x18(%rsp)
movq %rbp, -0x10(%rbp)
leaq 0x27603(%rip), %rsi     # 0x31809
leaq 0x2760c(%rip), %rdx     # 0x31819
leaq 0xa8(%rsp), %rdi
callq 0xb1dc
leaq 0xc8(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0xa8(%rsp), %rcx
movq %rbx, %rdi
callq 0x9dba
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xa249
callq 0x52e0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa262
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa274
callq 0x52e0
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x27592(%rip), %rsi     # 0x3181a
leaq 0x2758f(%rip), %rdx     # 0x3181e
leaq 0x88(%rsp), %rdi
callq 0xb1dc
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x5320
movq %r13, (%rax)
leaq 0x78(%rsp), %r13
movq $0x0, 0x8(%rax)
movq %rax, 0x8(%rsp)
movq %r14, 0x20(%rsp)
movq %rbx, 0x10(%rax)
movq %r15, 0x18(%rsp)
movq %r13, -0x10(%r13)
leaq 0x27542(%rip), %rsi     # 0x3181f
leaq 0x27549(%rip), %rdx     # 0x3182d
leaq 0x68(%rsp), %rdi
callq 0xb1dc
leaq 0x88(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x68(%rsp), %rcx
movq %rbx, %rdi
callq 0x9dba
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0xa317
callq 0x52e0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa330
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0xa342
callq 0x52e0
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x274db(%rip), %rsi     # 0x3182e
leaq 0x274e4(%rip), %rdx     # 0x3183e
leaq 0x48(%rsp), %rdi
callq 0xb1dc
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x5320
leaq 0x496(%rip), %rcx       # 0xa814
movq %rax, 0x8(%rsp)
movq %r14, 0x20(%rsp)
movq %r15, 0x18(%rsp)
leaq 0x38(%rsp), %r15
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %r15, -0x10(%r15)
leaq 0x27493(%rip), %rsi     # 0x3183f
leaq 0x274a9(%rip), %rdx     # 0x3185c
leaq 0x28(%rsp), %rdi
callq 0xb1dc
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq %rbx, %rdi
callq 0x9dba
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xa3e3
callq 0x52e0
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa3fc
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0xa40b
callq 0x52e0
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa59b
jmp 0xa59b
jmp 0xa59b
jmp 0xa59b
jmp 0xa59b
movq 0x28(%rsp), %rdi
movq %rax, %r14
cmpq %r15, %rdi
je 0xa44d
callq 0x52e0
jmp 0xa44d
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa470
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
jmp 0xa470
jmp 0xa59b
movq %rax, %r14
movq 0x48(%rsp), %rdi
jmp 0xa50d
jmp 0xa5ba
movq 0x68(%rsp), %rdi
movq %rax, %r14
cmpq %r13, %rdi
je 0xa496
callq 0x52e0
jmp 0xa496
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa4b9
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
jmp 0xa4b9
jmp 0xa59b
movq %rax, %r14
movq 0x88(%rsp), %rdi
jmp 0xa50d
jmp 0xa5ba
movq 0xa8(%rsp), %rdi
movq %rax, %r14
cmpq %rbp, %rdi
je 0xa4e2
callq 0x52e0
jmp 0xa4e2
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa505
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
jmp 0xa505
jmp 0xa59b
movq %rax, %r14
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
jne 0xa5b3
jmp 0xa5bd
jmp 0xa5ba
movq 0xe8(%rsp), %rdi
movq %rax, %r14
cmpq %r12, %rdi
je 0xa53a
callq 0x52e0
jmp 0xa53a
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa55a
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
jmp 0xa55a
jmp 0xa59b
movq %rax, %r14
movq 0x108(%rsp), %rdi
jmp 0xa5ae
jmp 0xa5ba
movq 0x128(%rsp), %rdi
movq %rax, %r14
cmpq %rbp, %rdi
je 0xa580
callq 0x52e0
jmp 0xa580
movq %rax, %r14
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0xa5a6
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
jmp 0xa5a6
movq %rax, %rdi
callq 0xa8ae
movq %rax, %r14
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0xa5bd
callq 0x52e0
jmp 0xa5bd
movq %rax, %r14
addq $0x10, %rbx
movq %rbx, %rdi
callq 0xa886
movq %r14, %rdi
callq 0x5670
nop