{"type": "func", "start": 7585792, "end": 7585928, "name": "ColorSelectPopup::updateOpacity", "pseudocode": "// \n// ColorSelectPopup::updateOpacity from 0x73c000 to 0x73c088 (136 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::sliderChanged @ 0x73c2f0\n// > ColorSelectPopup::onDefault @ 0x73c504\n// > <???> @ 0xc47e8\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::updateOpacity(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // x1\n  cocos2d::CCArray *m_gameObjects; // x1\n  unsigned int v4; // w20\n  __int64 v5; // x0\n  bool v6; // cf\n  unsigned int v7; // w1\n  ColorAction *m_colorAction; // x1\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_opacity = a1->m_opacity;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v4 = 0;\n      while ( 1 )\n      {\n        v6 = v4 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);\n        v7 = v4++;\n        if ( v6 )\n          break;\n        v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);\n        m_gameObjects = a1->m_gameObjects;\n        *(float *)(v5 + 1440) = a1->m_opacity;\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n        m_colorAction->m_fromOpacity = a1->m_opacity;\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateOpacity from 0x73c000 to 0x73c088 (136 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::sliderChanged @ 0x73c2f0\n; > ColorSelectPopup::onDefault @ 0x73c504\n; > <???> @ 0xc47e8\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, 0x73c000\nMOV             X29, SP                                                ; +0x4, 0x73c004\nLDR             X1, [X0,#0x290]                                        ; +0x8, 0x73c008\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x73c00c\nCBZ             X1, loc_73C028                                         ; +0x10, 0x73c010\nLDR             W0, [X0,#0x444]                                        ; +0x14, 0x73c014\nSTR             W0, [X1,#0x5A0]                                        ; +0x18, 0x73c018\nLDP             X19, X20, [SP,#var_s10]                                ; +0x1c, 0x73c01c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x20, 0x73c020\nRET                                                                    ; +0x24, 0x73c024\nLDR             X1, [X0,#0x298]                                        ; +0x28, 0x73c028\nCBZ             X1, loc_73C074                                         ; +0x2c, 0x73c02c\nMOV             X19, X0                                                ; +0x30, 0x73c030\nMOV             W20, #0                                                ; +0x34, 0x73c034\nB               loc_73C050                                             ; +0x38, 0x73c038\nLDR             X0, [X19,#0x298]; this                                 ; +0x3c, 0x73c03c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x40, 0x73c040\nLDR             W2, [X19,#0x444]                                       ; +0x44, 0x73c044\nLDR             X1, [X19,#0x298]                                       ; +0x48, 0x73c048\nSTR             W2, [X0,#0x5A0]                                        ; +0x4c, 0x73c04c\nMOV             X0, X1; this                                           ; +0x50, 0x73c050\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x54, 0x73c054\nCMP             W20, W0                                                ; +0x58, 0x73c058\nMOV             W1, W20; unsigned int                                  ; +0x5c, 0x73c05c\nADD             W20, W20, #1                                           ; +0x60, 0x73c060\nB.CC            loc_73C03C                                             ; +0x64, 0x73c064\nLDP             X19, X20, [SP,#var_s10]                                ; +0x68, 0x73c068\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x6c, 0x73c06c\nRET                                                                    ; +0x70, 0x73c070\nLDR             X1, [X0,#0x448]                                        ; +0x74, 0x73c074\nCBZ             X1, loc_73C01C                                         ; +0x78, 0x73c078\nLDR             W0, [X0,#0x444]                                        ; +0x7c, 0x73c07c\nSTR             W0, [X1,#0x60]                                         ; +0x80, 0x73c080\nB               loc_73C01C                                             ; +0x84, 0x73c084", "xrefs": ["ColorSelectPopup::sliderChanged @ 0x73c2f0", "ColorSelectPopup::onDefault @ 0x73c504", "<???> @ 0xc47e8"], "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"}