// // FMODLevelVisualizer::updateVisualizer from 0x14029ecf0 to 0x14029ef38 (584 bytes) // // 4 xrefs: // > GJBaseGameLayer::updateAudioVisualizer @ 0x1402489ab // > GJBaseGameLayer::updateAudioVisualizer @ 0x140248ab7 // > FMODLevelVisualizer::init @ 0x14029ecac // > @ 0x1406d1f1c // // 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 FMODLevelVisualizer::updateVisualizer(FMODLevelVisualizer *a1, float a2, float a3, float a4) { double v4; // xmm0_8 int v5; // edi cocos2d::CCNode *v6; // rsi float v7; // xmm6_4 __int64 v8; // rdx cocos2d::CCNode *v9; // rax __int64 v10; // rdx cocos2d::CCNode *v11; // rbx cocos2d::CCNode_vtbl *v12; // rax cocos2d::CCNode *v13; // rdi cocos2d::CCNode_vtbl *v14; // rbx float *v15; // rax const cocos2d::CCPoint *v16; // rax __int16 *v17; // rdx _BOOL8 v18; // rdx float v19; // [rsp+F0h] [rbp+18h] v5 = 0; v6 = a1->getChildByTag(a1, 50); v7 = v19; do { v8 = 0; if ( v5 ) { if ( v5 == 1 ) { v7 = 0.60000002; v8 = 200; } else if ( v5 == 2 ) { v7 = 0.85000002; v8 = 300; } } else { v7 = 0.0; v8 = 100; } v9 = v6->getChildByTag(v6, v8); v11 = v9; if ( v9 ) { v12 = v9->__vftable; if ( v7 < a2 ) { LOBYTE(v10) = 1; v4 = ((double (__fastcall *)(cocos2d::CCNode *, __int64))v12->setVisible)(v11, v10); ((void (__fastcall *)(cocos2d::CCNode *))v11->setScaleY)(v11); } else { v12->setVisible(v11, 0); } } ++v5; } while ( v5 < 3 ); v13 = v6->getChildByTag(v6, 400); v14 = v13->__vftable; v15 = (float *)v13->getPosition_0(v13); cocos2d::CCPoint::CCPoint(*(float *)&v4, *v15); v14->setPosition_0(v13, v16); if ( a3 <= 0.85000002 ) { v17 = &word_140529ADC; if ( a3 <= 0.60000002 ) v17 = &word_140529AE0; } else { v17 = &word_140529AD8; } v13[1].copyWithZone(v13 + 1, (cocos2d::CCZone *)v17); v13[1].encodeWithCoder(v13 + 1, (DS_Dictionary *)(unsigned int)(int)fmaxf(0.0, (float)(0.5 - a4) * 255.0)); LOBYTE(v18) = a3 > 0.0; v13->setVisible(v13, v18); }