{"type": "func", "start": 8654116, "end": 8654284, "name": "CustomizeObjectLayer::updateChannelLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateChannelLabel from 0x840d24 to 0x840dcc (168 bytes)\n// \n// 8 xrefs:\n// > CustomizeObjectLayer::textChanged @ 0x8414d0\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x841660\n// > CustomizeObjectLayer::onSelectColor @ 0x84181c\n// > CustomizeObjectLayer::colorSetupClosed @ 0x841890\n// > CustomizeObjectLayer::onNextColorChannel @ 0x84192c\n// > CustomizeObjectLayer::onPaste @ 0x8419d8\n// > CustomizeObjectLayer::onSelectMode @ 0x841ccc\n// > <???> @ 0x6b9a0\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\n// local variable allocation has failed, the output may be wrong!\nvoid CustomizeObjectLayer::updateChannelLabel(CustomizeObjectLayer *a1, int a2)\n{\n  cocos2d::CCString *v3; // x0\n  const unsigned __int8 *CString; // x0\n  const unsigned __int8 *v5; // x0\n\n  if ( a2 > 999 )\n  {\n    v5 = (const unsigned __int8 *)GJSpecialColorSelect::textForColorIdx(a2);\n    a1->m_selectedColorLabel->setString(a1->m_selectedColorLabel, v5);\n  }\n  else if ( a2 <= 0 )\n  {\n    a1->m_selectedColorLabel->setString(a1->m_selectedColorLabel, (const unsigned __int8 *)\" \");\n  }\n  else\n  {\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", *(const char **)&a2);\n    CString = (const unsigned __int8 *)cocos2d::CCString::getCString(v3);\n    a1->m_selectedColorLabel->setString(a1->m_selectedColorLabel, CString);\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::updateChannelLabel from 0x840d24 to 0x840dcc (168 bytes)\n; \n; 8 xrefs:\n; > CustomizeObjectLayer::textChanged @ 0x8414d0\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x841660\n; > CustomizeObjectLayer::onSelectColor @ 0x84181c\n; > CustomizeObjectLayer::colorSetupClosed @ 0x841890\n; > CustomizeObjectLayer::onNextColorChannel @ 0x84192c\n; > CustomizeObjectLayer::onPaste @ 0x8419d8\n; > CustomizeObjectLayer::onSelectMode @ 0x841ccc\n; > <???> @ 0x6b9a0\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x840d24\nCMP             W1, #0x3E7                                             ; +0x4, 0x840d28\nMOV             X29, SP                                                ; +0x8, 0x840d2c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x840d30\nMOV             X19, X0                                                ; +0x10, 0x840d34\nB.GT            loc_840DA0                                             ; +0x14, 0x840d38\nCMP             W1, WZR                                                ; +0x18, 0x840d3c\nB.LE            loc_840D78                                             ; +0x1c, 0x840d40\nADRL            X0, (aSongidI+8); this                                 ; +0x20, 0x840d44\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x28, 0x840d4c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2c, 0x840d50\nMOV             X1, X0                                                 ; +0x30, 0x840d54\nLDR             X2, [X19,#0x310]                                       ; +0x34, 0x840d58\nMOV             X0, X2                                                 ; +0x38, 0x840d5c\nLDR             X2, [X2]                                               ; +0x3c, 0x840d60\nLDR             X2, [X2,#0x390]                                        ; +0x40, 0x840d64\nBLR             X2                                                     ; +0x44, 0x840d68\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x48, 0x840d6c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0x840d70\nRET                                                                    ; +0x50, 0x840d74\nLDR             X2, [X19,#0x310]                                       ; +0x54, 0x840d78\nADRL            X1, (aWarning_0+8); \" \"                                ; +0x58, 0x840d7c\nMOV             X0, X2                                                 ; +0x60, 0x840d84\nLDR             X2, [X2]                                               ; +0x64, 0x840d88\nLDR             X2, [X2,#0x390]                                        ; +0x68, 0x840d8c\nBLR             X2                                                     ; +0x6c, 0x840d90\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x70, 0x840d94\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0x840d98\nRET                                                                    ; +0x78, 0x840d9c\nMOV             W0, W1; this                                           ; +0x7c, 0x840da0\nBL              _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0x80, 0x840da4\nMOV             X1, X0                                                 ; +0x84, 0x840da8\nLDR             X2, [X19,#0x310]                                       ; +0x88, 0x840dac\nMOV             X0, X2                                                 ; +0x8c, 0x840db0\nLDR             X2, [X2]                                               ; +0x90, 0x840db4\nLDR             X2, [X2,#0x390]                                        ; +0x94, 0x840db8\nBLR             X2                                                     ; +0x98, 0x840dbc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x9c, 0x840dc0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xa0, 0x840dc4\nRET                                                                    ; +0xa4, 0x840dc8", "xrefs": ["CustomizeObjectLayer::textChanged @ 0x8414d0", "CustomizeObjectLayer::onUpdateCustomColor @ 0x841660", "CustomizeObjectLayer::onSelectColor @ 0x84181c", "CustomizeObjectLayer::colorSetupClosed @ 0x841890", "CustomizeObjectLayer::onNextColorChannel @ 0x84192c", "CustomizeObjectLayer::onPaste @ 0x8419d8", "CustomizeObjectLayer::onSelectMode @ 0x841ccc", "<???> @ 0x6b9a0"], "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"}