{"type": "func", "start": 5370417904, "end": 5370418090, "name": "GameObject::updateObjectEditorColor", "pseudocode": "// \n// GameObject::updateObjectEditorColor from 0x1401a12f0 to 0x1401a13aa (186 bytes)\n// \n// 19 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x1400a7f96\n// > CustomizeObjectLayer::onLiveEdit @ 0x1400a7fe4\n// > EditorUI::deselectTargetPortals @ 0x1400e698e\n// > EditorUI::deselectObjectsColor @ 0x1401107b1\n// > EditorUI::deselectObjectsColor @ 0x1401107f9\n// > EditorUI::deselectObject @ 0x1401113ab\n// > EditorUI::deselectObject @ 0x1401113fa\n// > EditorUI::deselectAll @ 0x1401114ab\n// > EditorUI::deselectAll @ 0x140111519\n// > EditorUI::editColor @ 0x14011ee73\n// > EditorUI::editColor @ 0x14011eeb9\n// > EditorUI::editHSV @ 0x14011f04b\n// > EditorUI::editHSV @ 0x14011f093\n// > EditorUI::ccTouchEnded @ 0x140125125\n// > EditorUI::ccTouchEnded @ 0x140125176\n// > EditorUI::ccTouchEnded @ 0x140125222\n// > LevelEditorLayer::updateVisibility @ 0x1402d9d2a\n// > ParticleGameObject::updateParticle @ 0x1404a098e\n// > <???> @ 0x1406cbf40\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\nvoid GameObject::updateObjectEditorColor(GameObject *a1)\n{\n  GJSpriteColor *m_baseColor; // rax\n  int m_colorID; // r8d\n  cocos2d::ccColor3B *v4; // rax\n  __int64 v5; // r10\n  GJSpriteColor *m_detailColor; // rax\n  int v7; // r8d\n  cocos2d::CCNode *v8; // rax\n  char v9; // [rsp+30h] [rbp+8h] BYREF\n\n  m_baseColor = a1->m_baseColor;\n  m_colorID = m_baseColor->m_colorID;\n  if ( m_baseColor->m_defaultColorID == m_baseColor->m_colorID || !m_colorID )\n    m_colorID = 0;\n  v4 = GameObject::editorColorForMode((cocos2d::ccColor3B *)a1, (GameObject *)&v9, m_colorID);\n  (*(void (__fastcall **)(GameObject *, cocos2d::ccColor3B *))(v5 + 1328))(a1, v4);\n  if ( a1->m_colorSprite )\n  {\n    m_detailColor = a1->m_detailColor;\n    v7 = m_detailColor->m_colorID;\n    if ( m_detailColor->m_defaultColorID == m_detailColor->m_colorID || !v7 )\n      v7 = 0;\n    GameObject::editorColorForMode((cocos2d::ccColor3B *)a1, (GameObject *)&v9, v7);\n    a1->updateSecondaryColor(a1, (const cocos2d::ccColor3B *)&v9);\n  }\n  if ( a1->m_addToNodeContainer )\n  {\n    v8 = a1->getChildByTag(a1, 999);\n    if ( v8 )\n      (**(void (__fastcall ***)(__int64, __int16 *))&v8[1].m_uOrderOfArrival)(\n        (__int64)&v8[1].m_uOrderOfArrival,\n        &word_140529A70);\n  }\n}", "assembly": "; \n; GameObject::updateObjectEditorColor from 0x1401a12f0 to 0x1401a13aa (186 bytes)\n; \n; 19 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x1400a7f96\n; > CustomizeObjectLayer::onLiveEdit @ 0x1400a7fe4\n; > EditorUI::deselectTargetPortals @ 0x1400e698e\n; > EditorUI::deselectObjectsColor @ 0x1401107b1\n; > EditorUI::deselectObjectsColor @ 0x1401107f9\n; > EditorUI::deselectObject @ 0x1401113ab\n; > EditorUI::deselectObject @ 0x1401113fa\n; > EditorUI::deselectAll @ 0x1401114ab\n; > EditorUI::deselectAll @ 0x140111519\n; > EditorUI::editColor @ 0x14011ee73\n; > EditorUI::editColor @ 0x14011eeb9\n; > EditorUI::editHSV @ 0x14011f04b\n; > EditorUI::editHSV @ 0x14011f093\n; > EditorUI::ccTouchEnded @ 0x140125125\n; > EditorUI::ccTouchEnded @ 0x140125176\n; > EditorUI::ccTouchEnded @ 0x140125222\n; > LevelEditorLayer::updateVisibility @ 0x1402d9d2a\n; > ParticleGameObject::updateParticle @ 0x1404a098e\n; > <???> @ 0x1406cbf40\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    rbx                                                            ; +0x0, 0x1401a12f0\nsub     rsp, 20h                                                       ; +0x2, 0x1401a12f2\nmov     rax, [rcx+450h]                                                ; +0x6, 0x1401a12f6\nmov     rbx, rcx                                                       ; +0xd, 0x1401a12fd\nmov     r8d, [rax]                                                     ; +0x10, 0x1401a1300\ncmp     [rax+4], r8d                                                   ; +0x13, 0x1401a1303\njz      short loc_1401A130E                                            ; +0x17, 0x1401a1307\ntest    r8d, r8d                                                       ; +0x19, 0x1401a1309\njnz     short loc_1401A1311                                            ; +0x1c, 0x1401a130c\nxor     r8d, r8d                                                       ; +0x1e, 0x1401a130e\nmov     r10, [rcx]                                                     ; +0x21, 0x1401a1311\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x24, 0x1401a1314\ncall    GameObject__editorColorForMode                                 ; +0x29, 0x1401a1319\nmov     rdx, rax                                                       ; +0x2e, 0x1401a131e\nmov     rcx, rbx                                                       ; +0x31, 0x1401a1321\ncall    qword ptr [r10+530h]                                           ; +0x34, 0x1401a1324\ncmp     qword ptr [rbx+380h], 0                                        ; +0x3b, 0x1401a132b\njz      short loc_1401A136C                                            ; +0x43, 0x1401a1333\nmov     rax, [rbx+458h]                                                ; +0x45, 0x1401a1335\nmov     r8d, [rax]                                                     ; +0x4c, 0x1401a133c\ncmp     [rax+4], r8d                                                   ; +0x4f, 0x1401a133f\njz      short loc_1401A134A                                            ; +0x53, 0x1401a1343\ntest    r8d, r8d                                                       ; +0x55, 0x1401a1345\njnz     short loc_1401A134D                                            ; +0x58, 0x1401a1348\nxor     r8d, r8d                                                       ; +0x5a, 0x1401a134a\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x5d, 0x1401a134d\nmov     rcx, rbx                                                       ; +0x62, 0x1401a1352\ncall    GameObject__editorColorForMode                                 ; +0x65, 0x1401a1355\nmov     r8, [rbx]                                                      ; +0x6a, 0x1401a135a\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x6d, 0x1401a135d\nmov     rcx, rbx                                                       ; +0x72, 0x1401a1362\ncall    qword ptr [r8+590h]                                            ; +0x75, 0x1401a1365\ncmp     byte ptr [rbx+304h], 0                                         ; +0x7c, 0x1401a136c\njz      short loc_1401A13A4                                            ; +0x83, 0x1401a1373\nmov     rax, [rbx]                                                     ; +0x85, 0x1401a1375\nmov     edx, 3E7h                                                      ; +0x88, 0x1401a1378\nmov     rcx, rbx                                                       ; +0x8d, 0x1401a137d\ncall    qword ptr [rax+1C8h]                                           ; +0x90, 0x1401a1380\ntest    rax, rax                                                       ; +0x96, 0x1401a1386\njz      short loc_1401A13A4                                            ; +0x99, 0x1401a1389\nlea     rcx, [rax+170h]                                                ; +0x9b, 0x1401a138b\nmov     rax, [rcx]                                                     ; +0xa2, 0x1401a1392\nlea     rdx, word_140529A70                                            ; +0xa5, 0x1401a1395\nadd     rsp, 20h                                                       ; +0xac, 0x1401a139c\npop     rbx                                                            ; +0xb0, 0x1401a13a0\njmp     qword ptr [rax]                                                ; +0xb1, 0x1401a13a1\nadd     rsp, 20h                                                       ; +0xb4, 0x1401a13a4\npop     rbx                                                            ; +0xb8, 0x1401a13a8\nretn                                                                   ; +0xb9, 0x1401a13a9", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x1400a7f96", "CustomizeObjectLayer::onLiveEdit @ 0x1400a7fe4", "EditorUI::deselectTargetPortals @ 0x1400e698e", "EditorUI::deselectObjectsColor @ 0x1401107b1", "EditorUI::deselectObjectsColor @ 0x1401107f9", "EditorUI::deselectObject @ 0x1401113ab", "EditorUI::deselectObject @ 0x1401113fa", "EditorUI::deselectAll @ 0x1401114ab", "EditorUI::deselectAll @ 0x140111519", "EditorUI::editColor @ 0x14011ee73", "EditorUI::editColor @ 0x14011eeb9", "EditorUI::editHSV @ 0x14011f04b", "EditorUI::editHSV @ 0x14011f093", "EditorUI::ccTouchEnded @ 0x140125125", "EditorUI::ccTouchEnded @ 0x140125176", "EditorUI::ccTouchEnded @ 0x140125222", "LevelEditorLayer::updateVisibility @ 0x1402d9d2a", "ParticleGameObject::updateParticle @ 0x1404a098e", "<???> @ 0x1406cbf40"], "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"}