// // EditorSFXManager::removeSoundAt from 0xcc4ff0 to 0xcc5200 (528 bytes) // // 2 xrefs: // > EditorSFXActionConfigLayer::onDeleteSound @ 0xcbdae8 // > @ 0xd3960 // // 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::removeSoundAt(EditorSFXManager *this, int a2, signed int a3) { cocos2d::CCArray **Binding; // x0 cocos2d::CCArray **v6; // x20 cocos2d::CCArray *v7; // x0 int v8; // w21 __int64 *v10; // x0 __int64 *v11; // x2 unsigned __int64 v12; // x3 unsigned __int64 v13; // x4 unsigned __int64 v14; // x7 __int64 v15; // x8 unsigned __int64 v16; // x4 __int64 v17; // x9 __int64 *i; // x1 unsigned __int64 v19; // x0 unsigned __int64 v20; // x0 __int64 v21; // x0 unsigned __int64 v22; // x5 __int64 v23; // x5 __int64 v24; // x5 unsigned __int64 v25; // x6 __int64 *v26; // x1 void *v27; // x0 int v28; // [xsp+3Ch] [xbp+3Ch] BYREF void *v29; // [xsp+40h] [xbp+40h] BYREF v28 = a2; Binding = (cocos2d::CCArray **)EditorSFXManager::findBinding(this, a2); v6 = Binding; if ( Binding ) { v7 = *Binding; if ( v7 ) { if ( (a3 & 0x80000000) == 0 && a3 < (int)cocos2d::CCArray::count(v7) ) { cocos2d::CCArray::removeObjectAtIndex(*v6, a3, 1); v8 = *((_DWORD *)v6 + 3); if ( v8 >= (int)cocos2d::CCArray::count(*v6) ) *((_DWORD *)v6 + 3) = 0; if ( !(unsigned int)cocos2d::CCArray::count(*v6) ) { std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique( (__int64 *)this + 10, &v28); v10 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_QWORD *)this + 5, &v28); v11 = v10; if ( !v10 ) { LABEL_30: EditorSFXManager::releaseBinding((int)this, v6); v26 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( this, &v28); if ( v26 ) { std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::remove( (__int64 *)this, v26, (__int64)&v29); v27 = v29; v29 = nullptr; if ( v27 ) operator delete(v27); } return _stack_chk_guard; } v12 = *((_QWORD *)this + 6); v13 = v10[1]; v14 = v12 - 1; v15 = (v12 - 1) & v12; if ( v15 ) v16 = v13 % v12; else v16 = v14 & v13; v17 = *((_QWORD *)this + 5); for ( i = *(__int64 **)(v17 + 8 * v16); v10 != (__int64 *)*i; i = (__int64 *)*i ) ; if ( i == (__int64 *)((char *)this + 56) || ((v19 = i[1], v15) ? (v20 = v19 % v12) : (v20 = v14 & v19), v16 != v20) ) { v21 = *v11; if ( *v11 ) { v22 = *(_QWORD *)(v21 + 8); if ( v15 ) { v25 = v22 / v12; if ( v16 == v22 % v12 ) goto LABEL_26; } else { v23 = v14 & v22; if ( v16 == v23 ) goto LABEL_27; } } *(_QWORD *)(v17 + 8 * v16) = 0; } v21 = *v11; v24 = *v11; if ( !*v11 ) { LABEL_29: *i = v24; *v11 = 0; --*((_QWORD *)this + 8); operator delete(v11); goto LABEL_30; } v22 = *(_QWORD *)(v21 + 8); if ( !v15 ) { v23 = v14 & v22; LABEL_27: if ( v16 == v23 ) { v24 = v21; } else { *(_QWORD *)(*((_QWORD *)this + 5) + 8 * v23) = i; v24 = *v11; } goto LABEL_29; } v25 = v22 / v12; LABEL_26: v23 = v22 - v25 * v12; goto LABEL_27; } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source