{"type": "func", "start": 4301901072, "end": 4301901193, "name": "GameObject::getColorIndex", "pseudocode": "// \n// GameObject::getColorIndex from 0x10069cd10 to 0x10069cd89 (121 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x1000c0ef2\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x1000c1251\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:35:16 +0000\n// \n\n__int64 __fastcall GameObject::getColorIndex(__int64 a1)\n{\n  int v1; // eax\n\n  v1 = *(_DWORD *)(a1 + 1028);\n  if ( v1 <= 743 )\n  {\n    if ( v1 == 29 )\n      return 1000;\n    if ( v1 != 30 )\n    {\n      if ( v1 == 105 )\n        return 1004;\n      return 0;\n    }\n    return 1001;\n  }\n  else if ( v1 > 899 )\n  {\n    if ( v1 != 900 )\n    {\n      if ( v1 == 915 )\n        return 1002;\n      return 0;\n    }\n    return 1009;\n  }\n  else\n  {\n    if ( v1 != 744 )\n    {\n      if ( v1 == 899 )\n        return *(unsigned int *)(a1 + 1024);\n      return 0;\n    }\n    return 1003;\n  }\n}", "assembly": "; \n; GameObject::getColorIndex from 0x10069cd10 to 0x10069cd89 (121 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x1000c0ef2\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x1000c1251\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:35:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x10069cd10\nmov     rbp, rsp                                                       ; +0x1, 0x10069cd11\nmov     eax, [rdi+404h]                                                ; +0x4, 0x10069cd14\ncmp     eax, 2E7h                                                      ; +0xa, 0x10069cd1a\njle     short loc_10069CD3E                                            ; +0xf, 0x10069cd1f\ncmp     eax, 383h                                                      ; +0x11, 0x10069cd21\njg      short loc_10069CD54                                            ; +0x16, 0x10069cd26\ncmp     eax, 2E8h                                                      ; +0x18, 0x10069cd28\njz      short loc_10069CD74                                            ; +0x1d, 0x10069cd2d\ncmp     eax, 383h                                                      ; +0x1f, 0x10069cd2f\njnz     short loc_10069CD70                                            ; +0x24, 0x10069cd34\nmov     eax, [rdi+400h]                                                ; +0x26, 0x10069cd36\npop     rbp                                                            ; +0x2c, 0x10069cd3c\nretn                                                                   ; +0x2d, 0x10069cd3d\ncmp     eax, 1Dh                                                       ; +0x2e, 0x10069cd3e\njz      short loc_10069CD69                                            ; +0x31, 0x10069cd41\ncmp     eax, 1Eh                                                       ; +0x33, 0x10069cd43\njz      short loc_10069CD82                                            ; +0x36, 0x10069cd46\ncmp     eax, 69h ; 'i'                                                 ; +0x38, 0x10069cd48\njnz     short loc_10069CD70                                            ; +0x3b, 0x10069cd4b\nmov     eax, 3ECh                                                      ; +0x3d, 0x10069cd4d\npop     rbp                                                            ; +0x42, 0x10069cd52\nretn                                                                   ; +0x43, 0x10069cd53\ncmp     eax, 384h                                                      ; +0x44, 0x10069cd54\njz      short loc_10069CD7B                                            ; +0x49, 0x10069cd59\ncmp     eax, 393h                                                      ; +0x4b, 0x10069cd5b\njnz     short loc_10069CD70                                            ; +0x50, 0x10069cd60\nmov     eax, 3EAh                                                      ; +0x52, 0x10069cd62\npop     rbp                                                            ; +0x57, 0x10069cd67\nretn                                                                   ; +0x58, 0x10069cd68\nmov     eax, 3E8h                                                      ; +0x59, 0x10069cd69\npop     rbp                                                            ; +0x5e, 0x10069cd6e\nretn                                                                   ; +0x5f, 0x10069cd6f\nxor     eax, eax                                                       ; +0x60, 0x10069cd70\npop     rbp                                                            ; +0x62, 0x10069cd72\nretn                                                                   ; +0x63, 0x10069cd73\nmov     eax, 3EBh                                                      ; +0x64, 0x10069cd74\npop     rbp                                                            ; +0x69, 0x10069cd79\nretn                                                                   ; +0x6a, 0x10069cd7a\nmov     eax, 3F1h                                                      ; +0x6b, 0x10069cd7b\npop     rbp                                                            ; +0x70, 0x10069cd80\nretn                                                                   ; +0x71, 0x10069cd81\nmov     eax, 3E9h                                                      ; +0x72, 0x10069cd82\npop     rbp                                                            ; +0x77, 0x10069cd87\nretn                                                                   ; +0x78, 0x10069cd88", "xrefs": ["LevelEditorLayer::getNextColorChannel @ 0x1000c0ef2", "LevelEditorLayer::resetUnusedColorChannels @ 0x1000c1251"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}