//
// CharacterColorPage::offsetForIndex from 0x69d03c to 0x69d0ca (142 bytes)
//
// 1 xrefs:
// > CharacterColorPage::createColorMenu @ 0x69d548
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:20 +0000
//
CharacterColorPage *__fastcall CharacterColorPage::offsetForIndex(CharacterColorPage *this, int a2, int a3)
{
float v5; // r2
unsigned int v6; // r3
bool v7; // cc
float v8; // r1
if ( (unsigned int)(a3 - 54) <= 0x51 )
{
v5 = -0.8;
}
else if ( a3 > 135 )
{
v5 = 0.4;
}
else
{
v5 = 0.0;
}
if ( a3 > 61 )
{
if ( a3 > 97 )
{
if ( a3 > 115 )
{
v7 = (unsigned int)(a3 - 136) > 6;
LABEL_28:
if ( !v7 )
goto LABEL_29;
LABEL_30:
v8 = 0.0;
goto LABEL_31;
}
if ( a3 < 112 )
{
v6 = a3 - 103;
goto LABEL_16;
}
}
else if ( a3 < 94 )
{
if ( a3 > 79 )
{
v6 = a3 - 85;
goto LABEL_16;
}
if ( a3 < 76 )
{
v6 = a3 - 67;
goto LABEL_16;
}
}
}
else if ( a3 < 58 )
{
if ( a3 > 25 )
{
if ( a3 > 43 )
{
v6 = a3 - 49;
goto LABEL_16;
}
if ( a3 < 40 )
{
v6 = a3 - 31;
goto LABEL_16;
}
}
else if ( a3 < 22 )
{
if ( a3 < 4 )
goto LABEL_30;
if ( a3 > 7 )
{
v6 = a3 - 13;
LABEL_16:
v7 = v6 > 3;
goto LABEL_28;
}
}
}
LABEL_29:
v8 = 1.0;
LABEL_31:
cocos2d::CCPoint::CCPoint(this, v8, v5);
return this;
}