//
// ShaderLayer::toggleAntiAlias from 0x140623750 to 0x1406237b7 (103 bytes)
//
// 3 xrefs:
// > ShaderLayer::setupShader @ 0x140622f4c
// > ShaderLayer::prePixelateShader @ 0x1406272ec
// > ??> @ 0x140930524
//
// This function is hookable on this platform (idp: pc, 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 11:35:23 +0000
//
void __fastcall ShaderLayer::toggleAntiAlias(__int64 a1, char a2)
{
__int64 v2; // rax
__int64 v3; // rax
cocos2d::CCTexture2D *v4; // rax
__int64 v5; // rax
cocos2d::CCTexture2D *v6; // rax
if ( *(_BYTE *)(a1 + 1160) != a2 )
{
*(_BYTE *)(a1 + 1160) = a2;
v2 = **(_QWORD **)(a1 + 1144);
if ( a2 )
{
v3 = (*(__int64 (**)(void))(v2 + 888))();
v4 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v3 + 344) + 16LL))(v3 + 344);
cocos2d::CCTexture2D::setAntiAliasTexParameters(v4);
}
else
{
v5 = (*(__int64 (**)(void))(v2 + 888))();
v6 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v5 + 344) + 16LL))(v5 + 344);
cocos2d::CCTexture2D::setAliasTexParameters(v6);
}
}
}