// // CharacterColorPage::offsetForIndex from 0x5650cc to 0x56515a (142 bytes) // // 1 xrefs: // > CharacterColorPage::createColorMenu @ 0x5652ec // // 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 *CharacterColorPage::offsetForIndex( cocos2d::CCPoint *__return_ptr retstr, CharacterColorPage *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(retstr, v8, v5); return retstr; }