//
// cocos2d::CCSprite::addChild from 0xd87ae4 to 0xd87bc0 (220 bytes)
//
// 82 xrefs:
// > ??> @ 0x102400
// > ??> @ 0x14137b8
// > ??> @ 0x1413d78
// > ??> @ 0x1414b28
// > ??> @ 0x1417398
// > ??> @ 0x1417938
// > ??> @ 0x141b258
// > ??> @ 0x141b888
// > ??> @ 0x141cd08
// > ??> @ 0x1421938
// > ??> @ 0x1421ee8
// > ??> @ 0x14238a8
// > ??> @ 0x1423e58
// > ??> @ 0x1424428
// > ??> @ 0x1428e08
// > ??> @ 0x1433478
// > ??> @ 0x1433c78
// > ??> @ 0x1434268
// > ??> @ 0x1434a48
// > ??> @ 0x1435258
// > ??> @ 0x143a1e8
// > ??> @ 0x14435b8
// > ??> @ 0x1443dc8
// > ??> @ 0x14445d8
// > ??> @ 0x1444de8
// > ??> @ 0x14455f8
// > ??> @ 0x1445e08
// > ??> @ 0x1446618
// > ??> @ 0x1446e28
// > ??> @ 0x1447608
// > ??> @ 0x1447e18
// > ??> @ 0x1448628
// > ??> @ 0x1448e38
// > ??> @ 0x1449648
// > ??> @ 0x1449e98
// > ??> @ 0x144a6a8
// > ??> @ 0x144aeb8
// > ??> @ 0x144b6c8
// > ??> @ 0x144bed8
// > ??> @ 0x144c6f8
// > ??> @ 0x144cf08
// > ??> @ 0x144d718
// > ??> @ 0x144df28
// > ??> @ 0x144e738
// > ??> @ 0x144ef48
// > ??> @ 0x144f758
// > ??> @ 0x144ff68
// > ??> @ 0x1450778
// > ??> @ 0x1450f88
// > ??> @ 0x1451798
// > ??> @ 0x1451fa8
// > ??> @ 0x14527b8
// > ??> @ 0x1452fc8
// > ??> @ 0x14537d8
// > ??> @ 0x1453fe8
// > ??> @ 0x14547f8
// > ??> @ 0x1455008
// > ??> @ 0x1455818
// > ??> @ 0x1456028
// > ??> @ 0x1456838
// > ??> @ 0x1457048
// > ??> @ 0x1457858
// > ??> @ 0x1458068
// > ??> @ 0x1458878
// > ??> @ 0x14590a8
// > ??> @ 0x145af98
// > ??> @ 0x145b538
// > ??> @ 0x1477628
// > ??> @ 0x14796d8
// > ??> @ 0x1486b38
// > ??> @ 0x14870e8
// > ??> @ 0x1491a18
// > ??> @ 0x1496e58
// > ??> @ 0x14993a8
// > ??> @ 0x14c1cd8
// > ??> @ 0x14d96d8
// > ??> @ 0x150caf8
// > ??> @ 0x15179b8
// > ??> @ 0x1517f58
// > ??> @ 0x1518ad8
// > ??> @ 0x152e538
// > ??> @ 0x152fd38
//
// This function is hookable on this platform (idp: arm, 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 13:08:13 +0000
//
__int64 __fastcall cocos2d::CCSprite::addChild(cocos2d::CCSprite *this, cocos2d::CCNode *a2, unsigned int a3, int a4)
{
__int64 v8; // x0
__int64 v9; // x0
cocos2d::CCSprite *v11; // [xsp+38h] [xbp+38h]
if ( !*((_QWORD *)this + 46) )
goto LABEL_5;
if ( a2 )
{
v11 = (cocos2d::CCSprite *)_dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
v8 = (*(__int64 (**)(void))(*(_QWORD *)v11 + 1072LL))();
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 104LL))(v8);
v9 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 96LL))(*((_QWORD *)this + 44));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 104LL))(v9);
cocos2d::CCSpriteBatchNode::appendChild(*((cocos2d::CCSpriteBatchNode **)this + 46), v11);
if ( !*((_BYTE *)this + 288) )
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)this + 1224LL))(this);
LABEL_5:
cocos2d::CCNode::addChild(this, a2, a3, a4);
*((_BYTE *)this + 378) = 1;
return 1;
}
__break(0x3E8u);
return cocos2d::CCSprite::reorderChild((cocos2d::CCSprite *)0x10102464C457FLL, nullptr, a3);
}