{"type": "func", "start": 4650488, "end": 4650572, "name": "GJBaseGameLayer::enterDualMode", "pseudocode": "// \n// GJBaseGameLayer::enterDualMode from 0x46f5f8 to 0x46f64c (84 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x31f68a\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; // r8\n  const cocos2d::CCPoint *v6; // r0\n  int v7; // r2\n  bool v8; // r3\n  cocos2d::CCPoint v9; // [sp+4h] [bp+0h] BYREF\n\n  LODWORD(v9.x) = a2;\n  LODWORD(v9.y) = a3;\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=((PlayerObject *)&m_player1->m_lastPortalPos, COERCE_FLOAT(&v9), v7, v8);\n    a1->m_player1->m_lastActivatedPortal = a2;\n    a1->m_gameState.m_lastActivatedPortal1 = a2;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::enterDualMode from 0x46f5f8 to 0x46f64c (84 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x31f68a\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.W          {R0-R8,LR}                                             ; +0x0, 0x46f5f8\nMOV             R6, R0                                                 ; +0x4, 0x46f5fc\nLDR             R3, =(__stack_chk_guard_ptr - 0x46F606)                ; +0x6, 0x46f5fe\nMOV             R5, R1                                                 ; +0x8, 0x46f600\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xa, 0x46f602\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xc, 0x46f604\nLDR             R2, [R3]                                               ; +0xe, 0x46f606\nMOV             R4, R3                                                 ; +0x10, 0x46f608\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x12, 0x46f60a\nCBZ             R1, loc_46F63A                                         ; +0x14, 0x46f60c\nLDR             R3, [R1]                                               ; +0x16, 0x46f60e\nADD             R7, SP, #4                                             ; +0x18, 0x46f610\nLDR.W           R8, [R0,#0x8B8]                                        ; +0x1a, 0x46f612\nMOV             R0, R1                                                 ; +0x1e, 0x46f616\nLDR             R3, [R3,#0x60]                                         ; +0x20, 0x46f618\nBLX             R3                                                     ; +0x22, 0x46f61a\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x24, 0x46f61c\nMOV             R0, R7; this                                           ; +0x26, 0x46f61e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x28, 0x46f620\nADD.W           R0, R8, #0x7F8                                         ; +0x2c, 0x46f624\nMOV             R1, R7                                                 ; +0x30, 0x46f628\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x32, 0x46f62a\nLDR.W           R3, [R6,#0x8B8]                                        ; +0x36, 0x46f62e\nSTR.W           R5, [R3,#0x84C]                                        ; +0x3a, 0x46f632\nSTR.W           R5, [R6,#0x358]                                        ; +0x3e, 0x46f636\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x42, 0x46f63a\nLDR             R3, [R4]                                               ; +0x44, 0x46f63c\nCMP             R2, R3                                                 ; +0x46, 0x46f63e\nBEQ             loc_46F646                                             ; +0x48, 0x46f640\nBLX             __stack_chk_fail                                       ; +0x4a, 0x46f642\nADD             SP, SP, #0x10                                          ; +0x4e, 0x46f646\nPOP.W           {R4-R8,PC}                                             ; +0x50, 0x46f648", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x31f68a"], "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"}