//
// GJSmartTemplate::shouldDiscardObject from 0xb0c51c to 0xb0c5ac (144 bytes)
//
// 2 xrefs:
// > GJSmartBlockPreview::addTemplateGuide @ 0xb0fcd4
// > ??> @ 0xd6018
//
// 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:26 +0000
//
bool __fastcall GJSmartTemplate::shouldDiscardObject(int a1, int a2)
{
_BOOL8 result; // x0
switch ( a1 )
{
case '7':
case 'B':
result = 1;
if ( ((a2 - 6) & 0xFFFFFFFD) != 0 )
result = (unsigned int)(a2 - 1) <= 1;
break;
case '9':
case 'D':
result = 1;
if ( (a2 & 0xFFFFFFFD) != 5 )
result = (unsigned int)(a2 - 1) <= 1;
break;
case 'F':
case 'H':
result = ((a2 - 3) & 0xFFFFFFFB) <= 1;
break;
case 'J':
case 'L':
result = (unsigned int)(a2 - 3) <= 3;
break;
default:
result = 0;
break;
}
return result;
}