// // EditLevelLayer::onBack from 0x1001dfaa0 to 0x1001dfbf9 (345 bytes) // // 5 xrefs: // > EditLevelLayer::onDelete @ 0x1001e0c58 // > EditLevelLayer::FLAlert_Clicked @ 0x1001e0cc8 // > EditLevelLayer::keyBackClicked @ 0x1001e1205 // > sub_1001E1210 @ 0x1001e121c // > EditLevelLayer::init @ 0x1001de0e9 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:26:27 +0000 // __int64 __fastcall EditLevelLayer::onBack(_QWORD *a1, __int64 a2, double a3) { __int64 result; // rax unsigned int v4; // r14d __int64 v5; // rax double v6; // xmm0_8 __int128 v7; // xmm0 __int64 v8; // rbx __int64 v9; // rax __int64 v10; // rax char *v11; // rsi __int64 v12; // rdi __int64 SearchScene; // rbx __int64 v14; // r14 char *v15; // rax __int128 v16; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] result = cocos2d::CCDirector::sharedDirector(a1, a2); if ( *(_BYTE *)(result + 176) ) return result; if ( (unsigned int)sub_1007FEF90(a1[60]) ) { v4 = 0; do { v5 = sub_1007FEFE0(a1[60], v4); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1160LL))(v5, 0); ++v4; } while ( v4 < (unsigned int)sub_1007FEF90(a1[60]) ); } v6 = EditLevelLayer::verifyLevelName(a1, a3); *(double *)&v7 = (*(double (__fastcall **)(_QWORD *, _QWORD, double))(*a1 + 1072LL))(a1, 0, v6); v8 = GameLevelManager::sharedState(*(double *)&v7); v9 = GameLevelManager::sharedState(*(double *)&v7); if ( (*(_BYTE *)(v9 + 1160) & 1) != 0 ) { sub_10001AD30(&v16, *(const void **)(v9 + 1176), *(_QWORD *)(v9 + 1168)); if ( (v16 & 1) == 0 ) goto LABEL_7; LABEL_9: v11 = (char *)__p; goto LABEL_10; } v10 = v9 + 1160; __p = *(void **)(v10 + 16); v7 = *(_OWORD *)v10; v16 = *(_OWORD *)v10; if ( (v16 & 1) != 0 ) goto LABEL_9; LABEL_7: v11 = (char *)&v16 + 1; LABEL_10: v12 = v8; SearchScene = GameLevelManager::getSearchScene(v8, v11); if ( (v16 & 1) != 0 ) { v12 = (__int64)__p; operator delete(__p); } if ( *(_BYTE *)(GameLevelManager::sharedState(*(double *)&v7) + 1216) || !SearchScene ) { *(_BYTE *)(GameLevelManager::sharedState(*(double *)&v7) + 1216) = 0; v12 = GJSearchObject::create_2(98); SearchScene = LevelBrowserLayer::scene(v12); } v14 = cocos2d::CCDirector::sharedDirector(v12, v11); v15 = cocos2d::CCTransitionFade::create_1(SearchScene, 0.5); return cocos2d::CCDirector::replaceScene(v14, v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source