{"type": "func", "start": 5373150128, "end": 5373150234, "name": "SetupPulsePopup::onUpdateCopyColor", "pseudocode": "// \n// SetupPulsePopup::onUpdateCopyColor from 0x14043c3b0 to 0x14043c41a (106 bytes)\n// \n// 3 xrefs:\n// > SetupPulsePopup::init @ 0x14043a64d\n// > <???> @ 0x1406da0a0\n// > <???> @ 0x1406da0ac\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 SetupPulsePopup::onUpdateCopyColor(SetupPulsePopup *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  SetupPulsePopup::updateCopyColor(a1);\n  SetupPulsePopup::updateCopyColorTextInputLabel(a1);\n}", "assembly": "; \n; SetupPulsePopup::onUpdateCopyColor from 0x14043c3b0 to 0x14043c41a (106 bytes)\n; \n; 3 xrefs:\n; > SetupPulsePopup::init @ 0x14043a64d\n; > <???> @ 0x1406da0a0\n; > <???> @ 0x1406da0ac\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, 0x14043c3b0\npush    rdi                                                            ; +0x5, 0x14043c3b5\nsub     rsp, 20h                                                       ; +0x6, 0x14043c3b6\nxor     edi, edi                                                       ; +0xa, 0x14043c3ba\nmov     rbx, rcx                                                       ; +0xc, 0x14043c3bc\ncmp     dword ptr [rcx+4A8h], 3E8h                                     ; +0xf, 0x14043c3bf\njl      short loc_14043C3D1                                            ; +0x19, 0x14043c3c9\nmov     [rcx+4A8h], edi                                                ; +0x1b, 0x14043c3cb\nmov     rax, [rdx]                                                     ; +0x21, 0x14043c3d1\nmov     rcx, rdx                                                       ; +0x24, 0x14043c3d4\ncall    qword ptr [rax+38h]                                            ; +0x27, 0x14043c3d7\nmov     ecx, [rbx+4A8h]                                                ; +0x2a, 0x14043c3da\nlea     edx, [rcx+1]                                                   ; +0x30, 0x14043c3e0\ndec     ecx                                                            ; +0x33, 0x14043c3e3\ncmp     eax, 1                                                         ; +0x35, 0x14043c3e5\nmov     eax, 3E7h                                                      ; +0x38, 0x14043c3e8\ncmovnz  ecx, edx                                                       ; +0x3d, 0x14043c3ed\ntest    ecx, ecx                                                       ; +0x40, 0x14043c3f0\ncmovns  edi, ecx                                                       ; +0x42, 0x14043c3f2\nmov     rcx, rbx                                                       ; +0x45, 0x14043c3f5\ncmp     edi, eax                                                       ; +0x48, 0x14043c3f8\ncmovg   edi, eax                                                       ; +0x4a, 0x14043c3fa\nmov     [rbx+4A8h], edi                                                ; +0x4d, 0x14043c3fd\ncall    SetupPulsePopup__updateCopyColor                               ; +0x53, 0x14043c403\nmov     rcx, rbx                                                       ; +0x58, 0x14043c408\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x14043c40b\nadd     rsp, 20h                                                       ; +0x60, 0x14043c410\npop     rdi                                                            ; +0x64, 0x14043c414\njmp     SetupPulsePopup__updateCopyColorTextInputLabel                 ; +0x65, 0x14043c415", "xrefs": ["SetupPulsePopup::init @ 0x14043a64d", "<???> @ 0x1406da0a0", "<???> @ 0x1406da0ac"], "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"}