//
// GJSmartTemplate::offsetForObject from 0x100413150 to 0x1004131ac (92 bytes)
//
// 2 xrefs:
// > EditorUI::createSmartObjectsFromTemplate @ 0x100013d4b
// > EditorUI::createSmartObjectsFromTemplate @ 0x100013f23
//
// 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
//
_QWORD *__fastcall GJSmartTemplate::offsetForObject(_QWORD *a1, __int64 a2)
{
__int64 v2; // rax
unsigned int v3; // eax
_QWORD v5[4]; // [rsp+0h] [rbp-20h] BYREF
v5[0] = v2;
if ( a2 )
{
sub_1002782D0(v5, &qword_100BE3838);
v3 = GJSmartTemplate::smartObjectToType(a2, v5);
GJSmartTemplate::offsetForType(a1, v3);
}
else
{
sub_1002782D0(a1, &qword_100BE3838);
}
return a1;
}