//
// GJSmartTemplate::shouldDiscardObject from 0x66eac0 to 0x66eb22 (98 bytes)
//
// 1 xrefs:
// > GJSmartBlockPreview::addTemplateGuide @ 0x670684
//
// 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:55:49 +0000
//
unsigned int __fastcall GJSmartTemplate::shouldDiscardObject(int a1, int a2)
{
bool v2; // zf
unsigned int result; // r0
unsigned int v4; // r3
switch ( a1 )
{
case '7':
case 'B':
if ( a2 == 6 || a2 == 8 )
goto LABEL_19;
if ( a2 != 1 )
goto LABEL_5;
result = 1;
break;
case '9':
case 'D':
if ( a2 == 7 )
goto LABEL_19;
result = a2 & 0xFFFFFFFB;
if ( (a2 & 0xFFFFFFFB) != 1 )
{
LABEL_5:
v2 = a2 == 2;
goto LABEL_13;
}
break;
case 'F':
case 'H':
v4 = a2 - 7;
goto LABEL_10;
case 'J':
case 'L':
v4 = a2 - 5;
LABEL_10:
if ( v4 <= 1 || a2 == 3 )
{
LABEL_19:
result = 1;
}
else
{
v2 = a2 == 4;
LABEL_13:
result = v2;
}
break;
default:
result = 0;
break;
}
return result;
}