//
// GJSmartTemplate::shouldDiscardObject from 0x100413540 to 0x1004135a2 (98 bytes)
//
// 0 xrefs:
//
// 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 12:30:10 +0000
//
char __fastcall GJSmartTemplate::shouldDiscardObject(int a1, unsigned int a2)
{
unsigned int v2; // eax
char result; // al
LOBYTE(v2) = 0;
switch ( a1 )
{
case '7':
case 'B':
if ( a2 >= 9 )
goto LABEL_9;
v2 = 0x146u >> a2;
goto LABEL_4;
case '9':
case 'D':
if ( a2 >= 8 )
LABEL_9:
result = 0;
else
result = (0xA6u >> a2) & 1;
break;
case 'F':
case 'H':
result = ((a2 - 3) & 0xFFFFFFFA) == 0;
break;
case 'J':
case 'L':
result = a2 - 3 < 4;
break;
default:
LABEL_4:
result = v2 & 1;
break;
}
return result;
}