// // ShaderLayer::prePixelateShader from 0x683c60 to 0x683d86 (294 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x6855ba // // 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::prePixelateShader(ShaderLayer *this) { int ActionByTag; // r0 ShaderLayer *v3; // r0 int v4; // r1 float v5; // s17 float v6; // s15 int v7; // r3 float v8; // s15 int v9; // r3 float v10; // s15 cocos2d::CCRenderTexture *v11; // r0 float v12; // s18 float v13; // s17 float v14; // r1 float v15; // r2 if ( *((float *)this + 161) > 1.0 || *((float *)this + 162) > 1.0 || cocos2d::CCNode::getActionByTag(this, 9) || (ActionByTag = cocos2d::CCNode::getActionByTag(this, 10)) != 0 ) { ActionByTag = 1; *((_BYTE *)this + 950) = 1; } *((_BYTE *)this + 653) = ActionByTag; if ( ActionByTag ) { v3 = this; v4 = *((unsigned __int8 *)this + 655) ^ 1; } else { v4 = *((unsigned __int8 *)this + 969); v3 = this; } ShaderLayer::toggleAntiAlias((int)v3, v4); v5 = *((float *)this + 249); v6 = *((float *)this + 162); if ( *((float *)this + 161) < 1.0 ) *((_DWORD *)this + 161) = 1065353216; if ( v6 < 1.0 ) *((_DWORD *)this + 162) = 1065353216; if ( *((_BYTE *)this + 654) && (v7 = *((_DWORD *)this + 244)) != 0 ) v8 = fabsf((*(float (__fastcall **)(_DWORD))(**(_DWORD **)(v7 + 2436) + 84))(*(_DWORD *)(v7 + 2436))); else v8 = 1.0; v9 = *((unsigned __int8 *)this + 653); if ( *((_BYTE *)this + 653) ) v10 = v8 * v5; else v10 = 1.0; v11 = *((cocos2d::CCRenderTexture **)this + 240); v12 = v10 * *((float *)this + 161); v13 = v10 * *((float *)this + 162); *((float *)this + 96) = 1.0 / v12; *((float *)this + 97) = 1.0 / v13; if ( v9 ) { v14 = 1.0 / v12; v15 = 1.0 / v13; } else { v14 = 0.0; v15 = 0.0; } cocos2d::CCRenderTexture::updateInternalScale(v11, v14, v15); (*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 241) + 64))( *((_DWORD *)this + 241), COERCE_FLOAT(LODWORD(v12))); return (*(int (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 241) + 72))( *((_DWORD *)this + 241), COERCE_FLOAT(LODWORD(v13))); }
GD Web Decomp Icon

GD Web Decomp

Raw Source