// // FMODAudioEngine::storeEffect from 0x3ebfec to 0x3ec27e (658 bytes) // // 2 xrefs: // > FMODAudioEngine::preloadEffect @ 0x3ec384 // > FMODAudioEngine::updateQueuedEffects @ 0x3f1c68 // // 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:47:09 +0000 // int *__fastcall FMODAudioEngine::storeEffect(int a1, FMOD::Sound *this, unsigned __int8 *a3) { int v3; // r7 unsigned int v7; // r0 unsigned int v8; // r4 unsigned int v9; // r9 unsigned int v10; // r5 int **v11; // r3 int *i; // r11 unsigned int v13; // r0 int v14; // r1 int v15; // r5 int v16; // r1 int v17; // r2 char v18; // r3 float v19; // s13 float v20; // s15 bool v21; // r7 unsigned int v22; // r7 unsigned int v23; // r1 _DWORD *v24; // r3 int v25; // r3 unsigned int v26; // r0 int v27; // r1 int *v28; // r4 int v30; // r2 int v31; // r0 size_t v32; // r2 int v33; // r1 int v34; // lr int v35; // r1 char *v36; // r3 unsigned __int8 *v37; // r1 char *v38; // r12 unsigned __int8 *v39; // r2 int v40; // t1 int v41; // [sp+4h] [bp-40h] int v42[3]; // [sp+10h] [bp-34h] BYREF FMOD::Sound *v43; // [sp+1Ch] [bp-28h] int v44; // [sp+20h] [bp-24h] BYREF int v45; // [sp+24h] [bp-20h] int v46; // [sp+28h] [bp-1Ch] int v47; // [sp+2Ch] [bp-18h] int v48; // [sp+30h] [bp-14h] int v49; // [sp+34h] [bp-10h] char v50; // [sp+38h] [bp-Ch] FMOD::Sound::setLoopCount(this, 0); std::string::basic_string(v42, (int)a3); v44 = 0; v45 = 0; v46 = 0; v47 = 0; v48 = 0; v49 = 0; v50 = 0; v43 = this; std::string::operator=((unsigned __int8 *)&v44, (unsigned __int8 *)v42); v41 = a1 + 284; v7 = sub_3E772C(a3); v8 = *(_DWORD *)(a1 + 288); v9 = v7; if ( v8 ) { v10 = v8 - 1; v3 = ((v8 - 1) & v8) != 0 ? v7 % v8 : v7 & v10; v11 = *(int ***)(*(_DWORD *)(a1 + 284) + 4 * v3); if ( v11 ) { for ( i = *v11; i; i = (int *)*i ) { v13 = i[1]; v14 = ((v8 - 1) & v8) != 0 ? v13 % v8 : v10 & v13; if ( v14 != v3 ) break; v30 = *((unsigned __int8 *)i + 8); v31 = v30 & 1; if ( (v30 & 1) != 0 ) v32 = i[3]; else v32 = v30 >> 1; v33 = *a3; v34 = v33 & 1; if ( (v33 & 1) != 0 ) v35 = *((_DWORD *)a3 + 1); else v35 = v33 >> 1; if ( v32 == v35 ) { if ( v31 ) v36 = (char *)i[4]; else v36 = (char *)i + 9; if ( v34 ) v37 = *((unsigned __int8 **)a3 + 2); else v37 = a3 + 1; if ( !v31 ) { v38 = v36 - 1; v39 = &v37[v32]; while ( v37 != v39 ) { v40 = (unsigned __int8)*++v38; if ( v40 != *v37 ) goto LABEL_50; ++v37; } goto LABEL_28; } if ( !std::char_traits::compare(v36, v37, v32) ) goto LABEL_28; } LABEL_50: ; } } } v15 = operator new(0x34u); std::string::basic_string((int *)(v15 + 8), (int)a3); *(_DWORD *)(v15 + 20) = v43; v16 = v45; v17 = v46; *(_DWORD *)(v15 + 24) = v44; *(_DWORD *)(v15 + 28) = v16; *(_DWORD *)(v15 + 32) = v17; v46 = 0; v45 = 0; *(_DWORD *)(v15 + 36) = v47; v44 = 0; *(_DWORD *)(v15 + 40) = v48; *(_DWORD *)(v15 + 44) = v49; v18 = v50; *(_DWORD *)v15 = 0; *(_DWORD *)(v15 + 4) = v9; *(_BYTE *)(v15 + 48) = v18; v19 = *(float *)(a1 + 300); v20 = (float)(unsigned int)(*(_DWORD *)(a1 + 296) + 1); if ( v20 > (float)((float)v8 * v19) ) { v21 = v8 > 2 && ((v8 - 1) & v8) == 0; goto LABEL_15; } if ( !v8 ) { v21 = 0; LABEL_15: v22 = 2 * v8 + !v21; v23 = (unsigned int)ceilf(v20 / v19); if ( v23 < v22 ) v23 = v22; std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::rehash( v41, v23); v8 = *(_DWORD *)(a1 + 288); if ( ((v8 - 1) & v8) != 0 ) v3 = v9 % v8; else v3 = v9 & (v8 - 1); } v24 = *(_DWORD **)(*(_DWORD *)(a1 + 284) + 4 * v3); if ( v24 ) { *(_DWORD *)v15 = *v24; *v24 = v15; } else { *(_DWORD *)v15 = *(_DWORD *)(a1 + 292); v25 = *(_DWORD *)(a1 + 284); *(_DWORD *)(a1 + 292) = v15; *(_DWORD *)(v25 + 4 * v3) = a1 + 292; if ( *(_DWORD *)v15 ) { v26 = *(_DWORD *)(*(_DWORD *)v15 + 4); if ( ((v8 - 1) & v8) != 0 ) v27 = v26 % v8; else v27 = (v8 - 1) & v26; *(_DWORD *)(*(_DWORD *)(a1 + 284) + 4 * v27) = v15; } } ++*(_DWORD *)(a1 + 296); LABEL_28: std::string::~string((int)&v44); std::string::~string((int)v42); v28 = std::unordered_map::operator[](v41, a3); FMOD::Sound::getLength(this, (unsigned int *)v28 + 4, 1u); return v28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source