//
// cocos2d::CCComponentContainer::get from 0x100164ce0 to 0x100164d64 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x10079bd80
//
// 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::CCComponent *__fastcall cocos2d::CCComponentContainer::get(cocos2d::CCComponentContainer *a1, const char *a2)
{
cocos2d::CCComponent *m_pComponents; // x19
const void *v3; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( !a2 )
return nullptr;
m_pComponents = (cocos2d::CCComponent *)a1->m_pComponents;
if ( m_pComponents )
{
sub_100009900(__p, (char *)a2);
v3 = (const void *)cocos2d::CCDictionary::objectForKey_1(m_pComponents, __p);
if ( v3 )
m_pComponents = (cocos2d::CCComponent *)__dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCComponent,
0);
else
m_pComponents = nullptr;
if ( v6 < 0 )
operator delete(__p[0]);
}
return m_pComponents;
}