// // ShaderLayer::preGrayscaleShader from 0xb2d524 to 0xb2d600 (220 bytes) // // 2 xrefs: // > ShaderLayer::performCalculations @ 0xb2e664 // > @ 0x74410 // // 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:41 +0000 // __int64 __fastcall ShaderLayer::preGrayscaleShader(ShaderLayer *this) { cocos2d::CCGLProgram *v2; // x0 __int64 result; // x0 cocos2d::CCGLProgram *v4; // x0 cocos2d::CCGLProgram *v5; // x0 if ( *((float *)this + 245) > 0.0 || cocos2d::CCNode::getActionByTag(this, 32) ) *((_BYTE *)this + 1078) = 1; v2 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); result = cocos2d::CCGLProgram::setUniformLocationWith1f(v2, *((_DWORD *)this + 381), *((float *)this + 245)); if ( *((float *)this + 245) > 0.0 ) { v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); cocos2d::CCGLProgram::setUniformLocationWith1f(v4, *((_DWORD *)this + 383), (float)*((unsigned __int8 *)this + 984)); v5 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); return cocos2d::CCGLProgram::setUniformLocationWith3f( v5, *((_DWORD *)this + 382), (float)*((unsigned __int8 *)this + 992) / 255.0, (float)*((unsigned __int8 *)this + 993) / 255.0, (float)*((unsigned __int8 *)this + 994) / 255.0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source