//
// GJSmartTemplate::removePrefab from 0x66e990 to 0x66e9d6 (70 bytes)
//
// 1 xrefs:
// > BrowseSmartKeyLayer::deletedSelectedItems @ 0x673f28
//
// 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:49 +0000
//
cocos2d::CCArray *__fastcall GJSmartTemplate::removePrefab(cocos2d::CCArray *result, int a2, int a3)
{
cocos2d::CCArray *v4; // r5
unsigned int i; // r4
if ( a3 > 0 )
{
result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*((_DWORD *)result + 13), a2);
v4 = result;
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( result )
{
for ( i = 0; ; ++i )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v4);
if ( i >= (unsigned int)result )
break;
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v4, i) + 76) == a3 )
return (cocos2d::CCArray *)cocos2d::CCArray::removeObjectAtIndex(v4, i, 1);
}
}
}
}
return result;
}