// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/gtpbase.h
// Function: Morat::GTPBase::cmd(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
GTPResponse cmd(std::string line){
		vecstr parts = explode(line, " ");
		std::string id;

		if(parts.size() > 1 && atoi(parts[0].c_str())){
			id = parts[0];
			parts.erase(parts.begin());
		}

		std::string name = parts[0];
		parts.erase(parts.begin());

		int cb = find_callback(name);
		GTPResponse response;

		if(cb < 0){
			response = GTPResponse(false, "Unknown command");
		}else{
			response = callbacks[cb].func(parts);
		}

		response.id = id;

		return response;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
leaq 0x48(%rsp), %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %r12, -0x10(%r12)
leaq 0x2ca76(%rip), %rsi     # 0x35e43
leaq 0x2ca70(%rip), %rdx     # 0x35e44
leaq 0x38(%rsp), %rdi
callq 0xb1dc
leaq 0x38(%rsp), %rdx
movq %rsp, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2f90c
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x93ff
callq 0x52e0
movq (%rsp), %r14
movq 0x8(%rsp), %rax
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
subq %r14, %rax
cmpq $0x21, %rax
jb 0x9455
movq (%r14), %rdi
callq 0x5550
testl %eax, %eax
je 0x9455
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x5180
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xbc82
movq (%rsp), %r14
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0xa930
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xbc82
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0xbb7e
movl %eax, %ebp
leaq 0x18(%rbx), %rax
leaq 0x8(%rbx), %r14
leaq 0x28(%rbx), %r12
leaq 0x38(%rbx), %rcx
movq %rax, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movb %al, 0x18(%rbx)
movq %rcx, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movb %al, 0x38(%rbx)
testl %ebp, %ebp
js 0x9554
movq 0x10(%r15), %r15
leaq 0x80(%rsp), %rdi
movq %rsp, %rsi
callq 0xbbfc
movl %ebp, %eax
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
cmpq $0x0, 0x50(%r15,%rax)
je 0x963b
leaq 0x40(%r15,%rax), %rsi
leaq 0x38(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq *0x18(%rsi)
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
movb -0x8(%rsi), %al
movb %al, (%rbx)
callq 0x5430
leaq 0x60(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x5430
movq (%r15), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x952f
callq 0x52e0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9542
callq 0x52e0
leaq 0x80(%rsp), %rdi
callq 0xaa7e
jmp 0x95e8
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x2838e(%rip), %rsi     # 0x318f5
leaq 0x28396(%rip), %rdx     # 0x31904
leaq 0x98(%rsp), %rdi
callq 0xb1dc
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rdx
xorl %esi, %esi
callq 0xa8ba
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
movb -0x8(%rsi), %al
movb %al, (%rbx)
callq 0x5430
leaq 0x60(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x5430
movq (%r15), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x95c3
callq 0x52e0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x95d6
callq 0x52e0
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x95e8
callq 0x52e0
leaq 0xb8(%rsp), %rsi
movq %r14, %rdi
callq 0x5180
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x960c
callq 0x52e0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x961e
callq 0x52e0
movq %rsp, %rdi
callq 0xaa7e
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5100
jmp 0x9669
jmp 0x9669
movq 0x98(%rsp), %rdi
movq %rax, %r14
cmpq %rbp, %rdi
je 0x9697
callq 0x52e0
jmp 0x9697
jmp 0x965f
jmp 0x965f
movq %rax, %r14
jmp 0x9697
movq %rax, %r14
jmp 0x969f
movq %rax, %r14
jmp 0x96b3
movq 0x38(%rsp), %rdi
movq %rax, %r14
cmpq %r12, %rdi
je 0x96cd
callq 0x52e0
jmp 0x96cd
movq %rax, %r14
jmp 0x96cd
leaq 0x80(%rsp), %rdi
movq %rax, %r14
callq 0xaa7e
movq %rbx, %rdi
callq 0x96d6
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x96b3
callq 0x52e0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x96c5
callq 0x52e0
movq %rsp, %rdi
callq 0xaa7e
movq %r14, %rdi
callq 0x5670
nop