// // ShaderLayer::prePixelateShader from 0xb2c4c8 to 0xb2c65c (404 bytes) // // 2 xrefs: // > ShaderLayer::performCalculations @ 0xb2e604 // > @ 0x8ca88 // // 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::prePixelateShader(ShaderLayer *this) { char v2; // w1 float v3; // s8 __int64 v4; // x0 float v5; // s0 cocos2d::CCRenderTexture *v6; // x0 float v7; // s9 float v8; // s8 float v9; // s8 cocos2d::CCRenderTexture *v10; // x0 unsigned __int8 v12; // w1 if ( *((float *)this + 193) > 1.0 || *((float *)this + 194) > 1.0 || cocos2d::CCNode::getActionByTag(this, 9) || cocos2d::CCNode::getActionByTag(this, 10) ) { v2 = *((_BYTE *)this + 783); *((_BYTE *)this + 1078) = 1; *((_BYTE *)this + 781) = 1; ShaderLayer::toggleAntiAlias((__int64)this, v2 ^ 1); } else { v12 = *((_BYTE *)this + 1113); *((_BYTE *)this + 781) = 0; ShaderLayer::toggleAntiAlias((__int64)this, v12); } if ( *((float *)this + 193) < 1.0 ) *((float *)this + 193) = 1.0; if ( *((float *)this + 194) < 1.0 ) *((float *)this + 194) = 1.0; v3 = *((float *)this + 288); if ( !*((_BYTE *)this + 782) || (v4 = *((_QWORD *)this + 141)) == 0 ) { v5 = 1.0; if ( !*((_BYTE *)this + 781) ) goto LABEL_10; LABEL_12: v9 = v5 * v3; v10 = *((cocos2d::CCRenderTexture **)this + 137); v7 = v9 * *((float *)this + 193); v8 = v9 * *((float *)this + 194); *((float *)this + 128) = 1.0 / v7; *((float *)this + 129) = 1.0 / v8; cocos2d::CCRenderTexture::updateInternalScale(v10, 1.0 / v7, 1.0 / v8); goto LABEL_13; } v5 = fabsf((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 3920) + 168LL))(*(_QWORD *)(v4 + 3920))); if ( *((_BYTE *)this + 781) ) goto LABEL_12; LABEL_10: v6 = *((cocos2d::CCRenderTexture **)this + 137); v7 = *((float *)this + 193); v8 = *((float *)this + 194); *((float *)this + 128) = 1.0 / v7; *((float *)this + 129) = 1.0 / v8; cocos2d::CCRenderTexture::updateInternalScale(v6, 0.0, 0.0); LABEL_13: (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 138) + 128LL))(*((_QWORD *)this + 138), v7); return (*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 138) + 144LL))(*((_QWORD *)this + 138), v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source