// File: tewalds[P]morat/hex/../lib/gtpbase.h
// Function: Morat::GTPBase::gtp_list_commands(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, bool)
GTPResponse gtp_list_commands(vecstr args, bool showdesc){
		std::string ret = "\n";
		for(unsigned int i = 0; i < callbacks.size(); i++){
			ret += callbacks[i].name;
			if(showdesc && callbacks[i].desc.length() > 0){
				ret += std::string(longest_cmd + 2 - callbacks[i].name.length(), ' ');
				ret += callbacks[i].desc;
			}
			ret += "\n";
		}
		return GTPResponse(true, ret);
	}

// Assembly:
subq $0xe8, %rsp
movq %rdi, 0x28(%rsp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, 0x30(%rsp)
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xd0(%rsp)
andb $0x1, %al
movb %al, 0xcf(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0xa7(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x5770
movq 0x40(%rsp), %rdx
leaq 0x3f7f6(%rip), %rsi     # 0x4c8e8
leaq 0xa8(%rsp), %rdi
callq 0x5590
jmp 0xd101
leaq 0xa7(%rsp), %rdi
callq 0x5450
movl $0x0, 0x90(%rsp)
movq 0x38(%rsp), %rdi
movl 0x90(%rsp), %eax
movq %rax, 0x20(%rsp)
addq $0x10, %rdi
callq 0xd960
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0xd316
movq 0x38(%rsp), %rdi
addq $0x10, %rdi
movl 0x90(%rsp), %eax
movl %eax, %esi
callq 0xd980
movq %rax, %rsi
leaq 0xa8(%rsp), %rdi
callq 0x5520
jmp 0xd16d
testb $0x1, 0xcf(%rsp)
je 0xd2e8
movq 0x38(%rsp), %rdi
addq $0x10, %rdi
movl 0x90(%rsp), %eax
movl %eax, %esi
callq 0xd980
movq %rax, %rdi
addq $0x20, %rdi
callq 0x5650
cmpq $0x0, %rax
jbe 0xd2e8
movq 0x38(%rsp), %rdi
movl 0x28(%rdi), %eax
addl $0x2, %eax
movq %rax, 0x8(%rsp)
addq $0x10, %rdi
movl 0x90(%rsp), %eax
movl %eax, %esi
callq 0xd980
movq %rax, %rdi
callq 0x5650
movq %rax, %rcx
movq 0x8(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x10(%rsp)
leaq 0x6f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5770
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
leaq 0x70(%rsp), %rdi
movl $0x20, %edx
callq 0x52b0
jmp 0xd20c
leaq 0xa8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x5520
jmp 0xd220
leaq 0x70(%rsp), %rdi
callq 0x5260
leaq 0x6f(%rsp), %rdi
callq 0x5450
movq 0x38(%rsp), %rdi
addq $0x10, %rdi
movl 0x90(%rsp), %eax
movl %eax, %esi
callq 0xd980
movq %rax, %rsi
addq $0x20, %rsi
leaq 0xa8(%rsp), %rdi
callq 0x5520
jmp 0xd261
jmp 0xd2e8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
leaq 0xa7(%rsp), %rdi
callq 0x5450
jmp 0xd38f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0xd382
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
jmp 0xd2d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x5260
leaq 0x6f(%rsp), %rdi
callq 0x5450
jmp 0xd382
leaq 0x3f5f9(%rip), %rsi     # 0x4c8e8
leaq 0xa8(%rsp), %rdi
callq 0x53b0
jmp 0xd2fe
jmp 0xd300
movl 0x90(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x90(%rsp)
jmp 0xd119
leaq 0x48(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x51b0
jmp 0xd32a
movq 0x28(%rsp), %rdi
movl $0x1, %esi
leaq 0x48(%rsp), %rdx
callq 0xd9a0
jmp 0xd340
leaq 0x48(%rsp), %rdi
callq 0x5260
leaq 0xa8(%rsp), %rdi
callq 0x5260
movq 0x30(%rsp), %rax
addq $0xe8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x5260
leaq 0xa8(%rsp), %rdi
callq 0x5260
movq 0x98(%rsp), %rdi
callq 0x5760
nopl (%rax)