//
// GJBaseGameLayer::processCameraObject from 0x99d4e4 to 0x99d5a8 (196 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::switchToFlyMode @ 0x99dc44
// > GJBaseGameLayer::switchToRobotMode @ 0x99dd88
// > GJBaseGameLayer::switchToSpiderMode @ 0x99ddf4
// > GJBaseGameLayer::switchToRollMode @ 0x99de60
// > ??> @ 0x586f0
//
// 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:05 +0000
//
GameObject *__fastcall GJBaseGameLayer::processCameraObject(GJBaseGameLayer *this, GameObject *a2, PlayerObject *a3)
{
GameObject *v4; // x19
const cocos2d::CCPoint *v6; // x0
_BYTE v8[8]; // [xsp+40h] [xbp+40h] BYREF
v4 = a2;
if ( a2 )
{
v6 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v6);
cocos2d::CCPoint::operator=((char *)a3 + 2488, v8);
*((_QWORD *)a3 + 324) = v4;
if ( *((_BYTE *)this + 1010) && *((_QWORD *)this + 123) )
v4 = *((GameObject **)this + 123);
goto LABEL_3;
}
if ( *((_BYTE *)this + 1010) )
{
v4 = *((GameObject **)this + 123);
if ( v4 )
LABEL_3:
*((_QWORD *)this + 122) = v4;
}
return v4;
}