//
// PlayerObject::reversePlayer from 0x1404f6740 to 0x1404f6822 (226 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031ccda
// > GJBaseGameLayer::bumpPlayer @ 0x14031f1ed
// > PlayerObject::ringJump @ 0x1404f70df
// > ??> @ 0x1408d5238
// > ??> @ 0x1408d5248
// > ??> @ 0x14092a1e8
//
// 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:20 +0000
//
double __fastcall PlayerObject::reversePlayer(__int64 a1, __int64 a2)
{
double result; // xmm0_8
__int64 v3; // rsi
float v5; // xmm2_4
__int64 v6; // rax
__int64 v7; // rbx
__int64 v8; // rax
__int64 v9; // rax
float v10; // xmm0_4
_BYTE v11[16]; // [rsp+20h] [rbp-28h] BYREF
float v12; // [rsp+50h] [rbp+8h] BYREF
float v13; // [rsp+54h] [rbp+Ch]
char v14; // [rsp+60h] [rbp+18h] BYREF
char v15; // [rsp+68h] [rbp+20h] BYREF
v3 = a2;
if ( !*(_BYTE *)(a1 + 2936) )
{
if ( a2 && *(_BYTE *)(a1 + 1378) )
{
v5 = *(double *)(a1 + 2520);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v5, v5);
v7 = v6;
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::operator+(v8, &v14, v7);
v9 = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 1208LL))(v3, v11);
cocos2d::CCPoint::operator-(v9, &v12, &v14);
if ( *(_BYTE *)(a1 + 2507) )
v10 = v13;
else
v10 = v12;
*(double *)(a1 + 2520) = (float)(v10 + v10) + *(double *)(a1 + 2520);
}
LOBYTE(a2) = *(_BYTE *)(a1 + 2506) == 0;
return PlayerObject::doReversePlayer(a1, a2);
}
return result;
}