{"type": "func", "start": 4296089632, "end": 4296089792, "name": "EditLevelLayer::playStep3", "pseudocode": "// \n// EditLevelLayer::playStep3 from 0x100112020 to 0x1001120c0 (160 bytes)\n// \n// 1 xrefs:\n// > EditLevelLayer::playStep2 @ 0x100111fc8\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 10:59:09 +0000\n// \n\n__int64 __fastcall EditLevelLayer::playStep3(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 PersistentCheckpoint; // x0\n  __int64 v4; // x20\n  __int64 v5; // x0\n  __int64 v6; // x0\n  int v7; // w19\n  void *v8; // x1\n\n  result = cocos2d::CCDirector::sharedDirector(a1);\n  if ( (*(_BYTE *)(result + 176) & 1) == 0 )\n  {\n    *(_DWORD *)(GameManager::sharedState(result) + 708) = 3;\n    PersistentCheckpoint = PlayLayer::scene(*(_QWORD *)(a1 + 472), 0);\n    v4 = PersistentCheckpoint;\n    if ( *(_BYTE *)(a1 + 536) == 1 )\n    {\n      v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)PersistentCheckpoint + 488LL))(PersistentCheckpoint);\n      v6 = sub_1002E75A0(v5, 0);\n      PersistentCheckpoint = PlayLayer::loadPersistentCheckpoint(v6, *(_QWORD *)(a1 + 472) + 1472LL);\n      *(_BYTE *)(a1 + 536) = 0;\n    }\n    v7 = cocos2d::CCDirector::sharedDirector(PersistentCheckpoint);\n    v8 = (void *)cocos2d::CCTransitionFade::create_1(v4, 0.5);\n    return cocos2d::CCDirector::replaceScene(v7, v8);\n  }\n  return result;\n}", "assembly": "; \n; EditLevelLayer::playStep3 from 0x100112020 to 0x1001120c0 (160 bytes)\n; \n; 1 xrefs:\n; > EditLevelLayer::playStep2 @ 0x100111fc8\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 10:59:09 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100112020\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100112024\nADD             X29, SP, #0x10                                         ; +0x8, 0x100112028\nMOV             X19, X0                                                ; +0xc, 0x10011202c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x10, 0x100112030\nLDRB            W8, [X0,#0xB0]                                         ; +0x14, 0x100112034\nTBZ             W8, #0, loc_100112048                                  ; +0x18, 0x100112038\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x1c, 0x10011203c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x20, 0x100112040\nRET                                                                    ; +0x24, 0x100112044\nBL              GameManager__sharedState                               ; +0x28, 0x100112048\nMOV             W8, #3                                                 ; +0x2c, 0x10011204c\nSTR             W8, [X0,#0x2C4]                                        ; +0x30, 0x100112050\nLDR             X0, [X19,#0x1D8]                                       ; +0x34, 0x100112054\nMOV             W1, #0                                                 ; +0x38, 0x100112058\nBL              PlayLayer__scene                                       ; +0x3c, 0x10011205c\nMOV             X20, X0                                                ; +0x40, 0x100112060\nLDRB            W8, [X19,#0x218]                                       ; +0x44, 0x100112064\nCMP             W8, #1                                                 ; +0x48, 0x100112068\nB.NE            loc_100112098                                          ; +0x4c, 0x10011206c\nLDR             X8, [X20]                                              ; +0x50, 0x100112070\nLDR             X8, [X8,#0x1E8]                                        ; +0x54, 0x100112074\nMOV             X0, X20                                                ; +0x58, 0x100112078\nBLR             X8                                                     ; +0x5c, 0x10011207c\nMOV             W1, #0                                                 ; +0x60, 0x100112080\nBL              sub_1002E75A0                                          ; +0x64, 0x100112084\nLDR             X8, [X19,#0x1D8]                                       ; +0x68, 0x100112088\nADD             X1, X8, #0x5C0                                         ; +0x6c, 0x10011208c\nBL              PlayLayer__loadPersistentCheckpoint                    ; +0x70, 0x100112090\nSTRB            WZR, [X19,#0x218]                                      ; +0x74, 0x100112094\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x78, 0x100112098\nMOV             X19, X0                                                ; +0x7c, 0x10011209c\nFMOV            S0, #0.5                                               ; +0x80, 0x1001120a0\nMOV             X0, X20                                                ; +0x84, 0x1001120a4\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x88, 0x1001120a8\nMOV             X1, X0; lpsrc                                          ; +0x8c, 0x1001120ac\nMOV             X0, X19; int                                           ; +0x90, 0x1001120b0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x94, 0x1001120b4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x98, 0x1001120b8\nB               cocos2d__CCDirector__replaceScene                      ; +0x9c, 0x1001120bc", "xrefs": ["EditLevelLayer::playStep2 @ 0x100111fc8"], "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"}