{"type": "func", "start": 4040076, "end": 4040160, "name": "ColorSelectPopup::onUpdateCustomColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCustomColor from 0x3da58c to 0x3da5e0 (84 bytes)\n// \n// 0 xrefs:\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; // r0\n  int m_colorID; // r3\n  int v5; // r3\n  int v6; // r3\n\n  if ( a1->m_colorID >= 1000 )\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  v6 = v5 & ~(v5 >> 31);\n  if ( v6 > 999 )\n    a1->m_colorID = 999;\n  else\n    a1->m_colorID = v6;\n  ColorSelectPopup::updateCustomColorIdx(a1);\n  SetupTriggerPopup::updateEditorLabel(a1);\n  ColorSelectPopup::updateTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCustomColor from 0x3da58c to 0x3da5e0 (84 bytes)\n; \n; 0 xrefs:\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\nLDR.W           R3, [R0,#0x300]                                        ; +0x0, 0x3da58c\nPUSH            {R4,LR}                                                ; +0x4, 0x3da590\nCMP.W           R3, #0x3E8                                             ; +0x6, 0x3da592\nMOV             R4, R0                                                 ; +0xa, 0x3da596\nITT GE                                                                 ; +0xc, 0x3da598\nMOVGE           R3, #0                                                 ; +0xe, 0x3da59a\nSTRGE.W         R3, [R0,#0x300]                                        ; +0x10, 0x3da59c\nLDR             R3, [R1]                                               ; +0x14, 0x3da5a0\nMOV             R0, R1                                                 ; +0x16, 0x3da5a2\nLDR             R3, [R3,#0x20]                                         ; +0x18, 0x3da5a4\nBLX             R3                                                     ; +0x1a, 0x3da5a6\nLDR.W           R3, [R4,#0x300]                                        ; +0x1c, 0x3da5a8\nMOVW            R2, #0x3E7                                             ; +0x20, 0x3da5ac\nCMP             R0, #1                                                 ; +0x24, 0x3da5b0\nMOV             R0, R4; this                                           ; +0x26, 0x3da5b2\nITE EQ                                                                 ; +0x28, 0x3da5b4\nADDEQ           R3, #1                                                 ; +0x2a, 0x3da5b6\nADDNE.W         R3, R3, #0xFFFFFFFF                                    ; +0x2c, 0x3da5b8\nBIC.W           R3, R3, R3,ASR#31                                      ; +0x30, 0x3da5bc\nCMP             R3, R2                                                 ; +0x34, 0x3da5c0\nITE LE                                                                 ; +0x36, 0x3da5c2\nSTRLE.W         R3, [R4,#0x300]                                        ; +0x38, 0x3da5c4\nSTRGT.W         R2, [R4,#0x300]                                        ; +0x3c, 0x3da5c8\nBL              _ZN16ColorSelectPopup20updateCustomColorIdxEv; ColorSelectPopup::updateCustomColorIdx(void) ; +0x40, 0x3da5cc\nMOV             R0, R4; this                                           ; +0x44, 0x3da5d0\nBL              _ZN17SetupTriggerPopup17updateEditorLabelEv; SetupTriggerPopup::updateEditorLabel(void) ; +0x46, 0x3da5d2\nMOV             R0, R4; this                                           ; +0x4a, 0x3da5d6\nPOP.W           {R4,LR}                                                ; +0x4c, 0x3da5d8\nB.W             _ZN16ColorSelectPopup20updateTextInputLabelEv; ColorSelectPopup::updateTextInputLabel(void) ; +0x50, 0x3da5dc", "xrefs": [], "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"}