//
// FMODLevelVisualizer::create from 0x8d5484 to 0x8d5518 (148 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::toggleAudioVisualizer @ 0x86bf30
// > GJBaseGameLayer::toggleAudioVisualizer @ 0x86bf98
// > ??> @ 0xc31f8
//
// 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
//
FMODLevelVisualizer *FMODLevelVisualizer::create()
{
__int64 v0; // x19
v0 = operator new(0x140u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v0);
*(_QWORD *)v0 = &off_119CFA0;
*(_DWORD *)(v0 + 316) = 0;
if ( FMODLevelVisualizer::init((FMODLevelVisualizer *)v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (FMODLevelVisualizer *)v0;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
}