//
// GJBaseGameLayer::updateAudioVisualizer from 0x140352b60 to 0x140352dc6 (614 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::update @ 0x140341ca4
// > GJBaseGameLayer::update @ 0x140341f2a
// > ??> @ 0x1409203d8
// > ??> @ 0x1409203e4
//
// 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=8
void __fastcall GJBaseGameLayer::updateAudioVisualizer(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rax
void *v4; // [rsp+30h] [rbp+8h]
void *v5; // [rsp+30h] [rbp+8h]
void *v6; // [rsp+30h] [rbp+8h]
void *v7; // [rsp+30h] [rbp+8h]
void *v8; // [rsp+30h] [rbp+8h]
void *v9; // [rsp+30h] [rbp+8h]
void *v10; // [rsp+30h] [rbp+8h]
void *v11; // [rsp+30h] [rbp+8h]
if ( *(_BYTE *)(a1 + 14336) )
{
v2 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v4 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v2 = qword_14090BF60;
}
if ( !v2 )
{
v5 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v2 = qword_14090BF60;
}
if ( !v2 )
{
v6 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v2 = qword_14090BF60;
}
if ( !v2 )
{
v7 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
}
FMODLevelVisualizer::updateVisualizer(*(_QWORD *)(a1 + 14320));
v3 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v8 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v3 = qword_14090BF60;
}
if ( !v3 )
{
v9 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v3 = qword_14090BF60;
}
if ( !v3 )
{
v10 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v3 = qword_14090BF60;
}
if ( !v3 )
{
v11 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
}
FMODLevelVisualizer::updateVisualizer(*(_QWORD *)(a1 + 14328));
}
}