{"type": "func", "start": 4846808, "end": 4846910, "name": "EditLevelLayer::playStep3", "pseudocode": "// \n// EditLevelLayer::playStep3 from 0x49f4d8 to 0x49f53e (102 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:48 +0000\n// \n\nunsigned __int8 *__fastcall EditLevelLayer::playStep3(PlayLayer **this)\n{\n  unsigned __int8 *result; // r0\n  unsigned int v3; // r5\n  bool v4; // r2\n  cocos2d::CCDirector *PersistentCheckpoint; // r0\n  float v6; // r6\n  cocos2d::CCArray *v7; // r0\n  int v8; // r0\n  cocos2d::CCDirector *v9; // r4\n  cocos2d::CCScene *v10; // r2\n  cocos2d::CCScene *v11; // r1\n\n  result = (unsigned __int8 *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);\n  v3 = result[140];\n  if ( !result[140] )\n  {\n    *(_DWORD *)(GameManager::sharedState((GameManager *)result) + 508) = 3;\n    PersistentCheckpoint = PlayLayer::scene(*(this + 87), (GJGameLevel *)v3, v4);\n    v6 = *(float *)&PersistentCheckpoint;\n    if ( *((_BYTE *)this + 384) )\n    {\n      v7 = (cocos2d::CCArray *)(*(int (__fastcall **)(cocos2d::CCDirector *))(*(_DWORD *)PersistentCheckpoint + 244))(PersistentCheckpoint);\n      v8 = cocos2d::CCArray::objectAtIndex(v7, v3);\n      PersistentCheckpoint = (cocos2d::CCDirector *)PlayLayer::loadPersistentCheckpoint(v8, (int)*(this + 87) + 1148);\n      *((_BYTE *)this + 384) = v3;\n    }\n    v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(PersistentCheckpoint);\n    v11 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, v6, v10);\n    return (unsigned __int8 *)cocos2d::CCDirector::replaceScene(v9, v11);\n  }\n  return result;\n}", "assembly": "; \n; EditLevelLayer::playStep3 from 0x49f4d8 to 0x49f53e (102 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:48 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x49f4d8\nMOV             R4, R0                                                 ; +0x2, 0x49f4da\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4, 0x49f4dc\nLDRB.W          R5, [R0,#0x8C]                                         ; +0x8, 0x49f4e0\nCBNZ            R5, locret_49F53C                                      ; +0xc, 0x49f4e4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xe, 0x49f4e6\nMOVS            R3, #3                                                 ; +0x12, 0x49f4ea\nMOV             R1, R5; GJGameLevel *                                  ; +0x14, 0x49f4ec\nSTR.W           R3, [R0,#0x1FC]                                        ; +0x16, 0x49f4ee\nLDR.W           R0, [R4,#0x15C]; this                                  ; +0x1a, 0x49f4f2\nBL              _ZN9PlayLayer5sceneEP11GJGameLevelb; PlayLayer::scene(GJGameLevel *,bool) ; +0x1e, 0x49f4f6\nLDRB.W          R3, [R4,#0x180]                                        ; +0x22, 0x49f4fa\nMOV             R6, R0                                                 ; +0x26, 0x49f4fe\nCBZ             R3, loc_49F520                                         ; +0x28, 0x49f500\nLDR             R3, [R0]                                               ; +0x2a, 0x49f502\nLDR.W           R3, [R3,#0xF4]                                         ; +0x2c, 0x49f504\nBLX             R3                                                     ; +0x30, 0x49f508\nMOV             R1, R5; unsigned int                                   ; +0x32, 0x49f50a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x49f50c\nLDR.W           R1, [R4,#0x15C]                                        ; +0x38, 0x49f510\nADDW            R1, R1, #0x47C                                         ; +0x3c, 0x49f514\nBL              _ZN9PlayLayer24loadPersistentCheckpointERNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; PlayLayer::loadPersistentCheckpoint(std::string &) ; +0x40, 0x49f518\nSTRB.W          R5, [R4,#0x180]                                        ; +0x44, 0x49f51c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x48, 0x49f520\nMOV             R1, R6; float                                          ; +0x4c, 0x49f524\nMOV             R4, R0                                                 ; +0x4e, 0x49f526\nMOV.W           R0, #0x3F000000; this                                  ; +0x50, 0x49f528\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x54, 0x49f52c\nMOV             R1, R0; lpsrc                                          ; +0x58, 0x49f530\nMOV             R0, R4; this                                           ; +0x5a, 0x49f532\nPOP.W           {R4-R6,LR}                                             ; +0x5c, 0x49f534\nB.W             _ZN7cocos2d10CCDirector12replaceSceneEPNS_7CCSceneE; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x60, 0x49f538\nPOP             {R4-R6,PC}                                             ; +0x64, 0x49f53c", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}