{"type": "func", "start": 5371453936, "end": 5371454121, "name": "GameObject::updateObjectEditorColor", "pseudocode": "// \n// GameObject::updateObjectEditorColor from 0x14029e1f0 to 0x14029e2a9 (185 bytes)\n// \n// 19 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x140142029\n// > CustomizeObjectLayer::onLiveEdit @ 0x140142077\n// > EditorUI::editColor @ 0x1401be25e\n// > EditorUI::editColor @ 0x1401be2a9\n// > EditorUI::editHSV @ 0x1401be44c\n// > EditorUI::editHSV @ 0x1401be494\n// > EditorUI::ccTouchEnded @ 0x1401c1808\n// > EditorUI::ccTouchEnded @ 0x1401c1859\n// > EditorUI::ccTouchEnded @ 0x1401c1908\n// > EditorUI::deselectObject @ 0x1401c821b\n// > EditorUI::deselectObject @ 0x1401c826a\n// > EditorUI::deselectAll @ 0x1401c82db\n// > EditorUI::deselectAll @ 0x1401c8349\n// > EditorUI::deselectTargetPortals @ 0x1401c84be\n// > EditorUI::deselectObjectsColor @ 0x1401c9861\n// > EditorUI::deselectObjectsColor @ 0x1401c98a9\n// > LevelEditorLayer::updateVisibility @ 0x1403f72dd\n// > ParticleGameObject::updateParticle @ 0x1406426c1\n// > <???> @ 0x14091d8b8\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 11:29:14 +0000\n// \n\n__int64 __fastcall GameObject::updateObjectEditorColor(_QWORD *a1)\n{\n  int *v1; // rax\n  int v3; // r8d\n  __int64 v4; // rax\n  __int64 result; // rax\n  int *v6; // rax\n  int v7; // r8d\n  char v8; // [rsp+30h] [rbp+8h] BYREF\n\n  v1 = (int *)a1[138];\n  v3 = *v1;\n  if ( v1[1] == *v1 || !v3 )\n    v3 = 0;\n  v4 = GameObject::editorColorForMode((__int64)a1, (__int64)&v8, v3);\n  result = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 1344LL))(a1, v4);\n  if ( a1[112] )\n  {\n    v6 = (int *)a1[139];\n    v7 = *v6;\n    if ( v6[1] == *v6 || !v7 )\n      v7 = 0;\n    GameObject::editorColorForMode((__int64)a1, (__int64)&v8, v7);\n    result = (*(__int64 (__fastcall **)(_QWORD *, char *))(*a1 + 1440LL))(a1, &v8);\n  }\n  if ( *((_BYTE *)a1 + 772) )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 472LL))(a1, 999);\n    if ( result )\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(result + 368))(result + 368, &word_14070341C);\n  }\n  return result;\n}", "assembly": "; \n; GameObject::updateObjectEditorColor from 0x14029e1f0 to 0x14029e2a9 (185 bytes)\n; \n; 19 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x140142029\n; > CustomizeObjectLayer::onLiveEdit @ 0x140142077\n; > EditorUI::editColor @ 0x1401be25e\n; > EditorUI::editColor @ 0x1401be2a9\n; > EditorUI::editHSV @ 0x1401be44c\n; > EditorUI::editHSV @ 0x1401be494\n; > EditorUI::ccTouchEnded @ 0x1401c1808\n; > EditorUI::ccTouchEnded @ 0x1401c1859\n; > EditorUI::ccTouchEnded @ 0x1401c1908\n; > EditorUI::deselectObject @ 0x1401c821b\n; > EditorUI::deselectObject @ 0x1401c826a\n; > EditorUI::deselectAll @ 0x1401c82db\n; > EditorUI::deselectAll @ 0x1401c8349\n; > EditorUI::deselectTargetPortals @ 0x1401c84be\n; > EditorUI::deselectObjectsColor @ 0x1401c9861\n; > EditorUI::deselectObjectsColor @ 0x1401c98a9\n; > LevelEditorLayer::updateVisibility @ 0x1403f72dd\n; > ParticleGameObject::updateParticle @ 0x1406426c1\n; > <???> @ 0x14091d8b8\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 11:29:14 +0000\n; \npush    rbx                                                            ; +0x0, 0x14029e1f0\nsub     rsp, 20h                                                       ; +0x2, 0x14029e1f2\nmov     rax, [rcx+450h]                                                ; +0x6, 0x14029e1f6\nmov     rbx, rcx                                                       ; +0xd, 0x14029e1fd\nmov     r8d, [rax]                                                     ; +0x10, 0x14029e200\ncmp     [rax+4], r8d                                                   ; +0x13, 0x14029e203\njz      short loc_14029E20E                                            ; +0x17, 0x14029e207\ntest    r8d, r8d                                                       ; +0x19, 0x14029e209\njnz     short loc_14029E211                                            ; +0x1c, 0x14029e20c\nxor     r8d, r8d                                                       ; +0x1e, 0x14029e20e\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x21, 0x14029e211\ncall    GameObject__editorColorForMode                                 ; +0x26, 0x14029e216\nmov     rdx, rax                                                       ; +0x2b, 0x14029e21b\nmov     rcx, rbx                                                       ; +0x2e, 0x14029e21e\nmov     rax, [rbx]                                                     ; +0x31, 0x14029e221\ncall    qword ptr [rax+540h]                                           ; +0x34, 0x14029e224\ncmp     qword ptr [rbx+380h], 0                                        ; +0x3a, 0x14029e22a\njz      short loc_14029E26B                                            ; +0x42, 0x14029e232\nmov     rax, [rbx+458h]                                                ; +0x44, 0x14029e234\nmov     r8d, [rax]                                                     ; +0x4b, 0x14029e23b\ncmp     [rax+4], r8d                                                   ; +0x4e, 0x14029e23e\njz      short loc_14029E249                                            ; +0x52, 0x14029e242\ntest    r8d, r8d                                                       ; +0x54, 0x14029e244\njnz     short loc_14029E24C                                            ; +0x57, 0x14029e247\nxor     r8d, r8d                                                       ; +0x59, 0x14029e249\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x5c, 0x14029e24c\nmov     rcx, rbx                                                       ; +0x61, 0x14029e251\ncall    GameObject__editorColorForMode                                 ; +0x64, 0x14029e254\nmov     r8, [rbx]                                                      ; +0x69, 0x14029e259\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x6c, 0x14029e25c\nmov     rcx, rbx                                                       ; +0x71, 0x14029e261\ncall    qword ptr [r8+5A0h]                                            ; +0x74, 0x14029e264\ncmp     byte ptr [rbx+304h], 0                                         ; +0x7b, 0x14029e26b\njz      short loc_14029E2A3                                            ; +0x82, 0x14029e272\nmov     rax, [rbx]                                                     ; +0x84, 0x14029e274\nmov     edx, 3E7h                                                      ; +0x87, 0x14029e277\nmov     rcx, rbx                                                       ; +0x8c, 0x14029e27c\ncall    qword ptr [rax+1D8h]                                           ; +0x8f, 0x14029e27f\ntest    rax, rax                                                       ; +0x95, 0x14029e285\njz      short loc_14029E2A3                                            ; +0x98, 0x14029e288\nlea     rcx, [rax+170h]                                                ; +0x9a, 0x14029e28a\nmov     rax, [rcx]                                                     ; +0xa1, 0x14029e291\nlea     rdx, word_14070341C                                            ; +0xa4, 0x14029e294\nadd     rsp, 20h                                                       ; +0xab, 0x14029e29b\npop     rbx                                                            ; +0xaf, 0x14029e29f\njmp     qword ptr [rax]                                                ; +0xb0, 0x14029e2a0\nadd     rsp, 20h                                                       ; +0xb3, 0x14029e2a3\npop     rbx                                                            ; +0xb7, 0x14029e2a7\nretn                                                                   ; +0xb8, 0x14029e2a8", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x140142029", "CustomizeObjectLayer::onLiveEdit @ 0x140142077", "EditorUI::editColor @ 0x1401be25e", "EditorUI::editColor @ 0x1401be2a9", "EditorUI::editHSV @ 0x1401be44c", "EditorUI::editHSV @ 0x1401be494", "EditorUI::ccTouchEnded @ 0x1401c1808", "EditorUI::ccTouchEnded @ 0x1401c1859", "EditorUI::ccTouchEnded @ 0x1401c1908", "EditorUI::deselectObject @ 0x1401c821b", "EditorUI::deselectObject @ 0x1401c826a", "EditorUI::deselectAll @ 0x1401c82db", "EditorUI::deselectAll @ 0x1401c8349", "EditorUI::deselectTargetPortals @ 0x1401c84be", "EditorUI::deselectObjectsColor @ 0x1401c9861", "EditorUI::deselectObjectsColor @ 0x1401c98a9", "LevelEditorLayer::updateVisibility @ 0x1403f72dd", "ParticleGameObject::updateParticle @ 0x1406426c1", "<???> @ 0x14091d8b8"], "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"}