{"type": "func", "start": 5656752, "end": 5656774, "name": "CharacterColorPage::colorForIndex", "pseudocode": "// \n// CharacterColorPage::colorForIndex from 0x5650b0 to 0x5650c6 (22 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x56522e\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  if ( (unsigned int)a2 > 0x8E )\n    return -1;\n  else\n    return *((char *)&word_9AD6A4 + a2 + 4);\n}", "assembly": "; \n; CharacterColorPage::colorForIndex from 0x5650b0 to 0x5650c6 (22 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x56522e\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             R1, #0x8E                                              ; +0x0, 0x5650b0\nBHI             loc_5650C0                                             ; +0x2, 0x5650b2\nLDR             R3, =(word_9AD6A4 - 0x5650BA)                          ; +0x4, 0x5650b4\nADD             R3, PC; word_9AD6A4                                    ; +0x6, 0x5650b6\nADD             R1, R3                                                 ; +0x8, 0x5650b8\nLDRSB.W         R0, [R1,#4]                                            ; +0xa, 0x5650ba\nBX              LR                                                     ; +0xe, 0x5650be\nMOV.W           R0, #0xFFFFFFFF                                        ; +0x10, 0x5650c0\nBX              LR                                                     ; +0x14, 0x5650c4", "xrefs": ["CharacterColorPage::createColorMenu @ 0x56522e"], "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"}