//
// cocos2d::CCSpriteBatchNode::addChild from 0x180091020 to 0x1800910bf (159 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800f2550
// > ??> @ 0x18010a508
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c021c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:08 +0000
//
void __fastcall cocos2d::CCSpriteBatchNode::addChild(
cocos2d::CCSpriteBatchNode *this,
struct cocos2d::CCNode *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 **)(char *))(*((_QWORD *)a2 + 43) + 16LL))((char *)a2 + 344);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 96LL))(v8);
v9 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 88LL))(*((_QWORD *)this + 41));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 96LL))(v9);
cocos2d::CCNode::addChild(this, a2, a3, a4);
cocos2d::CCSpriteBatchNode::appendChild(this, a2);
}