{"type": "func", "start": 8759488, "end": 8759640, "name": "GJBaseGameLayer::enterDualMode", "pseudocode": "// \n// GJBaseGameLayer::enterDualMode from 0x85a8c0 to 0x85a958 (152 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x5e4ffc\n// > <???> @ 0x4c3f8\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::enterDualMode(GJBaseGameLayer *a1, GameObject *a2, bool a3)\n{\n  PlayerObject *m_player1; // x23\n  const cocos2d::CCPoint *v6; // x0\n  float v7; // s0\n  float v8; // s1\n  cocos2d::CCPoint v9; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( a2 )\n  {\n    m_player1 = a1->m_player1;\n    v6 = a2->getPosition(a2);\n    cocos2d::CCPoint::CCPoint(&v9, v6);\n    cocos2d::CCPoint::operator=(&m_player1->m_lastPortalPos, v7, v8);\n    a1->m_player1->m_lastActivatedPortal = a2;\n    a1->m_gameState.m_lastActivatedPortal1 = a2;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::enterDualMode from 0x85a8c0 to 0x85a958 (152 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x5e4ffc\n; > <???> @ 0x4c3f8\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             X29, X30, [SP,#var_50]!                                ; +0x0, 0x85a8c0\nMOV             X29, SP                                                ; +0x4, 0x85a8c4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x85a8c8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x85a8cc\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x10, 0x85a8d0\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x85a8d4\nMOV             X22, X0                                                ; +0x18, 0x85a8d8\nMOV             X19, X1                                                ; +0x1c, 0x85a8dc\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x85a8e0\nLDR             X0, [X0]                                               ; +0x24, 0x85a8e4\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x28, 0x85a8e8\nCBZ             X1, loc_85A92C                                         ; +0x2c, 0x85a8ec\nLDR             X1, [X1]                                               ; +0x30, 0x85a8f0\nMOV             X0, X19                                                ; +0x34, 0x85a8f4\nLDR             X23, [X22,#0xDF8]                                      ; +0x38, 0x85a8f8\nADD             X21, X29, #0x50+var_10                                 ; +0x3c, 0x85a8fc\nLDR             X1, [X1,#0xC0]                                         ; +0x40, 0x85a900\nBLR             X1                                                     ; +0x44, 0x85a904\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x48, 0x85a908\nMOV             X0, X21; this                                          ; +0x4c, 0x85a90c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x50, 0x85a910\nADD             X0, X23, #0x9D8                                        ; +0x54, 0x85a914\nMOV             X1, X21                                                ; +0x58, 0x85a918\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x5c, 0x85a91c\nLDR             X0, [X22,#0xDF8]                                       ; +0x60, 0x85a920\nSTR             X19, [X0,#0xA50]                                       ; +0x64, 0x85a924\nSTR             X19, [X22,#0x3F0]                                      ; +0x68, 0x85a928\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x6c, 0x85a92c\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x70, 0x85a930\nLDR             X0, [X20]                                              ; +0x74, 0x85a934\nCMP             X1, X0                                                 ; +0x78, 0x85a938\nB.NE            loc_85A954                                             ; +0x7c, 0x85a93c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x80, 0x85a940\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x84, 0x85a944\nLDR             X23, [SP,#0x50+var_20]                                 ; +0x88, 0x85a948\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x8c, 0x85a94c\nRET                                                                    ; +0x90, 0x85a950\nBL              .__stack_chk_fail                                      ; +0x94, 0x85a954", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x5e4ffc", "<???> @ 0x4c3f8"], "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"}