{"type": "func", "start": 4299288300, "end": 4299288436, "name": "ColorSelectPopup::onCopyOpacity", "pseudocode": "// \n// ColorSelectPopup::onCopyOpacity from 0x10041eeec to 0x10041ef74 (136 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x10041d308\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::onCopyOpacity(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v2; // w8\n  EffectGameObject *m_gameObject; // x9\n  cocos2d::CCArray *m_gameObjects; // x0\n  unsigned int v6; // w20\n  ColorAction *m_colorAction; // x9\n\n  v2 = !a1->m_copyOpacity;\n  a1->m_copyOpacity = v2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_copyOpacity = v2;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      if ( (unsigned int)sub_10024A36C((__int64)m_gameObjects) )\n      {\n        v6 = 0;\n        do\n          *(_BYTE *)(sub_10024A388((__int64)a1->m_gameObjects, v6++) + 1632) = a1->m_copyOpacity;\n        while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n        m_colorAction->m_copyOpacity = v2;\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::onCopyOpacity from 0x10041eeec to 0x10041ef74 (136 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x10041d308\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10041eeec\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10041eef0\nADD             X29, SP, #0x10                                         ; +0x8, 0x10041eef4\nLDRB            W8, [X0,#0x454]                                        ; +0xc, 0x10041eef8\nMOV             W9, #1                                                 ; +0x10, 0x10041eefc\nBIC             W8, W9, W8                                             ; +0x14, 0x10041ef00\nSTRB            W8, [X0,#0x454]                                        ; +0x18, 0x10041ef04\nLDR             X9, [X0,#0x290]                                        ; +0x1c, 0x10041ef08\nCBZ             X9, loc_10041EF20                                      ; +0x20, 0x10041ef0c\nSTRB            W8, [X9,#0x660]                                        ; +0x24, 0x10041ef10\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x28, 0x10041ef14\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x2c, 0x10041ef18\nRET                                                                    ; +0x30, 0x10041ef1c\nMOV             X19, X0                                                ; +0x34, 0x10041ef20\nLDR             X0, [X0,#0x298]                                        ; +0x38, 0x10041ef24\nCBZ             X0, loc_10041EF64                                      ; +0x3c, 0x10041ef28\nBL              sub_10024A36C                                          ; +0x40, 0x10041ef2c\nCBZ             W0, loc_10041EF14                                      ; +0x44, 0x10041ef30\nMOV             W20, #0                                                ; +0x48, 0x10041ef34\nLDR             X0, [X19,#0x298]                                       ; +0x4c, 0x10041ef38\nMOV             X1, X20                                                ; +0x50, 0x10041ef3c\nBL              sub_10024A388                                          ; +0x54, 0x10041ef40\nLDRB            W8, [X19,#0x454]                                       ; +0x58, 0x10041ef44\nSTRB            W8, [X0,#0x660]                                        ; +0x5c, 0x10041ef48\nADD             W20, W20, #1                                           ; +0x60, 0x10041ef4c\nLDR             X0, [X19,#0x298]                                       ; +0x64, 0x10041ef50\nBL              sub_10024A36C                                          ; +0x68, 0x10041ef54\nCMP             W20, W0                                                ; +0x6c, 0x10041ef58\nB.CC            loc_10041EF38                                          ; +0x70, 0x10041ef5c\nB               loc_10041EF14                                          ; +0x74, 0x10041ef60\nLDR             X9, [X19,#0x430]                                       ; +0x78, 0x10041ef64\nCBZ             X9, loc_10041EF14                                      ; +0x7c, 0x10041ef68\nSTRB            W8, [X9,#0x7D]                                         ; +0x80, 0x10041ef6c\nB               loc_10041EF14                                          ; +0x84, 0x10041ef70", "xrefs": ["ColorSelectPopup::init @ 0x10041d308"], "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"}