//
// GJSmartTemplate::applyTransformationsForType from 0x100426990 to 0x100426a57 (199 bytes)
//
// 4 xrefs:
// > EditorUI::createPrefab @ 0x100043a5f
// > EditorUI::createPrefab @ 0x100043aaf
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428df5
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428f97
//
// 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
//
void __fastcall GJSmartTemplate::applyTransformationsForType(SmartBlockType a1, cocos2d::CCSprite *a2)
{
void (__cdecl *setRotation)(cocos2d::CCSprite *__hidden, float); // rax
__int64 v3; // xmm0_8
switch ( a1 )
{
case NormalSlope2:
case WideSlope11:
case WideSlope12:
setRotation = a2->setRotation;
v3 = 1119092736;
goto LABEL_9;
case NormalSlope3:
setRotation = a2->setRotation;
v3 = 1132920832;
goto LABEL_9;
case NormalSlope4:
case WideSlope7:
case WideSlope8:
setRotation = a2->setRotation;
v3 = 1127481344;
goto LABEL_9;
case WideSlope3:
case WideSlope4:
cocos2d::CCSprite::setFlipX(a2, 1);
return;
case WideSlope5:
case WideSlope6:
cocos2d::CCSprite::setFlipY(a2, 1);
return;
case WideSlope9:
case WideSlope10:
cocos2d::CCSprite::setFlipX(a2, 1);
goto LABEL_8;
case WideSlope13:
case WideSlope14:
goto LABEL_8;
case WideSlope15:
case WideSlope16:
cocos2d::CCSprite::setFlipY(a2, 1);
LABEL_8:
setRotation = a2->setRotation;
v3 = 3266576384LL;
LABEL_9:
((void (__fastcall *)(cocos2d::CCSprite *, double))setRotation)(a2, *(double *)&v3);
break;
default:
return;
}
}