//
// GJSmartTemplate::getPrefabWithID from 0x100007338 to 0x1000073c4 (140 bytes)
//
// 3 xrefs:
// > BrowseSmartKeyLayer::addChanceToSelected @ 0x1000737e8
// > BrowseSmartKeyLayer::updateChanceValues @ 0x100073a3c
// > EditorUI::createPrefab @ 0x1003f24ac
//
// 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::getPrefabWithID(__int64 a1, __int64 a2, int a3)
{
__int64 result; // x0
__int64 v5; // x20
__int64 v6; // x21
if ( a3 < 1 )
return 0;
result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 56), a2);
if ( result )
{
v5 = result;
if ( (unsigned int)sub_10024A36C(result) && (unsigned int)sub_10024A36C(v5) )
{
v6 = 0;
while ( 1 )
{
result = sub_10024A388(v5, v6);
if ( *(_DWORD *)(result + 104) == a3 )
break;
v6 = (unsigned int)(v6 + 1);
if ( (unsigned int)v6 >= (unsigned int)sub_10024A36C(v5) )
return 0;
}
}
else
{
return 0;
}
}
return result;
}