{"type": "func", "start": 10636988, "end": 10637020, "name": "CharacterColorPage::colorForIndex", "pseudocode": "// \n// CharacterColorPage::colorForIndex from 0xa24ebc to 0xa24edc (32 bytes)\n// \n// 2 xrefs:\n// > CharacterColorPage::createColorMenu @ 0xa250b0\n// > <???> @ 0x7f458\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint CharacterColorPage::colorForIndex(CharacterColorPage *a1, int a2)\n{\n  int result; // w0\n\n  result = -1;\n  if ( (unsigned int)a2 <= 0x8E )\n    return byte_F0EA40[a2];\n  return result;\n}", "assembly": "; \n; CharacterColorPage::colorForIndex from 0xa24ebc to 0xa24edc (32 bytes)\n; \n; 2 xrefs:\n; > CharacterColorPage::createColorMenu @ 0xa250b0\n; > <???> @ 0x7f458\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nCMP             W1, #0x8E                                              ; +0x0, 0xa24ebc\nMOV             W0, #0xFFFFFFFF                                        ; +0x4, 0xa24ec0\nB.HI            locret_A24ED8                                          ; +0x8, 0xa24ec4\nADRL            X0, off_F0EA30                                         ; +0xc, 0xa24ec8\nADD             X0, X0, #(byte_F0EA40 - 0xF0EA30)                      ; +0x14, 0xa24ed0\nLDRSB           W0, [X0,W1,UXTW]                                       ; +0x18, 0xa24ed4\nRET                                                                    ; +0x1c, 0xa24ed8", "xrefs": ["CharacterColorPage::createColorMenu @ 0xa250b0", "<???> @ 0x7f458"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}