//
// KeybindingsLayer::nameForAction from 0x995158 to 0x995218 (192 bytes)
//
// 3 xrefs:
// > ??> @ 0xd7b48
// > ??> @ 0x1474f98
// > ??> @ 0x15041c8
//
// This function is hookable on this platform (idp: arm, 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:58:01 +0000
//
__int64 *__usercall KeybindingsLayer::nameForAction@(GJKeybindManager *a1@, __int64 *a2@)
{
const char *v4; // x22
size_t v5; // x0
size_t v6; // x20
unsigned __int64 v7; // x0
__int64 v8; // x21
__int64 v9; // x0
_BYTE *v10; // x3
_BYTE *v11; // x3
v4 = (const char *)GJKeybindManager::actionToString((GJKeybindManager *)(unsigned int)a1, (int)a1);
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
v5 = strlen(v4);
v6 = v5;
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62D75C();
if ( v5 > 0x16 )
{
v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v8 = v7 | 1;
v9 = operator new(v7);
*a2 = v8;
v10 = (_BYTE *)v9;
a2[2] = v9;
a2[1] = v6;
LABEL_4:
v11 = memcpy(v10, v4, v6);
v11[v6] = 0;
return a2;
}
*(_BYTE *)a2 = 2 * v5;
v10 = (char *)a2 + 1;
if ( v5 )
goto LABEL_4;
*v10 = 0;
return a2;
}