// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2cb1c(%rip), %rsi     # 0x35e43
leaq 0x2cb16(%rip), %rdx     # 0x35e44
leaq 0x38(%rsp), %rdi
callq 0xb0e0
movq %rsp, %rdi
leaq 0x38(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2fa40
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x9359
callq 0x52e0
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq (%rsp), %r14
movq 0x8(%rsp), %rax
subq %r14, %rax
cmpq $0x21, %rax
jb 0x93ab
movq (%r14), %rdi
callq 0x5550
testl %eax, %eax
je 0x93ab
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x5180
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xbb8e
movq (%rsp), %rax
leaq 0x28(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0xa866
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xbb8e
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0xba86
movl %eax, %ebp
leaq 0x8(%rbx), %r14
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movb %al, 0x18(%rbx)
leaq 0x28(%rbx), %r12
leaq 0x38(%rbx), %rcx
movq %rcx, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movb %al, 0x38(%rbx)
testl %ebp, %ebp
js 0x94ae
movq 0x10(%r15), %r15
leaq 0x80(%rsp), %rdi
movq %rsp, %rsi
callq 0xbb08
movl %ebp, %eax
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
cmpq $0x0, 0x50(%r15,%rax)
je 0x9595
leaq 0x40(%r15,%rax), %rsi
leaq 0x38(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq *0x18(%rsi)
leaq 0x40(%rsp), %rsi
movb -0x8(%rsi), %al
movb %al, (%rbx)
movq %r14, %rdi
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 0x9489
callq 0x52e0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x949c
callq 0x52e0
leaq 0x80(%rsp), %rdi
callq 0xa9ae
jmp 0x9542
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x28434(%rip), %rsi     # 0x318f5
leaq 0x2843c(%rip), %rdx     # 0x31904
leaq 0x98(%rsp), %rdi
callq 0xb0e0
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rdx
xorl %esi, %esi
callq 0xa7f0
leaq 0x40(%rsp), %rsi
movb -0x8(%rsi), %al
movb %al, (%rbx)
movq %r14, %rdi
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 0x951d
callq 0x52e0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9530
callq 0x52e0
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9542
callq 0x52e0
leaq 0xb8(%rsp), %rsi
movq %r14, %rdi
callq 0x5180
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x9566
callq 0x52e0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x9578
callq 0x52e0
movq %rsp, %rdi
callq 0xa9ae
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5100
jmp 0x95c3
jmp 0x95c3
movq %rax, %r14
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x95f1
callq 0x52e0
jmp 0x95f1
jmp 0x95b9
jmp 0x95b9
movq %rax, %r14
jmp 0x95f1
movq %rax, %r14
jmp 0x95f9
movq %rax, %r14
jmp 0x960d
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x9627
callq 0x52e0
jmp 0x9627
movq %rax, %r14
jmp 0x9627
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0xa9ae
movq %rbx, %rdi
callq 0x9630
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x960d
callq 0x52e0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x961f
callq 0x52e0
movq %rsp, %rdi
callq 0xa9ae
movq %r14, %rdi
callq 0x5670
nop