{"type": "func", "start": 4594320, "end": 4594378, "name": "CustomizeObjectLayer::updateChannelLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateChannelLabel from 0x461a90 to 0x461aca (58 bytes)\n// \n// 7 xrefs:\n// > CustomizeObjectLayer::textChanged @ 0x461e34\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x461f00\n// > CustomizeObjectLayer::onSelectColor @ 0x462008\n// > CustomizeObjectLayer::colorSetupClosed @ 0x46205c\n// > CustomizeObjectLayer::onNextColorChannel @ 0x4620ca\n// > CustomizeObjectLayer::onPaste @ 0x462142\n// > CustomizeObjectLayer::onSelectMode @ 0x46236a\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::updateChannelLabel(CustomizeObjectLayer *a1, int a2)\n{\n  const char *CString; // r0\n  cocos2d::CCString *v4; // r0\n  const unsigned __int8 *v5; // r1\n\n  if ( a2 < 1000 )\n  {\n    if ( a2 <= 0 )\n    {\n      v5 = \" \";\n      goto LABEL_7;\n    }\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a2);\n    CString = cocos2d::CCString::getCString(v4);\n  }\n  else\n  {\n    CString = GJSpecialColorSelect::textForColorIdx(a2);\n  }\n  v5 = (const unsigned __int8 *)CString;\nLABEL_7:\n  a1->m_selectedColorLabel->setString(a1->m_selectedColorLabel, v5);\n}", "assembly": "; \n; CustomizeObjectLayer::updateChannelLabel from 0x461a90 to 0x461aca (58 bytes)\n; \n; 7 xrefs:\n; > CustomizeObjectLayer::textChanged @ 0x461e34\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x461f00\n; > CustomizeObjectLayer::onSelectColor @ 0x462008\n; > CustomizeObjectLayer::colorSetupClosed @ 0x46205c\n; > CustomizeObjectLayer::onNextColorChannel @ 0x4620ca\n; > CustomizeObjectLayer::onPaste @ 0x462142\n; > CustomizeObjectLayer::onSelectMode @ 0x46236a\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\nCMP.W           R1, #0x3E8                                             ; +0x0, 0x461a90\nPUSH            {R4,LR}                                                ; +0x4, 0x461a94\nMOV             R4, R0                                                 ; +0x6, 0x461a96\nMOV             R0, R1; this                                           ; +0x8, 0x461a98\nBLT             loc_461AA2                                             ; +0xa, 0x461a9a\nBL              _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0xc, 0x461a9c\nB               loc_461AB2                                             ; +0x10, 0x461aa0\nCMP             R1, #0                                                 ; +0x12, 0x461aa2\nBLE             loc_461AB6                                             ; +0x14, 0x461aa4\nLDR             R0, =(aI - 0x461AAC); \"%i\"                             ; +0x16, 0x461aa6\nADD             R0, PC; \"%i\"                                           ; +0x18, 0x461aa8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1a, 0x461aaa\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1e, 0x461aae\nMOV             R1, R0                                                 ; +0x22, 0x461ab2\nB               loc_461ABA                                             ; +0x24, 0x461ab4\nLDR             R1, =(asc_943A02 - 0x461ABC); \" \"                      ; +0x26, 0x461ab6\nADD             R1, PC; \" \"                                            ; +0x28, 0x461ab8\nLDR.W           R0, [R4,#0x240]                                        ; +0x2a, 0x461aba\nPOP.W           {R4,LR}                                                ; +0x2e, 0x461abe\nLDR             R3, [R0]                                               ; +0x32, 0x461ac2\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x34, 0x461ac4\nBX              R3                                                     ; +0x38, 0x461ac8", "xrefs": ["CustomizeObjectLayer::textChanged @ 0x461e34", "CustomizeObjectLayer::onUpdateCustomColor @ 0x461f00", "CustomizeObjectLayer::onSelectColor @ 0x462008", "CustomizeObjectLayer::colorSetupClosed @ 0x46205c", "CustomizeObjectLayer::onNextColorChannel @ 0x4620ca", "CustomizeObjectLayer::onPaste @ 0x462142", "CustomizeObjectLayer::onSelectMode @ 0x46236a"], "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"}