{"type": "func", "start": 4297467796, "end": 4297467936, "name": "GameObject::getColorIndex", "pseudocode": "// \n// GameObject::getColorIndex from 0x100262794 to 0x100262820 (140 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x100360370\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x10036051c\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; // w8\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 0x100262794 to 0x100262820 (140 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x100360370\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x10036051c\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\nLDR             W8, [X0,#0x404]                                        ; +0x0, 0x100262794\nCMP             W8, #0x2E7                                             ; +0x4, 0x100262798\nB.LE            loc_1002627C0                                          ; +0x8, 0x10026279c\nCMP             W8, #0x383                                             ; +0xc, 0x1002627a0\nB.GT            loc_1002627E0                                          ; +0x10, 0x1002627a4\nCMP             W8, #0x2E8                                             ; +0x14, 0x1002627a8\nB.EQ            loc_100262808                                          ; +0x18, 0x1002627ac\nCMP             W8, #0x383                                             ; +0x1c, 0x1002627b0\nB.NE            loc_100262800                                          ; +0x20, 0x1002627b4\nLDR             W0, [X0,#0x400]                                        ; +0x24, 0x1002627b8\nRET                                                                    ; +0x28, 0x1002627bc\nCMP             W8, #0x1D                                              ; +0x2c, 0x1002627c0\nB.EQ            loc_1002627F8                                          ; +0x30, 0x1002627c4\nCMP             W8, #0x1E                                              ; +0x34, 0x1002627c8\nB.EQ            loc_100262818                                          ; +0x38, 0x1002627cc\nCMP             W8, #0x69 ; 'i'                                        ; +0x3c, 0x1002627d0\nB.NE            loc_100262800                                          ; +0x40, 0x1002627d4\nMOV             W0, #0x3EC                                             ; +0x44, 0x1002627d8\nRET                                                                    ; +0x48, 0x1002627dc\nCMP             W8, #0x384                                             ; +0x4c, 0x1002627e0\nB.EQ            loc_100262810                                          ; +0x50, 0x1002627e4\nCMP             W8, #0x393                                             ; +0x54, 0x1002627e8\nB.NE            loc_100262800                                          ; +0x58, 0x1002627ec\nMOV             W0, #0x3EA                                             ; +0x5c, 0x1002627f0\nRET                                                                    ; +0x60, 0x1002627f4\nMOV             W0, #0x3E8                                             ; +0x64, 0x1002627f8\nRET                                                                    ; +0x68, 0x1002627fc\nMOV             W0, #0                                                 ; +0x6c, 0x100262800\nRET                                                                    ; +0x70, 0x100262804\nMOV             W0, #0x3EB                                             ; +0x74, 0x100262808\nRET                                                                    ; +0x78, 0x10026280c\nMOV             W0, #0x3F1                                             ; +0x7c, 0x100262810\nRET                                                                    ; +0x80, 0x100262814\nMOV             W0, #0x3E9                                             ; +0x84, 0x100262818\nRET                                                                    ; +0x88, 0x10026281c", "xrefs": ["LevelEditorLayer::getNextColorChannel @ 0x100360370", "LevelEditorLayer::resetUnusedColorChannels @ 0x10036051c"], "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"}