{"type": "func", "start": 4302476048, "end": 4302476337, "name": "ColorSelectPopup::colorValueChanged", "pseudocode": "// \n// ColorSelectPopup::colorValueChanged from 0x100729310 to 0x100729431 (289 bytes)\n// \n// 2 xrefs:\n// > sub_100729910 @ 0x10072991c\n// > <???> @ 0x10098ae80\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::colorValueChanged(ColorSelectPopup *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCSprite *m_currentColorSprite; // rdi\n  cocos2d::extension::CCControlColourPicker *m_colorPicker; // rax\n  __int16 v5; // cx\n  cocos2d::ccColor3B *p_m_currentColor; // r14\n  EffectGameObject *m_gameObject; // rax\n  __int16 v8; // cx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v10; // r14d\n  __int64 v11; // rax\n  __int16 v12; // cx\n  ColorAction *m_colorAction; // rax\n  __int16 v14; // cx\n\n  m_currentColorSprite = a1->m_currentColorSprite;\n  if ( m_currentColorSprite )\n  {\n    m_colorPicker = a1->m_colorPicker;\n    v5 = *(_WORD *)&m_colorPicker->m_rgb.r;\n    p_m_currentColor = &a1->m_currentColor;\n    a1->m_currentColor.b = m_colorPicker->m_rgb.b;\n    *(_WORD *)&a1->m_currentColor.r = v5;\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_currentColorSprite->setColor)(\n      m_currentColorSprite,\n      &a1->m_currentColor);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_originalColorSprite->setColor)(\n      a1->m_originalColorSprite,\n      &a1->m_originalColor);\n    if ( !a1->m_initializing )\n    {\n      m_gameObject = a1->m_gameObject;\n      if ( m_gameObject )\n      {\n        v8 = *(_WORD *)&p_m_currentColor->r;\n        m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b;\n        *(_WORD *)&m_gameObject->m_triggerTargetColor.r = v8;\n      }\n      else\n      {\n        m_gameObjects = a1->m_gameObjects;\n        if ( m_gameObjects )\n        {\n          if ( (unsigned int)sub_100720070((__int64)m_gameObjects) )\n          {\n            v10 = 0;\n            do\n            {\n              v11 = sub_1007200C0((__int64)a1->m_gameObjects, v10);\n              v12 = *(_WORD *)&a1->m_currentColor.r;\n              *(_BYTE *)(v11 + 1450) = a1->m_currentColor.b;\n              *(_WORD *)(v11 + 1448) = v12;\n              ++v10;\n            }\n            while ( v10 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) );\n          }\n        }\n        else\n        {\n          m_colorAction = a1->m_colorAction;\n          if ( m_colorAction )\n          {\n            v14 = *(_WORD *)&p_m_currentColor->r;\n            m_colorAction->m_fromColor.b = a1->m_currentColor.b;\n            *(_WORD *)&m_colorAction->m_fromColor.r = v14;\n          }\n        }\n      }\n    }\n    ColorSelectPopup::updateColorLabels(a1);\n  }\n}", "assembly": "; \n; ColorSelectPopup::colorValueChanged from 0x100729310 to 0x100729431 (289 bytes)\n; \n; 2 xrefs:\n; > sub_100729910 @ 0x10072991c\n; > <???> @ 0x10098ae80\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, 0x100729310\nmov     rbp, rsp                                                       ; +0x1, 0x100729311\npush    r14                                                            ; +0x4, 0x100729314\npush    rbx                                                            ; +0x6, 0x100729316\nmov     rbx, rdi                                                       ; +0x7, 0x100729317\nmov     rdi, [rdi+400h]                                                ; +0xa, 0x10072931a\ntest    rdi, rdi                                                       ; +0x11, 0x100729321\njz      loc_1007293AD                                                  ; +0x14, 0x100729324\nmov     rax, [rbx+3C0h]                                                ; +0x1a, 0x10072932a\nmovzx   ecx, word ptr [rax+1D8h]                                       ; +0x21, 0x100729331\nmovzx   eax, byte ptr [rax+1DAh]                                       ; +0x28, 0x100729338\nlea     r14, [rbx+410h]                                                ; +0x2f, 0x10072933f\nmov     [rbx+412h], al                                                 ; +0x36, 0x100729346\nmov     [rbx+410h], cx                                                 ; +0x3c, 0x10072934c\nmov     rax, [rdi]                                                     ; +0x43, 0x100729353\nmov     rsi, r14                                                       ; +0x46, 0x100729356\ncall    qword ptr [rax+3B0h]                                           ; +0x49, 0x100729359\nmov     rdi, [rbx+408h]                                                ; +0x4f, 0x10072935f\nlea     rsi, [rbx+3F8h]                                                ; +0x56, 0x100729366\nmov     rax, [rdi]                                                     ; +0x5d, 0x10072936d\ncall    qword ptr [rax+3B0h]                                           ; +0x60, 0x100729370\ncmp     byte ptr [rbx+44Ch], 0                                         ; +0x66, 0x100729376\njnz     short loc_1007293A1                                            ; +0x6d, 0x10072937d\nmov     rax, [rbx+290h]                                                ; +0x6f, 0x10072937f\ntest    rax, rax                                                       ; +0x76, 0x100729386\njz      short loc_1007293B2                                            ; +0x79, 0x100729389\nmovzx   ecx, word ptr [r14]                                            ; +0x7b, 0x10072938b\nmovzx   edx, byte ptr [r14+2]                                          ; +0x7f, 0x10072938f\nmov     [rax+5AAh], dl                                                 ; +0x84, 0x100729394\nmov     [rax+5A8h], cx                                                 ; +0x8a, 0x10072939a\nmov     rdi, rbx                                                       ; +0x91, 0x1007293a1\npop     rbx                                                            ; +0x94, 0x1007293a4\npop     r14                                                            ; +0x95, 0x1007293a5\npop     rbp                                                            ; +0x97, 0x1007293a7\njmp     ColorSelectPopup__updateColorLabels                            ; +0x98, 0x1007293a8\npop     rbx                                                            ; +0x9d, 0x1007293ad\npop     r14                                                            ; +0x9e, 0x1007293ae\npop     rbp                                                            ; +0xa0, 0x1007293b0\nretn                                                                   ; +0xa1, 0x1007293b1\nmov     rdi, [rbx+298h]                                                ; +0xa2, 0x1007293b2\ntest    rdi, rdi                                                       ; +0xa9, 0x1007293b9\njz      short loc_100729410                                            ; +0xac, 0x1007293bc\ncall    sub_100720070                                                  ; +0xae, 0x1007293be\ntest    eax, eax                                                       ; +0xb3, 0x1007293c3\njz      short loc_1007293A1                                            ; +0xb5, 0x1007293c5\nxor     r14d, r14d                                                     ; +0xb7, 0x1007293c7\nnop     word ptr [rax+rax+00h]                                         ; +0xba, 0x1007293ca\nmov     rdi, [rbx+298h]                                                ; +0xc0, 0x1007293d0\nmov     esi, r14d                                                      ; +0xc7, 0x1007293d7\ncall    sub_1007200C0                                                  ; +0xca, 0x1007293da\nmovzx   ecx, word ptr [rbx+410h]                                       ; +0xcf, 0x1007293df\nmovzx   edx, byte ptr [rbx+412h]                                       ; +0xd6, 0x1007293e6\nmov     [rax+5AAh], dl                                                 ; +0xdd, 0x1007293ed\nmov     [rax+5A8h], cx                                                 ; +0xe3, 0x1007293f3\ninc     r14d                                                           ; +0xea, 0x1007293fa\nmov     rdi, [rbx+298h]                                                ; +0xed, 0x1007293fd\ncall    sub_100720070                                                  ; +0xf4, 0x100729404\ncmp     r14d, eax                                                      ; +0xf9, 0x100729409\njb      short loc_1007293D0                                            ; +0xfc, 0x10072940c\njmp     short loc_1007293A1                                            ; +0xfe, 0x10072940e\nmov     rax, [rbx+430h]                                                ; +0x100, 0x100729410\ntest    rax, rax                                                       ; +0x107, 0x100729417\njz      short loc_1007293A1                                            ; +0x10a, 0x10072941a\nmovzx   ecx, word ptr [r14]                                            ; +0x10c, 0x10072941c\nmovzx   edx, byte ptr [r14+2]                                          ; +0x110, 0x100729420\nmov     [rax+4Ah], dl                                                  ; +0x115, 0x100729425\nmov     [rax+48h], cx                                                  ; +0x118, 0x100729428\njmp     loc_1007293A1                                                  ; +0x11c, 0x10072942c", "xrefs": ["sub_100729910 @ 0x10072991c", "<???> @ 0x10098ae80"], "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"}