// // FMODAudioEngine::setup from 0x6d2334 to 0x6d2704 (976 bytes) // // 2 xrefs: // > LoadingLayer::init @ 0x6ed838 // > @ 0xf37f0 // // This function is hookable on this platform (idp: arm, 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 12:51:28 +0000 // __int64 __fastcall FMODAudioEngine::setup(FMODAudioEngine *this) { cocos2d::CCArray *v2; // x21 cocos2d::CCObject *v3; // x22 __int64 v4; // x23 __int64 v5; // x24 __int64 v6; // x20 __int64 v7; // x0 cocos2d::CCArray *v8; // x23 unsigned int v9; // w21 cocos2d::CCString *v10; // x0 const char *CString; // x0 const char *v12; // x24 size_t v13; // x0 size_t v14; // x20 char *v15; // x3 __int64 v16; // x20 unsigned __int64 v18; // x0 __int64 v19; // x22 char *v20; // x0 __int64 v21[2]; // [xsp+68h] [xbp+68h] BYREF void *v22; // [xsp+78h] [xbp+78h] __int64 v23[2]; // [xsp+80h] [xbp+80h] BYREF void *v24; // [xsp+90h] [xbp+90h] __int64 v25[2]; // [xsp+98h] [xbp+98h] BYREF void *v26; // [xsp+A8h] [xbp+A8h] __int64 v27[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v28; // [xsp+C0h] [xbp+C0h] __int64 v29[2]; // [xsp+C8h] [xbp+C8h] BYREF void *v30; // [xsp+D8h] [xbp+D8h] __int64 v31; // [xsp+E0h] [xbp+E0h] BYREF size_t v32; // [xsp+E8h] [xbp+E8h] void *v33; // [xsp+F0h] [xbp+F0h] FMODAudioEngine::setupAudioEngine(this); v21[0] = 0; v21[1] = 0; *((float *)this + 111) = 1.0; v22 = nullptr; *((float *)this + 110) = 1.0; std::string::__init(v21, "achievement_01.ogg", 0x12u); v2 = (cocos2d::CCArray *)cocos2d::CCString::create(v21); v23[0] = 0; v23[1] = 0; v24 = nullptr; std::string::__init(v23, "playSound_01.ogg", 0x10u); v3 = (cocos2d::CCObject *)cocos2d::CCString::create(v23); v25[0] = 0; v25[1] = 0; v26 = nullptr; std::string::__init(v25, "quitSound_01.ogg", 0x10u); v4 = cocos2d::CCString::create(v25); v27[0] = 0; v27[1] = 0; v28 = nullptr; std::string::__init(v27, "explode_11.ogg", 0xEu); v5 = cocos2d::CCString::create(v27); v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, "endStart_02.ogg", 0xFu); v6 = cocos2d::CCString::create(v29); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "highscoreGet02.ogg", 0x12u); v7 = cocos2d::CCString::create(&v31); v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2, v3, v4, v5, v6, v7, 0); if ( (v31 & 1) != 0 ) { operator delete(v33); if ( (v29[0] & 1) == 0 ) { LABEL_3: if ( (v27[0] & 1) == 0 ) goto LABEL_4; goto LABEL_21; } } else if ( (v29[0] & 1) == 0 ) { goto LABEL_3; } operator delete(v30); if ( (v27[0] & 1) == 0 ) { LABEL_4: if ( (v25[0] & 1) == 0 ) goto LABEL_5; goto LABEL_22; } LABEL_21: operator delete(v28); if ( (v25[0] & 1) == 0 ) { LABEL_5: if ( (v23[0] & 1) == 0 ) goto LABEL_6; LABEL_23: operator delete(v24); if ( (v21[0] & 1) == 0 ) goto LABEL_7; goto LABEL_24; } LABEL_22: operator delete(v26); if ( (v23[0] & 1) != 0 ) goto LABEL_23; LABEL_6: if ( (v21[0] & 1) == 0 ) goto LABEL_7; LABEL_24: operator delete(v22); LABEL_7: v9 = 0; if ( (unsigned int)cocos2d::CCArray::count(v8) ) { while ( 1 ) { v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v8, v9); CString = (const char *)cocos2d::CCString::getCString(v10); v31 = 0; v32 = 0; v12 = CString; v33 = nullptr; v13 = strlen(CString); v14 = v13; if ( v13 > 0xFFFFFFFFFFFFFFEFLL ) sub_62B944(); if ( v13 > 0x16 ) break; LOBYTE(v31) = 2 * v13; v15 = (char *)&v31 + 1; if ( v13 ) goto LABEL_18; LABEL_11: v15[v14] = 0; v16 = FMODAudioEngine::preloadEffect((__int64)this, (__int64)&v31); if ( (v31 & 1) != 0 ) operator delete(v33); if ( v16 ) *(_BYTE *)(v16 + 44) = 1; if ( ++v9 >= (unsigned int)cocos2d::CCArray::count(v8) ) return _stack_chk_guard; } v18 = (v13 + 16) & 0xFFFFFFFFFFFFFFF0LL; v19 = v18 | 1; v20 = (char *)operator new(v18); v31 = v19; v15 = v20; v33 = v20; v32 = v14; LABEL_18: v15 = (char *)memcpy(v15, v12, v14); goto LABEL_11; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source