{"type": "func", "start": 5369310480, "end": 5369310594, "name": "ColorSelectPopup::onUpdateCustomColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCustomColor from 0x140092d10 to 0x140092d82 (114 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::init @ 0x14008f706\n// > ColorSelectPopup::init @ 0x14008f79f\n// > <???> @ 0x1406c708c\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::onUpdateCustomColor(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  int v2; // edi\n  int v4; // eax\n  int m_colorID; // ecx\n  int v6; // edx\n  int v7; // ecx\n\n  v2 = 0;\n  if ( a1->m_colorID >= 1000 )\n    a1->m_colorID = 0;\n  v4 = a2->getTag(a2);\n  m_colorID = a1->m_colorID;\n  v6 = m_colorID - 1;\n  v7 = m_colorID + 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_colorID = v2;\n  ColorSelectPopup::updateCustomColorIdx(a1);\n  SetupTriggerPopup::updateEditorLabel(a1);\n  ColorSelectPopup::updateTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCustomColor from 0x140092d10 to 0x140092d82 (114 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::init @ 0x14008f706\n; > ColorSelectPopup::init @ 0x14008f79f\n; > <???> @ 0x1406c708c\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, 0x140092d10\npush    rdi                                                            ; +0x5, 0x140092d15\nsub     rsp, 20h                                                       ; +0x6, 0x140092d16\nxor     edi, edi                                                       ; +0xa, 0x140092d1a\nmov     rbx, rcx                                                       ; +0xc, 0x140092d1c\ncmp     dword ptr [rcx+440h], 3E8h                                     ; +0xf, 0x140092d1f\njl      short loc_140092D31                                            ; +0x19, 0x140092d29\nmov     [rcx+440h], edi                                                ; +0x1b, 0x140092d2b\nmov     rax, [rdx]                                                     ; +0x21, 0x140092d31\nmov     rcx, rdx                                                       ; +0x24, 0x140092d34\ncall    qword ptr [rax+38h]                                            ; +0x27, 0x140092d37\nmov     ecx, [rbx+440h]                                                ; +0x2a, 0x140092d3a\nlea     edx, [rcx-1]                                                   ; +0x30, 0x140092d40\ninc     ecx                                                            ; +0x33, 0x140092d43\ncmp     eax, 1                                                         ; +0x35, 0x140092d45\nmov     eax, 3E7h                                                      ; +0x38, 0x140092d48\ncmovnz  ecx, edx                                                       ; +0x3d, 0x140092d4d\ntest    ecx, ecx                                                       ; +0x40, 0x140092d50\ncmovns  edi, ecx                                                       ; +0x42, 0x140092d52\nmov     rcx, rbx                                                       ; +0x45, 0x140092d55\ncmp     edi, eax                                                       ; +0x48, 0x140092d58\ncmovg   edi, eax                                                       ; +0x4a, 0x140092d5a\nmov     [rbx+440h], edi                                                ; +0x4d, 0x140092d5d\ncall    ColorSelectPopup__updateCustomColorIdx                         ; +0x53, 0x140092d63\nmov     rcx, rbx                                                       ; +0x58, 0x140092d68\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0x5b, 0x140092d6b\nmov     rcx, rbx                                                       ; +0x60, 0x140092d70\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x63, 0x140092d73\nadd     rsp, 20h                                                       ; +0x68, 0x140092d78\npop     rdi                                                            ; +0x6c, 0x140092d7c\njmp     ColorSelectPopup__updateTextInputLabel                         ; +0x6d, 0x140092d7d", "xrefs": ["ColorSelectPopup::init @ 0x14008f706", "ColorSelectPopup::init @ 0x14008f79f", "<???> @ 0x1406c708c"], "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"}