{"type": "func", "start": 4301043216, "end": 4301043337, "name": "GameObject::getColorIndex", "pseudocode": "// \n// GameObject::getColorIndex from 0x1005cb610 to 0x1005cb689 (121 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x1000ed762\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x1000edac1\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 __fastcall GameObject::getColorIndex(GameObject *a1)\n{\n  int m_objectID; // eax\n\n  m_objectID = a1->m_objectID;\n  if ( m_objectID <= 743 )\n  {\n    if ( m_objectID == 29 )\n      return 1000;\n    if ( m_objectID != 30 )\n    {\n      if ( m_objectID == 105 )\n        return 1004;\n      return 0;\n    }\n    return 1001;\n  }\n  else if ( m_objectID > 899 )\n  {\n    if ( m_objectID != 900 )\n    {\n      if ( m_objectID == 915 )\n        return 1002;\n      return 0;\n    }\n    return 1009;\n  }\n  else\n  {\n    if ( m_objectID != 744 )\n    {\n      if ( m_objectID == 899 )\n        return a1->m_targetColor;\n      return 0;\n    }\n    return 1003;\n  }\n}", "assembly": "; \n; GameObject::getColorIndex from 0x1005cb610 to 0x1005cb689 (121 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x1000ed762\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x1000edac1\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, 0x1005cb610\nmov     rbp, rsp                                                       ; +0x1, 0x1005cb611\nmov     eax, [rdi+404h]                                                ; +0x4, 0x1005cb614\ncmp     eax, 2E7h                                                      ; +0xa, 0x1005cb61a\njle     short loc_1005CB63E                                            ; +0xf, 0x1005cb61f\ncmp     eax, 383h                                                      ; +0x11, 0x1005cb621\njg      short loc_1005CB654                                            ; +0x16, 0x1005cb626\ncmp     eax, 2E8h                                                      ; +0x18, 0x1005cb628\njz      short loc_1005CB674                                            ; +0x1d, 0x1005cb62d\ncmp     eax, 383h                                                      ; +0x1f, 0x1005cb62f\njnz     short loc_1005CB670                                            ; +0x24, 0x1005cb634\nmov     eax, [rdi+400h]                                                ; +0x26, 0x1005cb636\npop     rbp                                                            ; +0x2c, 0x1005cb63c\nretn                                                                   ; +0x2d, 0x1005cb63d\ncmp     eax, 1Dh                                                       ; +0x2e, 0x1005cb63e\njz      short loc_1005CB669                                            ; +0x31, 0x1005cb641\ncmp     eax, 1Eh                                                       ; +0x33, 0x1005cb643\njz      short loc_1005CB682                                            ; +0x36, 0x1005cb646\ncmp     eax, 69h ; 'i'                                                 ; +0x38, 0x1005cb648\njnz     short loc_1005CB670                                            ; +0x3b, 0x1005cb64b\nmov     eax, 3ECh                                                      ; +0x3d, 0x1005cb64d\npop     rbp                                                            ; +0x42, 0x1005cb652\nretn                                                                   ; +0x43, 0x1005cb653\ncmp     eax, 384h                                                      ; +0x44, 0x1005cb654\njz      short loc_1005CB67B                                            ; +0x49, 0x1005cb659\ncmp     eax, 393h                                                      ; +0x4b, 0x1005cb65b\njnz     short loc_1005CB670                                            ; +0x50, 0x1005cb660\nmov     eax, 3EAh                                                      ; +0x52, 0x1005cb662\npop     rbp                                                            ; +0x57, 0x1005cb667\nretn                                                                   ; +0x58, 0x1005cb668\nmov     eax, 3E8h                                                      ; +0x59, 0x1005cb669\npop     rbp                                                            ; +0x5e, 0x1005cb66e\nretn                                                                   ; +0x5f, 0x1005cb66f\nxor     eax, eax                                                       ; +0x60, 0x1005cb670\npop     rbp                                                            ; +0x62, 0x1005cb672\nretn                                                                   ; +0x63, 0x1005cb673\nmov     eax, 3EBh                                                      ; +0x64, 0x1005cb674\npop     rbp                                                            ; +0x69, 0x1005cb679\nretn                                                                   ; +0x6a, 0x1005cb67a\nmov     eax, 3F1h                                                      ; +0x6b, 0x1005cb67b\npop     rbp                                                            ; +0x70, 0x1005cb680\nretn                                                                   ; +0x71, 0x1005cb681\nmov     eax, 3E9h                                                      ; +0x72, 0x1005cb682\npop     rbp                                                            ; +0x77, 0x1005cb687\nretn                                                                   ; +0x78, 0x1005cb688", "xrefs": ["LevelEditorLayer::getNextColorChannel @ 0x1000ed762", "LevelEditorLayer::resetUnusedColorChannels @ 0x1000edac1"], "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"}