{"type": "func", "start": 4296959632, "end": 4296959732, "name": "GJBaseGameLayer::switchToSpiderMode", "pseudocode": "// \n// GJBaseGameLayer::switchToSpiderMode from 0x1001e6690 to 0x1001e66f4 (100 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e6214\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e6234\n// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e84a0\n// > PlayerObject::loadFromCheckpoint @ 0x10022e580\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 __fastcall GJBaseGameLayer::switchToSpiderMode(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3, bool a4)\n{\n  GameObject *v7; // x0\n  bool m_hasNoEffects; // w8\n\n  PlayerObject::switchedToMode(a2, SpiderPortal);\n  v7 = GJBaseGameLayer::processCameraObject(a1, a3, a2);\n  if ( v7 )\n    m_hasNoEffects = v7->m_hasNoEffects;\n  else\n    m_hasNoEffects = 0;\n  PlayerObject::toggleSpiderMode(a2, 1, m_hasNoEffects);\n}", "assembly": "; \n; GJBaseGameLayer::switchToSpiderMode from 0x1001e6690 to 0x1001e66f4 (100 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e6214\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e6234\n; > GJBaseGameLayer::collisionCheckObjects @ 0x1001e84a0\n; > PlayerObject::loadFromCheckpoint @ 0x10022e580\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001e6690\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001e6694\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001e6698\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001e669c\nMOV             X20, X2                                                ; +0x10, 0x1001e66a0\nMOV             X19, X1                                                ; +0x14, 0x1001e66a4\nMOV             X21, X0                                                ; +0x18, 0x1001e66a8\nMOV             X0, X1                                                 ; +0x1c, 0x1001e66ac\nMOV             W1, #0x21 ; '!'                                        ; +0x20, 0x1001e66b0\nBL              PlayerObject__switchedToMode                           ; +0x24, 0x1001e66b4\nMOV             X0, X21                                                ; +0x28, 0x1001e66b8\nMOV             X1, X20                                                ; +0x2c, 0x1001e66bc\nMOV             X2, X19                                                ; +0x30, 0x1001e66c0\nBL              GJBaseGameLayer__processCameraObject                   ; +0x34, 0x1001e66c4\nCBZ             X0, loc_1001E66D4                                      ; +0x38, 0x1001e66c8\nLDRB            W8, [X0,#0x414]                                        ; +0x3c, 0x1001e66cc\nB               loc_1001E66D8                                          ; +0x40, 0x1001e66d0\nMOV             W8, #0                                                 ; +0x44, 0x1001e66d4\nAND             W2, W8, #1                                             ; +0x48, 0x1001e66d8\nMOV             X0, X19                                                ; +0x4c, 0x1001e66dc\nMOV             W1, #1                                                 ; +0x50, 0x1001e66e0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1001e66e4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1001e66e8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x1001e66ec\nB               PlayerObject__toggleSpiderMode                         ; +0x60, 0x1001e66f0", "xrefs": ["GJBaseGameLayer::setupLevelStart @ 0x1001e6214", "GJBaseGameLayer::setupLevelStart @ 0x1001e6234", "GJBaseGameLayer::collisionCheckObjects @ 0x1001e84a0", "PlayerObject::loadFromCheckpoint @ 0x10022e580"], "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"}