//
// GJBaseGameLayer::switchToSpiderMode from 0x100281ec0 to 0x100281f24 (100 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::setupLevelStart @ 0x1002819d8
// > GJBaseGameLayer::setupLevelStart @ 0x1002819f8
// > GJBaseGameLayer::collisionCheckObjects @ 0x100283e40
// > PlayerObject::loadFromCheckpoint @ 0x1002cb2e8
//
// 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::switchToSpiderMode(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
char v7; // w8
PlayerObject::switchedToMode(a2, 33);
v6 = GJBaseGameLayer::processCameraObject(a1, a3, a2);
if ( v6 )
v7 = *(_BYTE *)(v6 + 1044);
else
v7 = 0;
return PlayerObject::toggleSpiderMode(a2, 1, v7 & 1);
}