//
// GJSmartTemplate::getNoCornerKey from 0x5399c4 to 0x539a4e (138 bytes)
//
// 8 xrefs:
// > GJSmartTemplate::saveRemap @ 0x53a5e8
// > GJSmartTemplate::saveRemap @ 0x53a62c
// > GJSmartTemplate::saveRemap @ 0x53a6c8
// > GJSmartTemplate::saveRemap @ 0x53a764
// > GJSmartTemplate::getPrefab @ 0x53a9ea
// > GJSmartTemplate::getPrefab @ 0x53aa1a
// > GJSmartTemplate::getPrefab @ 0x53aa56
// > GJSmartTemplate::scanForPrefab @ 0x53c45c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_DWORD *__fastcall GJSmartTemplate::getNoCornerKey(_DWORD *a1, int a2, _DWORD *a3)
{
void *v6; // [sp+8h] [bp-Ch] BYREF
if ( *(_DWORD *)(*a3 - 12) )
{
sub_776158(&v6, a3, 0, 5);
sub_774544((int)&v6, "0000");
if ( sub_774DBC(&v6, a3) )
{
*a1 = v6;
v6 = &unk_ACDDA8;
}
else
{
sub_776584((int)a1, (char *)&unk_939830);
}
sub_774008(&v6);
}
else
{
sub_776584((int)a1, (char *)&unk_939830);
}
return a1;
}