{"type": "func", "start": 8797500, "end": 8797620, "name": "ColorSelectPopup::onUpdateCopyColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCopyColor from 0x863d3c to 0x863db4 (120 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xd69c0\n// > ColorSelectPopup::init @ 0x864c44\n// > ColorSelectPopup::init @ 0x864d00\n// > <???> @ 0x1546640\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::onUpdateCopyColor(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int v4; // w1\n  int v5; // w1\n\n  if ( *((int *)this + 294) > 999 )\n    *((_DWORD *)this + 294) = 0;\n  v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  v4 = *((_DWORD *)this + 294);\n  if ( v3 == 1 )\n    v5 = v4 - 1;\n  else\n    v5 = v4 + 1;\n  if ( v5 < 0 )\n    v5 = 0;\n  if ( v5 > 999 )\n    v5 = 999;\n  *((_DWORD *)this + 294) = v5;\n  ColorSelectPopup::updateCopyColor(this);\n  return ColorSelectPopup::updateCopyColorTextInputLabel(this);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCopyColor from 0x863d3c to 0x863db4 (120 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xd69c0\n; > ColorSelectPopup::init @ 0x864c44\n; > ColorSelectPopup::init @ 0x864d00\n; > <???> @ 0x1546640\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,#var_20]!                                ; +0x0, 0x863d3c\nMOV             X29, SP                                                ; +0x4, 0x863d40\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x863d44\nMOV             X19, X0                                                ; +0xc, 0x863d48\nMOV             X0, X1                                                 ; +0x10, 0x863d4c\nLDR             W1, [X19,#0x498]                                       ; +0x14, 0x863d50\nCMP             W1, #0x3E7                                             ; +0x18, 0x863d54\nB.LE            loc_863D60                                             ; +0x1c, 0x863d58\nSTR             WZR, [X19,#0x498]                                      ; +0x20, 0x863d5c\nLDR             X1, [X0]                                               ; +0x24, 0x863d60\nLDR             X1, [X1,#0x40]                                         ; +0x28, 0x863d64\nBLR             X1                                                     ; +0x2c, 0x863d68\nCMP             W0, #1                                                 ; +0x30, 0x863d6c\nLDR             W1, [X19,#0x498]                                       ; +0x34, 0x863d70\nB.EQ            loc_863DAC                                             ; +0x38, 0x863d74\nADD             W1, W1, #1                                             ; +0x3c, 0x863d78\nCMP             W1, WZR                                                ; +0x40, 0x863d7c\nMOV             W2, #0x3E7                                             ; +0x44, 0x863d80\nCSEL            W1, W1, WZR, GE                                        ; +0x48, 0x863d84\nMOV             X0, X19; this                                          ; +0x4c, 0x863d88\nCMP             W1, #0x3E7                                             ; +0x50, 0x863d8c\nCSEL            W1, W1, W2, LE                                         ; +0x54, 0x863d90\nSTR             W1, [X19,#0x498]                                       ; +0x58, 0x863d94\nBL              _ZN16ColorSelectPopup15updateCopyColorEv; ColorSelectPopup::updateCopyColor(void) ; +0x5c, 0x863d98\nMOV             X0, X19; this                                          ; +0x60, 0x863d9c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x64, 0x863da0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x68, 0x863da4\nB               _ZN16ColorSelectPopup29updateCopyColorTextInputLabelEv; ColorSelectPopup::updateCopyColorTextInputLabel(void) ; +0x6c, 0x863da8\nSUB             W1, W1, #1                                             ; +0x70, 0x863dac\nB               loc_863D7C                                             ; +0x74, 0x863db0", "xrefs": ["<???> @ 0xd69c0", "ColorSelectPopup::init @ 0x864c44", "ColorSelectPopup::init @ 0x864d00", "<???> @ 0x1546640"], "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"}