{"type": "func", "start": 4295930896, "end": 4295931160, "name": "EditLevelLayer::onBack", "pseudocode": "// \n// EditLevelLayer::onBack from 0x1000eb410 to 0x1000eb518 (264 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::onDelete @ 0x1000ec094\n// > EditLevelLayer::keyBackClicked @ 0x1000ec484\n// > sub_1000EC488 @ 0x1000ec48c\n// > EditLevelLayer::init @ 0x1000e9d88\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 __fastcall EditLevelLayer::onBack(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // x19\n  GameLevelManager *v4; // x0\n  void **v5; // x1\n  cocos2d::CCScene *SearchScene; // x19\n  GJSearchObject *v7; // x0\n  cocos2d::CCDirector *v8; // x20\n  cocos2d::CCTransitionFade *v9; // x0\n  void *__p[2]; // [xsp+0h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-20h]\n\n  if ( !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning )\n  {\n    EditLevelLayer::closeTextInputs(a1);\n    EditLevelLayer::verifyLevelName(a1);\n    ((void (__fastcall *)(EditLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    v3 = GameLevelManager::sharedState();\n    v4 = GameLevelManager::sharedState();\n    if ( v4->m_searchKey.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    {\n      sub_1000097D0(__p, (void *)v4->m_searchKey.m_data.m_long.capacitym1, v4->m_searchKey.m_data.m_long.size);\n    }\n    else\n    {\n      *(_OWORD *)__p = *(_OWORD *)&v4->m_searchKey.m_data.m_short.sizex2;\n      longStorage = v4->m_searchKey.m_data.m_long.longStorage;\n    }\n    if ( SHIBYTE(longStorage) >= 0 )\n      v5 = __p;\n    else\n      v5 = (void **)__p[0];\n    SearchScene = GameLevelManager::getSearchScene(v3, (const char *)v5);\n    if ( SHIBYTE(longStorage) < 0 )\n      operator delete(__p[0]);\n    if ( GameLevelManager::sharedState()->m_returnToLocalLevels || !SearchScene )\n    {\n      GameLevelManager::sharedState()->m_returnToLocalLevels = 0;\n      v7 = GJSearchObject::create_2(MyLevels);\n      SearchScene = LevelBrowserLayer::scene(v7);\n    }\n    v8 = cocos2d::CCDirector::sharedDirector();\n    v9 = cocos2d::CCTransitionFade::create_1(0.5, SearchScene);\n    cocos2d::CCDirector::replaceScene(v8, v9);\n  }\n}", "assembly": "; \n; EditLevelLayer::onBack from 0x1000eb410 to 0x1000eb518 (264 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::onDelete @ 0x1000ec094\n; > EditLevelLayer::keyBackClicked @ 0x1000ec484\n; > sub_1000EC488 @ 0x1000ec48c\n; > EditLevelLayer::init @ 0x1000e9d88\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1000eb410\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000eb414\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000eb418\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000eb41c\nMOV             X19, X0                                                ; +0x10, 0x1000eb420\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x14, 0x1000eb424\nLDRB            W8, [X0,#0xA8]                                         ; +0x18, 0x1000eb428\nTBNZ            W8, #0, loc_1000EB508                                  ; +0x1c, 0x1000eb42c\nMOV             X0, X19                                                ; +0x20, 0x1000eb430\nBL              EditLevelLayer__closeTextInputs                        ; +0x24, 0x1000eb434\nMOV             X0, X19                                                ; +0x28, 0x1000eb438\nBL              EditLevelLayer__verifyLevelName                        ; +0x2c, 0x1000eb43c\nLDR             X8, [X19]                                              ; +0x30, 0x1000eb440\nLDR             X8, [X8,#0x420]                                        ; +0x34, 0x1000eb444\nMOV             X0, X19                                                ; +0x38, 0x1000eb448\nMOV             W1, #0                                                 ; +0x3c, 0x1000eb44c\nBLR             X8                                                     ; +0x40, 0x1000eb450\nBL              GameLevelManager__sharedState                          ; +0x44, 0x1000eb454\nMOV             X19, X0                                                ; +0x48, 0x1000eb458\nBL              GameLevelManager__sharedState                          ; +0x4c, 0x1000eb45c\nLDRSB           W8, [X0,#0x2A7]                                        ; +0x50, 0x1000eb460\nTBNZ            W8, #0x1F, loc_1000EB480                               ; +0x54, 0x1000eb464\nADD             X8, X0, #0x290                                         ; +0x58, 0x1000eb468\nLDR             Q0, [X8]                                               ; +0x5c, 0x1000eb46c\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x60, 0x1000eb470\nLDR             X8, [X8,#0x10]                                         ; +0x64, 0x1000eb474\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x68, 0x1000eb478\nB               loc_1000EB490                                          ; +0x6c, 0x1000eb47c\nLDR             X1, [X0,#0x290]; __src                                 ; +0x70, 0x1000eb480\nLDR             X2, [X0,#0x298]                                        ; +0x74, 0x1000eb484\nMOV             X0, SP; __dst                                          ; +0x78, 0x1000eb488\nBL              sub_1000097D0                                          ; +0x7c, 0x1000eb48c\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x80, 0x1000eb490\nLDR             X9, [SP,#0x30+__p]                                     ; +0x84, 0x1000eb494\nCMP             W8, #0                                                 ; +0x88, 0x1000eb498\nMOV             X8, SP                                                 ; +0x8c, 0x1000eb49c\nCSEL            X1, X9, X8, LT; __s                                    ; +0x90, 0x1000eb4a0\nMOV             X0, X19; int                                           ; +0x94, 0x1000eb4a4\nBL              GameLevelManager__getSearchScene                       ; +0x98, 0x1000eb4a8\nMOV             X19, X0                                                ; +0x9c, 0x1000eb4ac\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0xa0, 0x1000eb4b0\nTBZ             W8, #0x1F, loc_1000EB4C0                               ; +0xa4, 0x1000eb4b4\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0xa8, 0x1000eb4b8\nBL              __ZdlPv; operator delete(void *)                       ; +0xac, 0x1000eb4bc\nBL              GameLevelManager__sharedState                          ; +0xb0, 0x1000eb4c0\nLDRB            W8, [X0,#0x2C8]                                        ; +0xb4, 0x1000eb4c4\nTBNZ            W8, #0, loc_1000EB4D0                                  ; +0xb8, 0x1000eb4c8\nCBNZ            X19, loc_1000EB4E8                                     ; +0xbc, 0x1000eb4cc\nBL              GameLevelManager__sharedState                          ; +0xc0, 0x1000eb4d0\nSTRB            WZR, [X0,#0x2C8]                                       ; +0xc4, 0x1000eb4d4\nMOV             W0, #0x62 ; 'b'                                        ; +0xc8, 0x1000eb4d8\nBL              GJSearchObject__create_2                               ; +0xcc, 0x1000eb4dc\nBL              LevelBrowserLayer__scene                               ; +0xd0, 0x1000eb4e0\nMOV             X19, X0                                                ; +0xd4, 0x1000eb4e4\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xd8, 0x1000eb4e8\nMOV             X20, X0                                                ; +0xdc, 0x1000eb4ec\nFMOV            S0, #0.5                                               ; +0xe0, 0x1000eb4f0\nMOV             X0, X19                                                ; +0xe4, 0x1000eb4f4\nBL              cocos2d__CCTransitionFade__create_1                    ; +0xe8, 0x1000eb4f8\nMOV             X1, X0; lpsrc                                          ; +0xec, 0x1000eb4fc\nMOV             X0, X20; int                                           ; +0xf0, 0x1000eb500\nBL              cocos2d__CCDirector__replaceScene                      ; +0xf4, 0x1000eb504\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xf8, 0x1000eb508\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xfc, 0x1000eb50c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x100, 0x1000eb510\nRET                                                                    ; +0x104, 0x1000eb514", "xrefs": ["EditLevelLayer::onDelete @ 0x1000ec094", "EditLevelLayer::keyBackClicked @ 0x1000ec484", "sub_1000EC488 @ 0x1000ec48c", "EditLevelLayer::init @ 0x1000e9d88"], "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"}