{"type": "func", "start": 5369938944, "end": 5369939056, "name": "ColorSelectPopup::onUpdateCopyColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCopyColor from 0x14012c400 to 0x14012c470 (112 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::init @ 0x140128b59\n// > ColorSelectPopup::init @ 0x140128c0b\n// > <???> @ 0x140916c64\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:01 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::onUpdateCopyColor(__int64 a1, __int64 a2)\n{\n  int v2; // edi\n  int v4; // eax\n  int v5; // ecx\n  int v6; // edx\n  int v7; // eax\n\n  v2 = 0;\n  if ( *(int *)(a1 + 1160) >= 1000 )\n    *(_DWORD *)(a1 + 1160) = 0;\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v5 = -1;\n  if ( v4 != 1 )\n    v5 = 1;\n  v6 = v5 + *(_DWORD *)(a1 + 1160);\n  if ( v6 < 0 || (v7 = 999, v2 = v5 + *(_DWORD *)(a1 + 1160), v6 <= 999) )\n    v7 = v2;\n  *(_DWORD *)(a1 + 1160) = v7;\n  ColorSelectPopup::updateCopyColor(a1);\n  return ColorSelectPopup::updateCopyColorTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCopyColor from 0x14012c400 to 0x14012c470 (112 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::init @ 0x140128b59\n; > ColorSelectPopup::init @ 0x140128c0b\n; > <???> @ 0x140916c64\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:01 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14012c400\npush    rdi                                                            ; +0x5, 0x14012c405\nsub     rsp, 20h                                                       ; +0x6, 0x14012c406\nxor     edi, edi                                                       ; +0xa, 0x14012c40a\nmov     rbx, rcx                                                       ; +0xc, 0x14012c40c\ncmp     dword ptr [rcx+488h], 3E8h                                     ; +0xf, 0x14012c40f\njl      short loc_14012C421                                            ; +0x19, 0x14012c419\nmov     [rcx+488h], edi                                                ; +0x1b, 0x14012c41b\nmov     rax, [rdx]                                                     ; +0x21, 0x14012c421\nmov     rcx, rdx                                                       ; +0x24, 0x14012c424\ncall    qword ptr [rax+38h]                                            ; +0x27, 0x14012c427\nmov     edx, 1                                                         ; +0x2a, 0x14012c42a\nmov     ecx, 0FFFFFFFFh                                                ; +0x2f, 0x14012c42f\ncmp     eax, edx                                                       ; +0x34, 0x14012c434\ncmovnz  ecx, edx                                                       ; +0x36, 0x14012c436\nmov     edx, [rbx+488h]                                                ; +0x39, 0x14012c439\nadd     edx, ecx                                                       ; +0x3f, 0x14012c43f\njs      short loc_14012C44E                                            ; +0x41, 0x14012c441\nmov     eax, 3E7h                                                      ; +0x43, 0x14012c443\nmov     edi, edx                                                       ; +0x48, 0x14012c448\ncmp     edx, eax                                                       ; +0x4a, 0x14012c44a\njg      short loc_14012C450                                            ; +0x4c, 0x14012c44c\nmov     eax, edi                                                       ; +0x4e, 0x14012c44e\nmov     rcx, rbx                                                       ; +0x50, 0x14012c450\nmov     [rbx+488h], eax                                                ; +0x53, 0x14012c453\ncall    ColorSelectPopup__updateCopyColor                              ; +0x59, 0x14012c459\nmov     rcx, rbx                                                       ; +0x5e, 0x14012c45e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x61, 0x14012c461\nadd     rsp, 20h                                                       ; +0x66, 0x14012c466\npop     rdi                                                            ; +0x6a, 0x14012c46a\njmp     ColorSelectPopup__updateCopyColorTextInputLabel                ; +0x6b, 0x14012c46b", "xrefs": ["ColorSelectPopup::init @ 0x140128b59", "ColorSelectPopup::init @ 0x140128c0b", "<???> @ 0x140916c64"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}