{"type": "func", "start": 5371698800, "end": 5371698943, "name": "LevelEditorLayer::manualUpdateObjectColors", "pseudocode": "// \n// LevelEditorLayer::manualUpdateObjectColors from 0x1402d9e70 to 0x1402d9eff (143 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140586408\n// > <???> @ 0x1406d3230\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 LevelEditorLayer::manualUpdateObjectColors(LevelEditorLayer *a1, GameObject *a2)\n{\n  bool v2; // r8\n  bool shouldBlendColor; // al\n  bool v6; // zf\n  bool v7; // dl\n  GJSpriteColor *m_detailColor; // r8\n  int m_colorID; // eax\n  bool v10; // al\n  cocos2d::CCArray *v11; // rax\n\n  shouldBlendColor = GameObject::shouldBlendColor(a2, a2->m_baseColor, v2);\n  v6 = a2->m_colorSprite == nullptr;\n  v7 = shouldBlendColor;\n  a2->m_shouldBlendBase = shouldBlendColor;\n  if ( v6 )\n    goto LABEL_9;\n  m_detailColor = a2->m_detailColor;\n  m_colorID = m_detailColor->m_colorID;\n  if ( m_detailColor->m_defaultColorID == m_detailColor->m_colorID || !m_colorID )\n    m_colorID = m_detailColor->m_defaultColorID;\n  if ( m_colorID != 1012 )\n    v7 = GameObject::shouldBlendColor(a2, a2->m_detailColor, (bool)m_detailColor);\n  if ( !v7 )\nLABEL_9:\n    v10 = 0;\n  else\n    v10 = 1;\n  a2->m_shouldBlendDetail = v10;\n  v11 = cocos2d::CCArray::createWithObject(a2);\n  LevelEditorLayer::updateObjectColors(a1, v11);\n}", "assembly": "; \n; LevelEditorLayer::manualUpdateObjectColors from 0x1402d9e70 to 0x1402d9eff (143 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140586408\n; > <???> @ 0x1406d3230\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402d9e70\npush    rdi                                                            ; +0x5, 0x1402d9e75\nsub     rsp, 20h                                                       ; +0x6, 0x1402d9e76\nmov     rbx, rdx                                                       ; +0xa, 0x1402d9e7a\nmov     rdi, rcx                                                       ; +0xd, 0x1402d9e7d\nmov     rdx, [rdx+450h]                                                ; +0x10, 0x1402d9e80\nmov     rcx, rbx                                                       ; +0x17, 0x1402d9e87\ncall    GameObject__shouldBlendColor                                   ; +0x1a, 0x1402d9e8a\ncmp     qword ptr [rbx+380h], 0                                        ; +0x1f, 0x1402d9e8f\nmovzx   edx, al                                                        ; +0x27, 0x1402d9e97\nmov     [rbx+37Ch], al                                                 ; +0x2a, 0x1402d9e9a\njz      short loc_1402D9ED9                                            ; +0x30, 0x1402d9ea0\nmov     r8, [rbx+458h]                                                 ; +0x32, 0x1402d9ea2\nmov     r9d, [r8+4]                                                    ; +0x39, 0x1402d9ea9\nmov     eax, [r8]                                                      ; +0x3d, 0x1402d9ead\ncmp     r9d, eax                                                       ; +0x40, 0x1402d9eb0\njz      short loc_1402D9EB9                                            ; +0x43, 0x1402d9eb3\ntest    eax, eax                                                       ; +0x45, 0x1402d9eb5\njnz     short loc_1402D9EBC                                            ; +0x47, 0x1402d9eb7\nmov     eax, r9d                                                       ; +0x49, 0x1402d9eb9\ncmp     eax, 3F4h                                                      ; +0x4c, 0x1402d9ebc\njz      short loc_1402D9ED1                                            ; +0x51, 0x1402d9ec1\nmov     rdx, r8                                                        ; +0x53, 0x1402d9ec3\nmov     rcx, rbx                                                       ; +0x56, 0x1402d9ec6\ncall    GameObject__shouldBlendColor                                   ; +0x59, 0x1402d9ec9\nmovzx   edx, al                                                        ; +0x5e, 0x1402d9ece\ntest    dl, dl                                                         ; +0x61, 0x1402d9ed1\njz      short loc_1402D9ED9                                            ; +0x63, 0x1402d9ed3\nmov     al, 1                                                          ; +0x65, 0x1402d9ed5\njmp     short loc_1402D9EDB                                            ; +0x67, 0x1402d9ed7\nxor     al, al                                                         ; +0x69, 0x1402d9ed9\nmov     rcx, rbx                                                       ; +0x6b, 0x1402d9edb\nmov     [rbx+37Dh], al                                                 ; +0x6e, 0x1402d9ede\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x74, 0x1402d9ee4\nmov     rdx, rax                                                       ; +0x7a, 0x1402d9eea\nmov     rcx, rdi                                                       ; +0x7d, 0x1402d9eed\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x80, 0x1402d9ef0\nadd     rsp, 20h                                                       ; +0x85, 0x1402d9ef5\npop     rdi                                                            ; +0x89, 0x1402d9ef9\njmp     LevelEditorLayer__updateObjectColors                           ; +0x8a, 0x1402d9efa", "xrefs": ["<???> @ 0x140586408", "<???> @ 0x1406d3230"], "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"}