{"type": "func", "start": 4303385872, "end": 4303385980, "name": "ColorSelectPopup::onUpdateCopyColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCopyColor from 0x100807510 to 0x10080757c (108 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x100805a3c\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 12:36:40 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::onUpdateCopyColor(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  int v3; // ecx\n  int v4; // eax\n\n  if ( *(int *)(a1 + 1176) >= 1000 )\n    *(_DWORD *)(a1 + 1176) = 0;\n  v2 = *(_DWORD *)(a1 + 1176) + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1) - 1;\n  v3 = 0;\n  if ( v2 > 0 )\n    v3 = v2;\n  v4 = 999;\n  if ( v3 < 999 )\n    v4 = v3;\n  *(_DWORD *)(a1 + 1176) = v4;\n  ColorSelectPopup::updateCopyColor(a1);\n  return ColorSelectPopup::updateCopyColorTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCopyColor from 0x100807510 to 0x10080757c (108 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x100805a3c\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 12:36:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x100807510\nmov     rbp, rsp                                                       ; +0x1, 0x100807511\npush    rbx                                                            ; +0x4, 0x100807514\npush    rax                                                            ; +0x5, 0x100807515\nmov     rbx, rdi                                                       ; +0x6, 0x100807516\ncmp     dword ptr [rdi+498h], 3E8h                                     ; +0x9, 0x100807519\njl      short loc_10080752F                                            ; +0x13, 0x100807523\nmov     dword ptr [rbx+498h], 0                                        ; +0x15, 0x100807525\nmov     rax, [rsi]                                                     ; +0x1f, 0x10080752f\nmov     rdi, rsi                                                       ; +0x22, 0x100807532\ncall    qword ptr [rax+40h]                                            ; +0x25, 0x100807535\nxor     ecx, ecx                                                       ; +0x28, 0x100807538\ncmp     eax, 1                                                         ; +0x2a, 0x10080753a\nsetnz   cl                                                             ; +0x2d, 0x10080753d\nmov     eax, [rbx+498h]                                                ; +0x30, 0x100807540\nlea     eax, [rax+rcx*2]                                               ; +0x36, 0x100807546\ndec     eax                                                            ; +0x39, 0x100807549\nxor     ecx, ecx                                                       ; +0x3b, 0x10080754b\ntest    eax, eax                                                       ; +0x3d, 0x10080754d\ncmovg   ecx, eax                                                       ; +0x3f, 0x10080754f\ncmp     ecx, 3E7h                                                      ; +0x42, 0x100807552\nmov     eax, 3E7h                                                      ; +0x48, 0x100807558\ncmovl   eax, ecx                                                       ; +0x4d, 0x10080755d\nmov     [rbx+498h], eax                                                ; +0x50, 0x100807560\nmov     rdi, rbx                                                       ; +0x56, 0x100807566\ncall    ColorSelectPopup__updateCopyColor                              ; +0x59, 0x100807569\nmov     rdi, rbx                                                       ; +0x5e, 0x10080756e\nadd     rsp, 8                                                         ; +0x61, 0x100807571\npop     rbx                                                            ; +0x65, 0x100807575\npop     rbp                                                            ; +0x66, 0x100807576\njmp     ColorSelectPopup__updateCopyColorTextInputLabel                ; +0x67, 0x100807577", "xrefs": ["ColorSelectPopup::init @ 0x100805a3c"], "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"}