//
// GJSmartTemplate::offsetForType from 0x1000078a0 to 0x100007904 (100 bytes)
//
// 6 xrefs:
// > GJSmartTemplate::offsetForObject @ 0x1000075a8
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008df4
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008f30
// > GJSmartBlockPreview::addPreview @ 0x100009284
// > EditorUI::addObjectsToSmartTemplate @ 0x1003f0bb0
// > EditorUI::createPrefab @ 0x1003f2360
//
// 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 __fastcall GJSmartTemplate::offsetForType(SmartBlockType a1)
{
__int64 v1; // x8
__n128 v2; // q0
__n128 v3; // q1
cocos2d::CCPoint v6; // 0:kr00_8.8
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
switch ( a1 )
{
case WideSlope1:
case WideSlope4:
case WideSlope5:
case WideSlope8:
v2.n128_u32[0] = 15.0;
goto LABEL_4;
case WideSlope2:
case WideSlope3:
case WideSlope6:
case WideSlope7:
v2.n128_u32[0] = -15.0;
LABEL_4:
v3.n128_u32[0] = 0;
goto LABEL_5;
case WideSlope9:
case WideSlope11:
case WideSlope14:
case WideSlope16:
v2.n128_u32[0] = 0;
v3.n128_u32[0] = -15.0;
goto LABEL_5;
case WideSlope10:
case WideSlope12:
case WideSlope13:
case WideSlope15:
v2.n128_u32[0] = 0;
v3.n128_u32[0] = 15.0;
LABEL_5:
v6 = sub_100022980(v2, v3);
result.x = v6.x;
result.y = v6.y;
break;
default:
result.x = sub_1000229B8(v1);
break;
}
return result;
}