{"type": "func", "start": 4302472976, "end": 4302473084, "name": "ColorSelectPopup::onUpdateCustomColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCustomColor from 0x100728710 to 0x10072877c (108 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x100726c39\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 __fastcall ColorSelectPopup::onUpdateCustomColor(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  int v2; // eax\n  int v3; // ecx\n  int v4; // eax\n\n  if ( a1->m_copyColorID >= 1000 )\n    a1->m_copyColorID = 0;\n  v2 = a1->m_copyColorID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 1) - 1;\n  v3 = 0;\n  if ( v2 > 0 )\n    v3 = v2;\n  v4 = 999;\n  if ( v3 < 999 )\n    v4 = v3;\n  a1->m_copyColorID = v4;\n  ColorSelectPopup::updateCopyColor(a1);\n  ColorSelectPopup::updateCopyColorTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCustomColor from 0x100728710 to 0x10072877c (108 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x100726c39\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\npush    rbp                                                            ; +0x0, 0x100728710\nmov     rbp, rsp                                                       ; +0x1, 0x100728711\npush    rbx                                                            ; +0x4, 0x100728714\npush    rax                                                            ; +0x5, 0x100728715\nmov     rbx, rdi                                                       ; +0x6, 0x100728716\ncmp     dword ptr [rdi+450h], 3E8h                                     ; +0x9, 0x100728719\njl      short loc_10072872F                                            ; +0x13, 0x100728723\nmov     dword ptr [rbx+450h], 0                                        ; +0x15, 0x100728725\nmov     rax, [rsi]                                                     ; +0x1f, 0x10072872f\nmov     rdi, rsi                                                       ; +0x22, 0x100728732\ncall    qword ptr [rax+40h]                                            ; +0x25, 0x100728735\nxor     ecx, ecx                                                       ; +0x28, 0x100728738\ncmp     eax, 1                                                         ; +0x2a, 0x10072873a\nsetnz   cl                                                             ; +0x2d, 0x10072873d\nmov     eax, [rbx+450h]                                                ; +0x30, 0x100728740\nlea     eax, [rax+rcx*2]                                               ; +0x36, 0x100728746\ndec     eax                                                            ; +0x39, 0x100728749\nxor     ecx, ecx                                                       ; +0x3b, 0x10072874b\ntest    eax, eax                                                       ; +0x3d, 0x10072874d\ncmovg   ecx, eax                                                       ; +0x3f, 0x10072874f\ncmp     ecx, 3E7h                                                      ; +0x42, 0x100728752\nmov     eax, 3E7h                                                      ; +0x48, 0x100728758\ncmovl   eax, ecx                                                       ; +0x4d, 0x10072875d\nmov     [rbx+450h], eax                                                ; +0x50, 0x100728760\nmov     rdi, rbx                                                       ; +0x56, 0x100728766\ncall    ColorSelectPopup__updateCopyColor                              ; +0x59, 0x100728769\nmov     rdi, rbx                                                       ; +0x5e, 0x10072876e\nadd     rsp, 8                                                         ; +0x61, 0x100728771\npop     rbx                                                            ; +0x65, 0x100728775\npop     rbp                                                            ; +0x66, 0x100728776\njmp     ColorSelectPopup__updateCopyColorTextInputLabel                ; +0x67, 0x100728777", "xrefs": ["ColorSelectPopup::init @ 0x100726c39"], "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"}