{"type": "func", "start": 4296959176, "end": 4296959432, "name": "GJBaseGameLayer::switchToFlyMode", "pseudocode": "// \n// GJBaseGameLayer::switchToFlyMode from 0x1001e64c8 to 0x1001e65c8 (256 bytes)\n// \n// 7 xrefs:\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e6108\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e6158\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e6198\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e61d8\n// > GJBaseGameLayer::setupLevelStart @ 0x1001e61fc\n// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8a54\n// > PlayerObject::loadFromCheckpoint @ 0x10022e34c\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::switchToFlyMode(\n        GJBaseGameLayer *a1,\n        PlayerObject *a2,\n        GameObject *a3,\n        bool a4,\n        int a5)\n{\n  GameObject *v9; // x0\n  bool v10; // w8\n  bool v11; // w8\n  bool m_hasNoEffects; // w8\n  bool v13; // w8\n\n  PlayerObject::switchedToMode(a2, (GameObjectType)a5);\n  v9 = GJBaseGameLayer::processCameraObject(a1, a3, a2);\n  switch ( a5 )\n  {\n    case 41:\n      if ( v9 )\n        m_hasNoEffects = v9->m_hasNoEffects;\n      else\n        m_hasNoEffects = 0;\n      PlayerObject::toggleSwingMode(a2, 1, m_hasNoEffects);\n      break;\n    case 19:\n      if ( v9 )\n        v11 = v9->m_hasNoEffects;\n      else\n        v11 = 0;\n      PlayerObject::toggleBirdMode(a2, 1, v11);\n      break;\n    case 5:\n      if ( v9 )\n        v10 = v9->m_hasNoEffects;\n      else\n        v10 = 0;\n      PlayerObject::toggleFlyMode(a2, 1, v10);\n      break;\n    default:\n      if ( v9 )\n        v13 = v9->m_hasNoEffects;\n      else\n        v13 = 0;\n      PlayerObject::toggleDartMode(a2, 1, v13);\n      break;\n  }\n  ((void (__fastcall *)(GJBaseGameLayer *, __int64))a1->toggleGlitter)(a1, 1);\n}", "assembly": "; \n; GJBaseGameLayer::switchToFlyMode from 0x1001e64c8 to 0x1001e65c8 (256 bytes)\n; \n; 7 xrefs:\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e6108\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e6158\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e6198\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e61d8\n; > GJBaseGameLayer::setupLevelStart @ 0x1001e61fc\n; > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8a54\n; > PlayerObject::loadFromCheckpoint @ 0x10022e34c\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, 0x1001e64c8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001e64cc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001e64d0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001e64d4\nMOV             X21, X4                                                ; +0x10, 0x1001e64d8\nMOV             X22, X2                                                ; +0x14, 0x1001e64dc\nMOV             X20, X1                                                ; +0x18, 0x1001e64e0\nMOV             X19, X0                                                ; +0x1c, 0x1001e64e4\nMOV             X0, X1                                                 ; +0x20, 0x1001e64e8\nMOV             X1, X4                                                 ; +0x24, 0x1001e64ec\nBL              PlayerObject__switchedToMode                           ; +0x28, 0x1001e64f0\nMOV             X0, X19                                                ; +0x2c, 0x1001e64f4\nMOV             X1, X22                                                ; +0x30, 0x1001e64f8\nMOV             X2, X20                                                ; +0x34, 0x1001e64fc\nBL              GJBaseGameLayer__processCameraObject                   ; +0x38, 0x1001e6500\nCMP             W21, #0x29 ; ')'                                       ; +0x3c, 0x1001e6504\nB.EQ            loc_1001E6534                                          ; +0x40, 0x1001e6508\nCMP             W21, #0x13                                             ; +0x44, 0x1001e650c\nB.EQ            loc_1001E6528                                          ; +0x48, 0x1001e6510\nCMP             W21, #5                                                ; +0x4c, 0x1001e6514\nB.NE            loc_1001E6540                                          ; +0x50, 0x1001e6518\nCBZ             X0, loc_1001E657C                                      ; +0x54, 0x1001e651c\nLDRB            W8, [X0,#0x414]                                        ; +0x58, 0x1001e6520\nB               loc_1001E6580                                          ; +0x5c, 0x1001e6524\nCBZ             X0, loc_1001E654C                                      ; +0x60, 0x1001e6528\nLDRB            W8, [X0,#0x414]                                        ; +0x64, 0x1001e652c\nB               loc_1001E6550                                          ; +0x68, 0x1001e6530\nCBZ             X0, loc_1001E6564                                      ; +0x6c, 0x1001e6534\nLDRB            W8, [X0,#0x414]                                        ; +0x70, 0x1001e6538\nB               loc_1001E6568                                          ; +0x74, 0x1001e653c\nCBZ             X0, loc_1001E6594                                      ; +0x78, 0x1001e6540\nLDRB            W8, [X0,#0x414]                                        ; +0x7c, 0x1001e6544\nB               loc_1001E6598                                          ; +0x80, 0x1001e6548\nMOV             W8, #0                                                 ; +0x84, 0x1001e654c\nAND             W2, W8, #1                                             ; +0x88, 0x1001e6550\nMOV             X0, X20                                                ; +0x8c, 0x1001e6554\nMOV             W1, #1                                                 ; +0x90, 0x1001e6558\nBL              PlayerObject__toggleBirdMode                           ; +0x94, 0x1001e655c\nB               loc_1001E65A8                                          ; +0x98, 0x1001e6560\nMOV             W8, #0                                                 ; +0x9c, 0x1001e6564\nAND             W2, W8, #1                                             ; +0xa0, 0x1001e6568\nMOV             X0, X20                                                ; +0xa4, 0x1001e656c\nMOV             W1, #1                                                 ; +0xa8, 0x1001e6570\nBL              PlayerObject__toggleSwingMode                          ; +0xac, 0x1001e6574\nB               loc_1001E65A8                                          ; +0xb0, 0x1001e6578\nMOV             W8, #0                                                 ; +0xb4, 0x1001e657c\nAND             W2, W8, #1                                             ; +0xb8, 0x1001e6580\nMOV             X0, X20                                                ; +0xbc, 0x1001e6584\nMOV             W1, #1                                                 ; +0xc0, 0x1001e6588\nBL              PlayerObject__toggleFlyMode                            ; +0xc4, 0x1001e658c\nB               loc_1001E65A8                                          ; +0xc8, 0x1001e6590\nMOV             W8, #0                                                 ; +0xcc, 0x1001e6594\nAND             W2, W8, #1                                             ; +0xd0, 0x1001e6598\nMOV             X0, X20                                                ; +0xd4, 0x1001e659c\nMOV             W1, #1                                                 ; +0xd8, 0x1001e65a0\nBL              PlayerObject__toggleDartMode                           ; +0xdc, 0x1001e65a4\nLDR             X8, [X19]                                              ; +0xe0, 0x1001e65a8\nLDR             X2, [X8,#0x4F8]                                        ; +0xe4, 0x1001e65ac\nMOV             X0, X19                                                ; +0xe8, 0x1001e65b0\nMOV             W1, #1                                                 ; +0xec, 0x1001e65b4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xf0, 0x1001e65b8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xf4, 0x1001e65bc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xf8, 0x1001e65c0\nBR              X2                                                     ; +0xfc, 0x1001e65c4", "xrefs": ["GJBaseGameLayer::setupLevelStart @ 0x1001e6108", "GJBaseGameLayer::setupLevelStart @ 0x1001e6158", "GJBaseGameLayer::setupLevelStart @ 0x1001e6198", "GJBaseGameLayer::setupLevelStart @ 0x1001e61d8", "GJBaseGameLayer::setupLevelStart @ 0x1001e61fc", "GJBaseGameLayer::collisionCheckObjects @ 0x1001e8a54", "PlayerObject::loadFromCheckpoint @ 0x10022e34c"], "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"}