//
// ObjectManager::getDefinition from 0x14006f8a0 to 0x14006f950 (176 bytes)
//
// 7 xrefs:
// > CCAnimatedSprite::initWithType @ 0x140040070
// > CCAnimatedSprite::loadType @ 0x140040410
// > SpriteAnimationManager::loadAnimations @ 0x140072676
// > SpriteAnimationManager::createAnimations @ 0x140073178
// > GJRobotSprite::init @ 0x1402a6817
// > AnimatedGameObject::init @ 0x1404a2b34
// > ??> @ 0x1406c6144
//
// 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
//
cocos2d::CCDictionary *ObjectManager::getDefinition(ObjectManager *a1, const char *a2)
{
size_t v3; // r8
cocos2d::CCDictionary *v4; // rbx
void *v5; // rcx
void *Block[2]; // [rsp+20h] [rbp-38h] BYREF
__int128 v8; // [rsp+30h] [rbp-28h]
*(_OWORD *)Block = 0;
v8 = 0;
v3 = -1;
do
++v3;
while ( a2[v3] );
sub_14003A930(Block, a2, v3);
v4 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(a1->m_objectDefinitions, Block);
if ( *((_QWORD *)&v8 + 1) > 0xFu )
{
v5 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v5);
}
return v4;
}