//
// GJSmartTemplate::offsetForObject from 0x53a03c to 0x53a08a (78 bytes)
//
// 2 xrefs:
// > EditorUI::createSmartObjectsFromTemplate @ 0x3a4f64
// > EditorUI::createSmartObjectsFromTemplate @ 0x3a5056
//
// 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 *GJSmartTemplate::offsetForObject(cocos2d::CCPoint *__return_ptr retstr, SmartGameObject *a2)
{
cocos2d::CCPoint v4; // r1
SmartBlockType v5; // r0
cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF
if ( a2 )
{
cocos2d::CCPoint::CCPoint(&v7, &stru_AC7808);
LODWORD(v4.x) = &v7;
v5 = GJSmartTemplate::smartObjectToType(a2, v4);
GJSmartTemplate::offsetForType(retstr, v5);
}
else
{
cocos2d::CCPoint::CCPoint(retstr, &stru_AC7808);
}
return retstr;
}