//
// FMODAudioEngine::setup from 0x304d7c to 0x304ee6 (362 bytes)
//
// 1 xrefs:
// > LoadingLayer::init @ 0x30c1cc
//
// 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 FMODAudioEngine::setup(FMODAudioEngine *a1)
{
const std::string *v2; // r1
cocos2d::CCArray *v3; // r11
const std::string *v4; // r1
const std::string *v5; // r1
const std::string *v6; // r1
const std::string *v7; // r1
const std::string *v8; // r1
int v9; // r0
cocos2d::CCArray *v10; // r11
unsigned int i; // r5
cocos2d::CCString *v12; // r0
char *CString; // r0
FMOD::Sound *v14; // r6
cocos2d::CCObject *v15; // [sp+14h] [bp-50h]
int v16; // [sp+18h] [bp-4Ch]
int v17; // [sp+1Ch] [bp-48h]
int v18; // [sp+20h] [bp-44h]
char v19; // [sp+44h] [bp-20h] BYREF
char v20; // [sp+48h] [bp-1Ch] BYREF
char v21; // [sp+4Ch] [bp-18h] BYREF
int v22; // [sp+50h] [bp-14h] BYREF
char v23; // [sp+54h] [bp-10h] BYREF
const void *v24; // [sp+58h] [bp-Ch] BYREF
FMODAudioEngine::setupAudioEngine(a1);
a1->m_sfxVolume = 1.0;
a1->m_musicVolume = 1.0;
sub_776584((int)&v19, "achievement_01.ogg");
v3 = (cocos2d::CCArray *)cocos2d::CCString::create((cocos2d::CCString *)&v19, v2);
sub_776584((int)&v20, "playSound_01.ogg");
v15 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v20, v4);
sub_776584((int)&v21, "quitSound_01.ogg");
v16 = cocos2d::CCString::create((cocos2d::CCString *)&v21, v5);
sub_776584((int)&v22, "explode_11.ogg");
v17 = cocos2d::CCString::create((cocos2d::CCString *)&v22, v6);
sub_776584((int)&v23, "endStart_02.ogg");
v18 = cocos2d::CCString::create((cocos2d::CCString *)&v23, v7);
sub_776584((int)&v24, "highscoreGet02.ogg");
v9 = cocos2d::CCString::create((cocos2d::CCString *)&v24, v8);
v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3, v15, v16, v17, v18, v9, 0);
sub_774008(&v24);
sub_774008(&v23);
sub_774008(&v22);
sub_774008(&v21);
sub_774008(&v20);
sub_774008(&v19);
for ( i = 0; i < cocos2d::CCArray::count(v10); ++i )
{
v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, i);
CString = (char *)cocos2d::CCString::getCString(v12);
sub_776584((int)&v24, CString);
v14 = FMODAudioEngine::preloadEffect(a1, &v24);
sub_774008(&v24);
if ( v14 )
v14[20] = (FMOD::Sound)1;
}
}