{"type": "func", "start": 5371562624, "end": 5371562781, "name": "GJSpecialColorSelect::textForColorIdx", "pseudocode": "// \n// GJSpecialColorSelect::textForColorIdx from 0x1402b8a80 to 0x1402b8b1d (157 bytes)\n// \n// 24 xrefs:\n// > ColorSelectLiveOverlay::updateColorLabel @ 0x14008d5fe\n// > ColorSelectPopup::updateTextInputLabel @ 0x140093472\n// > ColorSelectPopup::colorSelectClosed @ 0x1400937cb\n// > ColorSelectPopup::colorSelectClosed @ 0x140093880\n// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x140093c02\n// > CustomizeObjectLayer::onPaste @ 0x1400a8161\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1400a8426\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f9a\n// > CustomizeObjectLayer::onSelectMode @ 0x1400a919c\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a962e\n// > CustomizeObjectLayer::textChanged @ 0x1400a9943\n// > CustomizeObjectLayer::onSelectColor @ 0x1400a9d12\n// > EditorUI::updateObjectInfoLabel @ 0x1400e365d\n// > EditorUI::updateObjectInfoLabel @ 0x1400e36a6\n// > EditorUI::setIDPopupClosed @ 0x1400e6d7a\n// > ColorChannelSprite::updateCopyLabel @ 0x140258b4a\n// > SetColorIDPopup::init @ 0x14029c266\n// > SetColorIDPopup::colorSelectClosed @ 0x14029c3a6\n// > GJSpecialColorSelect::init @ 0x1402b86fc\n// > LevelEditorLayer::updateObjectLabel @ 0x1402d7960\n// > SetupPulsePopup::colorSelectClosed @ 0x14043ba6b\n// > SetupPulsePopup::colorSelectClosed @ 0x14043bb14\n// > SetupPulsePopup::updateTextInputLabel @ 0x14043cfa2\n// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x14043d0b2\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 *GJSpecialColorSelect::textForColorIdx(int a1)\n{\n  const char *result; // rax\n\n  switch ( a1 )\n  {\n    case 1000:\n      result = \"BG\";\n      break;\n    case 1001:\n      result = \"G1\";\n      break;\n    case 1002:\n      result = \"L\";\n      break;\n    case 1003:\n      result = \"3DL\";\n      break;\n    case 1004:\n      result = \"Obj\";\n      break;\n    case 1005:\n      result = (const char *)&word_14056CA20;\n      break;\n    case 1006:\n      result = (const char *)&word_14056CA1C;\n      break;\n    case 1007:\n      result = (const char *)&unk_14057FB00;\n      break;\n    case 1009:\n      result = \"G2\";\n      break;\n    case 1010:\n      result = \"Black\";\n      break;\n    case 1011:\n      result = \"White\";\n      break;\n    case 1012:\n      result = \"Lighter\";\n      break;\n    case 1013:\n      result = (const char *)&unk_14057FB80;\n      break;\n    case 1014:\n      result = (const char *)&unk_14057FB84;\n      break;\n    default:\n      result = (const char *)&word_140532F44;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJSpecialColorSelect::textForColorIdx from 0x1402b8a80 to 0x1402b8b1d (157 bytes)\n; \n; 24 xrefs:\n; > ColorSelectLiveOverlay::updateColorLabel @ 0x14008d5fe\n; > ColorSelectPopup::updateTextInputLabel @ 0x140093472\n; > ColorSelectPopup::colorSelectClosed @ 0x1400937cb\n; > ColorSelectPopup::colorSelectClosed @ 0x140093880\n; > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x140093c02\n; > CustomizeObjectLayer::onPaste @ 0x1400a8161\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1400a8426\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f9a\n; > CustomizeObjectLayer::onSelectMode @ 0x1400a919c\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a962e\n; > CustomizeObjectLayer::textChanged @ 0x1400a9943\n; > CustomizeObjectLayer::onSelectColor @ 0x1400a9d12\n; > EditorUI::updateObjectInfoLabel @ 0x1400e365d\n; > EditorUI::updateObjectInfoLabel @ 0x1400e36a6\n; > EditorUI::setIDPopupClosed @ 0x1400e6d7a\n; > ColorChannelSprite::updateCopyLabel @ 0x140258b4a\n; > SetColorIDPopup::init @ 0x14029c266\n; > SetColorIDPopup::colorSelectClosed @ 0x14029c3a6\n; > GJSpecialColorSelect::init @ 0x1402b86fc\n; > LevelEditorLayer::updateObjectLabel @ 0x1402d7960\n; > SetupPulsePopup::colorSelectClosed @ 0x14043ba6b\n; > SetupPulsePopup::colorSelectClosed @ 0x14043bb14\n; > SetupPulsePopup::updateTextInputLabel @ 0x14043cfa2\n; > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x14043d0b2\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\nadd     ecx, 0FFFFFC18h; switch 15 cases                               ; +0x0, 0x1402b8a80\ncmp     ecx, 0Eh                                                       ; +0x6, 0x1402b8a86\nja      def_1402B8AA3; jumptable 00000001402B8AA3 default case, case 1008 ; +0x9, 0x1402b8a89\nmovsxd  rax, ecx                                                       ; +0xf, 0x1402b8a8f\nlea     rdx, cs:140000000h                                             ; +0x12, 0x1402b8a92\nmov     ecx, ds:(jpt_1402B8AA3 - 140000000h)[rdx+rax*4]                ; +0x19, 0x1402b8a99\nadd     rcx, rdx                                                       ; +0x20, 0x1402b8aa0\njmp     rcx; switch jump                                               ; +0x23, 0x1402b8aa3\nlea     rax, aBg; jumptable 00000001402B8AA3 case 1000                 ; +0x25, 0x1402b8aa5\nretn                                                                   ; +0x2c, 0x1402b8aac\nlea     rax, aG1; jumptable 00000001402B8AA3 case 1001                 ; +0x2d, 0x1402b8aad\nretn                                                                   ; +0x34, 0x1402b8ab4\nlea     rax, aG2_0; jumptable 00000001402B8AA3 case 1009               ; +0x35, 0x1402b8ab5\nretn                                                                   ; +0x3c, 0x1402b8abc\nlea     rax, asc_140556028; jumptable 00000001402B8AA3 case 1002       ; +0x3d, 0x1402b8abd\nretn                                                                   ; +0x44, 0x1402b8ac4\nlea     rax, aObj; jumptable 00000001402B8AA3 case 1004                ; +0x45, 0x1402b8ac5\nretn                                                                   ; +0x4c, 0x1402b8acc\nlea     rax, a3dl; jumptable 00000001402B8AA3 case 1003                ; +0x4d, 0x1402b8acd\nretn                                                                   ; +0x54, 0x1402b8ad4\nlea     rax, word_14056CA20; jumptable 00000001402B8AA3 case 1005      ; +0x55, 0x1402b8ad5\nretn                                                                   ; +0x5c, 0x1402b8adc\nlea     rax, word_14056CA1C; jumptable 00000001402B8AA3 case 1006      ; +0x5d, 0x1402b8add\nretn                                                                   ; +0x64, 0x1402b8ae4\nlea     rax, unk_14057FB00; jumptable 00000001402B8AA3 case 1007       ; +0x65, 0x1402b8ae5\nretn                                                                   ; +0x6c, 0x1402b8aec\nlea     rax, aLighter; jumptable 00000001402B8AA3 case 1012            ; +0x6d, 0x1402b8aed\nretn                                                                   ; +0x74, 0x1402b8af4\nlea     rax, aWhite; jumptable 00000001402B8AA3 case 1011              ; +0x75, 0x1402b8af5\nretn                                                                   ; +0x7c, 0x1402b8afc\nlea     rax, aBlack; jumptable 00000001402B8AA3 case 1010              ; +0x7d, 0x1402b8afd\nretn                                                                   ; +0x84, 0x1402b8b04\nlea     rax, unk_14057FB80; jumptable 00000001402B8AA3 case 1013       ; +0x85, 0x1402b8b05\nretn                                                                   ; +0x8c, 0x1402b8b0c\nlea     rax, unk_14057FB84; jumptable 00000001402B8AA3 case 1014       ; +0x8d, 0x1402b8b0d\nretn                                                                   ; +0x94, 0x1402b8b14\nlea     rax, word_140532F44; jumptable 00000001402B8AA3 default case, case 1008 ; +0x95, 0x1402b8b15\nretn                                                                   ; +0x9c, 0x1402b8b1c", "xrefs": ["ColorSelectLiveOverlay::updateColorLabel @ 0x14008d5fe", "ColorSelectPopup::updateTextInputLabel @ 0x140093472", "ColorSelectPopup::colorSelectClosed @ 0x1400937cb", "ColorSelectPopup::colorSelectClosed @ 0x140093880", "ColorSelectPopup::updateCopyColorTextInputLabel @ 0x140093c02", "CustomizeObjectLayer::onPaste @ 0x1400a8161", "CustomizeObjectLayer::colorSetupClosed @ 0x1400a8426", "CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f9a", "CustomizeObjectLayer::onSelectMode @ 0x1400a919c", "CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a962e", "CustomizeObjectLayer::textChanged @ 0x1400a9943", "CustomizeObjectLayer::onSelectColor @ 0x1400a9d12", "EditorUI::updateObjectInfoLabel @ 0x1400e365d", "EditorUI::updateObjectInfoLabel @ 0x1400e36a6", "EditorUI::setIDPopupClosed @ 0x1400e6d7a", "ColorChannelSprite::updateCopyLabel @ 0x140258b4a", "SetColorIDPopup::init @ 0x14029c266", "SetColorIDPopup::colorSelectClosed @ 0x14029c3a6", "GJSpecialColorSelect::init @ 0x1402b86fc", "LevelEditorLayer::updateObjectLabel @ 0x1402d7960", "SetupPulsePopup::colorSelectClosed @ 0x14043ba6b", "SetupPulsePopup::colorSelectClosed @ 0x14043bb14", "SetupPulsePopup::updateTextInputLabel @ 0x14043cfa2", "SetupPulsePopup::updateCopyColorTextInputLabel @ 0x14043d0b2"], "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"}