//
// GJSmartTemplate::resetScannedPrefabs from 0xb0d908 to 0xb0d9a4 (156 bytes)
//
// 2 xrefs:
// > EditorUI::createSmartObjectsFromTemplate @ 0x7cb16c
// > ??> @ 0x50368
//
// 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 13:01:27 +0000
//
__int64 __fastcall GJSmartTemplate::resetScannedPrefabs(GJSmartTemplate *this)
{
char *v2; // x21
_QWORD **v3; // x19
v2 = (char *)this + 112;
v3 = *((_QWORD ***)this + 15);
if ( v3 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)this + 112,
*v3);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(__int64)v2,
v3[1]);
if ( ((_BYTE)v3[11] & 1) != 0 )
operator delete(v3[13]);
if ( ((_BYTE)v3[8] & 1) != 0 )
operator delete(v3[10]);
if ( ((_BYTE)v3[4] & 1) != 0 )
operator delete(v3[6]);
operator delete(v3);
}
*((_QWORD *)this + 16) = 0;
*((_QWORD *)this + 15) = 0;
*((_QWORD *)this + 14) = (char *)this + 120;
return (__int64)this + 120;
}