//
// GJSmartTemplate::removePrefab from 0x100412fd0 to 0x100413055 (133 bytes)
//
// 1 xrefs:
// > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004e65e9
//
// This function is hookable on this platform (idp: pc, 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 12:30:10 +0000
//
__int64 __fastcall GJSmartTemplate::removePrefab(__int64 a1, char *a2, int a3)
{
__int64 result; // rax
__int64 v5; // r14
unsigned int v6; // r15d
if ( a3 > 0 )
{
result = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 56), a2);
if ( result )
{
v5 = result;
result = sub_1007FEF90(result);
if ( (_DWORD)result )
{
result = sub_1007FEF90(v5);
if ( (_DWORD)result )
{
v6 = 0;
while ( *(_DWORD *)(sub_1007FEFE0(v5, v6) + 104) != a3 )
{
++v6;
result = sub_1007FEF90(v5);
if ( v6 >= (unsigned int)result )
return result;
}
return sub_1007FF150(v5, v6, 1);
}
}
}
}
return result;
}