//
// GJSmartTemplate::offsetForType from 0x100426800 to 0x100426870 (112 bytes)
//
// 7 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x100041470
// > EditorUI::createPrefab @ 0x1000439b9
// > EditorUI::createPrefab @ 0x100043af3
// > GJSmartTemplate::offsetForObject @ 0x100426518
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428e10
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428fb4
// > GJSmartBlockPreview::addPreview @ 0x10042939d
//
// 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 __fastcall GJSmartTemplate::offsetForType(SmartBlockType a1)
{
int v1; // esi
float v3; // xmm1_4
cocos2d::CCPoint result; // 0:xmm0_8.8
switch ( v1 )
{
case '6':
case '9':
case 'A':
case 'D':
result = (cocos2d::CCPoint)1097859072LL;
goto LABEL_4;
case '7':
case '8':
case 'B':
case 'C':
result = (cocos2d::CCPoint)3245342720LL;
LABEL_4:
v3 = 0.0;
goto LABEL_8;
case 'E':
case 'G':
case 'J':
case 'L':
v3 = -15.0;
goto LABEL_7;
case 'F':
case 'H':
case 'I':
case 'K':
v3 = 15.0;
LABEL_7:
*(double *)&result = 0.0;
LABEL_8:
sub_10028CBE0(*(float **)&a1, result.x, v3);
break;
default:
*(double *)&result = sub_10028CC60(*(_QWORD **)&a1, &dbl_1009A15B8);
break;
}
return result;
}