// // FMODLevelVisualizer::updateVisualizer from 0x1403aa050 to 0x1403aa2a2 (594 bytes) // // 4 xrefs: // > GJBaseGameLayer::updateAudioVisualizer @ 0x140352c97 // > GJBaseGameLayer::updateAudioVisualizer @ 0x140352dac // > FMODLevelVisualizer::init @ 0x1403aa018 // > @ 0x14092399c // // This function is hookable on this platform (idp: pc, 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 11:31:20 +0000 // __int64 __fastcall FMODLevelVisualizer::updateVisualizer(__int64 a1, float a2, float a3, float a4) { int v4; // edi __int64 v5; // rsi float v6; // xmm6_4 __int64 v7; // rdx __int64 v8; // rax __int64 v9; // rdx __int64 v10; // rbx void (__fastcall *v11)(__int64, __int64); // rax _QWORD *v12; // rdi float *v13; // rax __int64 v14; // rbx __int64 v15; // rax void (__fastcall **v16)(_QWORD *, __int16 *); // rax _QWORD *v17; // rcx void (__fastcall *v18)(_QWORD *, __int16 *); // rax __int16 *v19; // rdx __int64 v20; // rdx char v22; // [rsp+E0h] [rbp+8h] BYREF float v23; // [rsp+F0h] [rbp+18h] v4 = 0; v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 50); v6 = v23; do { v7 = 0; if ( v4 ) { if ( v4 == 1 ) { v6 = 0.60000002; v7 = 200; } else if ( v4 == 2 ) { v6 = 0.85000002; v7 = 300; } } else { v6 = 0.0; v7 = 100; } v8 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 472LL))(v5, v7); v10 = v8; if ( v8 ) { v11 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 336LL); if ( v6 < a2 ) { LOBYTE(v9) = 1; v11(v10, v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 136LL))(v10); } else { v11(v10, 0); } } ++v4; } while ( v4 < 3 ); v12 = (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 472LL))(v5, 400); v13 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(*v12 + 200LL))(v12); v14 = *v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, *v13, (float)(a3 * 96.0) - 48.0); (*(void (__fastcall **)(_QWORD *, __int64))(v14 + 184))(v12, v15); v16 = (void (__fastcall **)(_QWORD *, __int16 *))v12[40]; v17 = v12 + 40; if ( a3 <= 0.85000002 ) { v18 = *v16; v19 = &word_1407034A0; if ( a3 <= 0.60000002 ) v19 = &word_1407034B0; v18(v17, v19); } else { (*v16)(v17, &word_1407034A4); } (*(void (__fastcall **)(_QWORD *, _QWORD))(v12[40] + 40LL))( v12 + 40, (unsigned int)(int)fmaxf(0.0, (float)(0.5 - a4) * 255.0)); LOBYTE(v20) = a3 > 0.0; return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*v12 + 336LL))(v12, v20); }