// // FMODLevelVisualizer::init from 0x5d53c4 to 0x5d5682 (702 bytes) // // 1 xrefs: // > FMODLevelVisualizer::create @ 0x5d51d2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:08 +0000 // int __fastcall FMODLevelVisualizer::init(FMODLevelVisualizer *this) { int v2; // r6 cocos2d::CCTextureCache *v3; // r0 cocos2d::CCTextureCache *v4; // r0 cocos2d::CCTexture2D *v5; // r5 unsigned int v6; // r2 int v7; // r5 const char *v8; // r1 float *v9; // r7 float v10; // s15 float v11; // s16 const char *v12; // r1 int v13; // r9 float v14; // s19 float v15; // s18 int v16; // r8 int v17; // r10 const char *v18; // r1 int v19; // r6 void (__fastcall *v20)(int, _BYTE *); // r5 int v22; // [sp+0h] [bp-3Ch] void (__fastcall *v23)(int, _BYTE *); // [sp+14h] [bp-28h] __int16 v24; // [sp+18h] [bp-24h] BYREF char v25; // [sp+1Ah] [bp-22h] _BYTE v26[8]; // [sp+1Ch] [bp-20h] BYREF _BYTE v27[4]; // [sp+24h] [bp-18h] BYREF float v28; // [sp+28h] [bp-14h] _BYTE v29[8]; // [sp+2Ch] [bp-10h] BYREF v22 = cocos2d::CCNode::init(this); if ( v22 ) { v2 = 0; v3 = (cocos2d::CCTextureCache *)(*(int (__fastcall **)(FMODLevelVisualizer *, void *))(*(_DWORD *)this + 160))( this, &unk_D2C4B0); v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v3); v5 = (cocos2d::CCTexture2D *)cocos2d::CCTextureCache::addImage(v4, "PixelSheet_01.png", 0); cocos2d::CCTexture2D::setAliasTexParameters(v5); v7 = cocos2d::CCSpriteBatchNode::createWithTexture(v5, (cocos2d::CCTexture2D *)((char *)&dword_1C + 1), v6); (*(void (__fastcall **)(FMODLevelVisualizer *, int))(*(_DWORD *)this + 228))(this, v7); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 36))(v7, 50); v9 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"pixelart_base_001.png", v8); (*(void (__fastcall **)(int, float *, int))(*(_DWORD *)v7 + 232))(v7, v9, -1); (*(void (__fastcall **)(float *, void *))(*(_DWORD *)v9 + 480))(v9, &unk_BEE20E); v10 = v9[86]; *((float *)this + 66) = v10; (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v9 + 64))(v9, 10.0 / v10); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v9 + 72))(v9, 100.0 / *((float *)this + 66)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -3.0, -48.0); v11 = 6.0 / *((float *)this + 66); do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, (const cocos2d::CCPoint *)v26); if ( v2 == 1 ) { v13 = 200; v14 = 0.85; v15 = 0.6; v24 = -1; v25 = 0; } else if ( v2 == 2 ) { v14 = 1.0; v13 = 300; v15 = 0.85; v24 = 255; v25 = 0; } else { v24 = -256; v13 = 100; v25 = 0; v14 = 0.6; v15 = 0.0; } v16 = 0; v28 = v28 + (float)(v15 * 96.0); while ( 1 ) { v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"pixelart_base_001.png", v12); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v7 + 232))(v7, v17, v16); (*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v17 + 480))(v17, &v24); if ( !v16 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 456))(v17, 100); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 92))(v17, v27); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 0.0, 0.0); v23(v17, v29); (*(void (__fastcall **)(int, float))(*(_DWORD *)v17 + 64))(v17, COERCE_FLOAT(LODWORD(v11))); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v17 + 72))( v17, (float)((float)(v14 - v15) * 96.0) / *((float *)this + 66)); if ( v16 ) break; v16 = 1; } ++v2; (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 36))(v17, v13); } while ( v2 != 3 ); v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"pixelart_base_001.png", v18); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v7 + 232))(v7, v19, 2); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v19 + 480))(v19, &unk_BEE20E); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92))(v19, v26); v20 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, 0.0, 0.0); v20(v19, v29); (*(void (__fastcall **)(int, float))(*(_DWORD *)v19 + 64))(v19, COERCE_FLOAT(LODWORD(v11))); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v19 + 72))(v19, 1.0 / *((float *)this + 66)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 36))(v19, 400); FMODLevelVisualizer::updateVisualizer(this, 0.0, 0.0, 0.0); } return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source