//
// GJBaseGameLayer::processCameraObject from 0x100280e60 to 0x100280ee8 (136 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::switchToFlyMode @ 0x100281d30
// > GJBaseGameLayer::switchToRollMode @ 0x100281e2c
// > GJBaseGameLayer::switchToRobotMode @ 0x100281e90
// > GJBaseGameLayer::switchToSpiderMode @ 0x100281ef4
//
// 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 11:01:55 +0000
//
__int64 __fastcall GJBaseGameLayer::processCameraObject(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // x19
double *v6; // x0
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
v3 = a2;
if ( a2 )
{
v6 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
sub_1000262F4(&v8, v6);
sub_10002630C((_QWORD *)(a3 + 2488), (double *)&v8);
*(_QWORD *)(a3 + 2592) = v3;
}
if ( *(_BYTE *)(a1 + 1010) == 1 && *(_QWORD *)(a1 + 984) )
v3 = *(_QWORD *)(a1 + 984);
if ( v3 )
*(_QWORD *)(a1 + 976) = v3;
return v3;
}