// // sub_1001115F0 from 0x1001115f0 to 0x1001116f8 (264 bytes) // // 4 xrefs: // > sub_100112164 @ 0x1001121a0 // > EditLevelLayer::keyBackClicked @ 0x1001125f4 // > sub_1001125F8 @ 0x1001125fc // > EditLevelLayer::init @ 0x10010fe6c // // This function is hookable on this platform (idp: arm, 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 10:59:08 +0000 // __int64 __fastcall sub_1001115F0(__int64 a1) { __int64 result; // x0 int v3; // w19 __int64 v4; // x0 char *v5; // x1 __int64 v6; // x19 __int64 v7; // x0 char *v8; // x0 int v9; // w20 void *v10; // x0 void *__p[2]; // [xsp+0h] [xbp-30h] BYREF __int64 v12; // [xsp+10h] [xbp-20h] result = cocos2d::CCDirector::sharedDirector(a1); if ( (*(_BYTE *)(result + 176) & 1) == 0 ) { sub_100111734(a1); EditLevelLayer::verifyLevelName(a1); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); v3 = GameLevelManager::sharedState(); v4 = GameLevelManager::sharedState(); if ( *(char *)(v4 + 1183) < 0 ) { sub_1000097D0(__p, *(void **)(v4 + 1160), *(_QWORD *)(v4 + 1168)); } else { *(_OWORD *)__p = *(_OWORD *)(v4 + 1160); v12 = *(_QWORD *)(v4 + 1176); } if ( v12 >= 0 ) v5 = (char *)__p; else v5 = (char *)__p[0]; v6 = sub_1000ADF18(v3, v5); if ( SHIBYTE(v12) < 0 ) operator delete(__p[0]); v7 = GameLevelManager::sharedState(); if ( (*(_BYTE *)(v7 + 1216) & 1) != 0 || !v6 ) { *(_BYTE *)(GameLevelManager::sharedState() + 1216) = 0; v8 = GJSearchObject::create_2(98); v7 = LevelBrowserLayer::scene(v8); v6 = v7; } v9 = cocos2d::CCDirector::sharedDirector(v7); v10 = (void *)cocos2d::CCTransitionFade::create_1(v6, 0.5); return cocos2d::CCDirector::replaceScene(v9, v10); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source