//
// GJSmartTemplate::offsetForType from 0x539d38 to 0x539d84 (76 bytes)
//
// 6 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x39bfc2
// > EditorUI::createPrefab @ 0x3a419c
// > GJSmartTemplate::offsetForObject @ 0x53a074
// > GJSmartBlockPreview::addPreview @ 0x53b7f4
// > GJSmartBlockPreview::addTemplateGuide @ 0x53bbf2
// > GJSmartBlockPreview::addTemplateGuide @ 0x53bcda
//
// 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::offsetForType(cocos2d::CCPoint *__return_ptr retstr, SmartBlockType a2)
{
float v3; // r1
float v4; // r2
switch ( a2 )
{
case WideSlope1:
case WideSlope4:
case WideSlope5:
case WideSlope8:
v3 = 15.0;
goto LABEL_4;
case WideSlope2:
case WideSlope3:
case WideSlope6:
case WideSlope7:
v3 = -15.0;
LABEL_4:
v4 = 0.0;
goto LABEL_7;
case WideSlope9:
case WideSlope11:
case WideSlope14:
case WideSlope16:
v3 = 0.0;
v4 = -15.0;
goto LABEL_7;
case WideSlope10:
case WideSlope12:
case WideSlope13:
case WideSlope15:
v4 = 15.0;
v3 = 0.0;
LABEL_7:
cocos2d::CCPoint::CCPoint(retstr, v3, v4);
break;
default:
cocos2d::CCPoint::CCPoint(retstr, &stru_AC7808);
break;
}
return retstr;
}