//
// CharacterColorPage::offsetForIndex from 0x10065e720 to 0x10065e78b (107 bytes)
//
// 1 xrefs:
// > CharacterColorPage::createColorMenu @ 0x10065de29
//
// 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 CharacterColorPage::offsetForIndex(CharacterColorPage *a1, int a2)
{
int v2; // edx
float v3; // xmm1_4
cocos2d::CCPoint result; // 0:xmm0_8.8
v3 = 0.0;
result = 0;
if ( (unsigned int)(v2 - 4) > 0x8A )
{
if ( (unsigned int)(v2 - 54) >= 0x52 )
goto LABEL_3;
LABEL_7:
v3 = -0.80000001;
goto LABEL_5;
}
result = (cocos2d::CCPoint)dword_100822E54[v2 - 4];
if ( (unsigned int)(v2 - 54) < 0x52 )
goto LABEL_7;
LABEL_3:
if ( v2 >= 136 )
v3 = 0.40000001;
LABEL_5:
sub_10028CBE0((float *)a1, result.x, v3);
return result;
}