// // GameLevelManager::onGetEditorSoundsCompleted from 0x848f40 to 0x849368 (1064 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85b248 // > @ 0xee1f8 // // 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 12:55:22 +0000 // __int64 __fastcall GameLevelManager::onGetEditorSoundsCompleted(GameLevelManager *this, __int64 a2, char *a3) { char *v5; // x19 _BOOL4 v6; // w24 const char *v7; // x1 size_t v8; // x0 cocos2d::CCArray *v9; // x23 __int64 v10; // x0 cocos2d::CCString *v12; // x0 const char *CString; // x0 size_t v14; // x0 cocos2d::CCString *v15; // x0 size_t v16; // x0 cocos2d::CCString *v17; // x0 size_t v18; // x0 cocos2d::CCObject *EditorSoundConfigs; // x23 void (__fastcall ***v20)(_QWORD, cocos2d::CCObject *, char *); // x0 char *v21; // [xsp+58h] [xbp+58h] char *v22; // [xsp+58h] [xbp+58h] char *v23; // [xsp+58h] [xbp+58h] char *v24; // [xsp+58h] [xbp+58h] __int64 v25; // [xsp+68h] [xbp+68h] BYREF size_t v26; // [xsp+70h] [xbp+70h] void *v27; // [xsp+78h] [xbp+78h] __int64 v28; // [xsp+80h] [xbp+80h] BYREF size_t v29; // [xsp+88h] [xbp+88h] void *v30; // [xsp+90h] [xbp+90h] __int64 v31; // [xsp+98h] [xbp+98h] BYREF size_t v32; // [xsp+A0h] [xbp+A0h] void *v33; // [xsp+A8h] [xbp+A8h] __int64 v34; // [xsp+B0h] [xbp+B0h] BYREF size_t v35; // [xsp+B8h] [xbp+B8h] void *v36; // [xsp+C0h] [xbp+C0h] __int64 v37; // [xsp+C8h] [xbp+C8h] BYREF size_t v38; // [xsp+D0h] [xbp+D0h] void *v39; // [xsp+D8h] [xbp+D8h] __int64 v40; // [xsp+E0h] [xbp+E0h] BYREF size_t v41; // [xsp+E8h] [xbp+E8h] void *v42; // [xsp+F0h] [xbp+F0h] v5 = a3 + 1; if ( (*a3 & 1) != 0 ) v5 = *((char **)a3 + 2); GameLevelManager::removeDLFromActive(this, v5); v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, &word_117CE08, 2u); v6 = sub_7FEA60(a2, (__int64)&v40); if ( (v40 & 1) != 0 ) operator delete(v42); if ( v6 ) goto LABEL_10; v7 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v7 = *(const char **)(a2 + 16); v21 = (char *)v7; v40 = 0; v41 = 0; v42 = nullptr; v8 = strlen(v7); std::string::__init(&v40, v21, v8); v9 = sub_80CFCC((unsigned __int8 *)&v40, "#"); if ( (v40 & 1) != 0 ) { operator delete(v42); if ( (unsigned int)cocos2d::CCArray::count(v9) <= 2 ) { LABEL_10: v10 = *((_QWORD *)this + 166); if ( v10 ) (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v10 + 8LL))(v10, v5); return _stack_chk_guard; } } else if ( (unsigned int)cocos2d::CCArray::count(v9) <= 2 ) { goto LABEL_10; } v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 0); CString = (const char *)cocos2d::CCString::getCString(v12); v25 = 0; v22 = (char *)CString; v26 = 0; v27 = nullptr; v14 = strlen(CString); std::string::__init(&v25, v22, v14); v15 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 1u); v23 = (char *)cocos2d::CCString::getCString(v15); v28 = 0; v29 = 0; v30 = nullptr; v16 = strlen(v23); std::string::__init(&v28, v23, v16); v17 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 2u); v24 = (char *)cocos2d::CCString::getCString(v17); v31 = 0; v32 = 0; v33 = nullptr; v18 = strlen(v24); std::string::__init(&v31, v24, v18); v34 = 0; v35 = 0; v36 = nullptr; if ( (v28 & 1) != 0 ) { std::string::__init(&v34, v30, v29); } else { v34 = v28; v35 = v29; v36 = v30; } GameLevelManager::storeUserNames(this, (unsigned __int8 *)&v34); if ( (v34 & 1) != 0 ) operator delete(v36); v37 = 0; v38 = 0; v39 = nullptr; if ( (v25 & 1) != 0 ) { std::string::__init(&v37, v27, v26); } else { v39 = v27; v37 = v25; v38 = v26; } EditorSoundConfigs = GameLevelManager::createAndGetEditorSoundConfigs((__int64)this, (char *)&v37); if ( (v37 & 1) != 0 ) operator delete(v39); v40 = 0; v41 = 0; v42 = nullptr; if ( (v31 & 1) != 0 ) { std::string::__init(&v40, v33, v32); } else { v42 = v33; v40 = v31; v41 = v32; } GameLevelManager::storeSearchResult(this, EditorSoundConfigs, (__int64)&v40, v5); if ( (v40 & 1) != 0 ) operator delete(v42); v20 = *((void (__fastcall ****)(_QWORD, cocos2d::CCObject *, char *))this + 166); if ( v20 ) (**v20)(v20, EditorSoundConfigs, v5); if ( (v31 & 1) != 0 ) operator delete(v33); if ( (v28 & 1) != 0 ) operator delete(v30); if ( (v25 & 1) != 0 ) operator delete(v27); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source