//
// cocos2d::CCSprite::addChild from 0x5e73f4 to 0x5e7472 (126 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
//
void cocos2d::CCSprite::addChild(cocos2d::CCSprite *a1, cocos2d::CCNode *a2)
{
cocos2d::CCSprite *v3; // r6
int v4; // r0
cocos2d::CCTexture2D *v5; // r0
if ( a1->m_pobBatchNode )
{
if ( !a2 )
__und(0xFFu);
v3 = (cocos2d::CCSprite *)_dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
v4 = (int)v3->getTexture(v3);
(*(void (__fastcall **)(int))(*(_DWORD *)v4 + 52))(v4);
v5 = a1->m_pobTextureAtlas->getTexture(a1->m_pobTextureAtlas);
v5->getName(v5);
cocos2d::CCSpriteBatchNode::appendChild(a1->m_pobBatchNode, v3);
if ( !a1->m_bReorderChildDirty )
a1->setReorderChildDirtyRecursively(a1);
}
cocos2d::CCNode::addChild(a1);
a1->m_bHasChildren = 1;
}