{"type": "func", "start": 8792212, "end": 8792348, "name": "ColorSelectPopup::onCopyOpacity", "pseudocode": "// \n// ColorSelectPopup::onCopyOpacity from 0x862894 to 0x86291c (136 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xd6060\n// > ColorSelectPopup::init @ 0x865c8c\n// > <???> @ 0x15465d8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:55:37 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::onCopyOpacity(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  char v3; // w1\n  __int64 result; // x0\n  char v5; // w1\n  cocos2d::CCArray *v6; // x0\n  unsigned int v7; // w20\n  bool v8; // cf\n  unsigned int v9; // w1\n\n  v3 = *((_BYTE *)this + 1180);\n  result = *((_QWORD *)this + 85);\n  v5 = v3 ^ 1;\n  *((_BYTE *)this + 1180) = v5;\n  if ( result )\n  {\n    *(_BYTE *)(result + 1632) = v5;\n  }\n  else\n  {\n    v6 = *((cocos2d::CCArray **)this + 86);\n    if ( v6 )\n    {\n      v7 = 0;\n      while ( 1 )\n      {\n        result = cocos2d::CCArray::count(v6);\n        v8 = v7 >= (unsigned int)result;\n        v9 = v7++;\n        if ( v8 )\n          break;\n        *(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v9) + 1632) = *((_BYTE *)this + 1180);\n        v6 = *((cocos2d::CCArray **)this + 86);\n      }\n    }\n    else\n    {\n      result = *((_QWORD *)this + 143);\n      if ( result )\n        *(_BYTE *)(result + 125) = v5;\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::onCopyOpacity from 0x862894 to 0x86291c (136 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xd6060\n; > ColorSelectPopup::init @ 0x865c8c\n; > <???> @ 0x15465d8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:55:37 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x862894\nMOV             X29, SP                                                ; +0x4, 0x862898\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x86289c\nMOV             X19, X0                                                ; +0xc, 0x8628a0\nLDRB            W1, [X0,#0x49C]                                        ; +0x10, 0x8628a4\nLDR             X0, [X0,#0x2A8]                                        ; +0x14, 0x8628a8\nEOR             W1, W1, #1                                             ; +0x18, 0x8628ac\nSTRB            W1, [X19,#0x49C]                                       ; +0x1c, 0x8628b0\nCBZ             X0, loc_8628C8                                         ; +0x20, 0x8628b4\nSTRB            W1, [X0,#0x660]                                        ; +0x24, 0x8628b8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x28, 0x8628bc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x2c, 0x8628c0\nRET                                                                    ; +0x30, 0x8628c4\nLDR             X0, [X19,#0x2B0]                                       ; +0x34, 0x8628c8\nCBZ             X0, loc_86290C                                         ; +0x38, 0x8628cc\nMOV             W20, #0                                                ; +0x3c, 0x8628d0\nB               loc_8628EC                                             ; +0x40, 0x8628d4\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x44, 0x8628d8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x8628dc\nLDRB            W1, [X19,#0x49C]                                       ; +0x4c, 0x8628e0\nSTRB            W1, [X0,#0x660]                                        ; +0x50, 0x8628e4\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x54, 0x8628e8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x58, 0x8628ec\nCMP             W20, W0                                                ; +0x5c, 0x8628f0\nMOV             W1, W20; unsigned int                                  ; +0x60, 0x8628f4\nADD             W20, W20, #1                                           ; +0x64, 0x8628f8\nB.CC            loc_8628D8                                             ; +0x68, 0x8628fc\nLDP             X19, X20, [SP,#var_s10]                                ; +0x6c, 0x862900\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x70, 0x862904\nRET                                                                    ; +0x74, 0x862908\nLDR             X0, [X19,#0x478]                                       ; +0x78, 0x86290c\nCBZ             X0, loc_8628BC                                         ; +0x7c, 0x862910\nSTRB            W1, [X0,#0x7D]                                         ; +0x80, 0x862914\nB               loc_8628BC                                             ; +0x84, 0x862918", "xrefs": ["<???> @ 0xd6060", "ColorSelectPopup::init @ 0x865c8c", "<???> @ 0x15465d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}