//
// GJRobotSprite::dGJRobotSprite from 0x1403ac690 to 0x1403ac733 (163 bytes)
//
// 3 xrefs:
// > sub_1403AC5F0 @ 0x1403ac5ff
// > GJSpiderSprite::dGJSpiderSprite @ 0x1403ac665
// > ??> @ 0x140923ac8
//
// 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:31:21 +0000
//
void __fastcall GJRobotSprite::dGJRobotSprite(__int64 a1)
{
cocos2d::CCObject *v2; // rcx
cocos2d::CCObject *v3; // rcx
__int64 *v4; // rcx
void *v5; // rax
*(_QWORD *)a1 = &GJRobotSprite::`vftable';
*(_QWORD *)(a1 + 320) = &GJRobotSprite::`vftable';
*(_QWORD *)(a1 + 344) = &GJRobotSprite::`vftable';
v2 = *(cocos2d::CCObject **)(a1 + 760);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(cocos2d::CCObject **)(a1 + 744);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (__int64 *)qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v5 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = (__int64 *)qword_14090BFD0;
}
GameManager::unloadIcons(v4, *(_DWORD *)(a1 + 788));
CCAnimatedSprite::dCCAnimatedSprite((cocos2d::CCSprite *)a1);
}