{"type": "func", "start": 4300134448, "end": 4300134480, "name": "ColorAction2::updateCustomColor", "pseudocode": "// \n// ColorAction2::updateCustomColor from 0x1004ed830 to 0x1004ed850 (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 ColorAction2::updateCustomColor(ColorAction2 *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; ColorAction2::updateCustomColor from 0x1004ed830 to 0x1004ed850 (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, 0x1004ed830\nmov     rbp, rsp                                                       ; +0x1, 0x1004ed831\nmov     eax, [rdi+20h]                                                 ; +0x4, 0x1004ed834\ncmp     eax, 1                                                         ; +0x7, 0x1004ed837\njz      short loc_1004ED843                                            ; +0xa, 0x1004ed83a\ncmp     eax, 2                                                         ; +0xc, 0x1004ed83c\njnz     short loc_1004ED84E                                            ; +0xf, 0x1004ed83f\nmov     esi, edx                                                       ; +0x11, 0x1004ed841\nmov     [rdi+10h], si                                                  ; +0x13, 0x1004ed843\nshr     esi, 10h                                                       ; +0x17, 0x1004ed847\nmov     [rdi+12h], sil                                                 ; +0x1a, 0x1004ed84a\npop     rbp                                                            ; +0x1e, 0x1004ed84e\nretn                                                                   ; +0x1f, 0x1004ed84f", "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"}