{"type": "func", "start": 4302482864, "end": 4302482993, "name": "ColorSelectPopup::updateCustomColorIdx", "pseudocode": "// \n// ColorSelectPopup::updateCustomColorIdx from 0x10072adb0 to 0x10072ae31 (129 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::updateCustomColorIdx(ColorSelectPopup *a1)\n{\n  int m_colorID; // eax\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v5; // r14d\n\n  m_colorID = 1;\n  if ( a1->m_colorID >= 2 )\n    m_colorID = a1->m_colorID;\n  a1->m_colorID = m_colorID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetColor = m_colorID;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && (unsigned int)sub_100720070((__int64)m_gameObjects) )\n    {\n      v5 = 0;\n      do\n        *(_DWORD *)(sub_1007200C0((__int64)a1->m_gameObjects, v5++) + 1024) = a1->m_colorID;\n      while ( v5 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateCustomColorIdx from 0x10072adb0 to 0x10072ae31 (129 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\npush    rbp                                                            ; +0x0, 0x10072adb0\nmov     rbp, rsp                                                       ; +0x1, 0x10072adb1\npush    r14                                                            ; +0x4, 0x10072adb4\npush    rbx                                                            ; +0x6, 0x10072adb6\nmov     ecx, [rdi+448h]                                                ; +0x7, 0x10072adb7\ncmp     ecx, 2                                                         ; +0xd, 0x10072adbd\nmov     eax, 1                                                         ; +0x10, 0x10072adc0\ncmovge  eax, ecx                                                       ; +0x15, 0x10072adc5\nmov     [rdi+448h], eax                                                ; +0x18, 0x10072adc8\nmov     rcx, [rdi+290h]                                                ; +0x1e, 0x10072adce\ntest    rcx, rcx                                                       ; +0x25, 0x10072add5\njz      short loc_10072ADE5                                            ; +0x28, 0x10072add8\nmov     [rcx+400h], eax                                                ; +0x2a, 0x10072adda\npop     rbx                                                            ; +0x30, 0x10072ade0\npop     r14                                                            ; +0x31, 0x10072ade1\npop     rbp                                                            ; +0x33, 0x10072ade3\nretn                                                                   ; +0x34, 0x10072ade4\nmov     rbx, rdi                                                       ; +0x35, 0x10072ade5\nmov     rdi, [rdi+298h]                                                ; +0x38, 0x10072ade8\ntest    rdi, rdi                                                       ; +0x3f, 0x10072adef\njz      short loc_10072ADE0                                            ; +0x42, 0x10072adf2\ncall    sub_100720070                                                  ; +0x44, 0x10072adf4\ntest    eax, eax                                                       ; +0x49, 0x10072adf9\njz      short loc_10072ADE0                                            ; +0x4b, 0x10072adfb\nxor     r14d, r14d                                                     ; +0x4d, 0x10072adfd\nmov     rdi, [rbx+298h]                                                ; +0x50, 0x10072ae00\nmov     esi, r14d                                                      ; +0x57, 0x10072ae07\ncall    sub_1007200C0                                                  ; +0x5a, 0x10072ae0a\nmov     ecx, [rbx+448h]                                                ; +0x5f, 0x10072ae0f\nmov     [rax+400h], ecx                                                ; +0x65, 0x10072ae15\ninc     r14d                                                           ; +0x6b, 0x10072ae1b\nmov     rdi, [rbx+298h]                                                ; +0x6e, 0x10072ae1e\ncall    sub_100720070                                                  ; +0x75, 0x10072ae25\ncmp     r14d, eax                                                      ; +0x7a, 0x10072ae2a\njb      short loc_10072AE00                                            ; +0x7d, 0x10072ae2d\njmp     short loc_10072ADE0                                            ; +0x7f, 0x10072ae2f", "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"}