{"type": "func", "start": 8792580, "end": 8792712, "name": "ColorSelectPopup::updateOpacity", "pseudocode": "// \n// ColorSelectPopup::updateOpacity from 0x862a04 to 0x862a88 (132 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::sliderChanged @ 0x862d4c\n// > ColorSelectPopup::onDefault @ 0x86350c\n// > <???> @ 0xffb68\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::updateOpacity(ColorSelectPopup *this)\n{\n  __int64 result; // x0\n  cocos2d::CCArray *v3; // x0\n  unsigned int v4; // w20\n  bool v5; // cf\n  unsigned int v6; // w1\n\n  result = *((_QWORD *)this + 85);\n  if ( result )\n  {\n    *(_DWORD *)(result + 1456) = *((_DWORD *)this + 285);\n  }\n  else\n  {\n    v3 = *((cocos2d::CCArray **)this + 86);\n    if ( v3 )\n    {\n      v4 = 0;\n      while ( 1 )\n      {\n        result = cocos2d::CCArray::count(v3);\n        v5 = v4 >= (unsigned int)result;\n        v6 = v4++;\n        if ( v5 )\n          break;\n        *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v6) + 1456) = *((_DWORD *)this + 285);\n        v3 = *((cocos2d::CCArray **)this + 86);\n      }\n    }\n    else\n    {\n      result = *((_QWORD *)this + 143);\n      if ( result )\n        *(_DWORD *)(result + 96) = *((_DWORD *)this + 285);\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::updateOpacity from 0x862a04 to 0x862a88 (132 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::sliderChanged @ 0x862d4c\n; > ColorSelectPopup::onDefault @ 0x86350c\n; > <???> @ 0xffb68\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, 0x862a04\nMOV             X29, SP                                                ; +0x4, 0x862a08\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x862a0c\nMOV             X19, X0                                                ; +0xc, 0x862a10\nLDR             X0, [X0,#0x2A8]                                        ; +0x10, 0x862a14\nCBZ             X0, loc_862A30                                         ; +0x14, 0x862a18\nLDR             W1, [X19,#0x474]                                       ; +0x18, 0x862a1c\nSTR             W1, [X0,#0x5B0]                                        ; +0x1c, 0x862a20\nLDP             X19, X20, [SP,#var_s10]                                ; +0x20, 0x862a24\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x24, 0x862a28\nRET                                                                    ; +0x28, 0x862a2c\nLDR             X0, [X19,#0x2B0]                                       ; +0x2c, 0x862a30\nCBZ             X0, loc_862A74                                         ; +0x30, 0x862a34\nMOV             W20, #0                                                ; +0x34, 0x862a38\nB               loc_862A54                                             ; +0x38, 0x862a3c\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x3c, 0x862a40\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x40, 0x862a44\nLDR             W1, [X19,#0x474]                                       ; +0x44, 0x862a48\nSTR             W1, [X0,#0x5B0]                                        ; +0x48, 0x862a4c\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x4c, 0x862a50\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x50, 0x862a54\nCMP             W20, W0                                                ; +0x54, 0x862a58\nMOV             W1, W20; unsigned int                                  ; +0x58, 0x862a5c\nADD             W20, W20, #1                                           ; +0x5c, 0x862a60\nB.CC            loc_862A40                                             ; +0x60, 0x862a64\nLDP             X19, X20, [SP,#var_s10]                                ; +0x64, 0x862a68\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x68, 0x862a6c\nRET                                                                    ; +0x6c, 0x862a70\nLDR             X0, [X19,#0x478]                                       ; +0x70, 0x862a74\nCBZ             X0, loc_862A24                                         ; +0x74, 0x862a78\nLDR             W1, [X19,#0x474]                                       ; +0x78, 0x862a7c\nSTR             W1, [X0,#0x60]                                         ; +0x7c, 0x862a80\nB               loc_862A24                                             ; +0x80, 0x862a84", "xrefs": ["ColorSelectPopup::sliderChanged @ 0x862d4c", "ColorSelectPopup::onDefault @ 0x86350c", "<???> @ 0xffb68"], "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"}