//
// cocos2d::CCSpriteBatchNode::addChild from 0x18008de00 to 0x18008de9d (157 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800ec430
// > ??> @ 0x180103e30
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5f4c
//
// 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 __fastcall cocos2d::CCSpriteBatchNode::addChild(
cocos2d::CCSpriteBatchNode *this,
struct cocos2d::CCSprite *a2,
unsigned int a3,
int a4)
{
__int64 v8; // rax
__int64 v9; // rax
_RTDynamicCast(a2, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCSprite `RTTI Type Descriptor', 0);
v8 = ((__int64 (__fastcall *)(cocos2d::CCTextureProtocol *))a2->getTexture)(&a2->cocos2d::CCTextureProtocol);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 96LL))(v8);
v9 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getTexture)(this->m_pobTextureAtlas);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 96LL))(v9);
cocos2d::CCNode::addChild(this, a2, a3, a4);
cocos2d::CCSpriteBatchNode::appendChild(this, a2);
}