//
// ShaderLayer::toggleAntiAlias from 0x68197c to 0x6819bc (64 bytes)
//
// 2 xrefs:
// > ShaderLayer::prePixelateShader @ 0x683cb8
// > ShaderLayer::setupShader @ 0x6850f6
//
// 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:02 +0000
//
int __fastcall ShaderLayer::toggleAntiAlias(int this, int a2)
{
int (*v2)(void); // r3
int v3; // r0
cocos2d::CCTexture2D *v4; // r0
int v5; // r0
cocos2d::CCTexture2D *v6; // r0
if ( *(unsigned __int8 *)(this + 968) != a2 )
{
*(_BYTE *)(this + 968) = a2;
v2 = *(int (**)(void))(**(_DWORD **)(this + 960) + 448);
if ( a2 )
{
v3 = v2();
v4 = (cocos2d::CCTexture2D *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 536))(v3);
return cocos2d::CCTexture2D::setAntiAliasTexParameters(v4);
}
else
{
v5 = v2();
v6 = (cocos2d::CCTexture2D *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5);
return cocos2d::CCTexture2D::setAliasTexParameters(v6);
}
}
return this;
}