//
// KeybindingsLayer::nameForAction from 0x1006e4660 to 0x1006e4701 (161 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b93b88
// > ??> @ 0x100bc1358
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:46 +0000
//
_QWORD *__fastcall KeybindingsLayer::nameForAction(_QWORD *a1, __int64 a2, int a3)
{
const char *v3; // r15
size_t v4; // rax
size_t v5; // r14
void *v6; // r12
size_t v7; // r13
v3 = GJKeybindManager::actionToString(a3);
v4 = strlen(v3);
if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v5 = v4;
if ( v4 >= 0x17 )
{
v7 = 26;
if ( (v4 | 7) != 0x17 )
v7 = (v4 | 7) + 1;
v6 = operator new(v7);
a1[2] = v6;
*a1 = v7 + 1;
a1[1] = v5;
}
else
{
*(_BYTE *)a1 = 2 * v4;
v6 = (char *)a1 + 1;
if ( !v4 )
goto LABEL_9;
}
memmove(v6, v3, v5);
LABEL_9:
*((_BYTE *)v6 + v5) = 0;
return a1;
}