//
// GJSmartTemplate::getVerySimplifiedKey from 0x66f370 to 0x66f3e0 (112 bytes)
//
// 6 xrefs:
// > GJSmartTemplate::saveRemap @ 0x6702fe
// > GJSmartTemplate::saveRemap @ 0x67039a
// > GJSmartTemplate::getPrefab @ 0x671030
// > GJSmartTemplate::getPrefab @ 0x67108c
// > GJSmartTemplate::getPrefab @ 0x67114a
// > GJSmartTemplate::getPrefab @ 0x6711ba
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:49 +0000
//
int *__fastcall GJSmartTemplate::getVerySimplifiedKey(int *a1, unsigned __int8 *a2)
{
int v3; // r3
int v5; // r3
unsigned int v6; // r6
int v7; // r7
unsigned __int8 *v8; // r3
int v9; // r1
int v10; // r2
v3 = *a2;
if ( (v3 & 1) != 0 )
v5 = *((_DWORD *)a2 + 1);
else
v5 = v3 >> 1;
if ( !v5 )
goto LABEL_5;
v6 = 1;
v7 = 0;
do
{
if ( (unsigned int)*std::string::at(a2, v6) - 48 > 1 )
{
v7 = 1;
if ( (*a2 & 1) != 0 )
v8 = *((unsigned __int8 **)a2 + 2);
else
v8 = a2 + 1;
v8[v6] = 49;
}
++v6;
}
while ( v6 != 9 );
if ( v7 )
{
v9 = *((_DWORD *)a2 + 1);
v10 = *((_DWORD *)a2 + 2);
*a1 = *(_DWORD *)a2;
a1[1] = v9;
a1[2] = v10;
*(_DWORD *)a2 = 0;
*((_DWORD *)a2 + 1) = 0;
*((_DWORD *)a2 + 2) = 0;
}
else
{
LABEL_5:
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::string::__init(a1, &unk_B6B226, 0);
}
return a1;
}