{"type": "func", "start": 4048570, "end": 4048648, "name": "ColorSelectPopup::onUpdateCopyColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCopyColor from 0x3dc6ba to 0x3dc708 (78 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::onUpdateCopyColor(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int m_copyColorID; // r3\n  int v5; // r3\n  int v6; // r3\n\n  if ( a1->m_copyColorID >= 1000 )\n    a1->m_copyColorID = 0;\n  v3 = a2->getTag(a2);\n  m_copyColorID = a1->m_copyColorID;\n  if ( v3 == 1 )\n    v5 = m_copyColorID - 1;\n  else\n    v5 = m_copyColorID + 1;\n  v6 = v5 & ~(v5 >> 31);\n  if ( v6 > 999 )\n    a1->m_copyColorID = 999;\n  else\n    a1->m_copyColorID = v6;\n  ColorSelectPopup::updateCopyColor(a1);\n  ColorSelectPopup::updateCopyColorTextInputLabel(a1);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCopyColor from 0x3dc6ba to 0x3dc708 (78 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,#0x308]                                        ; +0x0, 0x3dc6ba\nPUSH            {R4,LR}                                                ; +0x4, 0x3dc6be\nCMP.W           R3, #0x3E8                                             ; +0x6, 0x3dc6c0\nMOV             R4, R0                                                 ; +0xa, 0x3dc6c4\nITT GE                                                                 ; +0xc, 0x3dc6c6\nMOVGE           R3, #0                                                 ; +0xe, 0x3dc6c8\nSTRGE.W         R3, [R0,#0x308]                                        ; +0x10, 0x3dc6ca\nLDR             R3, [R1]                                               ; +0x14, 0x3dc6ce\nMOV             R0, R1                                                 ; +0x16, 0x3dc6d0\nLDR             R3, [R3,#0x20]                                         ; +0x18, 0x3dc6d2\nBLX             R3                                                     ; +0x1a, 0x3dc6d4\nLDR.W           R3, [R4,#0x308]                                        ; +0x1c, 0x3dc6d6\nMOVW            R2, #0x3E7                                             ; +0x20, 0x3dc6da\nCMP             R0, #1                                                 ; +0x24, 0x3dc6de\nMOV             R0, R4; this                                           ; +0x26, 0x3dc6e0\nITE EQ                                                                 ; +0x28, 0x3dc6e2\nADDEQ.W         R3, R3, #0xFFFFFFFF                                    ; +0x2a, 0x3dc6e4\nADDNE           R3, #1                                                 ; +0x2e, 0x3dc6e8\nBIC.W           R3, R3, R3,ASR#31                                      ; +0x30, 0x3dc6ea\nCMP             R3, R2                                                 ; +0x34, 0x3dc6ee\nITE LE                                                                 ; +0x36, 0x3dc6f0\nSTRLE.W         R3, [R4,#0x308]                                        ; +0x38, 0x3dc6f2\nSTRGT.W         R2, [R4,#0x308]                                        ; +0x3c, 0x3dc6f6\nBL              _ZN16ColorSelectPopup15updateCopyColorEv; ColorSelectPopup::updateCopyColor(void) ; +0x40, 0x3dc6fa\nMOV             R0, R4; this                                           ; +0x44, 0x3dc6fe\nPOP.W           {R4,LR}                                                ; +0x46, 0x3dc700\nB.W             _ZN16ColorSelectPopup29updateCopyColorTextInputLabelEv; ColorSelectPopup::updateCopyColorTextInputLabel(void) ; +0x4a, 0x3dc704", "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"}