// // sub_AEEFC from 0xaeefc to 0xaf1b0 (692 bytes) // // 1 xrefs: // > sub_AE62C @ 0xae630 // // 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_AEEFC(__int64 a1, int a2) { float v3; // s0 int v4; // s0 float v5; // s8 __int64 v6; // x0 float v7; // s8 __int64 v8; // x0 __int64 result; // x0 int v10; // w8 float v11; // s0 int v12; // w8 int v13; // w9 int v14; // s0 int v15; // w1 unsigned int v16; // w8 int v17; // w0 int v18; // w25 int v19; // w23 __int64 v20; // x0 int v21; // w0 int v22; // w24 __int64 v23; // x22 __int64 v24; // x20 unsigned int v25; // w21 int v26; // w26 int v27; // w23 int v28; // w8 int v29; // w8 int v30; // w9 int v31; // w1 if ( a2 == 1 ) { v10 = *(_DWORD *)(a1 + 616); if ( !v10 ) { v11 = *(float *)(a1 + 640); if ( *(float *)(a1 + 544) != v11 ) { *(float *)(a1 + 544) = v11; sub_AE8D4(a1); v12 = *(_DWORD *)(a1 + 628); v13 = *(_DWORD *)(a1 + 448); *(_DWORD *)(a1 + 636) = v14; if ( v12 == v13 ) { sub_AE9F0(a1); v15 = *(_DWORD *)(a1 + 600); v16 = *(_DWORD *)(a1 + 596); if ( v16 >= v15 + 128 ) { v20 = (unsigned int)(*(_DWORD *)(a1 + 604) - v15); *(_DWORD *)(a1 + 612) = *(_DWORD *)(a1 + 608); v21 = sub_AE6E4(v20, v16); v22 = *(_DWORD *)(a1 + 612); *(_DWORD *)(a1 + 608) = v21; } else { if ( v16 ) { v17 = sub_AE6E4((unsigned int)(*(_DWORD *)(a1 + 604) - *(_DWORD *)(a1 + 608)), v16); v18 = *(_DWORD *)(a1 + 596); v15 = *(_DWORD *)(a1 + 600); v19 = v17; } else { v18 = 0; v19 = 0; } v23 = *(_QWORD *)(a1 + 576); v24 = *(_QWORD *)(a1 + 584); v25 = *(_DWORD *)(a1 + 592); *(_QWORD *)(a1 + 584) = 0; result = sub_AEE04(a1, v15); if ( (_DWORD)result ) return result; if ( v24 ) { v26 = *(_DWORD *)(a1 + 600); if ( v19 ) v22 = v26 - v19; else v22 = 0; v27 = sub_AE6E4((unsigned int)(v26 - v18), *(_DWORD *)(a1 + 596)); sub_AE634( *(_QWORD *)(a1 + 576), *(_DWORD *)(a1 + 592), 2 * v27 * *(_DWORD *)(a1 + 628), v23, v25, 2 * *(_DWORD *)(a1 + 604) * *(_DWORD *)(a1 + 628), v25); sub_AE704(*(__int16 **)(a1 + 576), *(_DWORD *)(a1 + 628), *(_DWORD *)(a1 + 596), v27, 128); sub_E2D74( *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), v24, "../../src/fmod_dsp_echo.cpp", 710, 1); v21 = 0; *(_DWORD *)(a1 + 608) = 0; *(_DWORD *)(a1 + 604) = v26; } else { v28 = *(_DWORD *)(a1 + 600); v21 = 0; *(_DWORD *)(a1 + 608) = 0; *(_DWORD *)(a1 + 604) = v28; v29 = v28 - v19; if ( v19 ) v22 = v29; else v22 = 0; } *(_DWORD *)(a1 + 612) = v22; } v10 = (v22 != v21) << 11; } else { v10 = 0; } } } v30 = *(_DWORD *)(a1 + 448); if ( *(_DWORD *)(a1 + 628) != v30 || !*(_QWORD *)(a1 + 576) ) { v31 = *(_DWORD *)(a1 + 600); *(_DWORD *)(a1 + 628) = v30; result = sub_AEE04(a1, v31); if ( (_DWORD)result ) return result; sub_AE9A4(a1); v10 = 0; } *(_DWORD *)(a1 + 616) = v10; return 0; } else { if ( a2 != 2 ) return 0; v3 = *(float *)(a1 + 644); if ( *(float *)(a1 + 548) != v3 ) { *(float *)(a1 + 548) = v3; *(float *)(a1 + 552) = v3 * 0.01; sub_AE8D4(a1); *(_DWORD *)(a1 + 636) = v4; } v5 = *(float *)(a1 + 652); if ( *(float *)(a1 + 556) != v5 ) { *(float *)(a1 + 556) = v5; v6 = sub_AF390(0.05); *(float *)(a1 + 560) = sub_AF368(v6); } v7 = *(float *)(a1 + 656); if ( *(float *)(a1 + 564) == v7 ) { return 0; } else { *(float *)(a1 + 564) = v7; v8 = sub_AF390(0.05); *(float *)(a1 + 568) = sub_AF368(v8); return 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source