//
// PlayerObject::levelFlipFinished from 0x1404e99b0 to 0x1404e9a57 (167 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::update @ 0x140341cd1
// > GJBaseGameLayer::update @ 0x140341ce6
// > PlayerObject::resetObject @ 0x1404f56c4
// > ??> @ 0x140929c9c
//
// 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:33:12 +0000
//
double __fastcall PlayerObject::levelFlipFinished(__int64 a1)
{
const struct cocos2d::CCPoint *v2; // rax
__int64 v3; // rax
double result; // xmm0_8
char v5; // [rsp+30h] [rbp+8h] BYREF
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2248) + 968LL))(*(_QWORD *)(a1 + 2248));
if ( *(_BYTE *)(a1 + 2497) || *(_BYTE *)(a1 + 2498) || *(_BYTE *)(a1 + 2500) || *(_BYTE *)(a1 + 2508) )
{
PlayerObject::resetStreak((cocos2d::CCMotionStreak **)a1);
PlayerObject::activateStreak(a1);
if ( *(_BYTE *)(a1 + 2500) )
{
v2 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v5, v2);
return PlayerObject::placeStreakPoint(a1, v3);
}
}
else if ( *(_BYTE *)(a1 + 2353) )
{
PlayerObject::resetStreak((cocos2d::CCMotionStreak **)a1);
PlayerObject::activateStreak(a1);
}
return result;
}