{"type": "func", "start": 4297462808, "end": 4297463008, "name": "GameObject::editorColorForMode", "pseudocode": "// \n// GameObject::editorColorForMode from 0x100261418 to 0x1002614e0 (200 bytes)\n// \n// 2 xrefs:\n// > GameObject::updateObjectEditorColor @ 0x100261634\n// > GameObject::updateObjectEditorColor @ 0x10026167c\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\ncocos2d::ccColor3B __fastcall GameObject::editorColorForMode(GameObject *a1, int a2)\n{\n  int v2; // w0\n  unsigned __int16 v3; // w0\n  unsigned __int16 v4; // w0\n\n  if ( a2 > 1002 )\n  {\n    if ( a2 <= 1005 )\n    {\n      if ( a2 == 1003 )\n        return (cocos2d::ccColor3B)0xFFFF;\n      if ( a2 != 1005 )\n        goto LABEL_22;\n      v3 = -26961;\n      return (cocos2d::ccColor3B)(v3 | 0xFF0000);\n    }\n    if ( a2 == 1007 )\n    {\n      v3 = -20661;\n      return (cocos2d::ccColor3B)(v3 | 0xFF0000);\n    }\n    if ( a2 != 1006 )\n      goto LABEL_22;\n    v4 = -26881;\n    return (cocos2d::ccColor3B)(v4 | 0x960000);\n  }\n  if ( a2 > 2 )\n  {\n    if ( a2 == 3 )\n    {\n      v3 = -106;\n      return (cocos2d::ccColor3B)(v3 | 0xFF0000);\n    }\n    if ( a2 != 4 )\n      goto LABEL_22;\n    v4 = -106;\n    return (cocos2d::ccColor3B)(v4 | 0x960000);\n  }\n  if ( a2 == 1 )\n  {\n    v3 = -26881;\n    return (cocos2d::ccColor3B)(v3 | 0xFF0000);\n  }\n  if ( a2 == 2 )\n    return (cocos2d::ccColor3B)9895935;\nLABEL_22:\n  if ( a1->m_isInvisibleBlock )\n  {\n    return (cocos2d::ccColor3B)0x7FFF;\n  }\n  else if ( (unsigned int)(a2 - 5) > 0x3E1 )\n  {\n    return (cocos2d::ccColor3B)0xFFFFFF;\n  }\n  else\n  {\n    *(cocos2d::ccColor3B *)&v2 = GameObject::editorColorForCustomMode(a1, a2);\n  }\n  return (cocos2d::ccColor3B)v2;\n}", "assembly": "; \n; GameObject::editorColorForMode from 0x100261418 to 0x1002614e0 (200 bytes)\n; \n; 2 xrefs:\n; > GameObject::updateObjectEditorColor @ 0x100261634\n; > GameObject::updateObjectEditorColor @ 0x10026167c\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\nCMP             W1, #0x3EA                                             ; +0x0, 0x100261418\nB.GT            loc_100261440                                          ; +0x4, 0x10026141c\nCMP             W1, #2                                                 ; +0x8, 0x100261420\nB.GT            loc_100261460                                          ; +0xc, 0x100261424\nCMP             W1, #1                                                 ; +0x10, 0x100261428\nB.EQ            loc_100261494                                          ; +0x14, 0x10026142c\nCMP             W1, #2                                                 ; +0x18, 0x100261430\nB.NE            loc_1002614B8                                          ; +0x1c, 0x100261434\nMOV             W0, #0x96FFFF                                          ; +0x20, 0x100261438\nRET                                                                    ; +0x24, 0x10026143c\nCMP             W1, #0x3ED                                             ; +0x28, 0x100261440\nB.GT            loc_100261478                                          ; +0x2c, 0x100261444\nCMP             W1, #0x3EB                                             ; +0x30, 0x100261448\nB.EQ            loc_10026149C                                          ; +0x34, 0x10026144c\nCMP             W1, #0x3ED                                             ; +0x38, 0x100261450\nB.NE            loc_1002614B8                                          ; +0x3c, 0x100261454\nMOV             W0, #0x96AF                                            ; +0x40, 0x100261458\nB               loc_1002614B0                                          ; +0x44, 0x10026145c\nCMP             W1, #3                                                 ; +0x48, 0x100261460\nB.EQ            loc_1002614A4                                          ; +0x4c, 0x100261464\nCMP             W1, #4                                                 ; +0x50, 0x100261468\nB.NE            loc_1002614B8                                          ; +0x54, 0x10026146c\nMOV             W0, #0xFF96                                            ; +0x58, 0x100261470\nB               loc_10026148C                                          ; +0x5c, 0x100261474\nCMP             W1, #0x3EF                                             ; +0x60, 0x100261478\nB.EQ            loc_1002614AC                                          ; +0x64, 0x10026147c\nCMP             W1, #0x3EE                                             ; +0x68, 0x100261480\nB.NE            loc_1002614B8                                          ; +0x6c, 0x100261484\nMOV             W0, #0x96FF                                            ; +0x70, 0x100261488\nMOVK            W0, #0x96,LSL#16                                       ; +0x74, 0x10026148c\nRET                                                                    ; +0x78, 0x100261490\nMOV             W0, #0x96FF                                            ; +0x7c, 0x100261494\nB               loc_1002614B0                                          ; +0x80, 0x100261498\nMOV             W0, #0xFFFF                                            ; +0x84, 0x10026149c\nRET                                                                    ; +0x88, 0x1002614a0\nMOV             W0, #0xFF96                                            ; +0x8c, 0x1002614a4\nB               loc_1002614B0                                          ; +0x90, 0x1002614a8\nMOV             W0, #0xAF4B                                            ; +0x94, 0x1002614ac\nMOVK            W0, #0xFF,LSL#16                                       ; +0x98, 0x1002614b0\nRET                                                                    ; +0x9c, 0x1002614b4\nLDRB            W8, [X0,#0x430]                                        ; +0xa0, 0x1002614b8\nTBZ             W8, #0, loc_1002614C8                                  ; +0xa4, 0x1002614bc\nMOV             W0, #0x7FFF                                            ; +0xa8, 0x1002614c0\nRET                                                                    ; +0xac, 0x1002614c4\nSUB             W8, W1, #5                                             ; +0xb0, 0x1002614c8\nCMP             W8, #0x3E1                                             ; +0xb4, 0x1002614cc\nB.HI            loc_1002614D8                                          ; +0xb8, 0x1002614d0\nB               GameObject__editorColorForCustomMode                   ; +0xbc, 0x1002614d4\nMOV             W0, #0xFFFFFF                                          ; +0xc0, 0x1002614d8\nRET                                                                    ; +0xc4, 0x1002614dc", "xrefs": ["GameObject::updateObjectEditorColor @ 0x100261634", "GameObject::updateObjectEditorColor @ 0x10026167c"], "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"}