//
// GJBaseGameLayer::processCameraObject from 0x58e944 to 0x58e9a8 (100 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::switchToFlyMode @ 0x58edf8
// > GJBaseGameLayer::switchToRobotMode @ 0x58ee7c
// > GJBaseGameLayer::switchToSpiderMode @ 0x58eeac
// > GJBaseGameLayer::switchToRollMode @ 0x58eedc
//
// 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:04 +0000
//
GameObject *__fastcall GJBaseGameLayer::processCameraObject(
GJBaseGameLayer *this,
GameObject *a2,
PlayerObject *a3,
int a4)
{
GameObject *v6; // r4
const cocos2d::CCPoint *v7; // r0
_DWORD v9[3]; // [sp+4h] [bp-Ch] BYREF
v9[0] = a2;
v9[1] = a3;
v9[2] = a4;
v6 = a2;
if ( a2 )
{
v7 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v7);
cocos2d::CCPoint::operator=((char *)a3 + 2024, v9);
*((_DWORD *)a3 + 525) = v6;
}
if ( *((_BYTE *)this + 866) && *((_DWORD *)this + 211) )
{
v6 = *((GameObject **)this + 211);
}
else if ( !v6 )
{
return v6;
}
*((_DWORD *)this + 210) = v6;
return v6;
}