{"type": "func", "start": 7588464, "end": 7588592, "name": "ColorSelectPopup::onUpdateCustomColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCustomColor from 0x73ca70 to 0x73caf0 (128 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x3b778\n// > ColorSelectPopup::init @ 0x73ea58\n// > ColorSelectPopup::init @ 0x73eb00\n// > <???> @ 0x1229de8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid ColorSelectPopup::onUpdateCustomColor(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int m_colorID; // w1\n  int v5; // w1\n\n  if ( a1->m_colorID > 999 )\n    a1->m_colorID = 0;\n  v3 = a2->getTag(a2);\n  m_colorID = a1->m_colorID;\n  if ( v3 == 1 )\n    v5 = m_colorID + 1;\n  else\n    v5 = m_colorID - 1;\n  if ( v5 < 0 )\n    v5 = 0;\n  if ( v5 > 999 )\n    v5 = 999;\n  a1->m_colorID = v5;\n  ColorSelectPopup::updateCustomColorIdx(a1);\n  SetupTriggerPopup::updateEditorLabel(a1);\n  ColorSelectPopup::updateTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCustomColor from 0x73ca70 to 0x73caf0 (128 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x3b778\n; > ColorSelectPopup::init @ 0x73ea58\n; > ColorSelectPopup::init @ 0x73eb00\n; > <???> @ 0x1229de8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x73ca70\nMOV             X29, SP                                                ; +0x4, 0x73ca74\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x73ca78\nMOV             X19, X0                                                ; +0xc, 0x73ca7c\nMOV             X0, X1                                                 ; +0x10, 0x73ca80\nLDR             W1, [X19,#0x460]                                       ; +0x14, 0x73ca84\nCMP             W1, #0x3E7                                             ; +0x18, 0x73ca88\nB.LE            loc_73CA94                                             ; +0x1c, 0x73ca8c\nSTR             WZR, [X19,#0x460]                                      ; +0x20, 0x73ca90\nLDR             X1, [X0]                                               ; +0x24, 0x73ca94\nLDR             X1, [X1,#0x40]                                         ; +0x28, 0x73ca98\nBLR             X1                                                     ; +0x2c, 0x73ca9c\nCMP             W0, #1                                                 ; +0x30, 0x73caa0\nLDR             W1, [X19,#0x460]                                       ; +0x34, 0x73caa4\nB.EQ            loc_73CAE8                                             ; +0x38, 0x73caa8\nSUB             W1, W1, #1                                             ; +0x3c, 0x73caac\nCMP             W1, WZR                                                ; +0x40, 0x73cab0\nMOV             W2, #0x3E7                                             ; +0x44, 0x73cab4\nCSEL            W1, W1, WZR, GE                                        ; +0x48, 0x73cab8\nMOV             X0, X19; this                                          ; +0x4c, 0x73cabc\nCMP             W1, #0x3E7                                             ; +0x50, 0x73cac0\nCSEL            W1, W1, W2, LE                                         ; +0x54, 0x73cac4\nSTR             W1, [X19,#0x460]                                       ; +0x58, 0x73cac8\nBL              _ZN16ColorSelectPopup20updateCustomColorIdxEv; ColorSelectPopup::updateCustomColorIdx(void) ; +0x5c, 0x73cacc\nMOV             X0, X19; this                                          ; +0x60, 0x73cad0\nBL              _ZN17SetupTriggerPopup17updateEditorLabelEv; SetupTriggerPopup::updateEditorLabel(void) ; +0x64, 0x73cad4\nMOV             X0, X19; this                                          ; +0x68, 0x73cad8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x6c, 0x73cadc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x70, 0x73cae0\nB               _ZN16ColorSelectPopup20updateTextInputLabelEv; ColorSelectPopup::updateTextInputLabel(void) ; +0x74, 0x73cae4\nADD             W1, W1, #1                                             ; +0x78, 0x73cae8\nB               loc_73CAB0                                             ; +0x7c, 0x73caec", "xrefs": ["<???> @ 0x3b778", "ColorSelectPopup::init @ 0x73ea58", "ColorSelectPopup::init @ 0x73eb00", "<???> @ 0x1229de8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}