//
// GameToolbox::easeToText from 0x1004f6540 to 0x1004f678c (588 bytes)
//
// 6 xrefs:
// > GJRotateCommandLayer::updateEasingLabel @ 0x100003ee5
// > SetupTriggerPopup::updateEaseLabel @ 0x10023ed55
// > SetupTriggerPopup::updateCustomEaseLabel @ 0x10023fc31
// > SetupCameraRotatePopup::updateEasingLabel @ 0x1004be025
// > SetupMGTrigger::updateEasingLabel @ 0x100509d35
// > SetupCameraOffsetTrigger::updateEasingLabel @ 0x100663235
//
// 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
//
__int64 __fastcall GameToolbox::easeToText(__int64 a1, int a2)
{
__int64 result; // rax
__int64 *v3; // rcx
__int64 v4; // rdx
__int64 v5; // rcx
__int64 v6; // rdx
result = a1;
v3 = (__int64 *)(a1 + 1);
switch ( a2 )
{
case 1:
*(_BYTE *)a1 = 22;
v4 = 0x206E492065736145LL;
goto LABEL_17;
case 2:
*(_BYTE *)a1 = 14;
strcpy((char *)(a1 + 1), "Ease In");
return result;
case 3:
*(_BYTE *)a1 = 16;
v5 = 0x74754F2065736145LL;
goto LABEL_15;
case 4:
*(_BYTE *)a1 = 28;
*(_QWORD *)(a1 + 7) = 0x74754F206E492063LL;
v6 = 0x2063697473616C45LL;
goto LABEL_22;
case 5:
*(_BYTE *)a1 = 20;
strcpy((char *)(a1 + 1), "Elastic In");
return result;
case 6:
*(_BYTE *)a1 = 22;
v4 = 0x2063697473616C45LL;
goto LABEL_17;
case 7:
*(_BYTE *)a1 = 26;
strcpy((char *)(a1 + 1), "Bounce In Out");
return result;
case 8:
*(_BYTE *)a1 = 18;
strcpy((char *)(a1 + 1), "Bounce In");
return result;
case 9:
*(_BYTE *)a1 = 20;
strcpy((char *)(a1 + 1), "Bounce Out");
return result;
case 10:
strcpy((char *)a1, "$Exponential In Out");
return result;
case 11:
*(_BYTE *)a1 = 28;
*(_QWORD *)(a1 + 7) = 0x6E49206C6169746ELL;
v6 = 0x746E656E6F707845LL;
LABEL_22:
*v3 = v6;
*(_BYTE *)(a1 + 15) = 0;
return result;
case 12:
*(_BYTE *)a1 = 30;
strcpy((char *)(a1 + 1), "Exponential Out");
return result;
case 13:
*(_BYTE *)a1 = 22;
v4 = 0x206E4920656E6953LL;
goto LABEL_17;
case 14:
*(_BYTE *)a1 = 14;
strcpy((char *)(a1 + 1), "Sine In");
return result;
case 15:
*(_BYTE *)a1 = 16;
v5 = 0x74754F20656E6953LL;
goto LABEL_15;
case 16:
*(_BYTE *)a1 = 22;
v4 = 0x206E49206B636142LL;
LABEL_17:
*v3 = v4;
strcpy((char *)(a1 + 8), " Out");
break;
case 17:
*(_BYTE *)a1 = 14;
strcpy((char *)(a1 + 1), "Back In");
break;
case 18:
*(_BYTE *)a1 = 16;
v5 = 0x74754F206B636142LL;
LABEL_15:
*(_QWORD *)(a1 + 1) = v5;
*(_BYTE *)(a1 + 9) = 0;
break;
default:
*(_BYTE *)a1 = 8;
strcpy((char *)(a1 + 1), "None");
break;
}
return result;
}