//
// GJSmartTemplate::isUnrequired from 0x66f23a to 0x66f318 (222 bytes)
//
// 3 xrefs:
// > GJSmartTemplate::logTemplateStatus @ 0x6717d2
// > GJSmartTemplate::getTemplateState @ 0x67218a
// > BrowseSmartTemplateLayer::init @ 0x6755b4
//
// 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
//
int __fastcall GJSmartTemplate::isUnrequired(int a1, unsigned __int8 *a2)
{
_BOOL4 v3; // r4
int v4; // r7
_BOOL4 v5; // r8
_BOOL4 v6; // r6
int v7; // r11
int v8; // r9
int v9; // r10
int v10; // r2
v3 = *std::string::at(a2, 1u) != 48;
v4 = *std::string::at(a2, 2u);
v5 = *std::string::at(a2, 3u) != 48;
v6 = *std::string::at(a2, 4u) != 48;
v7 = *std::string::at(a2, 5u);
v8 = *std::string::at(a2, 6u);
v9 = *std::string::at(a2, 7u);
v10 = *std::string::at(a2, 8u);
if ( v7 == 48 )
{
if ( v8 == 48 )
goto LABEL_8;
if ( !v3 )
return 1;
}
else
{
if ( !v3 || !v5 )
return 1;
if ( v8 == 48 )
goto LABEL_8;
}
if ( !v6 )
return 1;
LABEL_8:
if ( v9 != 48 )
{
if ( v4 == 48 || !v5 )
return 1;
if ( v10 == 48 )
return 0;
return !v6;
}
if ( v10 != 48 )
{
if ( v4 != 48 )
return !v6;
return 1;
}
if ( !v3 )
{
if ( v4 != 48 || v5 )
return 0;
return !v6;
}
return 0;
}