//
// GJSmartTemplate::offsetForObject from 0xb0c970 to 0xb0ca04 (148 bytes)
//
// 3 xrefs:
// > EditorUI::createSmartObjectsFromTemplate @ 0x7cb254
// > EditorUI::createSmartObjectsFromTemplate @ 0x7cb730
// > ??> @ 0xfa3a8
//
// This function is hookable on this platform (idp: arm, 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 13:01:26 +0000
//
cocos2d::CCPoint *__usercall GJSmartTemplate::offsetForObject@(_DWORD *a1@, cocos2d::CCPoint *a2@)
{
int v4; // w0
_BYTE v6[8]; // [xsp+30h] [xbp+30h] BYREF
if ( a1 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, (const cocos2d::CCPoint *)&unk_155E0E0);
v4 = GJSmartTemplate::smartObjectToType(a1, (cocos2d::CCPoint *)v6);
GJSmartTemplate::offsetForType(v4, a2);
}
else
{
cocos2d::CCPoint::CCPoint(a2, (const cocos2d::CCPoint *)&unk_155E0E0);
}
return a2;
}