//
// sub_10013B4A4 from 0x10013b4a4 to 0x10013b548 (164 bytes)
//
// 1 xrefs:
// > SmartTemplateCell::loadFromObject @ 0x100131b50
//
// 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 10:59:29 +0000
//
__int64 (***__fastcall sub_10013B4A4(__int64 (***result)(void), __int64 a2))(void)
{
__int64 (***v2)(void); // x19
__int64 (*v3)(void); // x5
if ( a2 )
{
v2 = result;
result = (__int64 (***)(void))(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
{
result = (__int64 (***)(void))v2[52][79];
if ( !result )
return result;
v3 = **result;
return (__int64 (***)(void))v3();
}
if ( !(_DWORD)result )
{
if ( v2[69] )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1528) = v2[69];
result = (__int64 (***)(void))v2[52][79];
if ( result )
{
v3 = **result;
return (__int64 (***)(void))v3();
}
}
}
}
return result;
}