// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x251a0(%rip), %rsi     # 0x2c859
leaq 0x2519a(%rip), %rdx     # 0x2c85a
leaq 0x38(%rsp), %rdi
callq 0xa874
movq %rsp, %rdi
leaq 0x38(%rsp), %rdx
movq %r14, %rsi
callq 0x1594c
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x76e9
callq 0x42b0
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 0x773b
movq (%r14), %rdi
callq 0x44a0
testl %eax, %eax
je 0x773b
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x4150
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xa514
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 0x8df0
movq %rsp, %rdi
movq (%rdi), %rsi
callq 0xa514
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0xa40c
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 0x783e
movq 0x18(%r15), %r15
leaq 0x80(%rsp), %rdi
movq %rsp, %rsi
callq 0xa48e
movl %ebp, %eax
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
cmpq $0x0, 0x50(%r15,%rax)
je 0x7925
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 0x43c0
leaq 0x60(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x43c0
movq (%r15), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x7819
callq 0x42b0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x782c
callq 0x42b0
leaq 0x80(%rsp), %rdi
callq 0x8f38
jmp 0x78d2
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x22280(%rip), %rsi     # 0x29ad1
leaq 0x22288(%rip), %rdx     # 0x29ae0
leaq 0x98(%rsp), %rdi
callq 0xa874
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rdx
xorl %esi, %esi
callq 0x8d7a
leaq 0x40(%rsp), %rsi
movb -0x8(%rsi), %al
movb %al, (%rbx)
movq %r14, %rdi
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 0x78ad
callq 0x42b0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x78c0
callq 0x42b0
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x78d2
callq 0x42b0
leaq 0xb8(%rsp), %rsi
movq %r14, %rdi
callq 0x4150
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x78f6
callq 0x42b0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7908
callq 0x42b0
movq %rsp, %rdi
callq 0x8f38
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x40f0
jmp 0x7953
jmp 0x7953
movq %rax, %r14
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7981
callq 0x42b0
jmp 0x7981
jmp 0x7949
jmp 0x7949
movq %rax, %r14
jmp 0x7981
movq %rax, %r14
jmp 0x7989
movq %rax, %r14
jmp 0x799d
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x79b7
callq 0x42b0
jmp 0x79b7
movq %rax, %r14
jmp 0x79b7
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0x8f38
movq %rbx, %rdi
callq 0x79c0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x799d
callq 0x42b0
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x79af
callq 0x42b0
movq %rsp, %rdi
callq 0x8f38
movq %r14, %rdi
callq 0x45b0
nop