{"type": "func", "start": 4302472256, "end": 4302472465, "name": "ColorSelectPopup::onUpdateCopyColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCopyColor from 0x100728440 to 0x100728511 (209 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x100726747\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::onUpdateCopyColor(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  int v4; // ecx\n  int v5; // eax\n  int v6; // eax\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v9; // r14d\n\n  if ( a1->m_colorID >= 1000 )\n    a1->m_colorID = 0;\n  v3 = a1->m_colorID + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1;\n  v4 = 0;\n  if ( v3 > 0 )\n    v4 = v3;\n  v5 = 999;\n  if ( v4 < 999 )\n    v5 = v4;\n  v6 = (v5 == 0) + v5;\n  a1->m_colorID = v6;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetColor = v6;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && (unsigned int)sub_100720070((__int64)m_gameObjects) )\n    {\n      v9 = 0;\n      do\n        *(_DWORD *)(sub_1007200C0((__int64)a1->m_gameObjects, v9++) + 1024) = a1->m_colorID;\n      while ( v9 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) );\n    }\n  }\n  SetupTriggerPopup::updateEditorLabel(a1);\n  ColorSelectPopup::updateTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCopyColor from 0x100728440 to 0x100728511 (209 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x100726747\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, 0x100728440\nmov     rbp, rsp                                                       ; +0x1, 0x100728441\npush    r14                                                            ; +0x4, 0x100728444\npush    rbx                                                            ; +0x6, 0x100728446\nmov     rbx, rdi                                                       ; +0x7, 0x100728447\ncmp     dword ptr [rdi+448h], 3E8h                                     ; +0xa, 0x10072844a\njl      short loc_100728460                                            ; +0x14, 0x100728454\nmov     dword ptr [rbx+448h], 0                                        ; +0x16, 0x100728456\nmov     rax, [rsi]                                                     ; +0x20, 0x100728460\nmov     rdi, rsi                                                       ; +0x23, 0x100728463\ncall    qword ptr [rax+40h]                                            ; +0x26, 0x100728466\nxor     ecx, ecx                                                       ; +0x29, 0x100728469\ncmp     eax, 1                                                         ; +0x2b, 0x10072846b\nsetz    cl                                                             ; +0x2e, 0x10072846e\nmov     eax, [rbx+448h]                                                ; +0x31, 0x100728471\nlea     eax, [rax+rcx*2]                                               ; +0x37, 0x100728477\ndec     eax                                                            ; +0x3a, 0x10072847a\nxor     ecx, ecx                                                       ; +0x3c, 0x10072847c\ntest    eax, eax                                                       ; +0x3e, 0x10072847e\ncmovg   ecx, eax                                                       ; +0x40, 0x100728480\ncmp     ecx, 3E7h                                                      ; +0x43, 0x100728483\nmov     eax, 3E7h                                                      ; +0x49, 0x100728489\ncmovl   eax, ecx                                                       ; +0x4e, 0x10072848e\ncmp     eax, 1                                                         ; +0x51, 0x100728491\nadc     eax, 0                                                         ; +0x54, 0x100728494\nmov     [rbx+448h], eax                                                ; +0x57, 0x100728497\nmov     rcx, [rbx+290h]                                                ; +0x5d, 0x10072849d\ntest    rcx, rcx                                                       ; +0x64, 0x1007284a4\njz      short loc_1007284C3                                            ; +0x67, 0x1007284a7\nmov     [rcx+400h], eax                                                ; +0x69, 0x1007284a9\nmov     rdi, rbx                                                       ; +0x6f, 0x1007284af\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0x72, 0x1007284b2\nmov     rdi, rbx                                                       ; +0x77, 0x1007284b7\npop     rbx                                                            ; +0x7a, 0x1007284ba\npop     r14                                                            ; +0x7b, 0x1007284bb\npop     rbp                                                            ; +0x7d, 0x1007284bd\njmp     ColorSelectPopup__updateTextInputLabel                         ; +0x7e, 0x1007284be\nmov     rdi, [rbx+298h]                                                ; +0x83, 0x1007284c3\ntest    rdi, rdi                                                       ; +0x8a, 0x1007284ca\njz      short loc_1007284AF                                            ; +0x8d, 0x1007284cd\ncall    sub_100720070                                                  ; +0x8f, 0x1007284cf\ntest    eax, eax                                                       ; +0x94, 0x1007284d4\njz      short loc_1007284AF                                            ; +0x96, 0x1007284d6\nxor     r14d, r14d                                                     ; +0x98, 0x1007284d8\nnop     dword ptr [rax+rax+00h]                                        ; +0x9b, 0x1007284db\nmov     rdi, [rbx+298h]                                                ; +0xa0, 0x1007284e0\nmov     esi, r14d                                                      ; +0xa7, 0x1007284e7\ncall    sub_1007200C0                                                  ; +0xaa, 0x1007284ea\nmov     ecx, [rbx+448h]                                                ; +0xaf, 0x1007284ef\nmov     [rax+400h], ecx                                                ; +0xb5, 0x1007284f5\ninc     r14d                                                           ; +0xbb, 0x1007284fb\nmov     rdi, [rbx+298h]                                                ; +0xbe, 0x1007284fe\ncall    sub_100720070                                                  ; +0xc5, 0x100728505\ncmp     r14d, eax                                                      ; +0xca, 0x10072850a\njb      short loc_1007284E0                                            ; +0xcd, 0x10072850d\njmp     short loc_1007284AF                                            ; +0xcf, 0x10072850f", "xrefs": ["ColorSelectPopup::init @ 0x100726747"], "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"}