//
// CCAnimatedSprite::dCCAnimatedSprite from 0x10033c840 to 0x10033c909 (201 bytes)
//
// 11 xrefs:
// > sub_100313DE0 @ 0x100313de5
// > sub_100313DF0 @ 0x100313df5
// > sub_100313E00 @ 0x100313e09
// > sub_10033C920 @ 0x10033c925
// > sub_10033C930 @ 0x10033c939
// > sub_1006AD3D0 @ 0x1006ad43d
// > GJRobotSprite::dGJRobotSprite @ 0x1006ad4bd
// > sub_1006AD4D0 @ 0x1006ad537
// > sub_1006AEAA0 @ 0x1006aeb0d
// > sub_1006AEB20 @ 0x1006aeb8d
// > sub_1006AEBA0 @ 0x1006aec07
//
// 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 12:28:42 +0000
//
__int64 __fastcall CCAnimatedSprite::dCCAnimatedSprite(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
*(_QWORD *)a1 = off_100B1CDC0;
*(_QWORD *)(a1 + 320) = off_100B1D2B8;
*(_QWORD *)(a1 + 344) = off_100B1D338;
v2 = *(_QWORD *)(a1 + 672);
if ( v2 )
cocos2d::CCNode::stopAllActions(v2);
v3 = *(_QWORD *)(a1 + 664);
if ( v3 )
cocos2d::CCNode::stopAllActions(v3);
SpriteAnimationManager::doCleanup(*(_QWORD *)(a1 + 648));
*(_QWORD *)(a1 + 648) = 0;
if ( (*(_BYTE *)(a1 + 688) & 1) == 0 )
{
if ( (*(_BYTE *)(a1 + 624) & 1) == 0 )
goto LABEL_7;
LABEL_11:
operator delete(*(void **)(a1 + 640));
if ( (*(_BYTE *)(a1 + 600) & 1) == 0 )
return sub_100274100((_QWORD *)a1);
goto LABEL_8;
}
operator delete(*(void **)(a1 + 704));
if ( (*(_BYTE *)(a1 + 624) & 1) != 0 )
goto LABEL_11;
LABEL_7:
if ( (*(_BYTE *)(a1 + 600) & 1) != 0 )
LABEL_8:
operator delete(*(void **)(a1 + 616));
return sub_100274100((_QWORD *)a1);
}