{"type": "func", "start": 4594784, "end": 4594884, "name": "CustomizeObjectLayer::updateCustomColorLabels", "pseudocode": "// \n// CustomizeObjectLayer::updateCustomColorLabels from 0x461c60 to 0x461cc4 (100 bytes)\n// \n// 5 xrefs:\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x461edc\n// > CustomizeObjectLayer::colorSetupClosed @ 0x46202e\n// > CustomizeObjectLayer::onNextColorChannel @ 0x462092\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x4620f2\n// > CustomizeObjectLayer::init @ 0x46317c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CustomizeObjectLayer::updateCustomColorLabels(CustomizeObjectLayer *a1)\n{\n  cocos2d::CCString *v2; // r0\n  char *CString; // r6\n  CCTextInputNode *m_customColorInput; // r7\n  char *v5; // r2\n  char v6[4]; // [sp+8h] [bp-Ch] BYREF\n\n  v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)a1->m_customColorChannel);\n  CString = (char *)cocos2d::CCString::getCString(v2);\n  ButtonSprite::setString(a1->m_customColorButtonSprite, CString);\n  m_customColorInput = a1->m_customColorInput;\n  sub_776584((int)v6, CString);\n  CCTextInputNode::setString((int)m_customColorInput, v6, v5);\n  sub_774008(v6);\n}", "assembly": "; \n; CustomizeObjectLayer::updateCustomColorLabels from 0x461c60 to 0x461cc4 (100 bytes)\n; \n; 5 xrefs:\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x461edc\n; > CustomizeObjectLayer::colorSetupClosed @ 0x46202e\n; > CustomizeObjectLayer::onNextColorChannel @ 0x462092\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x4620f2\n; > CustomizeObjectLayer::init @ 0x46317c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x461c60\nMOV             R5, R0                                                 ; +0x2, 0x461c62\nLDR             R4, =(__stack_chk_guard_ptr - 0x461C6E)                ; +0x4, 0x461c64\nSUB             SP, SP, #0x14                                          ; +0x6, 0x461c66\nLDR             R0, =(aI - 0x461C76); \"%i\"                             ; +0x8, 0x461c68\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x461c6a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x461c6c\nLDR.W           R1, [R5,#0x220]; char *                                ; +0xe, 0x461c6e\nADD             R0, PC; \"%i\"                                           ; +0x12, 0x461c72\nLDR             R3, [R4]                                               ; +0x14, 0x461c74\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x16, 0x461c76\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x18, 0x461c78\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1c, 0x461c7c\nMOV             R6, R0                                                 ; +0x20, 0x461c80\nLDR.W           R0, [R5,#0x258]; this                                  ; +0x22, 0x461c82\nMOV             R1, R6; char *                                         ; +0x26, 0x461c86\nBL              _ZN12ButtonSprite9setStringEPKc; ButtonSprite::setString(char const*) ; +0x28, 0x461c88\nLDR.W           R7, [R5,#0x244]                                        ; +0x2c, 0x461c8c\nADD             R5, SP, #0x14+var_C                                    ; +0x30, 0x461c90\nMOV             R1, R6; char *                                         ; +0x32, 0x461c92\nADD             R2, SP, #0x14+var_10                                   ; +0x34, 0x461c94\nMOV             R0, R5; int                                            ; +0x36, 0x461c96\nBL              sub_776584                                             ; +0x38, 0x461c98\nMOV             R0, R7                                                 ; +0x3c, 0x461c9c\nMOV             R1, R5                                                 ; +0x3e, 0x461c9e\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x40, 0x461ca0\nMOV             R0, R5                                                 ; +0x44, 0x461ca4\nBL              sub_774008                                             ; +0x46, 0x461ca6\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x4a, 0x461caa\nLDR             R3, [R4]                                               ; +0x4c, 0x461cac\nCMP             R2, R3                                                 ; +0x4e, 0x461cae\nBEQ             loc_461CC0                                             ; +0x50, 0x461cb0\nBLX             __stack_chk_fail                                       ; +0x52, 0x461cb2\nMOV             R0, R5                                                 ; +0x56, 0x461cb6\nBL              sub_774008                                             ; +0x58, 0x461cb8\nBL              __cxa_end_cleanup                                      ; +0x5c, 0x461cbc\nADD             SP, SP, #0x14                                          ; +0x60, 0x461cc0\nPOP             {R4-R7,PC}                                             ; +0x62, 0x461cc2", "xrefs": ["CustomizeObjectLayer::onUpdateCustomColor @ 0x461edc", "CustomizeObjectLayer::colorSetupClosed @ 0x46202e", "CustomizeObjectLayer::onNextColorChannel @ 0x462092", "CustomizeObjectLayer::updateCurrentSelection @ 0x4620f2", "CustomizeObjectLayer::init @ 0x46317c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}