{"type": "func", "start": 4302476352, "end": 4302476550, "name": "ColorSelectPopup::updateColorValue", "pseudocode": "// \n// ColorSelectPopup::updateColorValue from 0x100729440 to 0x100729506 (198 bytes)\n// \n// 0 xrefs:\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::updateColorValue(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // rax\n  __int16 v3; // cx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v5; // r14d\n  __int64 v6; // rax\n  __int16 v7; // cx\n  ColorAction *m_colorAction; // rax\n  __int16 v9; // cx\n\n  if ( !a1->m_initializing )\n  {\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      v3 = *(_WORD *)&a1->m_currentColor.r;\n      m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b;\n      *(_WORD *)&m_gameObject->m_triggerTargetColor.r = v3;\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          v5 = 0;\n          do\n          {\n            v6 = sub_1007200C0((__int64)a1->m_gameObjects, v5);\n            v7 = *(_WORD *)&a1->m_currentColor.r;\n            *(_BYTE *)(v6 + 1450) = a1->m_currentColor.b;\n            *(_WORD *)(v6 + 1448) = v7;\n            ++v5;\n          }\n          while ( v5 < (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          v9 = *(_WORD *)&a1->m_currentColor.r;\n          m_colorAction->m_fromColor.b = a1->m_currentColor.b;\n          *(_WORD *)&m_colorAction->m_fromColor.r = v9;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateColorValue from 0x100729440 to 0x100729506 (198 bytes)\n; \n; 0 xrefs:\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\ncmp     byte ptr [rdi+44Ch], 0                                         ; +0x0, 0x100729440\njnz     short locret_10072947E                                         ; +0x7, 0x100729447\npush    rbp                                                            ; +0x9, 0x100729449\nmov     rbp, rsp                                                       ; +0xa, 0x10072944a\npush    r14                                                            ; +0xd, 0x10072944d\npush    rbx                                                            ; +0xf, 0x10072944f\nmov     rbx, rdi                                                       ; +0x10, 0x100729450\nmov     rax, [rdi+290h]                                                ; +0x13, 0x100729453\ntest    rax, rax                                                       ; +0x1a, 0x10072945a\njz      short loc_10072947F                                            ; +0x1d, 0x10072945d\nmovzx   ecx, word ptr [rbx+410h]                                       ; +0x1f, 0x10072945f\nmovzx   edx, byte ptr [rbx+412h]                                       ; +0x26, 0x100729466\nmov     [rax+5AAh], dl                                                 ; +0x2d, 0x10072946d\nmov     [rax+5A8h], cx                                                 ; +0x33, 0x100729473\npop     rbx                                                            ; +0x3a, 0x10072947a\npop     r14                                                            ; +0x3b, 0x10072947b\npop     rbp                                                            ; +0x3d, 0x10072947d\nretn                                                                   ; +0x3e, 0x10072947e\nmov     rdi, [rbx+298h]                                                ; +0x3f, 0x10072947f\ntest    rdi, rdi                                                       ; +0x46, 0x100729486\njz      short loc_1007294E0                                            ; +0x49, 0x100729489\ncall    sub_100720070                                                  ; +0x4b, 0x10072948b\ntest    eax, eax                                                       ; +0x50, 0x100729490\njz      short loc_10072947A                                            ; +0x52, 0x100729492\nxor     r14d, r14d                                                     ; +0x54, 0x100729494\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x100729497\nmov     rdi, [rbx+298h]                                                ; +0x60, 0x1007294a0\nmov     esi, r14d                                                      ; +0x67, 0x1007294a7\ncall    sub_1007200C0                                                  ; +0x6a, 0x1007294aa\nmovzx   ecx, word ptr [rbx+410h]                                       ; +0x6f, 0x1007294af\nmovzx   edx, byte ptr [rbx+412h]                                       ; +0x76, 0x1007294b6\nmov     [rax+5AAh], dl                                                 ; +0x7d, 0x1007294bd\nmov     [rax+5A8h], cx                                                 ; +0x83, 0x1007294c3\ninc     r14d                                                           ; +0x8a, 0x1007294ca\nmov     rdi, [rbx+298h]                                                ; +0x8d, 0x1007294cd\ncall    sub_100720070                                                  ; +0x94, 0x1007294d4\ncmp     r14d, eax                                                      ; +0x99, 0x1007294d9\njb      short loc_1007294A0                                            ; +0x9c, 0x1007294dc\njmp     short loc_10072947A                                            ; +0x9e, 0x1007294de\nmov     rax, [rbx+430h]                                                ; +0xa0, 0x1007294e0\ntest    rax, rax                                                       ; +0xa7, 0x1007294e7\njz      short loc_10072947A                                            ; +0xaa, 0x1007294ea\nmovzx   ecx, word ptr [rbx+410h]                                       ; +0xac, 0x1007294ec\nmovzx   edx, byte ptr [rbx+412h]                                       ; +0xb3, 0x1007294f3\nmov     [rax+4Ah], dl                                                  ; +0xba, 0x1007294fa\nmov     [rax+48h], cx                                                  ; +0xbd, 0x1007294fd\njmp     loc_10072947A                                                  ; +0xc1, 0x100729501", "xrefs": [], "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"}