//
// prefabKeyFromBinary from 0x6704a4 to 0x6704de (58 bytes)
//
// 3 xrefs:
// > GJSmartTemplate::logTemplateStatus @ 0x6717b8
// > GJSmartTemplate::generateRemapDict @ 0x671afa
// > GJSmartTemplate::getTemplateState @ 0x67213c
//
// 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:50 +0000
//
int *__fastcall prefabKeyFromBinary(int *a1, unsigned __int8 *a2)
{
int v4; // r2
const void *v5; // r1
size_t v6; // r2
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::string::__init(a1, a1i2r3e45s789g, 1u);
v4 = *a2;
if ( (v4 & 1) != 0 )
{
v5 = *((const void **)a2 + 2);
v6 = *((_DWORD *)a2 + 1);
}
else
{
v5 = a2 + 1;
v6 = v4 >> 1;
}
std::string::append(a1, v5, v6);
return a1;
}