// // EditLevelLayer::onBack from 0x1400d9610 to 0x1400d97b3 (419 bytes) // // 4 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x1400d8cd3 // > EditLevelLayer::keyBackClicked @ 0x1400d9aa9 // > EditLevelLayer::init @ 0x1400d64c5 // > @ 0x1406c8880 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=5 void EditLevelLayer::onBack(EditLevelLayer *a1, cocos2d::CCObject *a2) { struct cocos2d::CCScene *v3; // rbx __int64 v4; // rdx const char *v5; // rdi GJSearchObject *v6; // rax __int64 v7; // rax GJSearchObject *v8; // rax struct cocos2d::CCTransitionFade *v9; // rbx __int64 v10; // rcx cocos2d::CCDirector *v11; // rax void *v12; // [rsp+20h] [rbp-38h] void *v13; // [rsp+20h] [rbp-38h] void *v14; // [rsp+20h] [rbp-38h] _QWORD v15[4]; // [rsp+28h] [rbp-30h] BYREF v3 = nullptr; if ( !*(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1) + 168) ) { EditLevelLayer::closeTextInputs(a1); EditLevelLayer::verifyLevelName(a1); a1->setKeypadEnabled(a1, 0); v4 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v12 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v4 = qword_1406C2EC0; } sub_14003BDB0((__int64)v15, v4 + 640); v5 = (const char *)v15; if ( v15[3] > 0xFu ) v5 = (const char *)v15[0]; if ( !qword_1406C2EC0 ) { v13 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); } v6 = GJSearchObject::createFromKey(v5); if ( v6 ) v3 = LevelBrowserLayer::scene(v6); sub_14003A830((__int64)v15); v7 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v14 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v7 = qword_1406C2EC0; } if ( *(_BYTE *)(v7 + 712) || !v3 ) { *(_BYTE *)(v7 + 712) = 0; v8 = GJSearchObject::create_2(MyLevels); v3 = LevelBrowserLayer::scene(v8); } v9 = cocos2d::CCTransitionFade::create(0.5, v3); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::replaceScene(v11, v9); } }