{"type": "func", "start": 8312312, "end": 8312468, "name": "EditLevelLayer::playStep3", "pseudocode": "// \n// EditLevelLayer::playStep3 from 0x7ed5f8 to 0x7ed694 (156 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x63bb0\n// > EditLevelLayer::playStep2 @ 0x7ed4d8\n// > <???> @ 0x1542668\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 12:54:33 +0000\n// \n\n__int64 __fastcall EditLevelLayer::playStep3(PlayLayer **this)\n{\n  __int64 result; // x0\n  cocos2d::CCDirector *PersistentCheckpoint; // x0\n  cocos2d::CCTransitionFade *v4; // x20\n  cocos2d::CCDirector *v5; // x19\n  cocos2d::CCScene *v6; // x1\n  cocos2d::CCScene *v7; // x0\n  cocos2d::CCArray *v8; // x0\n  __int64 v9; // x0\n\n  result = *(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this) + 176);\n  if ( !(_DWORD)result )\n  {\n    *(_DWORD *)(GameManager::sharedState((GameManager *)result) + 708) = 3;\n    PersistentCheckpoint = PlayLayer::scene(*(this + 59), nullptr);\n    v4 = PersistentCheckpoint;\n    if ( *((_BYTE *)this + 536) )\n    {\n      v8 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCDirector *))(*(_QWORD *)PersistentCheckpoint + 488LL))(PersistentCheckpoint);\n      v9 = cocos2d::CCArray::objectAtIndex(v8, 0);\n      PersistentCheckpoint = (cocos2d::CCDirector *)PlayLayer::loadPersistentCheckpoint(\n                                                      v9,\n                                                      (__int64)*(this + 59) + 1472);\n      *((_BYTE *)this + 536) = 0;\n    }\n    v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(PersistentCheckpoint);\n    v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v4, 0.5, v6);\n    return cocos2d::CCDirector::replaceScene(v5, v7);\n  }\n  return result;\n}", "assembly": "; \n; EditLevelLayer::playStep3 from 0x7ed5f8 to 0x7ed694 (156 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x63bb0\n; > EditLevelLayer::playStep2 @ 0x7ed4d8\n; > <???> @ 0x1542668\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 12:54:33 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x7ed5f8\nMOV             X29, SP                                                ; +0x4, 0x7ed5fc\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x7ed600\nMOV             X19, X0                                                ; +0xc, 0x7ed604\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x7ed608\nLDRB            W0, [X0,#0xB0]; this                                   ; +0x14, 0x7ed60c\nCBZ             W0, loc_7ED620                                         ; +0x18, 0x7ed610\nLDP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0x7ed614\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x20, 0x7ed618\nRET                                                                    ; +0x24, 0x7ed61c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x7ed620\nMOV             W1, #3                                                 ; +0x2c, 0x7ed624\nSTR             W1, [X0,#0x2C4]                                        ; +0x30, 0x7ed628\nMOV             W1, #0; GJGameLevel *                                  ; +0x34, 0x7ed62c\nLDR             X0, [X19,#0x1D8]; this                                 ; +0x38, 0x7ed630\nBL              _ZN9PlayLayer5sceneEP11GJGameLevelb; PlayLayer::scene(GJGameLevel *,bool) ; +0x3c, 0x7ed634\nMOV             X20, X0                                                ; +0x40, 0x7ed638\nLDRB            W1, [X19,#0x218]                                       ; +0x44, 0x7ed63c\nCBNZ            W1, loc_7ED66C                                         ; +0x48, 0x7ed640\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4c, 0x7ed644\nMOV             X19, X0                                                ; +0x50, 0x7ed648\nFMOV            S0, #0.5; float                                        ; +0x54, 0x7ed64c\nMOV             X0, X20; this                                          ; +0x58, 0x7ed650\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x5c, 0x7ed654\nMOV             X1, X0; lpsrc                                          ; +0x60, 0x7ed658\nMOV             X0, X19; this                                          ; +0x64, 0x7ed65c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x68, 0x7ed660\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x6c, 0x7ed664\nB               _ZN7cocos2d10CCDirector12replaceSceneEPNS_7CCSceneE; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x70, 0x7ed668\nLDR             X1, [X0]                                               ; +0x74, 0x7ed66c\nLDR             X1, [X1,#0x1E8]                                        ; +0x78, 0x7ed670\nBLR             X1                                                     ; +0x7c, 0x7ed674\nMOV             W1, #0; unsigned int                                   ; +0x80, 0x7ed678\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x84, 0x7ed67c\nLDR             X1, [X19,#0x1D8]                                       ; +0x88, 0x7ed680\nADD             X1, X1, #0x5C0                                         ; +0x8c, 0x7ed684\nBL              _ZN9PlayLayer24loadPersistentCheckpointERNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; PlayLayer::loadPersistentCheckpoint(std::string &) ; +0x90, 0x7ed688\nSTRB            WZR, [X19,#0x218]                                      ; +0x94, 0x7ed68c\nB               loc_7ED644                                             ; +0x98, 0x7ed690", "xrefs": ["<???> @ 0x63bb0", "EditLevelLayer::playStep2 @ 0x7ed4d8", "<???> @ 0x1542668"], "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"}