{"type": "func", "start": 4297596508, "end": 4297596608, "name": "GJBaseGameLayer::switchToRobotMode", "pseudocode": "// \n// GJBaseGameLayer::switchToRobotMode from 0x100281e5c to 0x100281ec0 (100 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::setupLevelStart @ 0x100281870\n// > GJBaseGameLayer::setupLevelStart @ 0x100281890\n// > GJBaseGameLayer::collisionCheckObjects @ 0x100283dc8\n// > PlayerObject::loadFromCheckpoint @ 0x1002cb2b4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:55 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::switchToRobotMode(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v6; // x0\n  char v7; // w8\n\n  PlayerObject::switchedToMode(a2, 27);\n  v6 = GJBaseGameLayer::processCameraObject(a1, a3, a2);\n  if ( v6 )\n    v7 = *(_BYTE *)(v6 + 1044);\n  else\n    v7 = 0;\n  return PlayerObject::toggleRobotMode(a2, 1, v7 & 1);\n}", "assembly": "; \n; GJBaseGameLayer::switchToRobotMode from 0x100281e5c to 0x100281ec0 (100 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::setupLevelStart @ 0x100281870\n; > GJBaseGameLayer::setupLevelStart @ 0x100281890\n; > GJBaseGameLayer::collisionCheckObjects @ 0x100283dc8\n; > PlayerObject::loadFromCheckpoint @ 0x1002cb2b4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:55 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100281e5c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100281e60\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100281e64\nADD             X29, SP, #0x20                                         ; +0xc, 0x100281e68\nMOV             X20, X2                                                ; +0x10, 0x100281e6c\nMOV             X19, X1                                                ; +0x14, 0x100281e70\nMOV             X21, X0                                                ; +0x18, 0x100281e74\nMOV             X0, X1                                                 ; +0x1c, 0x100281e78\nMOV             W1, #0x1B                                              ; +0x20, 0x100281e7c\nBL              PlayerObject__switchedToMode                           ; +0x24, 0x100281e80\nMOV             X0, X21                                                ; +0x28, 0x100281e84\nMOV             X1, X20                                                ; +0x2c, 0x100281e88\nMOV             X2, X19                                                ; +0x30, 0x100281e8c\nBL              GJBaseGameLayer__processCameraObject                   ; +0x34, 0x100281e90\nCBZ             X0, loc_100281EA0                                      ; +0x38, 0x100281e94\nLDRB            W8, [X0,#0x414]                                        ; +0x3c, 0x100281e98\nB               loc_100281EA4                                          ; +0x40, 0x100281e9c\nMOV             W8, #0                                                 ; +0x44, 0x100281ea0\nAND             W2, W8, #1                                             ; +0x48, 0x100281ea4\nMOV             X0, X19                                                ; +0x4c, 0x100281ea8\nMOV             W1, #1                                                 ; +0x50, 0x100281eac\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x100281eb0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x100281eb4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x100281eb8\nB               PlayerObject__toggleRobotMode                          ; +0x60, 0x100281ebc", "xrefs": ["GJBaseGameLayer::setupLevelStart @ 0x100281870", "GJBaseGameLayer::setupLevelStart @ 0x100281890", "GJBaseGameLayer::collisionCheckObjects @ 0x100283dc8", "PlayerObject::loadFromCheckpoint @ 0x1002cb2b4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}