//
// cocos2d::CCNode::getChildByTag from 0x5bcdb6 to 0x5bcdfa (68 bytes)
//
// 0 xrefs:
//
// 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::CCNode *cocos2d::CCNode::getChildByTag(cocos2d::CCNode *a1, int a2)
{
cocos2d::CCArray *m_pChildren; // r0
cocos2d::CCNode *result; // r0
float m_fRotationX; // r3
cocos2d::CCNode **v7; // r2
cocos2d::CCNode **v8; // r3
cocos2d::CCNode *v9; // t1
m_pChildren = a1->m_pChildren;
if ( !m_pChildren || !cocos2d::CCArray::count(m_pChildren) )
return nullptr;
result = (cocos2d::CCNode *)a1->m_pChildren;
if ( result )
{
m_fRotationX = result->m_fRotationX;
result = *(cocos2d::CCNode **)LODWORD(m_fRotationX);
if ( *(_DWORD *)LODWORD(m_fRotationX) )
{
v7 = *(cocos2d::CCNode ***)(LODWORD(m_fRotationX) + 12);
v8 = &v7[(_DWORD)result + 0x3FFFFFFF];
while ( v7 <= v8 )
{
v9 = *v7++;
result = v9;
if ( !v9 || result->m_nTag == a2 )
return result;
}
return nullptr;
}
}
return result;
}