//
// sub_1002C9560 from 0x1002c9560 to 0x1002c9610 (176 bytes)
//
// 2 xrefs:
// > PlayLayer::playEndAnimationToPos @ 0x100144a60
// > PlayLayer::playPlatformerEndAnimationToPos @ 0x100144dac
//
// 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:02:34 +0000
//
double __fastcall sub_1002C9560(__int64 a1)
{
double *v2; // x0
double result; // d0
__int64 v4; // [xsp+8h] [xbp-18h] BYREF
if ( *(_BYTE *)(a1 + 2420) == 1 )
{
v2 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
sub_1000262F4(&v4, v2);
PlayerObject::placeStreakPoint(a1, (double *)&v4);
}
*(_BYTE *)(a1 + 2530) = 1;
*(_WORD *)(a1 + 1784) = 0;
*(_BYTE *)(a1 + 1640) = 0;
*(_DWORD *)(a1 + 1776) = 0;
PlayerObject::releaseButton(a1, 1);
if ( *(_BYTE *)(a1 + 1974) == 1 )
*(float *)&result = cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2160));
*(_BYTE *)(a1 + 1974) = 0;
*(_BYTE *)(a1 + 2500) = 0;
if ( *(_BYTE *)(a1 + 2420) == 1 )
return PlayerObject::fadeOutStreak2(a1, 0.4);
return result;
}