// // ShaderLayer::preInvertColorShader from 0xb2d6e8 to 0xb2d7b0 (200 bytes) // // 2 xrefs: // > ShaderLayer::performCalculations @ 0xb2e674 // > @ 0x94b70 // // 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:42 +0000 // __int64 __fastcall ShaderLayer::preInvertColorShader(ShaderLayer *this) { float v2; // s2 float v3; // s0 float v4; // s1 float v5; // s2 cocos2d::CCGLProgram *v6; // x0 __int64 ActionByTag; // x0 float v9; // [xsp+20h] [xbp+20h] float v10; // [xsp+30h] [xbp+30h] float v11; // [xsp+40h] [xbp+40h] v2 = *((float *)this + 250); if ( v2 > 0.0 || (ActionByTag = cocos2d::CCNode::getActionByTag(this, 34), v2 = *((float *)this + 250), ActionByTag) ) *((_BYTE *)this + 1078) = 1; v3 = v2 * *((float *)this + 251); v4 = v2 * *((float *)this + 252); v5 = v2 * *((float *)this + 253); if ( *((_BYTE *)this + 1016) ) { if ( v3 >= 1.0 ) v3 = 1.0; if ( v4 >= 1.0 ) v4 = 1.0; if ( v5 >= 1.0 ) v5 = 1.0; } v9 = v5; v10 = v4; v11 = v3; v6 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138)); return cocos2d::CCGLProgram::setUniformLocationWith4f( v6, *((_DWORD *)this + 385), v11, v10, v9, *((float *)this + 250)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source