{"type": "func", "start": 7587860, "end": 7587988, "name": "ColorSelectPopup::updateCustomColorIdx", "pseudocode": "// \n// ColorSelectPopup::updateCustomColorIdx from 0x73c814 to 0x73c894 (128 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::onUpdateCustomColor @ 0x73cacc\n// > ColorSelectPopup::colorSelectClosed @ 0x73ce88\n// > ColorSelectPopup::textChanged @ 0x742310\n// > <???> @ 0x6ab90\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; // w1\n  EffectGameObject *m_gameObject; // x2\n  cocos2d::CCArray *m_gameObjects; // x1\n  unsigned int v5; // w20\n  __int64 v6; // x0\n  bool v7; // cf\n  unsigned int v8; // w1\n\n  m_colorID = a1->m_colorID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_colorID <= 0 )\n    m_colorID = 1;\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      while ( 1 )\n      {\n        v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);\n        v8 = v5++;\n        if ( v7 )\n          break;\n        v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);\n        m_gameObjects = a1->m_gameObjects;\n        *(_DWORD *)(v6 + 1008) = a1->m_colorID;\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateCustomColorIdx from 0x73c814 to 0x73c894 (128 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::onUpdateCustomColor @ 0x73cacc\n; > ColorSelectPopup::colorSelectClosed @ 0x73ce88\n; > ColorSelectPopup::textChanged @ 0x742310\n; > <???> @ 0x6ab90\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x73c814\nMOV             X29, SP                                                ; +0x4, 0x73c818\nLDR             W1, [X0,#0x460]                                        ; +0x8, 0x73c81c\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x73c820\nCMP             W1, WZR                                                ; +0x10, 0x73c824\nLDR             X2, [X0,#0x290]                                        ; +0x14, 0x73c828\nCSINC           W1, W1, WZR, GT                                        ; +0x18, 0x73c82c\nSTR             W1, [X0,#0x460]                                        ; +0x1c, 0x73c830\nCBZ             X2, loc_73C848                                         ; +0x20, 0x73c834\nSTR             W1, [X2,#0x3F0]                                        ; +0x24, 0x73c838\nLDP             X19, X20, [SP,#var_s10]                                ; +0x28, 0x73c83c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x2c, 0x73c840\nRET                                                                    ; +0x30, 0x73c844\nLDR             X1, [X0,#0x298]                                        ; +0x34, 0x73c848\nCBZ             X1, loc_73C83C                                         ; +0x38, 0x73c84c\nMOV             X19, X0                                                ; +0x3c, 0x73c850\nMOV             W20, #0                                                ; +0x40, 0x73c854\nB               loc_73C870                                             ; +0x44, 0x73c858\nLDR             X0, [X19,#0x298]; this                                 ; +0x48, 0x73c85c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x73c860\nLDR             W2, [X19,#0x460]                                       ; +0x50, 0x73c864\nLDR             X1, [X19,#0x298]                                       ; +0x54, 0x73c868\nSTR             W2, [X0,#0x3F0]                                        ; +0x58, 0x73c86c\nMOV             X0, X1; this                                           ; +0x5c, 0x73c870\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x73c874\nCMP             W20, W0                                                ; +0x64, 0x73c878\nMOV             W1, W20; unsigned int                                  ; +0x68, 0x73c87c\nADD             W20, W20, #1                                           ; +0x6c, 0x73c880\nB.CC            loc_73C85C                                             ; +0x70, 0x73c884\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0x73c888\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0x73c88c\nRET                                                                    ; +0x7c, 0x73c890", "xrefs": ["ColorSelectPopup::onUpdateCustomColor @ 0x73cacc", "ColorSelectPopup::colorSelectClosed @ 0x73ce88", "ColorSelectPopup::textChanged @ 0x742310", "<???> @ 0x6ab90"], "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"}