//
// GJBaseGameLayer::rotateGameplay from 0x5a8b18 to 0x5a8c22 (266 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:23 +0000
//
_DWORD *__fastcall GJBaseGameLayer::rotateGameplay(_DWORD *this, RotateGameplayGameObject *a2)
{
_DWORD *v2; // r5
int v4; // r6
bool v5; // r6
const cocos2d::CCPoint *v6; // r0
_BYTE v7[8]; // [sp+14h] [bp-1Ch] BYREF
_BYTE v8[8]; // [sp+1Ch] [bp-14h] BYREF
_BYTE v9[8]; // [sp+24h] [bp-Ch] BYREF
v2 = this;
if ( *((_BYTE *)a2 + 1668) )
{
*(this + 183) = *((_DWORD *)a2 + 418);
v4 = *((_DWORD *)a2 + 413);
v5 = v4 == 3 || v4 == 2;
this = std::unordered_map::operator[]((int)(this + 190), this + 183);
*(_BYTE *)this = v5;
}
if ( !*((_BYTE *)a2 + 1669) )
{
PlayerObject::rotateGameplay(
(PlayerObject *)v2[519],
*((_DWORD *)a2 + 412),
*((_DWORD *)a2 + 413),
*((unsigned __int8 *)a2 + 1656),
*((float *)a2 + 415),
*((float *)a2 + 416),
*((_BYTE *)a2 + 1657),
*((_BYTE *)a2 + 1677));
if ( *((_BYTE *)v2 + 866) )
PlayerObject::rotateGameplay(
(PlayerObject *)v2[520],
*((_DWORD *)a2 + 412),
*((_DWORD *)a2 + 413),
*((unsigned __int8 *)a2 + 1656),
*((float *)a2 + 415),
*((float *)a2 + 416),
*((_BYTE *)a2 + 1657),
*((_BYTE *)a2 + 1677));
v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)v2[519] + 96))(v2[519]);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, v6);
(*(void (__fastcall **)(_BYTE *, RotateGameplayGameObject *))(*(_DWORD *)a2 + 680))(v8, a2);
cocos2d::CCPoint::operator-(v9, v7, v8);
this = (_DWORD *)(*(int (__fastcall **)(_DWORD *))(*v2 + 728))(v2);
}
if ( *((_BYTE *)a2 + 1676) )
{
v2[149] = 1065353216;
v2[150] = 1065353216;
}
return this;
}