//
// GJSmartTemplate::removePrefab from 0x1000073c4 to 0x100007460 (156 bytes)
//
// 1 xrefs:
// > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1000736b4
//
// 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
//
__int64 __fastcall GJSmartTemplate::removePrefab(__int64 result, __int64 a2, int a3)
{
__int64 v4; // x20
__int64 v5; // x21
if ( a3 >= 1 )
{
result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(result + 56), a2);
if ( result )
{
v4 = result;
result = sub_10024A36C(result);
if ( (_DWORD)result )
{
result = sub_10024A36C(v4);
if ( (_DWORD)result )
{
v5 = 0;
while ( *(_DWORD *)(sub_10024A388(v4, v5) + 104) != a3 )
{
v5 = (unsigned int)(v5 + 1);
result = sub_10024A36C(v4);
if ( (unsigned int)v5 >= (unsigned int)result )
return result;
}
return sub_10024A44C(v4, v5, 1);
}
}
}
}
return result;
}