// // EditorSoundConfigInfoLayer::soundPackDescSaved from 0x1004d2fcc to 0x1004d31a0 (468 bytes) // // 2 xrefs: // > sub_1004D3214 @ 0x1004d3218 // > @ 0x1009890b8 // // 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:29 +0000 // void __fastcall EditorSoundConfigInfoLayer::soundPackDescSaved(__int64 a1, __int64 a2, __int64 a3) { __int64 v3; // x21 __int64 v6; // x21 __int64 v7; // x21 __int64 v8; // x8 int v9; // w22 _BOOL4 v10; // w0 _BOOL4 v11; // w20 __int64 v12; // x8 char *v13; // x0 void *v14[2]; // [xsp+8h] [xbp-A8h] BYREF char v15; // [xsp+1Fh] [xbp-91h] void *__p[2]; // [xsp+20h] [xbp-90h] BYREF __int64 v17; // [xsp+30h] [xbp-80h] std::string v18; // [xsp+40h] [xbp-70h] BYREF __n128 __dst; // [xsp+60h] [xbp-50h] BYREF __int64 v20; // [xsp+70h] [xbp-40h] std::string __str; // [xsp+78h] [xbp-38h] BYREF v3 = *(_QWORD *)(a1 + 1088); if ( v3 ) { if ( *(char *)(a2 + 23) < 0 ) { sub_1000097D0(&__dst, *(void **)a2, *(_QWORD *)(a2 + 8)); } else { __dst = *(__n128 *)a2; v20 = *(_QWORD *)(a2 + 16); } LevelTools::base64EncodeString(&__dst, (__n128 *)&__str); std::string::operator=((std::string *)(v3 + 400), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( SHIBYTE(v20) < 0 ) operator delete((void *)__dst.n128_u64[0]); v6 = *(_QWORD *)(a1 + 1088); if ( *(char *)(a3 + 23) < 0 ) sub_1000097D0(&v18, *(void **)a3, *(_QWORD *)(a3 + 8)); else v18 = *(std::string *)a3; std::string::operator=((std::string *)(v6 + 424), &v18); if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v18.__r_.__value_.__l.__data_); if ( (unsigned int)sub_1004D27CC(a1) && *(int *)(*(_QWORD *)(a1 + 1088) + 316LL) >= 1 && *(_DWORD *)(a1 + 1096) != 2 ) { *(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 1064; v7 = GameLevelManager::sharedState(); v8 = *(_QWORD *)(a1 + 1088); v9 = *(_DWORD *)(v8 + 316); if ( *(char *)(v8 + 423) < 0 ) { sub_1000097D0(__p, *(void **)(v8 + 400), *(_QWORD *)(v8 + 408)); } else { *(_OWORD *)__p = *(_OWORD *)(v8 + 400); v17 = *(_QWORD *)(v8 + 416); } v10 = sub_1000B8720(v7, v9, (const char *)__p, (const char *)a3); v11 = v10; if ( SHIBYTE(v17) < 0 ) { operator delete(__p[0]); if ( !v11 ) return; } else if ( !v10 ) { return; } v12 = *(_QWORD *)(a1 + 1200); if ( v12 ) { *(_QWORD *)(v12 + 664) = 0; *(_QWORD *)(a1 + 1200) = 0; } sub_100009900(v14, "Updating description..."); v13 = UploadActionPopup::create(a1 + 1072, (__int64)v14); *(_QWORD *)(a1 + 1200) = v13; if ( v15 < 0 ) { operator delete(v14[0]); v13 = *(char **)(a1 + 1200); } (*(void (__fastcall **)(char *))(*(_QWORD *)v13 + 1312LL))(v13); } } }