{"type": "func", "start": 5369936864, "end": 5369936984, "name": "ColorSelectPopup::onUpdateCustomColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCustomColor from 0x14012bbe0 to 0x14012bc58 (120 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::init @ 0x140128635\n// > ColorSelectPopup::init @ 0x1401286d9\n// > <???> @ 0x140916be0\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::onUpdateCustomColor(__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 + 1152) >= 1000 )\n    *(_DWORD *)(a1 + 1152) = 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 + 1152);\n  if ( v6 < 0 || (v7 = 999, v2 = v5 + *(_DWORD *)(a1 + 1152), v6 <= 999) )\n    v7 = v2;\n  *(_DWORD *)(a1 + 1152) = v7;\n  ColorSelectPopup::updateCustomColorIdx(a1);\n  SetupTriggerPopup::updateEditorLabel(a1);\n  return ColorSelectPopup::updateTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCustomColor from 0x14012bbe0 to 0x14012bc58 (120 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::init @ 0x140128635\n; > ColorSelectPopup::init @ 0x1401286d9\n; > <???> @ 0x140916be0\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, 0x14012bbe0\npush    rdi                                                            ; +0x5, 0x14012bbe5\nsub     rsp, 20h                                                       ; +0x6, 0x14012bbe6\nxor     edi, edi                                                       ; +0xa, 0x14012bbea\nmov     rbx, rcx                                                       ; +0xc, 0x14012bbec\ncmp     dword ptr [rcx+480h], 3E8h                                     ; +0xf, 0x14012bbef\njl      short loc_14012BC01                                            ; +0x19, 0x14012bbf9\nmov     [rcx+480h], edi                                                ; +0x1b, 0x14012bbfb\nmov     rax, [rdx]                                                     ; +0x21, 0x14012bc01\nmov     rcx, rdx                                                       ; +0x24, 0x14012bc04\ncall    qword ptr [rax+38h]                                            ; +0x27, 0x14012bc07\nmov     ecx, 1                                                         ; +0x2a, 0x14012bc0a\nmov     edx, 0FFFFFFFFh                                                ; +0x2f, 0x14012bc0f\ncmp     eax, ecx                                                       ; +0x34, 0x14012bc14\ncmovnz  ecx, edx                                                       ; +0x36, 0x14012bc16\nmov     edx, [rbx+480h]                                                ; +0x39, 0x14012bc19\nadd     edx, ecx                                                       ; +0x3f, 0x14012bc1f\njs      short loc_14012BC2E                                            ; +0x41, 0x14012bc21\nmov     eax, 3E7h                                                      ; +0x43, 0x14012bc23\nmov     edi, edx                                                       ; +0x48, 0x14012bc28\ncmp     edx, eax                                                       ; +0x4a, 0x14012bc2a\njg      short loc_14012BC30                                            ; +0x4c, 0x14012bc2c\nmov     eax, edi                                                       ; +0x4e, 0x14012bc2e\nmov     rcx, rbx                                                       ; +0x50, 0x14012bc30\nmov     [rbx+480h], eax                                                ; +0x53, 0x14012bc33\ncall    ColorSelectPopup__updateCustomColorIdx                         ; +0x59, 0x14012bc39\nmov     rcx, rbx                                                       ; +0x5e, 0x14012bc3e\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0x61, 0x14012bc41\nmov     rcx, rbx                                                       ; +0x66, 0x14012bc46\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x69, 0x14012bc49\nadd     rsp, 20h                                                       ; +0x6e, 0x14012bc4e\npop     rdi                                                            ; +0x72, 0x14012bc52\njmp     ColorSelectPopup__updateTextInputLabel                         ; +0x73, 0x14012bc53", "xrefs": ["ColorSelectPopup::init @ 0x140128635", "ColorSelectPopup::init @ 0x1401286d9", "<???> @ 0x140916be0"], "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"}