// // sub_C2A8C from 0xc2a8c to 0xc2be8 (348 bytes) // // 1 xrefs: // > sub_C25DC @ 0xc25e0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_C2A8C(__int64 a1, int a2) { __int64 v3; // x1 __int64 result; // x0 __int64 v5; // x20 __int64 v6; // x0 __int64 v7; // x1 int v8; // w8 __int64 v9; // x0 __int64 v10; // x9 int v11; // [xsp+Ch] [xbp-14h] BYREF if ( a2 == 128 ) { v5 = a1 + 608; while ( *(_QWORD *)v5 != v5 ) { if ( !*(_QWORD *)(*(_QWORD *)v5 + 16LL) ) return 28; result = sub_C3264(); if ( (_DWORD)result ) return result; } result = sub_C2700(); if ( !(_DWORD)result ) *(_DWORD *)(a1 + 632) = -1; } else { if ( a2 != 1 ) return 0; v3 = *(unsigned int *)(a1 + 600); if ( *(_DWORD *)(a1 + 568) == (_DWORD)v3 && *(_DWORD *)(a1 + 576) ) { return 0; } else { v6 = *(_QWORD *)(a1 + 168); *(_DWORD *)(a1 + 568) = v3; result = sub_7B528(v6, v3, (_DWORD *)(a1 + 572)); if ( !(_DWORD)result ) { result = sub_6ADA0(*(_QWORD *)(a1 + 168), &v11, nullptr); if ( !(_DWORD)result ) { v7 = *(_QWORD *)(a1 + 544); v8 = *(_DWORD *)(a1 + 572) * v11; *(_DWORD *)(a1 + 576) = v8; if ( v7 ) { sub_E3400(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), v7, "../../src/fmod_dsp_return.cpp", 372); v8 = *(_DWORD *)(a1 + 576); } v9 = sub_E33F8( *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), (unsigned int)(8 * v8), 16, "../../src/fmod_dsp_return.cpp", 375, 0); *(_QWORD *)(a1 + 544) = v9; if ( v9 ) { v10 = *(int *)(a1 + 576); *(_QWORD *)(a1 + 552) = v9; *(_QWORD *)(a1 + 560) = v9 + 4 * v10; *(_WORD *)(a1 + 592) = 0; return 0; } else { return 38; } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source