//
// GJSmartTemplate::offsetForObject from 0x66ed6c to 0x66edba (78 bytes)
//
// 2 xrefs:
// > EditorUI::createSmartObjectsFromTemplate @ 0x487d62
// > EditorUI::createSmartObjectsFromTemplate @ 0x487e54
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:49 +0000
//
cocos2d::CCPoint *__fastcall GJSmartTemplate::offsetForObject(cocos2d::CCPoint *a1, _DWORD *a2)
{
int v4; // r0
_BYTE v6[8]; // [sp+4h] [bp-10h] BYREF
if ( a2 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, (const cocos2d::CCPoint *)&unk_D2D218);
v4 = GJSmartTemplate::smartObjectToType(a2, (cocos2d::CCPoint *)v6);
GJSmartTemplate::offsetForType(a1, v4);
}
else
{
cocos2d::CCPoint::CCPoint(a1, (const cocos2d::CCPoint *)&unk_D2D218);
}
return a1;
}