{"type": "func", "start": 4648870, "end": 4648918, "name": "GJBaseGameLayer::switchToRobotMode", "pseudocode": "// \n// GJBaseGameLayer::switchToRobotMode from 0x46efa6 to 0x46efd6 (48 bytes)\n// \n// 4 xrefs:\n// > PlayerObject::loadFromCheckpoint @ 0x3509e6\n// > GJBaseGameLayer::setupLevelStart @ 0x491a4e\n// > GJBaseGameLayer::setupLevelStart @ 0x491a62\n// > GJBaseGameLayer::collisionCheckObjects @ 0x492864\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::switchToRobotMode(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3, bool a4)\n{\n  GameObject *v7; // r0\n  bool m_hasNoEffects; // r2\n\n  PlayerObject::switchedToMode(a2, RobotPortal);\n  v7 = GJBaseGameLayer::processCameraObject(a1, a3, a2);\n  if ( v7 )\n    m_hasNoEffects = v7->m_hasNoEffects;\n  else\n    m_hasNoEffects = 0;\n  PlayerObject::toggleRobotMode(a2, 1, m_hasNoEffects);\n}", "assembly": "; \n; GJBaseGameLayer::switchToRobotMode from 0x46efa6 to 0x46efd6 (48 bytes)\n; \n; 4 xrefs:\n; > PlayerObject::loadFromCheckpoint @ 0x3509e6\n; > GJBaseGameLayer::setupLevelStart @ 0x491a4e\n; > GJBaseGameLayer::setupLevelStart @ 0x491a62\n; > GJBaseGameLayer::collisionCheckObjects @ 0x492864\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x46efa6\nMOV             R5, R2                                                 ; +0x2, 0x46efa8\nMOV             R6, R0                                                 ; +0x4, 0x46efaa\nMOV             R4, R1                                                 ; +0x6, 0x46efac\nMOV             R0, R1                                                 ; +0x8, 0x46efae\nMOVS            R1, #0x1B                                              ; +0xa, 0x46efb0\nBL              _ZN12PlayerObject14switchedToModeE14GameObjectType; PlayerObject::switchedToMode(GameObjectType) ; +0xc, 0x46efb2\nMOV             R0, R6; this                                           ; +0x10, 0x46efb6\nMOV             R1, R5; GameObject *                                   ; +0x12, 0x46efb8\nMOV             R2, R4; PlayerObject *                                 ; +0x14, 0x46efba\nBL              _ZN15GJBaseGameLayer19processCameraObjectEP10GameObjectP12PlayerObject; GJBaseGameLayer::processCameraObject(GameObject *,PlayerObject *) ; +0x16, 0x46efbc\nCBZ             R0, loc_46EFC8                                         ; +0x1a, 0x46efc0\nLDRB.W          R2, [R0,#0x384]                                        ; +0x1c, 0x46efc2\nB               loc_46EFCA                                             ; +0x20, 0x46efc6\nMOV             R2, R0; bool                                           ; +0x22, 0x46efc8\nMOV             R0, R4; this                                           ; +0x24, 0x46efca\nMOVS            R1, #1; bool                                           ; +0x26, 0x46efcc\nPOP.W           {R4-R6,LR}                                             ; +0x28, 0x46efce\nB.W             _ZN12PlayerObject15toggleRobotModeEbb; PlayerObject::toggleRobotMode(bool,bool) ; +0x2c, 0x46efd2", "xrefs": ["PlayerObject::loadFromCheckpoint @ 0x3509e6", "GJBaseGameLayer::setupLevelStart @ 0x491a4e", "GJBaseGameLayer::setupLevelStart @ 0x491a62", "GJBaseGameLayer::collisionCheckObjects @ 0x492864"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}