// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::cmd(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
GTPResponse cmd(string line){
		vecstr parts = explode(line, " ");
		string id;

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

		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 0x24186(%rip), %rsi     # 0x2b859
leaq 0x24180(%rip), %rdx     # 0x2b85a
leaq 0x38(%rsp), %rdi
callq 0xa810
leaq 0x38(%rsp), %rdx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x15844
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x7703
callq 0x42b0
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 0x7759
movq (%r14), %rdi
callq 0x44a0
testl %eax, %eax
je 0x7759
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x4150
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xa4ac
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 0x8e30
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xa4ac
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0xa3a8
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 0x7858
movq 0x18(%r15), %r15
leaq 0x80(%rsp), %rdi
movq %rsp, %rsi
callq 0xa426
movl %ebp, %eax
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
cmpq $0x0, 0x50(%r15,%rax)
je 0x793f
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 0x43c0
leaq 0x60(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x43c0
movq (%r15), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x7833
callq 0x42b0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7846
callq 0x42b0
leaq 0x80(%rsp), %rdi
callq 0x8f7e
jmp 0x78ec
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x21266(%rip), %rsi     # 0x28ad1
leaq 0x2126e(%rip), %rdx     # 0x28ae0
leaq 0x98(%rsp), %rdi
callq 0xa810
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rdx
xorl %esi, %esi
callq 0x8dba
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
movb -0x8(%rsi), %al
movb %al, (%rbx)
callq 0x43c0
leaq 0x60(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x43c0
movq (%r15), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x78c7
callq 0x42b0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x78da
callq 0x42b0
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x78ec
callq 0x42b0
leaq 0xb8(%rsp), %rsi
movq %r14, %rdi
callq 0x4150
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x7910
callq 0x42b0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7922
callq 0x42b0
movq %rsp, %rdi
callq 0x8f7e
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x40f0
jmp 0x796d
jmp 0x796d
movq 0x98(%rsp), %rdi
movq %rax, %r14
cmpq %rbp, %rdi
je 0x799b
callq 0x42b0
jmp 0x799b
jmp 0x7963
jmp 0x7963
movq %rax, %r14
jmp 0x799b
movq %rax, %r14
jmp 0x79a3
movq %rax, %r14
jmp 0x79b7
movq 0x38(%rsp), %rdi
movq %rax, %r14
cmpq %r12, %rdi
je 0x79d1
callq 0x42b0
jmp 0x79d1
movq %rax, %r14
jmp 0x79d1
leaq 0x80(%rsp), %rdi
movq %rax, %r14
callq 0x8f7e
movq %rbx, %rdi
callq 0x79da
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x79b7
callq 0x42b0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x79c9
callq 0x42b0
movq %rsp, %rdi
callq 0x8f7e
movq %r14, %rdi
callq 0x45b0
nop