{"type": "func", "start": 5369312048, "end": 5369312201, "name": "ColorSelectPopup::updateCustomColorIdx", "pseudocode": "// \n// ColorSelectPopup::updateCustomColorIdx from 0x140093330 to 0x1400933c9 (153 bytes)\n// \n// 6 xrefs:\n// > ColorSelectPopup::onUpdateCustomColor @ 0x140092d63\n// > ColorSelectPopup::textChanged @ 0x140092eb6\n// > ColorSelectPopup::colorSelectClosed @ 0x14009381c\n// > <???> @ 0x14066959c\n// > <???> @ 0x1406695ac\n// > <???> @ 0x1406c70f8\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 ColorSelectPopup::updateCustomColorIdx(ColorSelectPopup *a1)\n{\n  int m_colorID; // eax\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v5; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  m_colorID = a1->m_colorID;\n  if ( m_colorID < 1 )\n    m_colorID = 1;\n  m_gameObject = a1->m_gameObject;\n  a1->m_colorID = m_colorID;\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 )\n    {\n      v5 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v5++);\n          v6[18].m_uAutoReleaseCount = a1->m_colorID;\n        }\n        while ( v5 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateCustomColorIdx from 0x140093330 to 0x1400933c9 (153 bytes)\n; \n; 6 xrefs:\n; > ColorSelectPopup::onUpdateCustomColor @ 0x140092d63\n; > ColorSelectPopup::textChanged @ 0x140092eb6\n; > ColorSelectPopup::colorSelectClosed @ 0x14009381c\n; > <???> @ 0x14066959c\n; > <???> @ 0x1406695ac\n; > <???> @ 0x1406c70f8\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    rbx                                                            ; +0x0, 0x140093330\nsub     rsp, 20h                                                       ; +0x2, 0x140093332\nmov     eax, [rcx+440h]                                                ; +0x6, 0x140093336\nmov     rbx, rcx                                                       ; +0xc, 0x14009333c\nmov     ecx, 1                                                         ; +0xf, 0x14009333f\ncmp     eax, ecx                                                       ; +0x14, 0x140093344\ncmovl   eax, ecx                                                       ; +0x16, 0x140093346\nmov     rcx, [rbx+290h]                                                ; +0x19, 0x140093349\nmov     [rbx+440h], eax                                                ; +0x20, 0x140093350\ntest    rcx, rcx                                                       ; +0x26, 0x140093356\njz      short loc_140093367                                            ; +0x29, 0x140093359\nmov     [rcx+408h], eax                                                ; +0x2b, 0x14009335b\nadd     rsp, 20h                                                       ; +0x31, 0x140093361\npop     rbx                                                            ; +0x35, 0x140093365\nretn                                                                   ; +0x36, 0x140093366\nmov     rcx, [rbx+298h]                                                ; +0x37, 0x140093367\ntest    rcx, rcx                                                       ; +0x3e, 0x14009336e\njz      short loc_1400933C3                                            ; +0x41, 0x140093371\nmov     [rsp+28h+arg_0], rdi                                           ; +0x43, 0x140093373\nxor     edi, edi                                                       ; +0x48, 0x140093378\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4a, 0x14009337a\ntest    eax, eax                                                       ; +0x50, 0x140093380\njz      short loc_1400933BE                                            ; +0x52, 0x140093382\nnop     dword ptr [rax+00h]                                            ; +0x54, 0x140093384\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x140093388\nmov     rcx, [rbx+298h]                                                ; +0x60, 0x140093390\nmov     edx, edi                                                       ; +0x67, 0x140093397\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140093399\nmov     ecx, [rbx+440h]                                                ; +0x6f, 0x14009339f\ninc     edi                                                            ; +0x75, 0x1400933a5\nmov     [rax+408h], ecx                                                ; +0x77, 0x1400933a7\nmov     rcx, [rbx+298h]                                                ; +0x7d, 0x1400933ad\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x84, 0x1400933b4\ncmp     edi, eax                                                       ; +0x8a, 0x1400933ba\njb      short loc_140093390                                            ; +0x8c, 0x1400933bc\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x8e, 0x1400933be\nadd     rsp, 20h                                                       ; +0x93, 0x1400933c3\npop     rbx                                                            ; +0x97, 0x1400933c7\nretn                                                                   ; +0x98, 0x1400933c8", "xrefs": ["ColorSelectPopup::onUpdateCustomColor @ 0x140092d63", "ColorSelectPopup::textChanged @ 0x140092eb6", "ColorSelectPopup::colorSelectClosed @ 0x14009381c", "<???> @ 0x14066959c", "<???> @ 0x1406695ac", "<???> @ 0x1406c70f8"], "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"}