{"type": "func", "start": 8793476, "end": 8793664, "name": "ColorSelectPopup::updateColorValue", "pseudocode": "// \n// ColorSelectPopup::updateColorValue from 0x862d84 to 0x862e40 (188 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x867214\n// > <???> @ 0x55120\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::updateColorValue(ColorSelectPopup *this)\n{\n  __int64 result; // x0\n  char v3; // w2\n  char v4; // w1\n  cocos2d::CCArray *v5; // x0\n  unsigned int v6; // w20\n  _BYTE *v7; // x0\n  char v8; // w2\n  char v9; // w1\n  bool v10; // cf\n  unsigned int v11; // w1\n  char v12; // w2\n  char v13; // w1\n\n  result = *((unsigned __int8 *)this + 1172);\n  if ( !(_DWORD)result )\n  {\n    result = *((_QWORD *)this + 85);\n    if ( result )\n    {\n      v3 = *((_BYTE *)this + 1112);\n      v4 = *((_BYTE *)this + 1113);\n      *(_BYTE *)(result + 1450) = *((_BYTE *)this + 1114);\n      *(_BYTE *)(result + 1448) = v3;\n      *(_BYTE *)(result + 1449) = v4;\n    }\n    else\n    {\n      v5 = *((cocos2d::CCArray **)this + 86);\n      if ( v5 )\n      {\n        v6 = 0;\n        while ( 1 )\n        {\n          result = cocos2d::CCArray::count(v5);\n          v10 = v6 >= (unsigned int)result;\n          v11 = v6++;\n          if ( v10 )\n            break;\n          v7 = (_BYTE *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v11);\n          v8 = *((_BYTE *)this + 1112);\n          v9 = *((_BYTE *)this + 1113);\n          v7[1450] = *((_BYTE *)this + 1114);\n          v7[1448] = v8;\n          v7[1449] = v9;\n          v5 = *((cocos2d::CCArray **)this + 86);\n        }\n      }\n      else\n      {\n        result = *((_QWORD *)this + 143);\n        if ( result )\n        {\n          v12 = *((_BYTE *)this + 1112);\n          v13 = *((_BYTE *)this + 1113);\n          *(_BYTE *)(result + 74) = *((_BYTE *)this + 1114);\n          *(_BYTE *)(result + 72) = v12;\n          *(_BYTE *)(result + 73) = v13;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::updateColorValue from 0x862d84 to 0x862e40 (188 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x867214\n; > <???> @ 0x55120\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, 0x862d84\nMOV             X29, SP                                                ; +0x4, 0x862d88\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x862d8c\nMOV             X19, X0                                                ; +0xc, 0x862d90\nLDRB            W0, [X0,#0x494]                                        ; +0x10, 0x862d94\nCBNZ            W0, loc_862DBC                                         ; +0x14, 0x862d98\nLDR             X0, [X19,#0x2A8]                                       ; +0x18, 0x862d9c\nCBZ             X0, loc_862DC8                                         ; +0x1c, 0x862da0\nLDRB            W2, [X19,#0x458]                                       ; +0x20, 0x862da4\nLDRB            W1, [X19,#0x459]                                       ; +0x24, 0x862da8\nLDRB            W3, [X19,#0x45A]                                       ; +0x28, 0x862dac\nSTRB            W3, [X0,#0x5AA]                                        ; +0x2c, 0x862db0\nSTRB            W2, [X0,#0x5A8]                                        ; +0x30, 0x862db4\nSTRB            W1, [X0,#0x5A9]                                        ; +0x34, 0x862db8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x38, 0x862dbc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x3c, 0x862dc0\nRET                                                                    ; +0x40, 0x862dc4\nLDR             X0, [X19,#0x2B0]                                       ; +0x44, 0x862dc8\nCBZ             X0, loc_862E1C                                         ; +0x48, 0x862dcc\nMOV             W20, #0                                                ; +0x4c, 0x862dd0\nB               loc_862DFC                                             ; +0x50, 0x862dd4\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x54, 0x862dd8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x862ddc\nLDRB            W2, [X19,#0x458]                                       ; +0x5c, 0x862de0\nLDRB            W1, [X19,#0x459]                                       ; +0x60, 0x862de4\nLDRB            W3, [X19,#0x45A]                                       ; +0x64, 0x862de8\nSTRB            W3, [X0,#0x5AA]                                        ; +0x68, 0x862dec\nSTRB            W2, [X0,#0x5A8]                                        ; +0x6c, 0x862df0\nSTRB            W1, [X0,#0x5A9]                                        ; +0x70, 0x862df4\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x74, 0x862df8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x78, 0x862dfc\nCMP             W20, W0                                                ; +0x7c, 0x862e00\nMOV             W1, W20; unsigned int                                  ; +0x80, 0x862e04\nADD             W20, W20, #1                                           ; +0x84, 0x862e08\nB.CC            loc_862DD8                                             ; +0x88, 0x862e0c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x8c, 0x862e10\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x90, 0x862e14\nRET                                                                    ; +0x94, 0x862e18\nLDR             X0, [X19,#0x478]                                       ; +0x98, 0x862e1c\nCBZ             X0, loc_862DBC                                         ; +0x9c, 0x862e20\nLDRB            W2, [X19,#0x458]                                       ; +0xa0, 0x862e24\nLDRB            W1, [X19,#0x459]                                       ; +0xa4, 0x862e28\nLDRB            W3, [X19,#0x45A]                                       ; +0xa8, 0x862e2c\nSTRB            W3, [X0,#0x4A]                                         ; +0xac, 0x862e30\nSTRB            W2, [X0,#0x48]                                         ; +0xb0, 0x862e34\nSTRB            W1, [X0,#0x49]                                         ; +0xb4, 0x862e38\nB               loc_862DBC                                             ; +0xb8, 0x862e3c", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x867214", "<???> @ 0x55120"], "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"}