{"type": "func", "start": 6934588, "end": 6934730, "name": "CharacterColorPage::offsetForIndex", "pseudocode": "// \n// CharacterColorPage::offsetForIndex from 0x69d03c to 0x69d0ca (142 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x69d548\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:56:20 +0000\n// \n\nCharacterColorPage *__fastcall CharacterColorPage::offsetForIndex(CharacterColorPage *this, int a2, int a3)\n{\n  float v5; // r2\n  unsigned int v6; // r3\n  bool v7; // cc\n  float v8; // r1\n\n  if ( (unsigned int)(a3 - 54) <= 0x51 )\n  {\n    v5 = -0.8;\n  }\n  else if ( a3 > 135 )\n  {\n    v5 = 0.4;\n  }\n  else\n  {\n    v5 = 0.0;\n  }\n  if ( a3 > 61 )\n  {\n    if ( a3 > 97 )\n    {\n      if ( a3 > 115 )\n      {\n        v7 = (unsigned int)(a3 - 136) > 6;\nLABEL_28:\n        if ( !v7 )\n          goto LABEL_29;\nLABEL_30:\n        v8 = 0.0;\n        goto LABEL_31;\n      }\n      if ( a3 < 112 )\n      {\n        v6 = a3 - 103;\n        goto LABEL_16;\n      }\n    }\n    else if ( a3 < 94 )\n    {\n      if ( a3 > 79 )\n      {\n        v6 = a3 - 85;\n        goto LABEL_16;\n      }\n      if ( a3 < 76 )\n      {\n        v6 = a3 - 67;\n        goto LABEL_16;\n      }\n    }\n  }\n  else if ( a3 < 58 )\n  {\n    if ( a3 > 25 )\n    {\n      if ( a3 > 43 )\n      {\n        v6 = a3 - 49;\n        goto LABEL_16;\n      }\n      if ( a3 < 40 )\n      {\n        v6 = a3 - 31;\n        goto LABEL_16;\n      }\n    }\n    else if ( a3 < 22 )\n    {\n      if ( a3 < 4 )\n        goto LABEL_30;\n      if ( a3 > 7 )\n      {\n        v6 = a3 - 13;\nLABEL_16:\n        v7 = v6 > 3;\n        goto LABEL_28;\n      }\n    }\n  }\nLABEL_29:\n  v8 = 1.0;\nLABEL_31:\n  cocos2d::CCPoint::CCPoint(this, v8, v5);\n  return this;\n}", "assembly": "; \n; CharacterColorPage::offsetForIndex from 0x69d03c to 0x69d0ca (142 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x69d548\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:56:20 +0000\n; \nMOV             R3, R2                                                 ; +0x0, 0x69d03c\nSUBS            R2, #0x36 ; '6'                                        ; +0x2, 0x69d03e\nCMP             R2, #0x51 ; 'Q'                                        ; +0x4, 0x69d040\nPUSH            {R4,LR}                                                ; +0x6, 0x69d042\nMOV             R4, R0                                                 ; +0x8, 0x69d044\nBLS             loc_69D05E                                             ; +0xa, 0x69d046\nVLDR            S14, =0.0                                              ; +0xc, 0x69d048\nCMP             R3, #0x87                                              ; +0x10, 0x69d04c\nVLDR            S15, =0.4                                              ; +0x12, 0x69d04e\nITE LE                                                                 ; +0x16, 0x69d052\nVMOVLE          R2, S14                                                ; +0x18, 0x69d054\nVMOVGT          R2, S15                                                ; +0x1c, 0x69d058\nB               loc_69D060                                             ; +0x20, 0x69d05c\nLDR             R2, flt_69D0D4; float                                  ; +0x22, 0x69d05e\nCMP             R3, #0x3D ; '='                                        ; +0x24, 0x69d060\nBGT             loc_69D08E                                             ; +0x26, 0x69d062\nCMP             R3, #0x3A ; ':'                                        ; +0x28, 0x69d064\nBGE             loc_69D0B8                                             ; +0x2a, 0x69d066\nCMP             R3, #0x19                                              ; +0x2c, 0x69d068\nBGT             loc_69D07C                                             ; +0x2e, 0x69d06a\nCMP             R3, #0x16                                              ; +0x30, 0x69d06c\nBGE             loc_69D0B8                                             ; +0x32, 0x69d06e\nCMP             R3, #4                                                 ; +0x34, 0x69d070\nBLT             loc_69D0BE                                             ; +0x36, 0x69d072\nCMP             R3, #7                                                 ; +0x38, 0x69d074\nBLE             loc_69D0B8                                             ; +0x3a, 0x69d076\nSUBS            R3, #0xD                                               ; +0x3c, 0x69d078\nB               loc_69D086                                             ; +0x3e, 0x69d07a\nCMP             R3, #0x2B ; '+'                                        ; +0x40, 0x69d07c\nBGT             loc_69D08A                                             ; +0x42, 0x69d07e\nCMP             R3, #0x28 ; '('                                        ; +0x44, 0x69d080\nBGE             loc_69D0B8                                             ; +0x46, 0x69d082\nSUBS            R3, #0x1F                                              ; +0x48, 0x69d084\nCMP             R3, #3                                                 ; +0x4a, 0x69d086\nB               loc_69D0B6                                             ; +0x4c, 0x69d088\nSUBS            R3, #0x31 ; '1'                                        ; +0x4e, 0x69d08a\nB               loc_69D086                                             ; +0x50, 0x69d08c\nCMP             R3, #0x61 ; 'a'                                        ; +0x52, 0x69d08e\nBGT             loc_69D0A6                                             ; +0x54, 0x69d090\nCMP             R3, #0x5E ; '^'                                        ; +0x56, 0x69d092\nBGE             loc_69D0B8                                             ; +0x58, 0x69d094\nCMP             R3, #0x4F ; 'O'                                        ; +0x5a, 0x69d096\nBGT             loc_69D0A2                                             ; +0x5c, 0x69d098\nCMP             R3, #0x4C ; 'L'                                        ; +0x5e, 0x69d09a\nBGE             loc_69D0B8                                             ; +0x60, 0x69d09c\nSUBS            R3, #0x43 ; 'C'                                        ; +0x62, 0x69d09e\nB               loc_69D086                                             ; +0x64, 0x69d0a0\nSUBS            R3, #0x55 ; 'U'                                        ; +0x66, 0x69d0a2\nB               loc_69D086                                             ; +0x68, 0x69d0a4\nCMP             R3, #0x73 ; 's'                                        ; +0x6a, 0x69d0a6\nBGT             loc_69D0B2                                             ; +0x6c, 0x69d0a8\nCMP             R3, #0x70 ; 'p'                                        ; +0x6e, 0x69d0aa\nBGE             loc_69D0B8                                             ; +0x70, 0x69d0ac\nSUBS            R3, #0x67 ; 'g'                                        ; +0x72, 0x69d0ae\nB               loc_69D086                                             ; +0x74, 0x69d0b0\nSUBS            R3, #0x88                                              ; +0x76, 0x69d0b2\nCMP             R3, #6                                                 ; +0x78, 0x69d0b4\nBHI             loc_69D0BE                                             ; +0x7a, 0x69d0b6\nMOV.W           R1, #0x3F800000                                        ; +0x7c, 0x69d0b8\nB               loc_69D0C0                                             ; +0x80, 0x69d0bc\nMOVS            R1, #0; float                                          ; +0x82, 0x69d0be\nMOV             R0, R4; this                                           ; +0x84, 0x69d0c0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x86, 0x69d0c2\nMOV             R0, R4                                                 ; +0x8a, 0x69d0c6\nPOP             {R4,PC}                                                ; +0x8c, 0x69d0c8", "xrefs": ["CharacterColorPage::createColorMenu @ 0x69d548"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}