{"type": "func", "start": 5110108, "end": 5110298, "name": "ColorSelectPopup::updateCopyColorTextInputLabel", "pseudocode": "// \n// ColorSelectPopup::updateCopyColorTextInputLabel from 0x4df95c to 0x4dfa1a (190 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::onUpdateCopyColor @ 0x4dfa72\n// > ColorSelectPopup::onToggleHSVMode @ 0x4dfa8c\n// > ColorSelectPopup::init @ 0x4e1682\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::updateCopyColorTextInputLabel(\n        ColorSelectPopup *this,\n        int a2,\n        int a3,\n        int a4)\n{\n  cocos2d::CCString *v5; // r0\n  const char *CString; // r7\n  size_t v7; // r0\n  int v8; // r8\n  int v9; // r1\n  GJSpecialColorSelect *result; // r0\n  float *v11; // r7\n  const char *v12; // r0\n  const char *v13; // r8\n  size_t v14; // r0\n  ColorSelectPopup *v15; // [sp+0h] [bp-10h] BYREF\n  int v16; // [sp+4h] [bp-Ch]\n  int v17; // [sp+8h] [bp-8h]\n  int v18; // [sp+Ch] [bp-4h]\n\n  v15 = this;\n  v16 = a2;\n  v17 = a3;\n  v18 = a4;\n  *((_BYTE *)this + 568) = 1;\n  v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", *((const char **)this + 202));\n  CString = (const char *)cocos2d::CCString::getCString(v5);\n  if ( *((int *)this + 202) >= 1000 )\n    CString = \"0\";\n  v15 = nullptr;\n  v16 = 0;\n  v17 = 0;\n  v7 = strlen(CString);\n  v8 = *((_DWORD *)this + 211);\n  std::string::__init((int *)&v15, CString, v7);\n  CCTextInputNode::setString(v8, (int)&v15);\n  std::string::~string((int)&v15);\n  result = *((GJSpecialColorSelect **)this + 202);\n  if ( (int)result >= 1000 )\n  {\n    v11 = *((float **)this + 211);\n    v12 = (const char *)GJSpecialColorSelect::textForColorIdx(result, v9);\n    v15 = nullptr;\n    v16 = 0;\n    v17 = 0;\n    v13 = v12;\n    v14 = strlen(v12);\n    std::string::__init((int *)&v15, v13, v14);\n    CCTextInputNode::updateLabel(v11, (int)&v15);\n    result = (GJSpecialColorSelect *)std::string::~string((int)&v15);\n  }\n  *((_BYTE *)this + 568) = 0;\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::updateCopyColorTextInputLabel from 0x4df95c to 0x4dfa1a (190 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::onUpdateCopyColor @ 0x4dfa72\n; > ColorSelectPopup::onToggleHSVMode @ 0x4dfa8c\n; > ColorSelectPopup::init @ 0x4e1682\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.W          {R0-R8,LR}                                             ; +0x0, 0x4df95c\nMOV             R5, R0                                                 ; +0x4, 0x4df960\nLDR             R6, =(__stack_chk_guard_ptr - 0x4DF968)                ; +0x6, 0x4df962\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x8, 0x4df964\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xa, 0x4df966\nLDR             R3, [R6]                                               ; +0xc, 0x4df968\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xe, 0x4df96a\nMOVS            R3, #1                                                 ; +0x10, 0x4df96c\nSTRB.W          R3, [R0,#0x238]                                        ; +0x12, 0x4df96e\nLDR             R0, =(aI - 0x4DF97C); \"%i\"                             ; +0x16, 0x4df972\nLDR.W           R1, [R5,#0x328]; char *                                ; +0x18, 0x4df974\nADD             R0, PC; \"%i\"                                           ; +0x1c, 0x4df978\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1e, 0x4df97a\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x22, 0x4df97e\nLDR.W           R3, [R5,#0x328]                                        ; +0x26, 0x4df982\nCMP.W           R3, #0x3E8                                             ; +0x2a, 0x4df986\nMOV             R7, R0                                                 ; +0x2e, 0x4df98a\nBLT             loc_4DF992                                             ; +0x30, 0x4df98c\nLDR             R7, =(a0 - 0x4DF994); \"0\"                              ; +0x32, 0x4df98e\nADD             R7, PC; \"0\"                                            ; +0x34, 0x4df990\nMOV             R0, R7; char *                                         ; +0x36, 0x4df992\nMOVS            R3, #0                                                 ; +0x38, 0x4df994\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x3a, 0x4df996\nMOV             R4, SP                                                 ; +0x3c, 0x4df998\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x3e, 0x4df99a\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x40, 0x4df99c\nBLX             strlen                                                 ; +0x42, 0x4df99e\nLDR.W           R8, [R5,#0x34C]                                        ; +0x46, 0x4df9a2\nMOV             R1, R7                                                 ; +0x4a, 0x4df9a6\nMOV             R2, R0                                                 ; +0x4c, 0x4df9a8\nMOV             R0, SP                                                 ; +0x4e, 0x4df9aa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x50, 0x4df9ac\nMOV             R0, R8                                                 ; +0x54, 0x4df9b0\nMOV             R1, SP                                                 ; +0x56, 0x4df9b2\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x58, 0x4df9b4\nMOV             R0, SP                                                 ; +0x5c, 0x4df9b8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5e, 0x4df9ba\nLDR.W           R0, [R5,#0x328]; this                                  ; +0x62, 0x4df9be\nCMP.W           R0, #0x3E8                                             ; +0x66, 0x4df9c2\nBLT             loc_4DF9F6                                             ; +0x6a, 0x4df9c6\nLDR.W           R7, [R5,#0x34C]                                        ; +0x6c, 0x4df9c8\nBL              _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0x70, 0x4df9cc\nMOVS            R3, #0                                                 ; +0x74, 0x4df9d0\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x76, 0x4df9d2\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x78, 0x4df9d4\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x7a, 0x4df9d6\nMOV             R8, R0                                                 ; +0x7c, 0x4df9d8\nBLX             strlen                                                 ; +0x7e, 0x4df9da\nMOV             R1, R8                                                 ; +0x82, 0x4df9de\nMOV             R2, R0                                                 ; +0x84, 0x4df9e0\nMOV             R0, SP                                                 ; +0x86, 0x4df9e2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x88, 0x4df9e4\nMOV             R0, R7                                                 ; +0x8c, 0x4df9e8\nMOV             R1, SP                                                 ; +0x8e, 0x4df9ea\nBL              _ZN15CCTextInputNode11updateLabelENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateLabel(std::string) ; +0x90, 0x4df9ec\nMOV             R0, SP                                                 ; +0x94, 0x4df9f0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x96, 0x4df9f2\nMOVS            R3, #0                                                 ; +0x9a, 0x4df9f6\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x9c, 0x4df9f8\nSTRB.W          R3, [R5,#0x238]                                        ; +0x9e, 0x4df9fa\nLDR             R3, [R6]                                               ; +0xa2, 0x4df9fe\nCMP             R2, R3                                                 ; +0xa4, 0x4dfa00\nBEQ             loc_4DFA14                                             ; +0xa6, 0x4dfa02\nBLX             __stack_chk_fail                                       ; +0xa8, 0x4dfa04\nB               loc_4DFA0A                                             ; +0xac, 0x4dfa08\nMOV             R0, R4                                                 ; +0xae, 0x4dfa0a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb0, 0x4dfa0c\nBL              __cxa_end_cleanup                                      ; +0xb4, 0x4dfa10\nADD             SP, SP, #0x10                                          ; +0xb8, 0x4dfa14\nPOP.W           {R4-R8,PC}                                             ; +0xba, 0x4dfa16", "xrefs": ["ColorSelectPopup::onUpdateCopyColor @ 0x4dfa72", "ColorSelectPopup::onToggleHSVMode @ 0x4dfa8c", "ColorSelectPopup::init @ 0x4e1682"], "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"}