//
// cocos2d::CCSprite::addChild from 0x7f1c94 to 0x7f1d12 (126 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:05 +0000
//
int __fastcall cocos2d::CCSprite::addChild(cocos2d::CCSprite *this, cocos2d::CCNode *a2, int a3, int a4)
{
cocos2d::CCSprite *v8; // r6
int v9; // r0
int v10; // r0
int result; // r0
if ( *((_DWORD *)this + 73) )
{
if ( !a2 )
__und(0xFFu);
v8 = (cocos2d::CCSprite *)_dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
v9 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v8 + 536))(v8);
(*(void (__fastcall **)(int))(*(_DWORD *)v9 + 52))(v9);
v10 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 71) + 48))(*((_DWORD *)this + 71));
(*(void (__fastcall **)(int))(*(_DWORD *)v10 + 52))(v10);
cocos2d::CCSpriteBatchNode::appendChild(*((cocos2d::CCSpriteBatchNode **)this + 73), v8);
if ( !*((_BYTE *)this + 240) )
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)this + 612))(this);
}
result = cocos2d::CCNode::addChild(this, a2, a3, a4);
*((_BYTE *)this + 298) = 1;
return result;
}