//
// ShaderLayer::toggleAntiAlias from 0xb29a4c to 0xb29ac4 (120 bytes)
//
// 4 xrefs:
// > ShaderLayer::prePixelateShader @ 0xb2c504
// > ShaderLayer::prePixelateShader @ 0xb2c654
// > ShaderLayer::setupShader @ 0xb2def4
// > ??> @ 0x72808
//
// 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:40 +0000
//
__int64 __fastcall ShaderLayer::toggleAntiAlias(__int64 this, unsigned __int8 a2)
{
__int64 v2; // x0
cocos2d::CCTexture2D *v3; // x0
__int64 v4; // x0
cocos2d::CCTexture2D *v5; // x0
if ( *(unsigned __int8 *)(this + 1112) != a2 )
{
*(_BYTE *)(this + 1112) = a2;
if ( a2 )
{
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(this + 1096) + 896LL))(*(_QWORD *)(this + 1096));
v5 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1072LL))(v4);
return cocos2d::CCTexture2D::setAntiAliasTexParameters(v5);
}
else
{
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(this + 1096) + 896LL))(*(_QWORD *)(this + 1096));
v3 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1072LL))(v2);
return cocos2d::CCTexture2D::setAliasTexParameters(v3);
}
}
return this;
}