//
// GJSmartTemplate::offsetForType from 0x1402b3650 to 0x1402b373b (235 bytes)
//
// 8 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x140115de7
// > EditorUI::createSmartObjectsFromTemplate @ 0x140116f79
// > EditorUI::createSmartObjectsFromTemplate @ 0x1401170f1
// > EditorUI::createPrefab @ 0x140117b7b
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b5fe3
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1402b63f4
// > GJSmartBlockPreview::addPreview @ 0x1402b66b3
// > ??> @ 0x1406d23c0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
cocos2d::CCPoint GJSmartTemplate::offsetForType(SmartBlockType a1)
{
int v1; // edx
float v2; // xmm0_4
cocos2d::CCPoint v3; // rbx
cocos2d::CCPoint result; // rax
v3 = *(cocos2d::CCPoint *)&a1;
switch ( v1 )
{
case '6':
case '9':
case 'A':
case 'D':
cocos2d::CCPoint::CCPoint(v2, 15.0);
result = v3;
break;
case '7':
case '8':
case 'B':
case 'C':
cocos2d::CCPoint::CCPoint(v2, -15.0);
result = v3;
break;
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
cocos2d::CCPoint::CCPoint(v2, 0.0);
result = v3;
break;
default:
cocos2d::CCPoint::CCPoint(*(cocos2d::CCPoint **)&a1);
result = v3;
break;
}
return result;
}