// // EditorSFXManager::createMyConfigFromLive from 0xcc38b0 to 0xcc3bf8 (840 bytes) // // 2 xrefs: // > EditorSoundBrowserLayer::setTextPopupClosed @ 0xccac8c // > @ 0x756e8 // // 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 13:06:19 +0000 // __int64 __fastcall EditorSFXManager::createMyConfigFromLive(__int64 a1, __int64 a2) { cocos2d::CCArray *v4; // x0 __int64 v5; // x0 _QWORD *v6; // x19 int v7; // w22 int i; // w21 cocos2d::CCArray **v9; // x20 __int64 v10; // x19 int v11; // w0 __int64 v12; // x0 size_t v13; // x1 __int64 *v14; // x0 __int64 *v15; // x0 char v16; // w0 __int64 *v17; // x0 cocos2d::CCObject *v19; // x0 __int64 v20; // [xsp+58h] [xbp+58h] BYREF size_t v21; // [xsp+60h] [xbp+60h] void *v22; // [xsp+68h] [xbp+68h] __int64 v23; // [xsp+70h] [xbp+70h] BYREF size_t v24; // [xsp+78h] [xbp+78h] void *v25; // [xsp+80h] [xbp+80h] __int64 v26; // [xsp+88h] [xbp+88h] BYREF size_t v27; // [xsp+90h] [xbp+90h] void *v28; // [xsp+98h] [xbp+98h] __int64 v29; // [xsp+A0h] [xbp+A0h] BYREF size_t v30; // [xsp+A8h] [xbp+A8h] void *v31; // [xsp+B0h] [xbp+B0h] v4 = *(cocos2d::CCArray **)(a1 + 152); if ( !v4 ) { v19 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); *(_QWORD *)(a1 + 152) = v19; cocos2d::CCObject::retain(v19); v4 = *(cocos2d::CCArray **)(a1 + 152); } if ( (unsigned int)cocos2d::CCArray::count(v4) > 0x31 ) return 0; EditorSFXManager::serializeCompressed((EditorSFXManager *)a1, &v20); if ( (v20 & 1) == 0 ) { v5 = (int)(unsigned __int8)v20 >> 1; if ( (_DWORD)v5 ) goto LABEL_6; return 0; } v5 = v21; if ( !v21 ) { v10 = 0; LABEL_34: operator delete(v22); return v10; } LABEL_6: v6 = *(_QWORD **)(a1 + 16); v7 = 0; for ( i = 0; v6; v6 = (_QWORD *)*v6 ) { v9 = (cocos2d::CCArray **)v6[3]; if ( v9 ) { v5 = (__int64)*v9; if ( *v9 ) { v5 = cocos2d::CCArray::count((cocos2d::CCArray *)v5); if ( (_DWORD)v5 ) { ++i; v5 = cocos2d::CCArray::count(*v9); v7 += v5; } } } } v10 = GJEditorSoundConfig::create((GJEditorSoundConfig *)v5); if ( v10 ) { v11 = *(_DWORD *)(a1 + 160); v23 = 0; *(_DWORD *)(a1 + 160) = v11 + 1; *(_DWORD *)(v10 + 320) = v11; *(_DWORD *)(v10 + 316) = 0; *(_BYTE *)(v10 + 324) = 1; v24 = 0; LOBYTE(v11) = *(_BYTE *)a2; v25 = nullptr; if ( (v11 & 1) != 0 ) { std::string::__init(&v23, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8)); } else { v12 = *(_QWORD *)a2; v13 = *(_QWORD *)(a2 + 8); v25 = *(void **)(a2 + 16); v23 = v12; v24 = v13; } v14 = (__int64 *)(v10 + 376); if ( (__int64 *)(v10 + 376) != &v23 ) { if ( (v23 & 1) != 0 ) std::string::assign(v14, v25, v24); else std::string::assign(v14, (char *)&v23 + 1, (unsigned __int8)v23 >> 1); } if ( (v23 & 1) != 0 ) operator delete(v25); v26 = 0; v27 = 0; v28 = nullptr; std::string::__init(&v26, &byte_11B8890, 0); v15 = (__int64 *)(v10 + 400); if ( (__int64 *)(v10 + 400) != &v26 ) { if ( (v26 & 1) != 0 ) std::string::assign(v15, v28, v27); else std::string::assign(v15, (char *)&v26 + 1, (unsigned __int8)v26 >> 1); } if ( (v26 & 1) != 0 ) operator delete(v28); v16 = v20; *(_DWORD *)(v10 + 332) = 0; *(_DWORD *)(v10 + 328) = 1; *(_DWORD *)(v10 + 336) = 0; *(_DWORD *)(v10 + 352) = i; *(_DWORD *)(v10 + 356) = v7; v29 = 0; v30 = 0; v31 = nullptr; if ( (v16 & 1) != 0 ) { std::string::__init(&v29, v22, v21); } else { v31 = v22; v29 = v20; v30 = v21; } v17 = (__int64 *)(v10 + 472); if ( (__int64 *)(v10 + 472) != &v29 ) { if ( (v29 & 1) != 0 ) std::string::assign(v17, v31, v30); else std::string::assign(v17, (char *)&v29 + 1, (unsigned __int8)v29 >> 1); } if ( (v29 & 1) != 0 ) operator delete(v31); *(_DWORD *)(v10 + 364) = 0; *(_BYTE *)(v10 + 496) = 1; *(_DWORD *)(v10 + 368) = 0; cocos2d::CCArray::insertObject(*(cocos2d::CCArray **)(a1 + 152), (cocos2d::CCObject *)v10, 0); } else { v10 = 0; } if ( (v20 & 1) != 0 ) goto LABEL_34; return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source