// // FMODLevelVisualizer::updateVisualizer from 0x1002b0ba0 to 0x1002b0e28 (648 bytes) // // 3 xrefs: // > GJBaseGameLayer::updateAudioVisualizer @ 0x1001534e7 // > GJBaseGameLayer::updateAudioVisualizer @ 0x100153550 // > FMODLevelVisualizer::init @ 0x1002b0b84 // // 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 // void __fastcall FMODLevelVisualizer::updateVisualizer(FMODLevelVisualizer *a1, float a2, float a3, float a4) { __int64 v4; // rbx __int64 v5; // rax void (__fastcall *v6)(__int64, __int64); // rcx __int64 v7; // r15 __int64 v8; // rax void (__fastcall *v9)(__int64, __int64); // rcx __int64 v10; // r15 __int64 v11; // rax void (__fastcall *v12)(__int64, __int64); // rcx __int64 v13; // r15 __int64 v14; // rbx float *v15; // rax void *v16; // rsi float v17[2]; // [rsp+4h] [rbp-2Ch] BYREF float v18; // [rsp+Ch] [rbp-24h] float v19; // [rsp+10h] [rbp-20h] float v20; // [rsp+14h] [rbp-1Ch] v18 = a4; v19 = a3; v20 = a2; v4 = ((__int64 (__fastcall *)(FMODLevelVisualizer *, __int64))a1->getChildByTag)(a1, 50); v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, 100); if ( v5 ) { v6 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 328LL); if ( v20 <= 0.0 ) { v6(v5, 0); } else { v7 = v5; v6(v5, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 144LL))( v7, (float)(fminf(0.60000002, v20) * 96.0) / a1->m_width); } } v8 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, 200); if ( v8 ) { v9 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 328LL); if ( v20 <= 0.60000002 ) { v9(v8, 0); } else { v10 = v8; v9(v8, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 144LL))( v10, (float)((float)(fminf(0.85000002, v20) + -0.60000002) * 96.0) / a1->m_width); } } v11 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, 300); if ( v11 ) { v12 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 328LL); if ( v20 <= 0.85000002 ) { v12(v11, 0); } else { v13 = v11; v12(v11, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 144LL))( v13, (float)((float)(fminf(1.0, v20) + -0.85000002) * 96.0) / a1->m_width); } } v14 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, 400); v15 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 192LL))(v14); sub_10028CBE0(v17, *v15, (float)(96.0 * v19) + -48.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v14 + 184LL))(v14, v17); if ( v19 <= 0.85000002 ) { if ( v19 <= 0.60000002 ) v16 = &unk_100818EB1; else v16 = &unk_100818EB4; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v14 + 944LL))(v14, v16); } else { (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v14 + 944LL))(v14, &unk_100818EAE); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 896LL))( v14, (unsigned __int8)(int)fmaxf((float)(0.5 - v18) * 255.0, 0.0)); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v14 + 328LL))(v14, v19 > 0.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source