//
// GJBaseGameLayer::rotateGameplay from 0x9c94b0 to 0x9c960c (348 bytes)
//
// 4 xrefs:
// > ??> @ 0x4f9a8
// > ??> @ 0x14289e8
// > ??> @ 0x1435f48
// > ??> @ 0x1475818
//
// 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 12:58:35 +0000
//
__int64 __fastcall GJBaseGameLayer::rotateGameplay(GJBaseGameLayer *this, RotateGameplayGameObject *a2)
{
bool v4; // w22
const cocos2d::CCPoint *v6; // x0
long double v7; // q0
_BYTE v8[8]; // [xsp+50h] [xbp+50h] BYREF
__int64 v9; // [xsp+58h] [xbp+58h] BYREF
__int64 v10; // [xsp+60h] [xbp+60h] BYREF
if ( *((_BYTE *)a2 + 1860) )
{
*((_DWORD *)this + 207) = *((_DWORD *)a2 + 466);
v4 = (unsigned int)(*((_DWORD *)a2 + 461) - 2) <= 1;
*(_BYTE *)std::unordered_map::operator[]((__int64)this + 880, (int *)this + 207) = v4;
}
if ( !*((_BYTE *)a2 + 1861) )
{
PlayerObject::rotateGameplay(
*((PlayerObject **)this + 407),
*((_DWORD *)a2 + 460),
*((_DWORD *)a2 + 461),
*((_BYTE *)a2 + 1848),
*((float *)a2 + 463),
*((float *)a2 + 464),
*((_BYTE *)a2 + 1849),
*((_BYTE *)a2 + 1869));
if ( *((_BYTE *)this + 1010) )
PlayerObject::rotateGameplay(
*((PlayerObject **)this + 408),
*((_DWORD *)a2 + 460),
*((_DWORD *)a2 + 461),
*((_BYTE *)a2 + 1848),
*((float *)a2 + 463),
*((float *)a2 + 464),
*((_BYTE *)a2 + 1849),
*((_BYTE *)a2 + 1869));
v6 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v6);
(*(void (__fastcall **)(__int64 *__return_ptr, RotateGameplayGameObject *))(*(_QWORD *)a2 + 1360LL))(&v9, a2);
cocos2d::CCPoint::operator-(&v10, v8, &v9, v7);
(*(void (__fastcall **)(GJBaseGameLayer *))(*(_QWORD *)this + 1456LL))(this);
}
if ( *((_BYTE *)a2 + 1868) )
{
*((float *)this + 173) = 1.0;
*((float *)this + 174) = 1.0;
}
return _stack_chk_guard;
}