// // ShaderLayer::preGlitchShader from 0x683554 to 0x6837ba (614 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x6855d2 // // 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:56:03 +0000 // int __fastcall ShaderLayer::preGlitchShader(ShaderLayer *this) { cocos2d::CCGLProgram *v2; // r0 int v3; // r1 float v4; // r2 int v5; // r3 float v6; // s15 float v7; // s20 float v8; // s18 float v9; // s17 float v10; // r0 float v11; // s16 float v12; // s22 float v13; // s17 float v14; // s19 float v15; // s19 float v16; // r5 float v17; // r0 float v18; // s15 float v19; // r9 float v20; // s16 float v21; // r5 float v22; // r8 float v23; // r0 float v24; // r0 float v25; // s16 float v26; // r5 cocos2d::CCGLProgram *v27; // r0 cocos2d::CCGLProgram *v28; // r0 cocos2d::CCGLProgram *v29; // r0 cocos2d::CCGLProgram *v30; // r0 float v32[2]; // [sp+4h] [bp-20h] BYREF _BYTE v33[8]; // [sp+Ch] [bp-18h] BYREF float v34[2]; // [sp+14h] [bp-10h] BYREF if ( *((float *)this + 142) > 0.0 ) { *((_BYTE *)this + 950) = 1; if ( *((_BYTE *)this + 592) && (v5 = *((_DWORD *)this + 244)) != 0 ) v6 = fabsf((*(float (__fastcall **)(_DWORD))(**(_DWORD **)(v5 + 2436) + 84))(*(_DWORD *)(v5 + 2436))); else v6 = 1.0; v7 = v6 * *((float *)this + 248); v8 = floor(*((float *)this + 143) * *((double *)this + 45) * 20.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v8, 2345.0); v9 = random2d(v34) * *((float *)this + 97); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v8, 9035.0); v10 = random2d(v34); v11 = *((float *)this + 142); v12 = *((float *)this + 97); v13 = v9 * v7; v14 = v13 + (float)((float)((float)((float)(v10 * *((float *)this + 144)) * v11) * v12) * v7); v15 = v14 + floorf(v14); v16 = (float)((float)((float)(v11 * *((float *)this + 145)) * 0.02) * v12) * v7; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v8, 9625.0); v17 = randomRange((const cocos2d::CCPoint *)v34, COERCE_FLOAT(LODWORD(v16) ^ 0x80000000), v16); v18 = *((float *)this + 142); v19 = v17; v20 = (float)((float)((float)(v18 * *((float *)this + 146)) * 0.02) * *((float *)this + 96)) * v7; v21 = (float)((float)((float)(v18 * *((float *)this + 147)) * 0.02) * *((float *)this + 97)) * v7; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v8, 9545.0); v22 = randomRange((const cocos2d::CCPoint *)v33, -v20, v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v8, 7205.0); v23 = randomRange((const cocos2d::CCPoint *)v34, COERCE_FLOAT(LODWORD(v21) ^ 0x80000000), v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, v22, v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v8, 9545.0); v24 = random2d(v34); v25 = *((float *)this + 250); v26 = v24; v27 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith1f(v27, *((_DWORD *)this + 308), v13 * v25); v28 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith1f(v28, *((_DWORD *)this + 309), v15 * v25); v29 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith1f(v29, *((_DWORD *)this + 310), v19); v30 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); cocos2d::CCGLProgram::setUniformLocationWith2f(v30, *((_DWORD *)this + 311), v32[0], v25 * v32[1]); v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); v3 = *((_DWORD *)this + 312); v4 = v26; } else { v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); v3 = *((_DWORD *)this + 309); v4 = 0.0; } return cocos2d::CCGLProgram::setUniformLocationWith1f(v2, v3, v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source