// // FMODLevelVisualizer::updateVisualizer from 0xa20d80 to 0xa21044 (708 bytes) // // 4 xrefs: // > GJBaseGameLayer::updateAudioVisualizer @ 0x9ad094 // > GJBaseGameLayer::updateAudioVisualizer @ 0x9ad0e0 // > FMODLevelVisualizer::init @ 0xa21440 // > @ 0xa1f50 // // This function is hookable on this platform (idp: arm, 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 12:59:40 +0000 // __int64 __fastcall FMODLevelVisualizer::updateVisualizer(FMODLevelVisualizer *this, float a2, float a3, float a4) { int v6; // w20 __int64 v9; // x22 int v10; // w0 __int64 v11; // x2 __int64 v12; // x19 float v13; // s9 float v14; // s8 __int64 v15; // x2 __int64 *v16; // x0 __int64 v17; // x19 void (__fastcall *v18)(__int64, _BYTE *); // x22 float *v19; // x0 __int64 v20; // x2 void (__fastcall *v21)(__int64, __int64); // x2 float v22; // s0 __int64 v23; // x1 __int64 v25; // x0 _BYTE v26[8]; // [xsp+90h] [xbp+90h] BYREF v6 = 1; v9 = (*(__int64 (__fastcall **)(FMODLevelVisualizer *, __int64))(*(_QWORD *)this + 480LL))(this, 50); v10 = 0; v11 = *(_QWORD *)v9; while ( 1 ) { if ( v10 == 2 ) { v12 = (*(__int64 (__fastcall **)(__int64, __int64))(v11 + 480))(v9, 300); if ( !v12 ) goto LABEL_15; v13 = 0.85; v14 = 1.0; } else { v25 = (*(__int64 (__fastcall **)(__int64, __int64))(v11 + 480))(v9, 100); v12 = v25; if ( !v25 ) goto LABEL_8; v14 = 0.6; v13 = 0.0; } v15 = *(_QWORD *)v12; v16 = (__int64 *)v12; if ( a2 <= v13 ) break; LABEL_12: (*(void (__fastcall **)(__int64 *, __int64))(v15 + 344))(v16, 1); if ( a2 <= v14 ) v14 = a2; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 144LL))( v12, (float)((float)(v14 - v13) * 96.0) / *((float *)this + 79)); if ( v6 == 3 ) goto LABEL_15; LABEL_9: while ( 1 ) { ++v6; v11 = *(_QWORD *)v9; v10 = v6 - 1; if ( v6 != 2 ) break; v16 = (__int64 *)(*(__int64 (__fastcall **)(__int64, __int64))(v11 + 480))(v9, 200); v12 = (__int64)v16; if ( v16 ) { v13 = 0.6; v15 = *v16; v14 = 0.85; if ( a2 <= 0.6 ) goto LABEL_7; goto LABEL_12; } } } LABEL_7: (*(void (__fastcall **)(__int64 *, _QWORD))(v15 + 344))(v16, 0); LABEL_8: if ( v6 != 3 ) goto LABEL_9; LABEL_15: v17 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 480LL))(v9, 400); v18 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 184LL); v19 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *v19, (float)(a3 * 96.0) + -48.0); v18(v17, v26); if ( a3 > 0.85 ) { (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v17 + 960LL))(v17, &unk_116D888); } else { v20 = *(_QWORD *)v17; if ( a3 > 0.6 ) { (*(void (__fastcall **)(__int64, void *))(v20 + 960))(v17, &unk_116D898); v21 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 912LL); v22 = (float)(0.5 - a4) * 255.0; if ( v22 > 0.0 ) goto LABEL_19; LABEL_24: v23 = 0; goto LABEL_20; } (*(void (__fastcall **)(__int64, void *))(v20 + 960))(v17, &unk_116D8A0); } v21 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 912LL); v22 = (float)(0.5 - a4) * 255.0; if ( v22 <= 0.0 ) goto LABEL_24; LABEL_19: v23 = (unsigned __int8)(unsigned int)v22; LABEL_20: v21(v17, v23); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v17 + 344LL))(v17, a3 > 0.0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source