{"type": "func", "start": 5118912, "end": 5119244, "name": "ColorSelectPopup::updateColorLabels", "pseudocode": "// \n// ColorSelectPopup::updateColorLabels from 0x4e1bc0 to 0x4e1d0c (332 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x4e1d6e\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:51:02 +0000\n// \n\nint __fastcall ColorSelectPopup::updateColorLabels(ColorSelectPopup *this)\n{\n  char v2; // r9\n  int v3; // r7\n  cocos2d::CCString *v4; // r0\n  const char *CString; // r8\n  size_t v6; // r0\n  int v7; // r7\n  cocos2d::CCString *v8; // r0\n  const char *v9; // r0\n  const char *v10; // r8\n  size_t v11; // r0\n  int v12; // r7\n  cocos2d::CCString *v13; // r0\n  const char *v14; // r0\n  char *v15; // r8\n  size_t v16; // r0\n  int v17; // r10\n  size_t v18; // r0\n  int result; // r0\n  unsigned __int8 v20; // [sp+4h] [bp-1Ch] BYREF\n  char v21; // [sp+5h] [bp-1Bh] BYREF\n  char *v22; // [sp+Ch] [bp-14h]\n  int v23; // [sp+10h] [bp-10h] BYREF\n  int v24; // [sp+14h] [bp-Ch]\n  int v25; // [sp+18h] [bp-8h]\n\n  v2 = *((_BYTE *)this + 568);\n  v3 = *((_DWORD *)this + 216);\n  *((_BYTE *)this + 568) = 1;\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)*((unsigned __int8 *)this + 760));\n  v23 = 0;\n  v24 = 0;\n  v25 = 0;\n  CString = (const char *)cocos2d::CCString::getCString(v4);\n  v6 = strlen(CString);\n  std::string::__init(&v23, CString, v6);\n  CCTextInputNode::setString(v3, (int)&v23);\n  std::string::~string((int)&v23);\n  v7 = *((_DWORD *)this + 217);\n  v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)*((unsigned __int8 *)this + 761));\n  v9 = (const char *)cocos2d::CCString::getCString(v8);\n  v23 = 0;\n  v24 = 0;\n  v25 = 0;\n  v10 = v9;\n  v11 = strlen(v9);\n  std::string::__init(&v23, v10, v11);\n  CCTextInputNode::setString(v7, (int)&v23);\n  std::string::~string((int)&v23);\n  v12 = *((_DWORD *)this + 218);\n  v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"%i\",\n                               (const char *)*((unsigned __int8 *)this + 762));\n  v14 = (const char *)cocos2d::CCString::getCString(v13);\n  v23 = 0;\n  v24 = 0;\n  v25 = 0;\n  v15 = (char *)v14;\n  v16 = strlen(v14);\n  std::string::__init(&v23, v15, v16);\n  CCTextInputNode::setString(v12, (int)&v23);\n  std::string::~string((int)&v23);\n  v17 = *((_DWORD *)this + 219);\n  ColorSelectPopup::colorToHex(&v20, *((_DWORD *)this + 190));\n  if ( (v20 & 1) == 0 )\n    v15 = &v21;\n  v23 = 0;\n  if ( (v20 & 1) != 0 )\n    v15 = v22;\n  v24 = 0;\n  v25 = 0;\n  v18 = strlen(v15);\n  std::string::__init(&v23, v15, v18);\n  CCTextInputNode::setString(v17, (int)&v23);\n  std::string::~string((int)&v23);\n  result = std::string::~string((int)&v20);\n  *((_BYTE *)this + 568) = v2;\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::updateColorLabels from 0x4e1bc0 to 0x4e1d0c (332 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x4e1d6e\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:51:02 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x4e1bc0\nSUB             SP, SP, #0x20                                          ; +0x4, 0x4e1bc4\nLDR             R6, =(__stack_chk_guard_ptr - 0x4E1BD4)                ; +0x6, 0x4e1bc6\nMOV             R5, R0                                                 ; +0x8, 0x4e1bc8\nLDRB.W          R9, [R0,#0x238]                                        ; +0xa, 0x4e1bca\nADD             R4, SP, #0x20+var_10                                   ; +0xe, 0x4e1bce\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x10, 0x4e1bd0\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x12, 0x4e1bd2\nLDR.W           R7, [R0,#0x360]                                        ; +0x14, 0x4e1bd4\nLDR             R3, [R6]                                               ; +0x18, 0x4e1bd8\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x1a, 0x4e1bda\nMOVS            R3, #1                                                 ; +0x1c, 0x4e1bdc\nSTRB.W          R3, [R0,#0x238]                                        ; +0x1e, 0x4e1bde\nLDR             R0, =(aI - 0x4E1BEC); \"%i\"                             ; +0x22, 0x4e1be2\nLDRB.W          R1, [R5,#0x2F8]; char *                                ; +0x24, 0x4e1be4\nADD             R0, PC; \"%i\"                                           ; +0x28, 0x4e1be8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2a, 0x4e1bea\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2e, 0x4e1bee\nMOVS            R3, #0                                                 ; +0x32, 0x4e1bf2\nSTR             R3, [SP,#0x20+var_10]                                  ; +0x34, 0x4e1bf4\nSTR             R3, [SP,#0x20+var_C]                                   ; +0x36, 0x4e1bf6\nSTR             R3, [SP,#0x20+var_8]                                   ; +0x38, 0x4e1bf8\nMOV             R8, R0                                                 ; +0x3a, 0x4e1bfa\nBLX             strlen                                                 ; +0x3c, 0x4e1bfc\nMOV             R1, R8                                                 ; +0x40, 0x4e1c00\nMOV             R2, R0                                                 ; +0x42, 0x4e1c02\nMOV             R0, R4                                                 ; +0x44, 0x4e1c04\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x46, 0x4e1c06\nMOV             R0, R7                                                 ; +0x4a, 0x4e1c0a\nMOV             R1, R4                                                 ; +0x4c, 0x4e1c0c\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x4e, 0x4e1c0e\nMOV             R0, R4                                                 ; +0x52, 0x4e1c12\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x54, 0x4e1c14\nLDR             R0, =(aI - 0x4E1C22); \"%i\"                             ; +0x58, 0x4e1c18\nLDRB.W          R1, [R5,#0x2F9]; char *                                ; +0x5a, 0x4e1c1a\nADD             R0, PC; \"%i\"                                           ; +0x5e, 0x4e1c1e\nLDR.W           R7, [R5,#0x364]                                        ; +0x60, 0x4e1c20\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x64, 0x4e1c24\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x68, 0x4e1c28\nMOVS            R3, #0                                                 ; +0x6c, 0x4e1c2c\nSTR             R3, [SP,#0x20+var_10]                                  ; +0x6e, 0x4e1c2e\nSTR             R3, [SP,#0x20+var_C]                                   ; +0x70, 0x4e1c30\nSTR             R3, [SP,#0x20+var_8]                                   ; +0x72, 0x4e1c32\nMOV             R8, R0                                                 ; +0x74, 0x4e1c34\nBLX             strlen                                                 ; +0x76, 0x4e1c36\nMOV             R1, R8                                                 ; +0x7a, 0x4e1c3a\nMOV             R2, R0                                                 ; +0x7c, 0x4e1c3c\nMOV             R0, R4                                                 ; +0x7e, 0x4e1c3e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x80, 0x4e1c40\nMOV             R0, R7                                                 ; +0x84, 0x4e1c44\nMOV             R1, R4                                                 ; +0x86, 0x4e1c46\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x88, 0x4e1c48\nMOV             R0, R4                                                 ; +0x8c, 0x4e1c4c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x8e, 0x4e1c4e\nLDR             R0, =(aI - 0x4E1C5C); \"%i\"                             ; +0x92, 0x4e1c52\nLDRB.W          R1, [R5,#0x2FA]; char *                                ; +0x94, 0x4e1c54\nADD             R0, PC; \"%i\"                                           ; +0x98, 0x4e1c58\nLDR.W           R7, [R5,#0x368]                                        ; +0x9a, 0x4e1c5a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x9e, 0x4e1c5e\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xa2, 0x4e1c62\nMOVS            R3, #0                                                 ; +0xa6, 0x4e1c66\nSTR             R3, [SP,#0x20+var_10]                                  ; +0xa8, 0x4e1c68\nSTR             R3, [SP,#0x20+var_C]                                   ; +0xaa, 0x4e1c6a\nSTR             R3, [SP,#0x20+var_8]                                   ; +0xac, 0x4e1c6c\nMOV             R8, R0                                                 ; +0xae, 0x4e1c6e\nBLX             strlen                                                 ; +0xb0, 0x4e1c70\nMOV             R1, R8                                                 ; +0xb4, 0x4e1c74\nMOV             R2, R0                                                 ; +0xb6, 0x4e1c76\nMOV             R0, R4                                                 ; +0xb8, 0x4e1c78\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xba, 0x4e1c7a\nMOV             R0, R7                                                 ; +0xbe, 0x4e1c7e\nMOV             R1, R4                                                 ; +0xc0, 0x4e1c80\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0xc2, 0x4e1c82\nADD             R7, SP, #0x20+var_1C                                   ; +0xc6, 0x4e1c86\nMOV             R0, R4                                                 ; +0xc8, 0x4e1c88\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xca, 0x4e1c8a\nLDR.W           R1, [R5,#0x2F8]                                        ; +0xce, 0x4e1c8e\nMOV             R0, R7                                                 ; +0xd2, 0x4e1c92\nLDR.W           R10, [R5,#0x36C]                                       ; +0xd4, 0x4e1c94\nBL              _ZN16ColorSelectPopup10colorToHexEN7cocos2d10_ccColor3BE; ColorSelectPopup::colorToHex(cocos2d::_ccColor3B) ; +0xd8, 0x4e1c98\nLDRB.W          R3, [SP,#0x20+var_1C]                                  ; +0xdc, 0x4e1c9c\nLSLS            R3, R3, #0x1F                                          ; +0xe0, 0x4e1ca0\nMOV.W           R3, #0                                                 ; +0xe2, 0x4e1ca2\nIT PL                                                                  ; +0xe6, 0x4e1ca6\nADDPL.W         R8, SP, #0x20+var_1B                                   ; +0xe8, 0x4e1ca8\nSTR             R3, [SP,#0x20+var_10]                                  ; +0xec, 0x4e1cac\nIT MI                                                                  ; +0xee, 0x4e1cae\nLDRMI.W         R8, [SP,#0x20+var_14]                                  ; +0xf0, 0x4e1cb0\nSTR             R3, [SP,#0x20+var_C]                                   ; +0xf4, 0x4e1cb4\nSTR             R3, [SP,#0x20+var_8]                                   ; +0xf6, 0x4e1cb6\nMOV             R0, R8; char *                                         ; +0xf8, 0x4e1cb8\nBLX             strlen                                                 ; +0xfa, 0x4e1cba\nMOV             R1, R8                                                 ; +0xfe, 0x4e1cbe\nMOV             R2, R0                                                 ; +0x100, 0x4e1cc0\nMOV             R0, R4                                                 ; +0x102, 0x4e1cc2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x104, 0x4e1cc4\nMOV             R0, R10                                                ; +0x108, 0x4e1cc8\nMOV             R1, R4                                                 ; +0x10a, 0x4e1cca\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x10c, 0x4e1ccc\nMOV             R0, R4                                                 ; +0x110, 0x4e1cd0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x112, 0x4e1cd2\nMOV             R0, R7                                                 ; +0x116, 0x4e1cd6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x118, 0x4e1cd8\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x11c, 0x4e1cdc\nLDR             R3, [R6]                                               ; +0x11e, 0x4e1cde\nSTRB.W          R9, [R5,#0x238]                                        ; +0x120, 0x4e1ce0\nCMP             R2, R3                                                 ; +0x124, 0x4e1ce4\nBEQ             loc_4E1D06                                             ; +0x126, 0x4e1ce6\nBLX             __stack_chk_fail                                       ; +0x128, 0x4e1ce8\nB               loc_4E1CEE                                             ; +0x12c, 0x4e1cec\nMOV             R0, R4                                                 ; +0x12e, 0x4e1cee\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x130, 0x4e1cf0\nBL              __cxa_end_cleanup                                      ; +0x134, 0x4e1cf4\nB               loc_4E1CEE                                             ; +0x138, 0x4e1cf8\nMOV             R0, R4                                                 ; +0x13a, 0x4e1cfa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x13c, 0x4e1cfc\nB               loc_4E1D02                                             ; +0x140, 0x4e1d00\nMOV             R0, R7                                                 ; +0x142, 0x4e1d02\nB               loc_4E1CF0                                             ; +0x144, 0x4e1d04\nADD             SP, SP, #0x20 ; ' '                                    ; +0x146, 0x4e1d06\nPOP.W           {R4-R10,PC}                                            ; +0x148, 0x4e1d08", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x4e1d6e"], "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"}