//
// cocos2d::CCRenderTexture::updateInternalScale from 0xd6a6cc to 0xd6a724 (88 bytes)
//
// 3 xrefs:
// > ShaderLayer::prePixelateShader @ 0xb2c584
// > ShaderLayer::prePixelateShader @ 0xb2c5cc
// > ??> @ 0x91c78
//
// 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:07:56 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::updateInternalScale(__int64 this, float a2, float a3)
{
if ( a2 < 1.0 )
{
if ( a2 <= 0.0 )
a2 = 0.0;
}
else
{
a2 = 1.0;
}
*(float *)(this + 404) = a2;
if ( a3 >= 1.0 )
{
a3 = 1.0;
LABEL_5:
*(float *)(this + 408) = a3;
return this;
}
if ( a3 > 0.0 )
goto LABEL_5;
*(_DWORD *)(this + 408) = 0;
return this;
}