{"type": "func", "start": 5761588, "end": 5761702, "name": "CustomizeObjectLayer::updateCustomColorLabels", "pseudocode": "// \n// CustomizeObjectLayer::updateCustomColorLabels from 0x57ea34 to 0x57eaa6 (114 bytes)\n// \n// 5 xrefs:\n// > CustomizeObjectLayer::colorSetupClosed @ 0x57ead2\n// > CustomizeObjectLayer::onNextColorChannel @ 0x57eb36\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x57eb96\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee70\n// > CustomizeObjectLayer::init @ 0x580428\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::updateCustomColorLabels(CustomizeObjectLayer *this)\n{\n  cocos2d::CCString *v2; // r0\n  char *CString; // r6\n  size_t v4; // r0\n  int v5; // r7\n  int v7[3]; // [sp+0h] [bp-14h] BYREF\n\n  v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", *((const char **)this + 141));\n  CString = (char *)cocos2d::CCString::getCString(v2);\n  ButtonSprite::setString(*((_DWORD *)this + 155), CString);\n  memset(v7, 0, sizeof(v7));\n  v4 = strlen(CString);\n  v5 = *((_DWORD *)this + 150);\n  std::string::__init(v7, CString, v4);\n  CCTextInputNode::setString(v5, (int)v7);\n  return std::string::~string((int)v7);\n}", "assembly": "; \n; CustomizeObjectLayer::updateCustomColorLabels from 0x57ea34 to 0x57eaa6 (114 bytes)\n; \n; 5 xrefs:\n; > CustomizeObjectLayer::colorSetupClosed @ 0x57ead2\n; > CustomizeObjectLayer::onNextColorChannel @ 0x57eb36\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x57eb96\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee70\n; > CustomizeObjectLayer::init @ 0x580428\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:52:51 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x57ea34\nMOV             R5, R0                                                 ; +0x2, 0x57ea36\nLDR             R4, =(__stack_chk_guard_ptr - 0x57EA42)                ; +0x4, 0x57ea38\nSUB             SP, SP, #0x14                                          ; +0x6, 0x57ea3a\nLDR             R0, =(aI - 0x57EA4A); \"%i\"                             ; +0x8, 0x57ea3c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x57ea3e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x57ea40\nLDR.W           R1, [R5,#0x234]; char *                                ; +0xe, 0x57ea42\nADD             R0, PC; \"%i\"                                           ; +0x12, 0x57ea46\nLDR             R3, [R4]                                               ; +0x14, 0x57ea48\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x16, 0x57ea4a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x18, 0x57ea4c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1c, 0x57ea50\nMOV             R6, R0                                                 ; +0x20, 0x57ea54\nLDR.W           R0, [R5,#0x26C]; this                                  ; +0x22, 0x57ea56\nMOV             R1, R6; char *                                         ; +0x26, 0x57ea5a\nBL              _ZN12ButtonSprite9setStringEPKc; ButtonSprite::setString(char const*) ; +0x28, 0x57ea5c\nMOV             R0, R6; char *                                         ; +0x2c, 0x57ea60\nMOVS            R3, #0                                                 ; +0x2e, 0x57ea62\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x30, 0x57ea64\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x32, 0x57ea66\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x34, 0x57ea68\nBLX             strlen                                                 ; +0x36, 0x57ea6a\nLDR.W           R7, [R5,#0x258]                                        ; +0x3a, 0x57ea6e\nMOV             R1, R6                                                 ; +0x3e, 0x57ea72\nMOV             R5, SP                                                 ; +0x40, 0x57ea74\nMOV             R2, R0                                                 ; +0x42, 0x57ea76\nMOV             R0, SP                                                 ; +0x44, 0x57ea78\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x46, 0x57ea7a\nMOV             R0, R7                                                 ; +0x4a, 0x57ea7e\nMOV             R1, SP                                                 ; +0x4c, 0x57ea80\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x4e, 0x57ea82\nMOV             R0, SP                                                 ; +0x52, 0x57ea86\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x54, 0x57ea88\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x58, 0x57ea8c\nLDR             R3, [R4]                                               ; +0x5a, 0x57ea8e\nCMP             R2, R3                                                 ; +0x5c, 0x57ea90\nBEQ             loc_57EAA2                                             ; +0x5e, 0x57ea92\nBLX             __stack_chk_fail                                       ; +0x60, 0x57ea94\nMOV             R0, R5                                                 ; +0x64, 0x57ea98\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x66, 0x57ea9a\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x57ea9e\nADD             SP, SP, #0x14                                          ; +0x6e, 0x57eaa2\nPOP             {R4-R7,PC}                                             ; +0x70, 0x57eaa4", "xrefs": ["CustomizeObjectLayer::colorSetupClosed @ 0x57ead2", "CustomizeObjectLayer::onNextColorChannel @ 0x57eb36", "CustomizeObjectLayer::updateCurrentSelection @ 0x57eb96", "CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee70", "CustomizeObjectLayer::init @ 0x580428"], "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"}