//
// GJSmartTemplate::offsetForType from 0x100413470 to 0x1004134e0 (112 bytes)
//
// 7 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x100012640
// > EditorUI::createPrefab @ 0x10001494f
// > EditorUI::createPrefab @ 0x100014a83
// > GJSmartTemplate::offsetForObject @ 0x100413188
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415a80
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100415c24
// > GJSmartBlockPreview::addPreview @ 0x10041600d
//
// This function is hookable on this platform (idp: pc, 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 12:30:10 +0000
//
float *__fastcall GJSmartTemplate::offsetForType(float *a1, int a2)
{
float v2; // xmm0_4
float v3; // xmm1_4
switch ( a2 )
{
case '6':
case '9':
case 'A':
case 'D':
v2 = 15.0;
goto LABEL_4;
case '7':
case '8':
case 'B':
case 'C':
v2 = -15.0;
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:
v2 = 0.0;
LABEL_8:
sub_100278250(a1, v2, v3);
break;
default:
sub_1002782D0(a1, &qword_100BE3838);
break;
}
return a1;
}