//
// PlayerObject::switchedToMode from 0x1002c3cbc to 0x1002c3de0 (292 bytes)
//
// 14 xrefs:
// > GJBaseGameLayer::switchToFlyMode @ 0x100281d20
// > GJBaseGameLayer::switchToRollMode @ 0x100281e1c
// > GJBaseGameLayer::switchToRobotMode @ 0x100281e80
// > GJBaseGameLayer::switchToSpiderMode @ 0x100281ee4
// > GJBaseGameLayer::collisionCheckObjects @ 0x100284460
// > PlayerObject::resetObject @ 0x1002c3794
// > PlayerObject::toggleFlyMode @ 0x1002c63a4
// > PlayerObject::toggleBirdMode @ 0x1002c6b44
// > PlayerObject::toggleSwingMode @ 0x1002c6fe4
// > PlayerObject::toggleDartMode @ 0x1002c76c0
// > PlayerObject::toggleRollMode @ 0x1002c7b28
// > PlayerObject::toggleRobotMode @ 0x1002c7e34
// > PlayerObject::toggleSpiderMode @ 0x1002c8130
// > MenuGameLayer::resetPlayer @ 0x1004425b8
//
// 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:02:32 +0000
//
__int64 __fastcall PlayerObject::switchedToMode(__int64 a1, int a2)
{
__int64 result; // x0
if ( a2 == 5 )
{
PlayerObject::toggleBirdMode(a1, 0, 0);
LABEL_4:
PlayerObject::toggleRollMode(a1, 0, 0);
LABEL_5:
PlayerObject::toggleDartMode(a1, 0, 0);
LABEL_6:
PlayerObject::toggleRobotMode(a1, 0, 0);
LABEL_7:
PlayerObject::toggleSpiderMode(a1, 0, 0);
return PlayerObject::toggleSwingMode(a1, 0, 0);
}
PlayerObject::toggleFlyMode(a1, 0, 0);
if ( a2 == 19 )
goto LABEL_4;
PlayerObject::toggleBirdMode(a1, 0, 0);
if ( a2 == 16 )
goto LABEL_5;
PlayerObject::toggleRollMode(a1, 0, 0);
if ( a2 == 26 )
goto LABEL_6;
PlayerObject::toggleDartMode(a1, 0, 0);
if ( a2 == 27 )
goto LABEL_7;
PlayerObject::toggleRobotMode(a1, 0, 0);
if ( a2 == 33 )
return PlayerObject::toggleSwingMode(a1, 0, 0);
result = PlayerObject::toggleSpiderMode(a1, 0, 0);
if ( a2 != 41 )
return PlayerObject::toggleSwingMode(a1, 0, 0);
return result;
}