{"type": "func", "start": 5369312480, "end": 5369312586, "name": "ColorSelectPopup::onUpdateCopyColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCopyColor from 0x1400934e0 to 0x14009354a (106 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::init @ 0x14008fc2b\n// > ColorSelectPopup::init @ 0x14008fcd5\n// > <???> @ 0x1406c7128\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 ColorSelectPopup::onUpdateCopyColor(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  int v2; // edi\n  int v4; // eax\n  int m_copyColorID; // ecx\n  int v6; // edx\n  int v7; // ecx\n\n  v2 = 0;\n  if ( a1->m_copyColorID >= 1000 )\n    a1->m_copyColorID = 0;\n  v4 = a2->getTag(a2);\n  m_copyColorID = a1->m_copyColorID;\n  v6 = m_copyColorID + 1;\n  v7 = m_copyColorID - 1;\n  if ( v4 != 1 )\n    v7 = v6;\n  if ( v7 >= 0 )\n    v2 = v7;\n  if ( v2 > 999 )\n    v2 = 999;\n  a1->m_copyColorID = v2;\n  ColorSelectPopup::updateCopyColor(a1);\n  ColorSelectPopup::updateCopyColorTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCopyColor from 0x1400934e0 to 0x14009354a (106 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::init @ 0x14008fc2b\n; > ColorSelectPopup::init @ 0x14008fcd5\n; > <???> @ 0x1406c7128\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, 0x1400934e0\npush    rdi                                                            ; +0x5, 0x1400934e5\nsub     rsp, 20h                                                       ; +0x6, 0x1400934e6\nxor     edi, edi                                                       ; +0xa, 0x1400934ea\nmov     rbx, rcx                                                       ; +0xc, 0x1400934ec\ncmp     dword ptr [rcx+448h], 3E8h                                     ; +0xf, 0x1400934ef\njl      short loc_140093501                                            ; +0x19, 0x1400934f9\nmov     [rcx+448h], edi                                                ; +0x1b, 0x1400934fb\nmov     rax, [rdx]                                                     ; +0x21, 0x140093501\nmov     rcx, rdx                                                       ; +0x24, 0x140093504\ncall    qword ptr [rax+38h]                                            ; +0x27, 0x140093507\nmov     ecx, [rbx+448h]                                                ; +0x2a, 0x14009350a\nlea     edx, [rcx+1]                                                   ; +0x30, 0x140093510\ndec     ecx                                                            ; +0x33, 0x140093513\ncmp     eax, 1                                                         ; +0x35, 0x140093515\nmov     eax, 3E7h                                                      ; +0x38, 0x140093518\ncmovnz  ecx, edx                                                       ; +0x3d, 0x14009351d\ntest    ecx, ecx                                                       ; +0x40, 0x140093520\ncmovns  edi, ecx                                                       ; +0x42, 0x140093522\nmov     rcx, rbx                                                       ; +0x45, 0x140093525\ncmp     edi, eax                                                       ; +0x48, 0x140093528\ncmovg   edi, eax                                                       ; +0x4a, 0x14009352a\nmov     [rbx+448h], edi                                                ; +0x4d, 0x14009352d\ncall    ColorSelectPopup__updateCopyColor                              ; +0x53, 0x140093533\nmov     rcx, rbx                                                       ; +0x58, 0x140093538\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x14009353b\nadd     rsp, 20h                                                       ; +0x60, 0x140093540\npop     rdi                                                            ; +0x64, 0x140093544\njmp     ColorSelectPopup__updateCopyColorTextInputLabel                ; +0x65, 0x140093545", "xrefs": ["ColorSelectPopup::init @ 0x14008fc2b", "ColorSelectPopup::init @ 0x14008fcd5", "<???> @ 0x1406c7128"], "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"}