{"type": "func", "start": 8796320, "end": 8796448, "name": "ColorSelectPopup::onUpdateCustomColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCustomColor from 0x8638a0 to 0x863920 (128 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x56548\n// > ColorSelectPopup::init @ 0x865660\n// > ColorSelectPopup::init @ 0x865708\n// > <???> @ 0x1541f10\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::onUpdateCustomColor(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int v4; // w1\n  int v5; // w1\n\n  if ( *((int *)this + 292) > 999 )\n    *((_DWORD *)this + 292) = 0;\n  v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  v4 = *((_DWORD *)this + 292);\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 + 292) = v5;\n  ColorSelectPopup::updateCustomColorIdx((__int64)this);\n  SetupTriggerPopup::updateEditorLabel(this);\n  return ColorSelectPopup::updateTextInputLabel(this);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCustomColor from 0x8638a0 to 0x863920 (128 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x56548\n; > ColorSelectPopup::init @ 0x865660\n; > ColorSelectPopup::init @ 0x865708\n; > <???> @ 0x1541f10\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, 0x8638a0\nMOV             X29, SP                                                ; +0x4, 0x8638a4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x8638a8\nMOV             X19, X0                                                ; +0xc, 0x8638ac\nMOV             X0, X1                                                 ; +0x10, 0x8638b0\nLDR             W1, [X19,#0x490]                                       ; +0x14, 0x8638b4\nCMP             W1, #0x3E7                                             ; +0x18, 0x8638b8\nB.LE            loc_8638C4                                             ; +0x1c, 0x8638bc\nSTR             WZR, [X19,#0x490]                                      ; +0x20, 0x8638c0\nLDR             X1, [X0]                                               ; +0x24, 0x8638c4\nLDR             X1, [X1,#0x40]                                         ; +0x28, 0x8638c8\nBLR             X1                                                     ; +0x2c, 0x8638cc\nCMP             W0, #1                                                 ; +0x30, 0x8638d0\nLDR             W1, [X19,#0x490]                                       ; +0x34, 0x8638d4\nB.EQ            loc_863918                                             ; +0x38, 0x8638d8\nSUB             W1, W1, #1                                             ; +0x3c, 0x8638dc\nCMP             W1, WZR                                                ; +0x40, 0x8638e0\nMOV             W2, #0x3E7                                             ; +0x44, 0x8638e4\nCSEL            W1, W1, WZR, GE                                        ; +0x48, 0x8638e8\nMOV             X0, X19; this                                          ; +0x4c, 0x8638ec\nCMP             W1, #0x3E7                                             ; +0x50, 0x8638f0\nCSEL            W1, W1, W2, LE                                         ; +0x54, 0x8638f4\nSTR             W1, [X19,#0x490]                                       ; +0x58, 0x8638f8\nBL              _ZN16ColorSelectPopup20updateCustomColorIdxEv; ColorSelectPopup::updateCustomColorIdx(void) ; +0x5c, 0x8638fc\nMOV             X0, X19; this                                          ; +0x60, 0x863900\nBL              _ZN17SetupTriggerPopup17updateEditorLabelEv; SetupTriggerPopup::updateEditorLabel(void) ; +0x64, 0x863904\nMOV             X0, X19; this                                          ; +0x68, 0x863908\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x6c, 0x86390c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x70, 0x863910\nB               _ZN16ColorSelectPopup20updateTextInputLabelEv; ColorSelectPopup::updateTextInputLabel(void) ; +0x74, 0x863914\nADD             W1, W1, #1                                             ; +0x78, 0x863918\nB               loc_8638E0                                             ; +0x7c, 0x86391c", "xrefs": ["<???> @ 0x56548", "ColorSelectPopup::init @ 0x865660", "ColorSelectPopup::init @ 0x865708", "<???> @ 0x1541f10"], "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"}