{"type": "func", "start": 5370416576, "end": 5370416689, "name": "GameObject::setChildColor", "pseudocode": "// \n// GameObject::setChildColor from 0x1401a0dc0 to 0x1401a0e31 (113 bytes)\n// \n// 47 xrefs:\n// > ParticleGameObject::setChildColor @ 0x1404a12af\n// > AnimatedGameObject::setChildColor @ 0x1404a5840\n// > <???> @ 0x140556750\n// > <???> @ 0x140556ec0\n// > <???> @ 0x14055def8\n// > <???> @ 0x14055e578\n// > <???> @ 0x1405c8610\n// > <???> @ 0x14060e0f0\n// > <???> @ 0x14060e810\n// > <???> @ 0x14060f048\n// > <???> @ 0x14060f6f0\n// > <???> @ 0x14060fdc0\n// > <???> @ 0x140610478\n// > <???> @ 0x140610bc0\n// > <???> @ 0x140611420\n// > <???> @ 0x140611b58\n// > <???> @ 0x140612340\n// > <???> @ 0x1406129e8\n// > <???> @ 0x140613090\n// > <???> @ 0x140613800\n// > <???> @ 0x140613ea8\n// > <???> @ 0x140614690\n// > <???> @ 0x140614ec8\n// > <???> @ 0x140615610\n// > <???> @ 0x140615cb8\n// > <???> @ 0x140616400\n// > <???> @ 0x140616bc0\n// > <???> @ 0x140617910\n// > <???> @ 0x140618080\n// > <???> @ 0x140618728\n// > <???> @ 0x140618e70\n// > <???> @ 0x140619910\n// > <???> @ 0x140619fb8\n// > <???> @ 0x14061a660\n// > <???> @ 0x14061ad80\n// > <???> @ 0x14061b428\n// > <???> @ 0x14061bb70\n// > <???> @ 0x14061c308\n// > <???> @ 0x14061c9b0\n// > <???> @ 0x14061d058\n// > <???> @ 0x14061d700\n// > <???> @ 0x14061dda8\n// > <???> @ 0x14061e450\n// > <???> @ 0x14061eaf8\n// > <???> @ 0x14061f308\n// > <???> @ 0x14061faa0\n// > <???> @ 0x1406cbf04\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::setChildColor(GameObject *a1, const cocos2d::ccColor3B *a2)\n{\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  __int16 v5; // ax\n\n  m_colorSprite = a1->m_colorSprite;\n  if ( m_colorSprite )\n  {\n    if ( a2->r || a2->g || a2->b )\n      v5 = 0;\n    else\n      v5 = (a1->m_childColorType == 1) + 1;\n    a1->m_childColorType = v5;\n    ((void (__fastcall *)(cocos2d::CCRGBAProtocol *))m_colorSprite->setColor)(&m_colorSprite->cocos2d::CCRGBAProtocol);\n    a1->m_colorSprite->setChildColor(a1->m_colorSprite, a2);\n  }\n}", "assembly": "; \n; GameObject::setChildColor from 0x1401a0dc0 to 0x1401a0e31 (113 bytes)\n; \n; 47 xrefs:\n; > ParticleGameObject::setChildColor @ 0x1404a12af\n; > AnimatedGameObject::setChildColor @ 0x1404a5840\n; > <???> @ 0x140556750\n; > <???> @ 0x140556ec0\n; > <???> @ 0x14055def8\n; > <???> @ 0x14055e578\n; > <???> @ 0x1405c8610\n; > <???> @ 0x14060e0f0\n; > <???> @ 0x14060e810\n; > <???> @ 0x14060f048\n; > <???> @ 0x14060f6f0\n; > <???> @ 0x14060fdc0\n; > <???> @ 0x140610478\n; > <???> @ 0x140610bc0\n; > <???> @ 0x140611420\n; > <???> @ 0x140611b58\n; > <???> @ 0x140612340\n; > <???> @ 0x1406129e8\n; > <???> @ 0x140613090\n; > <???> @ 0x140613800\n; > <???> @ 0x140613ea8\n; > <???> @ 0x140614690\n; > <???> @ 0x140614ec8\n; > <???> @ 0x140615610\n; > <???> @ 0x140615cb8\n; > <???> @ 0x140616400\n; > <???> @ 0x140616bc0\n; > <???> @ 0x140617910\n; > <???> @ 0x140618080\n; > <???> @ 0x140618728\n; > <???> @ 0x140618e70\n; > <???> @ 0x140619910\n; > <???> @ 0x140619fb8\n; > <???> @ 0x14061a660\n; > <???> @ 0x14061ad80\n; > <???> @ 0x14061b428\n; > <???> @ 0x14061bb70\n; > <???> @ 0x14061c308\n; > <???> @ 0x14061c9b0\n; > <???> @ 0x14061d058\n; > <???> @ 0x14061d700\n; > <???> @ 0x14061dda8\n; > <???> @ 0x14061e450\n; > <???> @ 0x14061eaf8\n; > <???> @ 0x14061f308\n; > <???> @ 0x14061faa0\n; > <???> @ 0x1406cbf04\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, 0x1401a0dc0\npush    rdi                                                            ; +0x5, 0x1401a0dc5\nsub     rsp, 20h                                                       ; +0x6, 0x1401a0dc6\nmov     rdi, rcx                                                       ; +0xa, 0x1401a0dca\nmov     rbx, rdx                                                       ; +0xd, 0x1401a0dcd\nmov     rcx, [rcx+380h]                                                ; +0x10, 0x1401a0dd0\ntest    rcx, rcx                                                       ; +0x17, 0x1401a0dd7\njz      short loc_1401A0E26                                            ; +0x1a, 0x1401a0dda\ncmp     byte ptr [rdx], 0                                              ; +0x1c, 0x1401a0ddc\njnz     short loc_1401A0DFE                                            ; +0x1f, 0x1401a0ddf\ncmp     byte ptr [rdx+1], 0                                            ; +0x21, 0x1401a0de1\njnz     short loc_1401A0DFE                                            ; +0x25, 0x1401a0de5\ncmp     byte ptr [rdx+2], 0                                            ; +0x27, 0x1401a0de7\njnz     short loc_1401A0DFE                                            ; +0x2b, 0x1401a0deb\nxor     eax, eax                                                       ; +0x2d, 0x1401a0ded\ncmp     word ptr [rdi+37Ah], 1                                         ; +0x2f, 0x1401a0def\nsetz    al                                                             ; +0x37, 0x1401a0df7\ninc     eax                                                            ; +0x3a, 0x1401a0dfa\njmp     short loc_1401A0E00                                            ; +0x3c, 0x1401a0dfc\nxor     eax, eax                                                       ; +0x3e, 0x1401a0dfe\nadd     rcx, 140h                                                      ; +0x40, 0x1401a0e00\nmov     [rdi+37Ah], ax                                                 ; +0x47, 0x1401a0e07\nmov     rax, [rcx]                                                     ; +0x4e, 0x1401a0e0e\ncall    qword ptr [rax]                                                ; +0x51, 0x1401a0e11\nmov     rcx, [rdi+380h]                                                ; +0x53, 0x1401a0e13\nmov     rdx, rbx                                                       ; +0x5a, 0x1401a0e1a\nmov     rax, [rcx]                                                     ; +0x5d, 0x1401a0e1d\ncall    qword ptr [rax+3A0h]                                           ; +0x60, 0x1401a0e20\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x1401a0e26\nadd     rsp, 20h                                                       ; +0x6b, 0x1401a0e2b\npop     rdi                                                            ; +0x6f, 0x1401a0e2f\nretn                                                                   ; +0x70, 0x1401a0e30", "xrefs": ["ParticleGameObject::setChildColor @ 0x1404a12af", "AnimatedGameObject::setChildColor @ 0x1404a5840", "<???> @ 0x140556750", "<???> @ 0x140556ec0", "<???> @ 0x14055def8", "<???> @ 0x14055e578", "<???> @ 0x1405c8610", "<???> @ 0x14060e0f0", "<???> @ 0x14060e810", "<???> @ 0x14060f048", "<???> @ 0x14060f6f0", "<???> @ 0x14060fdc0", "<???> @ 0x140610478", "<???> @ 0x140610bc0", "<???> @ 0x140611420", "<???> @ 0x140611b58", "<???> @ 0x140612340", "<???> @ 0x1406129e8", "<???> @ 0x140613090", "<???> @ 0x140613800", "<???> @ 0x140613ea8", "<???> @ 0x140614690", "<???> @ 0x140614ec8", "<???> @ 0x140615610", "<???> @ 0x140615cb8", "<???> @ 0x140616400", "<???> @ 0x140616bc0", "<???> @ 0x140617910", "<???> @ 0x140618080", "<???> @ 0x140618728", "<???> @ 0x140618e70", "<???> @ 0x140619910", "<???> @ 0x140619fb8", "<???> @ 0x14061a660", "<???> @ 0x14061ad80", "<???> @ 0x14061b428", "<???> @ 0x14061bb70", "<???> @ 0x14061c308", "<???> @ 0x14061c9b0", "<???> @ 0x14061d058", "<???> @ 0x14061d700", "<???> @ 0x14061dda8", "<???> @ 0x14061e450", "<???> @ 0x14061eaf8", "<???> @ 0x14061f308", "<???> @ 0x14061faa0", "<???> @ 0x1406cbf04"], "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"}