{"type": "func", "start": 5109492, "end": 5109682, "name": "ColorSelectPopup::updateTextInputLabel", "pseudocode": "// \n// ColorSelectPopup::updateTextInputLabel from 0x4df6f4 to 0x4df7b2 (190 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::onUpdateCustomColor @ 0x4df810\n// > ColorSelectPopup::init @ 0x4e0e0a\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::updateTextInputLabel(ColorSelectPopup *this, int a2, int a3, 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 + 200));\n  CString = (const char *)cocos2d::CCString::getCString(v5);\n  if ( *((int *)this + 200) >= 1000 )\n    CString = \"0\";\n  v15 = nullptr;\n  v16 = 0;\n  v17 = 0;\n  v7 = strlen(CString);\n  v8 = *((_DWORD *)this + 197);\n  std::string::__init((int *)&v15, CString, v7);\n  CCTextInputNode::setString(v8, (int)&v15);\n  std::string::~string((int)&v15);\n  result = *((GJSpecialColorSelect **)this + 200);\n  if ( (int)result >= 1000 )\n  {\n    v11 = *((float **)this + 197);\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::updateTextInputLabel from 0x4df6f4 to 0x4df7b2 (190 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::onUpdateCustomColor @ 0x4df810\n; > ColorSelectPopup::init @ 0x4e0e0a\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, 0x4df6f4\nMOV             R5, R0                                                 ; +0x4, 0x4df6f8\nLDR             R6, =(__stack_chk_guard_ptr - 0x4DF700)                ; +0x6, 0x4df6fa\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x8, 0x4df6fc\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xa, 0x4df6fe\nLDR             R3, [R6]                                               ; +0xc, 0x4df700\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xe, 0x4df702\nMOVS            R3, #1                                                 ; +0x10, 0x4df704\nSTRB.W          R3, [R0,#0x238]                                        ; +0x12, 0x4df706\nLDR             R0, =(aI - 0x4DF714); \"%i\"                             ; +0x16, 0x4df70a\nLDR.W           R1, [R5,#0x320]; char *                                ; +0x18, 0x4df70c\nADD             R0, PC; \"%i\"                                           ; +0x1c, 0x4df710\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1e, 0x4df712\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x22, 0x4df716\nLDR.W           R3, [R5,#0x320]                                        ; +0x26, 0x4df71a\nCMP.W           R3, #0x3E8                                             ; +0x2a, 0x4df71e\nMOV             R7, R0                                                 ; +0x2e, 0x4df722\nBLT             loc_4DF72A                                             ; +0x30, 0x4df724\nLDR             R7, =(a0 - 0x4DF72C); \"0\"                              ; +0x32, 0x4df726\nADD             R7, PC; \"0\"                                            ; +0x34, 0x4df728\nMOV             R0, R7; char *                                         ; +0x36, 0x4df72a\nMOVS            R3, #0                                                 ; +0x38, 0x4df72c\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x3a, 0x4df72e\nMOV             R4, SP                                                 ; +0x3c, 0x4df730\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x3e, 0x4df732\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x40, 0x4df734\nBLX             strlen                                                 ; +0x42, 0x4df736\nLDR.W           R8, [R5,#0x314]                                        ; +0x46, 0x4df73a\nMOV             R1, R7                                                 ; +0x4a, 0x4df73e\nMOV             R2, R0                                                 ; +0x4c, 0x4df740\nMOV             R0, SP                                                 ; +0x4e, 0x4df742\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x50, 0x4df744\nMOV             R0, R8                                                 ; +0x54, 0x4df748\nMOV             R1, SP                                                 ; +0x56, 0x4df74a\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x58, 0x4df74c\nMOV             R0, SP                                                 ; +0x5c, 0x4df750\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x5e, 0x4df752\nLDR.W           R0, [R5,#0x320]; this                                  ; +0x62, 0x4df756\nCMP.W           R0, #0x3E8                                             ; +0x66, 0x4df75a\nBLT             loc_4DF78E                                             ; +0x6a, 0x4df75e\nLDR.W           R7, [R5,#0x314]                                        ; +0x6c, 0x4df760\nBL              _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0x70, 0x4df764\nMOVS            R3, #0                                                 ; +0x74, 0x4df768\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x76, 0x4df76a\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x78, 0x4df76c\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x7a, 0x4df76e\nMOV             R8, R0                                                 ; +0x7c, 0x4df770\nBLX             strlen                                                 ; +0x7e, 0x4df772\nMOV             R1, R8                                                 ; +0x82, 0x4df776\nMOV             R2, R0                                                 ; +0x84, 0x4df778\nMOV             R0, SP                                                 ; +0x86, 0x4df77a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x88, 0x4df77c\nMOV             R0, R7                                                 ; +0x8c, 0x4df780\nMOV             R1, SP                                                 ; +0x8e, 0x4df782\nBL              _ZN15CCTextInputNode11updateLabelENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateLabel(std::string) ; +0x90, 0x4df784\nMOV             R0, SP                                                 ; +0x94, 0x4df788\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x96, 0x4df78a\nMOVS            R3, #0                                                 ; +0x9a, 0x4df78e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x9c, 0x4df790\nSTRB.W          R3, [R5,#0x238]                                        ; +0x9e, 0x4df792\nLDR             R3, [R6]                                               ; +0xa2, 0x4df796\nCMP             R2, R3                                                 ; +0xa4, 0x4df798\nBEQ             loc_4DF7AC                                             ; +0xa6, 0x4df79a\nBLX             __stack_chk_fail                                       ; +0xa8, 0x4df79c\nB               loc_4DF7A2                                             ; +0xac, 0x4df7a0\nMOV             R0, R4                                                 ; +0xae, 0x4df7a2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb0, 0x4df7a4\nBL              __cxa_end_cleanup                                      ; +0xb4, 0x4df7a8\nADD             SP, SP, #0x10                                          ; +0xb8, 0x4df7ac\nPOP.W           {R4-R8,PC}                                             ; +0xba, 0x4df7ae", "xrefs": ["ColorSelectPopup::onUpdateCustomColor @ 0x4df810", "ColorSelectPopup::init @ 0x4e0e0a"], "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"}