// // GJBaseGameLayer::toggleAudioVisualizer from 0x140352dd0 to 0x140352f94 (452 bytes) // // 3 xrefs: // > GameSettingsLayer::didChangeGV @ 0x1402c7576 // > GJBaseGameLayer::init @ 0x14030dab4 // > @ 0x1409203f0 // // 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:30:48 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall GJBaseGameLayer::toggleAudioVisualizer(__int64 a1, char a2) { __int64 result; // rax __int64 v5; // rax __int64 v6; // rax __int64 v7; // rdi float v8; // xmm6_4 __int64 v9; // rbx float *v10; // rax __int64 v11; // rax __int64 v12; // rax __int64 v13; // rdi float v14; // xmm6_4 __int64 v15; // rbx float *v16; // rax __int64 v17; // rax void *v18; // [rsp+50h] [rbp+8h] BYREF char v19; // [rsp+60h] [rbp+18h] BYREF char v20; // [rsp+68h] [rbp+20h] BYREF result = qword_14090BF60; if ( !qword_14090BF60 ) { v18 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); result = qword_14090BF60; } *(_BYTE *)(result + 2184) = a2; if ( *(_BYTE *)(a1 + 14336) != a2 ) { *(_BYTE *)(a1 + 14336) = a2; if ( !*(_QWORD *)(a1 + 14320) ) { v5 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v5, &v18); v6 = FMODLevelVisualizer::create(); *(_QWORD *)(a1 + 14320) = v6; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 13888) + 456LL))( *(_QWORD *)(a1 + 13888), v6, 100); v7 = **(_QWORD **)(a1 + 14320); v8 = *((float *)&v18 + 1) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 0.0, 0.0); v9 = *(_QWORD *)(a1 + 14320); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, *v10 + 20.0, v8); (*(void (__fastcall **)(__int64, __int64))(v7 + 184))(v9, v11); v12 = FMODLevelVisualizer::create(); *(_QWORD *)(a1 + 14328) = v12; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 13888) + 456LL))( *(_QWORD *)(a1 + 13888), v12, 100); v13 = **(_QWORD **)(a1 + 14328); v14 = *((float *)&v18 + 1) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 0.0, 0.0); v15 = *(_QWORD *)(a1 + 14328); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, *v16 + 35.0, v14); (*(void (__fastcall **)(__int64, __int64))(v13 + 184))(v15, v17); } (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14320) + 336LL))( *(_QWORD *)(a1 + 14320), *(unsigned __int8 *)(a1 + 14336)); return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14328) + 336LL))( *(_QWORD *)(a1 + 14328), *(unsigned __int8 *)(a1 + 14336)); } return result; }