//
// GJBaseGameLayer::switchToRobotMode from 0x99dd54 to 0x99ddc0 (108 bytes)
//
// 5 xrefs:
// > PlayerObject::loadFromCheckpoint @ 0x76be50
// > GJBaseGameLayer::setupLevelStart @ 0x9e8458
// > GJBaseGameLayer::setupLevelStart @ 0x9e8474
// > GJBaseGameLayer::collisionCheckObjects @ 0x9e8ddc
// > ??> @ 0x92b30
//
// 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
//
__int64 __fastcall GJBaseGameLayer::switchToRobotMode(GJBaseGameLayer *this, PlayerObject *a2, GameObject *a3)
{
GameObject *v5; // x0
unsigned __int8 v6; // w2
PlayerObject *v7; // x0
PlayerObject::switchedToMode(a2, 27);
v5 = GJBaseGameLayer::processCameraObject(this, a3, a2);
if ( v5 )
{
v6 = *((_BYTE *)v5 + 1044);
v7 = a2;
}
else
{
v7 = a2;
v6 = 0;
}
return PlayerObject::toggleRobotMode(v7, 1u, v6);
}