//
// sub_10039A928 from 0x10039a928 to 0x10039a9b8 (144 bytes)
//
// 5 xrefs:
// > AnimatedShopKeeper::dAnimatedShopKeeper @ 0x1001ccef0
// > sub_1001CCEF4 @ 0x1001ccefc
// > sub_1002DC27C @ 0x1002dc2d8
// > CCAnimatedSprite::dCCAnimatedSprite @ 0x10039a9bc
// > sub_10039A9C0 @ 0x10039a9c8
//
// 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 11:03:43 +0000
//
__int64 __fastcall sub_10039A928(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
*(_QWORD *)a1 = &off_100942750;
*(_QWORD *)(a1 + 320) = off_100942C48;
*(_QWORD *)(a1 + 344) = off_100942CC8;
v2 = *(_QWORD *)(a1 + 672);
if ( v2 )
cocos2d::CCNode::stopAllActions(v2);
v3 = *(_QWORD *)(a1 + 664);
if ( v3 )
cocos2d::CCNode::stopAllActions(v3);
sub_1003C231C(*(_QWORD *)(a1 + 648));
*(_QWORD *)(a1 + 648) = 0;
if ( *(char *)(a1 + 711) < 0 )
operator delete(*(void **)(a1 + 688));
if ( *(char *)(a1 + 647) < 0 )
operator delete(*(void **)(a1 + 624));
if ( *(char *)(a1 + 623) < 0 )
operator delete(*(void **)(a1 + 600));
return cocos2d::CCSprite::dCCSprite((_QWORD *)a1);
}