//
// GJSmartTemplate::shouldDiscardObject from 0x9d1470 to 0x9d1500 (144 bytes)
//
// 2 xrefs:
// > GJSmartBlockPreview::addTemplateGuide @ 0x9d69b0
// > ??> @ 0xa2c90
//
// 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 GJSmartTemplate::shouldDiscardObject(SmartBlockType a1, GJSmartDirection a2)
{
bool result; // w0
switch ( a1 )
{
case WideSlope2:
case WideSlope6:
result = 1;
if ( ((a2 - 6) & 0xFFFFFFFD) != 0 )
result = (unsigned int)(a2 - 1) <= 1;
break;
case WideSlope4:
case WideSlope8:
result = 1;
if ( (a2 & 0xFFFFFFFD) != 5 )
result = (unsigned int)(a2 - 1) <= 1;
break;
case WideSlope10:
case WideSlope12:
result = ((a2 - 3) & 0xFFFFFFFB) <= 1;
break;
case WideSlope14:
case WideSlope16:
result = (unsigned int)(a2 - 3) <= 3;
break;
default:
result = 0;
break;
}
return result;
}