//
// GJSmartTemplate::offsetForObject from 0x1004264e0 to 0x10042653c (92 bytes)
//
// 2 xrefs:
// > EditorUI::createSmartObjectsFromTemplate @ 0x100042b2b
// > EditorUI::createSmartObjectsFromTemplate @ 0x100042d06
//
// 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
//
cocos2d::CCPoint __fastcall GJSmartTemplate::offsetForObject(SmartGameObject *a1)
{
__int64 v1; // rax
SmartGameObject *v2; // rsi
cocos2d::CCPoint v3; // xmm0_8
_QWORD v4[4]; // [rsp+0h] [rbp-20h] BYREF
cocos2d::CCPoint result; // 0:xmm0_8.8
v4[0] = v1;
if ( v2 )
{
*(double *)&v3 = sub_10028CC60(v4, &dbl_1009A15B8);
GJSmartTemplate::smartObjectToType(v2, v3);
return GJSmartTemplate::offsetForType((SmartBlockType)a1);
}
else
{
*(double *)&result = sub_10028CC60(a1, &dbl_1009A15B8);
}
return result;
}