// // FMODLevelVisualizer::init from 0xa21058 to 0xa2149c (1092 bytes) // // 3 xrefs: // > FMODLevelVisualizer::create @ 0xa214f0 // > @ 0x8b9c0 // > @ 0x1482b60 // // 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:59:40 +0000 // __int64 __fastcall FMODLevelVisualizer::init(FMODLevelVisualizer *this) { int v3; // w24 cocos2d::CCTextureCache *v4; // x0 cocos2d::CCTextureCache *v5; // x0 cocos2d::CCTexture2D *v6; // x19 unsigned int v7; // w2 __int64 v8; // x20 const char *v9; // x1 float *v10; // x19 float v11; // s1 float v12; // s9 const char *v13; // x1 float v14; // s1 float v15; // s2 float v16; // s8 unsigned int v17; // w19 float v18; // s8 void (__fastcall *v19)(__int64, _BYTE *); // x28 __int64 v20; // x27 const char *v21; // x1 __int64 v22; // x19 void (__fastcall *v23)(__int64, _BYTE *); // x20 unsigned __int8 v24; // [xsp+ABh] [xbp+ABh] unsigned int v25; // [xsp+ACh] [xbp+ACh] char v26; // [xsp+B8h] [xbp+B8h] BYREF __int16 v27; // [xsp+B9h] [xbp+B9h] _BYTE v28[8]; // [xsp+C0h] [xbp+C0h] BYREF _BYTE v29[4]; // [xsp+C8h] [xbp+C8h] BYREF float v30; // [xsp+CCh] [xbp+CCh] _BYTE v31[8]; // [xsp+D0h] [xbp+D0h] BYREF v24 = cocos2d::CCNode::init(this); if ( v24 ) { v3 = 0; v4 = (cocos2d::CCTextureCache *)(*(__int64 (__fastcall **)(FMODLevelVisualizer *, void *))(*(_QWORD *)this + 320LL))( this, &unk_155D378); v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v4); v6 = (cocos2d::CCTexture2D *)cocos2d::CCTextureCache::addImage(v5, "PixelSheet_01.png", 0); cocos2d::CCTexture2D::setAliasTexParameters(v6); v8 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (cocos2d::CCTexture2D *)((char *)&off_18 + 5), v7); (*(void (__fastcall **)(FMODLevelVisualizer *, __int64))(*(_QWORD *)this + 456LL))(this, v8); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 72LL))(v8, 50); v10 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"pixelart_base_001.png", v9); (*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)v8 + 464LL))(v8, v10, 0xFFFFFFFFLL); (*(void (__fastcall **)(float *, void *))(*(_QWORD *)v10 + 960LL))(v10, &unk_116D890); v11 = v10[108]; *((float *)this + 79) = v11; (*(void (__fastcall **)(float *, float))(*(_QWORD *)v10 + 128LL))(v10, 10.0 / v11); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v10 + 144LL))(v10, 100.0 / *((float *)this + 79)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, -3.0, -48.0); v12 = 6.0 / *((float *)this + 79); do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, (const cocos2d::CCPoint *)v28); if ( v3 == 1 ) { v13 = (const char *)&qword_C8; v26 = -1; v25 = 200; v27 = 255; v14 = 57.6; v16 = 0.85; v15 = 0.6; } else if ( v3 == 2 ) { v14 = 81.6; v15 = 0.85; v26 = -1; v27 = 0; v25 = 300; v16 = 1.0; } else { v14 = 0.0; v26 = 0; v25 = 100; v27 = 255; v16 = 0.6; v15 = 0.0; } v17 = 0; v18 = v16 - v15; v30 = v30 + v14; while ( 1 ) { v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"pixelart_base_001.png", v13); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v8 + 464LL))(v8, v20, v17); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v20 + 960LL))(v20, &v26); if ( !v17 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 912LL))(v20, 100); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v20 + 184LL))(v20, v29); v19 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v20 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 0.0, 0.0); v19(v20, v31); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 128LL))(v20, v12); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 144LL))( v20, (float)(v18 * 96.0) / *((float *)this + 79)); if ( v17 ) break; v17 = 1; } ++v3; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 72LL))(v20, v25); } while ( v3 != 3 ); v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"pixelart_base_001.png", v21); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v8 + 464LL))(v8, v22, 2); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v22 + 960LL))(v22, &unk_116D890); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 184LL))(v22, v28); v23 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, 0.0, 0.0); v23(v22, v31); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 128LL))(v22, v12); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 144LL))(v22, 1.0 / *((float *)this + 79)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 72LL))(v22, 400); FMODLevelVisualizer::updateVisualizer(this, 0.0, 0.0, 0.0); } return v24; }
GD Web Decomp Icon

GD Web Decomp

Raw Source