//
// sub_1402B0910 from 0x1402b0910 to 0x1402b099a (138 bytes)
//
// 3 xrefs:
// > GJSmartTemplate::logTemplateStatus @ 0x1402b4b51
// > GJSmartTemplate::getTemplateState @ 0x1402b50ce
// > ??> @ 0x1406d2318
//
// 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
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall sub_1402B0910(_QWORD *a1, _QWORD *a2)
{
__int64 v2; // rdi
v2 = (__int64)a2;
*(_OWORD *)a1 = 0;
a1[2] = 1;
a1[3] = 15;
*(_WORD *)a1 = 49;
if ( a2[3] > 0xFu )
a2 = (_QWORD *)*a2;
sub_140041270(a1, a2, *(_QWORD *)(v2 + 16));
sub_14003A830(v2);
return a1;
}