//
// sub_100008354 from 0x100008354 to 0x1000083a8 (84 bytes)
//
// 1 xrefs:
// > GJSmartTemplate::getTemplateState @ 0x10000822c
//
// 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
//
__int64 __fastcall sub_100008354(__int64 a1, __int64 a2)
{
unsigned __int64 v3; // x20
__int64 result; // x0
v3 = *(_QWORD *)(a1 + 8);
if ( v3 >= *(_QWORD *)(a1 + 16) )
{
result = sub_10000A400(a1, a2);
}
else
{
sub_10000A548(a1, *(_QWORD *)(a1 + 8), a2);
result = v3 + 72;
*(_QWORD *)(a1 + 8) = v3 + 72;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}