// // EditorSFXManager::copyFavoriteToMyConfig from 0xcc3604 to 0xcc38b0 (684 bytes) // // 2 xrefs: // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd365c // > @ 0xff190 // // 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::copyFavoriteToMyConfig(EditorSFXManager *this, GJEditorSoundConfig *a2) { cocos2d::CCArray *v4; // x0 GJEditorSoundConfig *v5; // x0 __int64 v6; // x19 int v7; // w0 __int64 v8; // x0 size_t v9; // x1 __int64 *v10; // x0 char v11; // w0 __int64 v12; // x0 size_t v13; // x1 __int64 *v14; // x0 char v15; // w0 __int64 v16; // x0 size_t v17; // x1 __int64 *v18; // x0 cocos2d::CCObject *v20; // x0 __int64 v21; // [xsp+40h] [xbp+40h] BYREF size_t v22; // [xsp+48h] [xbp+48h] void *v23; // [xsp+50h] [xbp+50h] if ( !a2 ) return 0; v4 = *((cocos2d::CCArray **)this + 19); if ( !v4 ) { v20 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); *((_QWORD *)this + 19) = v20; cocos2d::CCObject::retain(v20); v4 = *((cocos2d::CCArray **)this + 19); } v5 = (GJEditorSoundConfig *)cocos2d::CCArray::count(v4); if ( (unsigned int)v5 > 0x31 ) return 0; v6 = GJEditorSoundConfig::create(v5); if ( !v6 ) return 0; v7 = *((_DWORD *)this + 40); *((_DWORD *)this + 40) = v7 + 1; *(_DWORD *)(v6 + 320) = v7; *(_DWORD *)(v6 + 316) = 0; *(_BYTE *)(v6 + 324) = 1; *(_DWORD *)(v6 + 336) = *((_DWORD *)a2 + 79); *(_DWORD *)(v6 + 340) = *((_DWORD *)a2 + 85); v21 = 0; LOBYTE(v7) = *((_BYTE *)a2 + 376); v22 = 0; v23 = nullptr; if ( (v7 & 1) != 0 ) { std::string::__init(&v21, *((void **)a2 + 49), *((_QWORD *)a2 + 48)); } else { v8 = *((_QWORD *)a2 + 47); v9 = *((_QWORD *)a2 + 48); v23 = *((void **)a2 + 49); v21 = v8; v22 = v9; } v10 = (__int64 *)(v6 + 376); if ( (__int64 *)(v6 + 376) != &v21 ) { if ( (v21 & 1) != 0 ) std::string::assign(v10, v23, v22); else std::string::assign(v10, (char *)&v21 + 1, (unsigned __int8)v21 >> 1); } if ( (v21 & 1) != 0 ) operator delete(v23); v11 = *((_BYTE *)a2 + 400); v21 = 0; v22 = 0; v23 = nullptr; if ( (v11 & 1) != 0 ) { std::string::__init(&v21, *((void **)a2 + 52), *((_QWORD *)a2 + 51)); } else { v12 = *((_QWORD *)a2 + 50); v13 = *((_QWORD *)a2 + 51); v23 = *((void **)a2 + 52); v21 = v12; v22 = v13; } v14 = (__int64 *)(v6 + 400); if ( (__int64 *)(v6 + 400) != &v21 ) { if ( (v21 & 1) != 0 ) std::string::assign(v14, v23, v22); else std::string::assign(v14, (char *)&v21 + 1, (unsigned __int8)v21 >> 1); } if ( (v21 & 1) != 0 ) operator delete(v23); *(_DWORD *)(v6 + 360) = *((_DWORD *)a2 + 90); *(_DWORD *)(v6 + 332) = 0; *(_DWORD *)(v6 + 328) = 1; *(_DWORD *)(v6 + 352) = *((_DWORD *)a2 + 88); *(_DWORD *)(v6 + 356) = *((_DWORD *)a2 + 89); v21 = 0; v15 = *((_BYTE *)a2 + 472); v22 = 0; v23 = nullptr; if ( (v15 & 1) != 0 ) { std::string::__init(&v21, *((void **)a2 + 61), *((_QWORD *)a2 + 60)); } else { v16 = *((_QWORD *)a2 + 59); v17 = *((_QWORD *)a2 + 60); v23 = *((void **)a2 + 61); v21 = v16; v22 = v17; } v18 = (__int64 *)(v6 + 472); if ( (__int64 *)(v6 + 472) != &v21 ) { if ( (v21 & 1) != 0 ) std::string::assign(v18, v23, v22); else std::string::assign(v18, (char *)&v21 + 1, (unsigned __int8)v21 >> 1); } if ( (v21 & 1) != 0 ) operator delete(v23); *(_BYTE *)(v6 + 496) = *((_BYTE *)a2 + 496); cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 19), (cocos2d::CCObject *)v6, 0); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source