// // EditorSFXManager::dataLoaded from 0x1004ca6ac to 0x1004ca9c4 (792 bytes) // // 1 xrefs: // > GameManager::dataLoaded @ 0x1003b8f50 // // 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 11:06:25 +0000 // void __fastcall EditorSFXManager::dataLoaded(__int64 a1, __int64 a2) { int IntegerForKey; // w21 int v5; // w23 int v6; // w22 int v7; // w0 int v8; // w8 int v9; // w24 __int64 v10; // x0 _BOOL4 v11; // w8 std::string::size_type size; // x8 __int64 v13; // x0 int i; // w25 void *v15; // x0 char *CString; // x0 std::string *v17; // x1 __int64 v18; // x0 __int64 v19; // x0 int j; // w24 void *v21; // x0 char *v22; // x0 std::string *v23; // x1 __int64 v24; // x0 int v25; // w0 int v26; // w8 float FloatForKey; // s0 float v28; // s1 __int64 v29; // x0 std::string v30; // [xsp+8h] [xbp-78h] BYREF std::string __p; // [xsp+20h] [xbp-60h] BYREF if ( a2 ) { IntegerForKey = DS_Dictionary::getIntegerForKey(a2, "editorSFXVersion"); memset(&__p, 0, sizeof(__p)); if ( IntegerForKey >= 1 ) { DS_Dictionary::getStringForKey(a2, "editorSFX", &v30); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p = v30; } v5 = DS_Dictionary::getIntegerForKey(a2, "editorSFXFavoriteCount"); v6 = DS_Dictionary::getIntegerForKey(a2, "editorSFXMyCount"); v7 = sub_1004CAA20(&__p); if ( v5 > 0 ) v8 = 1; else v8 = v7; if ( v6 > 0 ) v9 = 1; else v9 = v8; if ( *(_QWORD *)(a1 + 24) || (sub_1004CAA20(a1 + 168) & 1) != 0 || (v10 = *(_QWORD *)(a1 + 144)) != 0 && (unsigned int)sub_1002E757C(v10) ) { v11 = 0; } else { v29 = *(_QWORD *)(a1 + 152); if ( !v29 ) goto LABEL_18; v11 = sub_1002E757C(v29) == 0; } if ( ((v9 | v11) & 1) == 0 ) { LABEL_63: if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); return; } LABEL_18: EditorSFXManager::clearAll((_QWORD *)a1); if ( *(char *)(a1 + 191) < 0 ) { **(_BYTE **)(a1 + 168) = 0; *(_QWORD *)(a1 + 176) = 0; } else { *(_BYTE *)(a1 + 168) = 0; *(_BYTE *)(a1 + 191) = 0; } size = HIBYTE(__p.__r_.__value_.__r.__words[2]); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = __p.__r_.__value_.__l.__size_; if ( size ) std::string::operator=((std::string *)(a1 + 168), &__p); v13 = *(_QWORD *)(a1 + 144); if ( v13 ) sub_1002E7674(v13); if ( v5 >= 1 ) { for ( i = 0; i != v5; ++i ) { v15 = sub_1003065B0("editorSFXFavorite_%d", i); CString = (char *)cocos2d::CCString::getCString((__int64)v15); sub_100009900(&v30, CString); if ( (v30.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v17 = &v30; else v17 = (std::string *)v30.__r_.__value_.__r.__words[0]; if ( (unsigned int)DS_Dictionary::stepIntoSubDictWithKey(a2, (const char *)v17) ) { if ( GJEditorSoundConfig::createWithCoder(a2) ) { v18 = *(_QWORD *)(a1 + 144); if ( v18 ) sub_1002E74E0(v18); } sub_1001EA32C(a2); } if ( SHIBYTE(v30.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v30.__r_.__value_.__l.__data_); } } v19 = *(_QWORD *)(a1 + 152); if ( v19 ) sub_1002E7674(v19); if ( v6 >= 1 ) { for ( j = 0; j != v6; ++j ) { v21 = sub_1003065B0("editorSFXMy_%d", j); v22 = (char *)cocos2d::CCString::getCString((__int64)v21); sub_100009900(&v30, v22); if ( (v30.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v23 = &v30; else v23 = (std::string *)v30.__r_.__value_.__r.__words[0]; if ( (unsigned int)DS_Dictionary::stepIntoSubDictWithKey(a2, (const char *)v23) ) { if ( GJEditorSoundConfig::createWithCoder(a2) ) { v24 = *(_QWORD *)(a1 + 152); if ( v24 ) sub_1002E74E0(v24); } sub_1001EA32C(a2); } if ( SHIBYTE(v30.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v30.__r_.__value_.__l.__data_); } } v25 = DS_Dictionary::getIntegerForKey(a2, "editorSFXNextLocalID"); if ( v25 <= 1 ) v26 = 1; else v26 = v25; *(_DWORD *)(a1 + 160) = v26; *(_DWORD *)(a1 + 192) = 1065353216; if ( IntegerForKey > 0 ) { FloatForKey = DS_Dictionary::getFloatForKey(a2, "editorSFXGlobalVolume"); v28 = 0.0; if ( FloatForKey >= 0.0 ) { v28 = FloatForKey; if ( FloatForKey > 1.0 ) v28 = 1.0; } *(float *)(a1 + 192) = v28; } goto LABEL_63; } }