{"type": "func", "start": 4297956016, "end": 4297956048, "name": "ColorAction::updateCustomColor", "pseudocode": "// \n// ColorAction::updateCustomColor from 0x1002d9ab0 to 0x1002d9ad0 (32 bytes)\n// \n// 0 xrefs:\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall ColorAction::updateCustomColor(ColorAction *a1, cocos2d::ccColor3B a2, cocos2d::ccColor3B a3)\n{\n  int m_playerColor; // eax\n\n  m_playerColor = a1->m_playerColor;\n  if ( m_playerColor != 1 )\n  {\n    if ( m_playerColor != 2 )\n      return;\n    *(_DWORD *)&a2.r = *(_DWORD *)&a3.r;\n  }\n  a1->m_fromColor = a2;\n}", "assembly": "; \n; ColorAction::updateCustomColor from 0x1002d9ab0 to 0x1002d9ad0 (32 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1002d9ab0\nmov     rbp, rsp                                                       ; +0x1, 0x1002d9ab1\nmov     eax, [rdi+58h]                                                 ; +0x4, 0x1002d9ab4\ncmp     eax, 1                                                         ; +0x7, 0x1002d9ab7\njz      short loc_1002D9AC3                                            ; +0xa, 0x1002d9aba\ncmp     eax, 2                                                         ; +0xc, 0x1002d9abc\njnz     short loc_1002D9ACE                                            ; +0xf, 0x1002d9abf\nmov     esi, edx                                                       ; +0x11, 0x1002d9ac1\nmov     [rdi+48h], si                                                  ; +0x13, 0x1002d9ac3\nshr     esi, 10h                                                       ; +0x17, 0x1002d9ac7\nmov     [rdi+4Ah], sil                                                 ; +0x1a, 0x1002d9aca\npop     rbp                                                            ; +0x1e, 0x1002d9ace\nretn                                                                   ; +0x1f, 0x1002d9acf", "xrefs": [], "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"}