// // ShaderLayer::preCommonShader from 0xb29d7c to 0xb29f1c (416 bytes) // // 2 xrefs: // > ShaderLayer::performCalculations @ 0xb2e60c // > @ 0x6d888 // // 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 13:01:40 +0000 // __int64 __fastcall ShaderLayer::preCommonShader(ShaderLayer *this) { cocos2d::CCGLProgram *v2; // x0 cocos2d::CCGLProgram *v3; // x0 float v4; // s0 cocos2d::CCGLProgram *v5; // x0 cocos2d::CCGLProgram *v6; // x0 cocos2d::CCGLProgram *v7; // x0 cocos2d::CCGLProgram *v8; // x0 float v9; // s0 float v10; // s8 cocos2d::CCGLProgram *v11; // x0 cocos2d::CCGLProgram *v12; // x0 v2 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::setUniformLocationWith3f( v2, *((_DWORD *)this + 303), (float)*((unsigned __int8 *)this + 520) / 255.0, (float)*((unsigned __int8 *)this + 521) / 255.0, (float)*((unsigned __int8 *)this + 522) / 255.0); v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); v4 = 0.0; if ( *((int *)this + 267) > 1 ) v4 = 1.0; cocos2d::CCGLProgram::setUniformLocationWith1f(v3, *((_DWORD *)this + 304), v4); v5 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::setUniformLocationWith1f(v5, *((_DWORD *)this + 305), *((float *)this + 131) + 1.0); v6 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::setUniformLocationWith2f( v6, *((_DWORD *)this + 298), *((float *)this + 128), *((float *)this + 129)); v7 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::setUniformLocationWith2f( v7, *((_DWORD *)this + 299), 1.0 / *((float *)this + 128), 1.0 / *((float *)this + 129)); v8 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); if ( *((int *)this + 267) <= 1 ) { v9 = 0.0; } else { v9 = 0.0; if ( *((_BYTE *)this + 532) ) v9 = 1.0; } cocos2d::CCGLProgram::setUniformLocationWith1f(v8, *((_DWORD *)this + 306), v9); v10 = *((float *)this + 291) / *((float *)this + 290); v11 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::setUniformLocationWith1f(v11, *((_DWORD *)this + 301), v10); v12 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); return cocos2d::CCGLProgram::setUniformLocationWith1f(v12, *((_DWORD *)this + 302), 1.0 / v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source