// // EditorSFXManager::createMyConfigFromLive from 0x77f580 to 0x77f6e2 (354 bytes) // // 1 xrefs: // > EditorSoundBrowserLayer::setTextPopupClosed @ 0x7836c0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:59:27 +0000 // int __fastcall EditorSFXManager::createMyConfigFromLive(int a1, int a2) { cocos2d::CCObject *v4; // r0 EditorSFXManager *v5; // r0 int v6; // r3 int v7; // r4 _DWORD *v8; // r4 int v9; // r7 int v10; // r10 cocos2d::CCArray **v11; // r11 int v12; // r0 int v13; // r3 _BYTE v15[4]; // [sp+4h] [bp-38h] BYREF int v16; // [sp+8h] [bp-34h] int v17[3]; // [sp+10h] [bp-2Ch] BYREF int v18[3]; // [sp+1Ch] [bp-20h] BYREF int v19[3]; // [sp+28h] [bp-14h] BYREF if ( !*(_DWORD *)(a1 + 76) ) { v4 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); *(_DWORD *)(a1 + 76) = v4; cocos2d::CCObject::retain(v4); } if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 76)) > 0x31u ) return 0; v5 = EditorSFXManager::serializeCompressed((EditorSFXManager *)v15, a1); if ( (v15[0] & 1) != 0 ) v6 = v16; else v6 = (int)v15[0] >> 1; if ( !v6 ) goto LABEL_8; v8 = *(_DWORD **)(a1 + 8); v9 = 0; v10 = 0; while ( v8 ) { v11 = (cocos2d::CCArray **)v8[3]; if ( v11 ) { v5 = *v11; if ( *v11 ) { v5 = (EditorSFXManager *)cocos2d::CCArray::count(v5); if ( v5 ) { ++v10; v5 = (EditorSFXManager *)cocos2d::CCArray::count(*v11); v9 += (int)v5; } } } v8 = (_DWORD *)*v8; } v12 = GJEditorSoundConfig::create(v5); v7 = v12; if ( v12 ) { v13 = *(_DWORD *)(a1 + 80); *(_DWORD *)(a1 + 80) = v13 + 1; *(_DWORD *)(v12 + 268) = v13; *(_BYTE *)(v12 + 272) = 1; *(_DWORD *)(v12 + 264) = 0; std::string::basic_string(v17, a2); std::string::operator=((unsigned __int8 *)(v7 + 324), (unsigned __int8 *)v17); std::string::~string((int)v17); memset(v18, 0, sizeof(v18)); std::string::__init(v18, &unk_B6B226, 0); std::string::operator=((unsigned __int8 *)(v7 + 336), (unsigned __int8 *)v18); std::string::~string((int)v18); *(_DWORD *)(v7 + 304) = v9; *(_DWORD *)(v7 + 300) = v10; *(_DWORD *)(v7 + 276) = 1; *(_DWORD *)(v7 + 280) = 0; *(_DWORD *)(v7 + 284) = 0; std::string::basic_string(v19, (int)v15); std::string::operator=((unsigned __int8 *)(v7 + 372), (unsigned __int8 *)v19); std::string::~string((int)v19); *(_DWORD *)(v7 + 312) = 0; *(_BYTE *)(v7 + 384) = 1; *(_DWORD *)(v7 + 316) = 0; cocos2d::CCArray::insertObject(*(cocos2d::CCArray **)(a1 + 76), (cocos2d::CCObject *)v7, 0); } else { LABEL_8: v7 = 0; } std::string::~string((int)v15); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source