{"type": "func", "start": 5109696, "end": 5109780, "name": "ColorSelectPopup::onUpdateCustomColor", "pseudocode": "// \n// ColorSelectPopup::onUpdateCustomColor from 0x4df7c0 to 0x4df814 (84 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:50:59 +0000\n// \n\nGJSpecialColorSelect *__fastcall ColorSelectPopup::onUpdateCustomColor(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int v4; // r3\n  int v5; // r3\n  int v6; // r3\n  int v7; // r1\n  int v8; // r2\n  int v9; // r3\n\n  if ( *((int *)this + 200) >= 1000 )\n    *((_DWORD *)this + 200) = 0;\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  v4 = *((_DWORD *)this + 200);\n  if ( v3 == 1 )\n    v5 = v4 + 1;\n  else\n    v5 = v4 - 1;\n  v6 = v5 & ~(v5 >> 31);\n  if ( v6 > 999 )\n    *((_DWORD *)this + 200) = 999;\n  else\n    *((_DWORD *)this + 200) = v6;\n  ColorSelectPopup::updateCustomColorIdx(this);\n  SetupTriggerPopup::updateEditorLabel(this);\n  return ColorSelectPopup::updateTextInputLabel(this, v7, v8, v9);\n}", "assembly": "; \n; ColorSelectPopup::onUpdateCustomColor from 0x4df7c0 to 0x4df814 (84 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:50:59 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x4df7c0\nMOV             R4, R0                                                 ; +0x2, 0x4df7c2\nLDR.W           R3, [R0,#0x320]                                        ; +0x4, 0x4df7c4\nCMP.W           R3, #0x3E8                                             ; +0x8, 0x4df7c8\nITT GE                                                                 ; +0xc, 0x4df7cc\nMOVGE           R3, #0                                                 ; +0xe, 0x4df7ce\nSTRGE.W         R3, [R0,#0x320]                                        ; +0x10, 0x4df7d0\nLDR             R3, [R1]                                               ; +0x14, 0x4df7d4\nMOV             R0, R1                                                 ; +0x16, 0x4df7d6\nLDR             R3, [R3,#0x20]                                         ; +0x18, 0x4df7d8\nBLX             R3                                                     ; +0x1a, 0x4df7da\nLDR.W           R3, [R4,#0x320]                                        ; +0x1c, 0x4df7dc\nMOVW            R2, #0x3E7                                             ; +0x20, 0x4df7e0\nCMP             R0, #1                                                 ; +0x24, 0x4df7e4\nMOV             R0, R4; this                                           ; +0x26, 0x4df7e6\nITE EQ                                                                 ; +0x28, 0x4df7e8\nADDEQ           R3, #1                                                 ; +0x2a, 0x4df7ea\nADDNE.W         R3, R3, #0xFFFFFFFF                                    ; +0x2c, 0x4df7ec\nBIC.W           R3, R3, R3,ASR#31                                      ; +0x30, 0x4df7f0\nCMP             R3, R2                                                 ; +0x34, 0x4df7f4\nITE LE                                                                 ; +0x36, 0x4df7f6\nSTRLE.W         R3, [R4,#0x320]                                        ; +0x38, 0x4df7f8\nSTRGT.W         R2, [R4,#0x320]                                        ; +0x3c, 0x4df7fc\nBL              _ZN16ColorSelectPopup20updateCustomColorIdxEv; ColorSelectPopup::updateCustomColorIdx(void) ; +0x40, 0x4df800\nMOV             R0, R4; this                                           ; +0x44, 0x4df804\nBL              _ZN17SetupTriggerPopup17updateEditorLabelEv; SetupTriggerPopup::updateEditorLabel(void) ; +0x46, 0x4df806\nMOV             R0, R4; this                                           ; +0x4a, 0x4df80a\nPOP.W           {R4,LR}                                                ; +0x4c, 0x4df80c\nB.W             _ZN16ColorSelectPopup20updateTextInputLabelEv; ColorSelectPopup::updateTextInputLabel(void) ; +0x50, 0x4df810", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}