{"type": "func", "start": 4301417120, "end": 4301417162, "name": "GJSpecialColorSelect::textForColorIdx", "pseudocode": "// \n// GJSpecialColorSelect::textForColorIdx from 0x100626aa0 to 0x100626aca (42 bytes)\n// \n// 24 xrefs:\n// > EditorUI::updateObjectInfoLabel @ 0x10002fb96\n// > EditorUI::updateObjectInfoLabel @ 0x10002fbd6\n// > EditorUI::setIDPopupClosed @ 0x100033317\n// > LevelEditorLayer::updateObjectLabel @ 0x1000e9f1c\n// > CustomizeObjectLayer::onSelectMode @ 0x1001f7650\n// > CustomizeObjectLayer::onSelectColor @ 0x1001f7a72\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x1001f7b40\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1001f81e7\n// > CustomizeObjectLayer::onPaste @ 0x1001f82be\n// > CustomizeObjectLayer::updateChannelLabel @ 0x1001f85f3\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1001f8a77\n// > CustomizeObjectLayer::textChanged @ 0x1001f9520\n// > SetColorIDPopup::init @ 0x1002acfd1\n// > SetColorIDPopup::colorSelectClosed @ 0x1002ad177\n// > ColorChannelSprite::updateCopyLabel @ 0x1002d8d94\n// > SetupPulsePopup::updateTextInputLabel @ 0x1003ae700\n// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003ae8e4\n// > SetupPulsePopup::colorSelectClosed @ 0x1003af189\n// > SetupPulsePopup::colorSelectClosed @ 0x1003af224\n// > ColorSelectLiveOverlay::updateColorLabel @ 0x10056a05d\n// > ColorSelectPopup::updateTextInputLabel @ 0x100728624\n// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x1007289b4\n// > ColorSelectPopup::colorSelectClosed @ 0x10072b469\n// > ColorSelectPopup::colorSelectClosed @ 0x10072b504\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\nconst char *__fastcall GJSpecialColorSelect::textForColorIdx(int a1)\n{\n  unsigned int v1; // edi\n\n  v1 = a1 - 1000;\n  if ( v1 > 0xE )\n    return \"NA\";\n  else\n    return (char *)dword_1008226DC + dword_1008226DC[v1];\n}", "assembly": "; \n; GJSpecialColorSelect::textForColorIdx from 0x100626aa0 to 0x100626aca (42 bytes)\n; \n; 24 xrefs:\n; > EditorUI::updateObjectInfoLabel @ 0x10002fb96\n; > EditorUI::updateObjectInfoLabel @ 0x10002fbd6\n; > EditorUI::setIDPopupClosed @ 0x100033317\n; > LevelEditorLayer::updateObjectLabel @ 0x1000e9f1c\n; > CustomizeObjectLayer::onSelectMode @ 0x1001f7650\n; > CustomizeObjectLayer::onSelectColor @ 0x1001f7a72\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x1001f7b40\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1001f81e7\n; > CustomizeObjectLayer::onPaste @ 0x1001f82be\n; > CustomizeObjectLayer::updateChannelLabel @ 0x1001f85f3\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1001f8a77\n; > CustomizeObjectLayer::textChanged @ 0x1001f9520\n; > SetColorIDPopup::init @ 0x1002acfd1\n; > SetColorIDPopup::colorSelectClosed @ 0x1002ad177\n; > ColorChannelSprite::updateCopyLabel @ 0x1002d8d94\n; > SetupPulsePopup::updateTextInputLabel @ 0x1003ae700\n; > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003ae8e4\n; > SetupPulsePopup::colorSelectClosed @ 0x1003af189\n; > SetupPulsePopup::colorSelectClosed @ 0x1003af224\n; > ColorSelectLiveOverlay::updateColorLabel @ 0x10056a05d\n; > ColorSelectPopup::updateTextInputLabel @ 0x100728624\n; > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x1007289b4\n; > ColorSelectPopup::colorSelectClosed @ 0x10072b469\n; > ColorSelectPopup::colorSelectClosed @ 0x10072b504\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\npush    rbp                                                            ; +0x0, 0x100626aa0\nmov     rbp, rsp                                                       ; +0x1, 0x100626aa1\nadd     edi, 0FFFFFC18h                                                ; +0x4, 0x100626aa4\ncmp     edi, 0Eh                                                       ; +0xa, 0x100626aaa\nja      short loc_100626AC1                                            ; +0xd, 0x100626aad\nmov     eax, edi                                                       ; +0xf, 0x100626aaf\nlea     rcx, dword_1008226DC                                           ; +0x11, 0x100626ab1\nmovsxd  rax, dword ptr [rcx+rax*4]                                     ; +0x18, 0x100626ab8\nadd     rax, rcx                                                       ; +0x1c, 0x100626abc\npop     rbp                                                            ; +0x1f, 0x100626abf\nretn                                                                   ; +0x20, 0x100626ac0\nlea     rax, aNa; \"NA\"                                                 ; +0x21, 0x100626ac1\npop     rbp                                                            ; +0x28, 0x100626ac8\nretn                                                                   ; +0x29, 0x100626ac9", "xrefs": ["EditorUI::updateObjectInfoLabel @ 0x10002fb96", "EditorUI::updateObjectInfoLabel @ 0x10002fbd6", "EditorUI::setIDPopupClosed @ 0x100033317", "LevelEditorLayer::updateObjectLabel @ 0x1000e9f1c", "CustomizeObjectLayer::onSelectMode @ 0x1001f7650", "CustomizeObjectLayer::onSelectColor @ 0x1001f7a72", "CustomizeObjectLayer::onUpdateCustomColor @ 0x1001f7b40", "CustomizeObjectLayer::onNextColorChannel @ 0x1001f81e7", "CustomizeObjectLayer::onPaste @ 0x1001f82be", "CustomizeObjectLayer::updateChannelLabel @ 0x1001f85f3", "CustomizeObjectLayer::colorSetupClosed @ 0x1001f8a77", "CustomizeObjectLayer::textChanged @ 0x1001f9520", "SetColorIDPopup::init @ 0x1002acfd1", "SetColorIDPopup::colorSelectClosed @ 0x1002ad177", "ColorChannelSprite::updateCopyLabel @ 0x1002d8d94", "SetupPulsePopup::updateTextInputLabel @ 0x1003ae700", "SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003ae8e4", "SetupPulsePopup::colorSelectClosed @ 0x1003af189", "SetupPulsePopup::colorSelectClosed @ 0x1003af224", "ColorSelectLiveOverlay::updateColorLabel @ 0x10056a05d", "ColorSelectPopup::updateTextInputLabel @ 0x100728624", "ColorSelectPopup::updateCopyColorTextInputLabel @ 0x1007289b4", "ColorSelectPopup::colorSelectClosed @ 0x10072b469", "ColorSelectPopup::colorSelectClosed @ 0x10072b504"], "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"}