//
// GJSmartTemplate::shouldDiscardObject from 0x100007904 to 0x1000079ac (168 bytes)
//
// 1 xrefs:
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008eb4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall GJSmartTemplate::shouldDiscardObject(SmartBlockType a1, GJSmartDirection a2)
{
unsigned int v2; // w8
bool v3; // cf
unsigned int v4; // w8
LOBYTE(v2) = 0;
if ( a1 <= WideSlope9 )
{
if ( a1 > WideSlope5 )
{
if ( a1 != WideSlope6 )
{
if ( a1 != WideSlope8 )
return v2 & 1;
goto LABEL_12;
}
}
else if ( a1 != WideSlope2 )
{
if ( a1 != WideSlope4 )
return v2 & 1;
LABEL_12:
v3 = (unsigned int)a2 >= BottomRight;
v4 = 166;
goto LABEL_17;
}
v3 = (unsigned int)a2 >= 9;
v4 = 326;
LABEL_17:
v2 = v4 >> a2;
if ( v3 )
LOBYTE(v2) = 0;
return v2 & 1;
}
if ( a1 > WideSlope13 )
{
if ( a1 == WideSlope14 || a1 == WideSlope16 )
LOBYTE(v2) = (unsigned int)(a2 - 3) < 4;
}
else if ( a1 == WideSlope10 || a1 == WideSlope12 )
{
LOBYTE(v2) = ((a2 - 3) & 0xFFFFFFFA) == 0;
}
return v2 & 1;
}