//
// GJSmartTemplate::applyTransformationsForType from 0xb0c5ac to 0xb0c6b4 (264 bytes)
//
// 4 xrefs:
// > EditorUI::createPrefab @ 0x7c9d4c
// > GJSmartBlockPreview::addTemplateGuide @ 0xb0fbd0
// > GJSmartBlockPreview::addTemplateGuide @ 0xb0fd50
// > ??> @ 0x907d8
//
// This function is hookable on this platform (idp: arm, 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 13:01:26 +0000
//
__int64 __fastcall GJSmartTemplate::applyTransformationsForType(int a1, cocos2d::CCSprite *this)
{
__int64 result; // x0
result = (unsigned int)(a1 - 51);
switch ( (int)result )
{
case 0:
case 20:
case 21:
result = (*(__int64 (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)this + 360LL))(this, 90.0);
break;
case 1:
result = (*(__int64 (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)this + 360LL))(this, 270.0);
break;
case 2:
case 16:
case 17:
result = (*(__int64 (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)this + 360LL))(this, 180.0);
break;
case 5:
case 6:
result = cocos2d::CCSprite::setFlipX(this, 1);
break;
case 14:
case 15:
result = cocos2d::CCSprite::setFlipY(this, 1);
break;
case 18:
case 19:
cocos2d::CCSprite::setFlipX(this, 1);
goto LABEL_3;
case 22:
case 23:
result = (*(__int64 (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)this + 360LL))(this, -90.0);
break;
case 24:
case 25:
cocos2d::CCSprite::setFlipY(this, 1);
LABEL_3:
result = (*(__int64 (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)this + 360LL))(this, -90.0);
break;
default:
return result;
}
return result;
}