{"type": "func", "start": 5760456, "end": 5760514, "name": "CustomizeObjectLayer::updateChannelLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateChannelLabel from 0x57e5c8 to 0x57e602 (58 bytes)\n// \n// 7 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x57e994\n// > CustomizeObjectLayer::colorSetupClosed @ 0x57eb00\n// > CustomizeObjectLayer::onNextColorChannel @ 0x57eb6e\n// > CustomizeObjectLayer::onPaste @ 0x57ebe6\n// > CustomizeObjectLayer::onSelectMode @ 0x57ee0e\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee94\n// > CustomizeObjectLayer::textChanged @ 0x57f31e\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::updateChannelLabel(CustomizeObjectLayer *this, GJSpecialColorSelect *a2)\n{\n  const char *CString; // r0\n  cocos2d::CCString *v4; // r0\n  const char *v5; // r1\n\n  if ( (int)a2 < 1000 )\n  {\n    if ( (int)a2 <= 0 )\n    {\n      v5 = \" \";\n      return (*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 149) + 464))(\n               *((_DWORD *)this + 149),\n               v5);\n    }\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a2);\n    CString = (const char *)cocos2d::CCString::getCString(v4);\n  }\n  else\n  {\n    CString = (const char *)GJSpecialColorSelect::textForColorIdx(a2, (int)a2);\n  }\n  v5 = CString;\n  return (*(int (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 149) + 464))(*((_DWORD *)this + 149), v5);\n}", "assembly": "; \n; CustomizeObjectLayer::updateChannelLabel from 0x57e5c8 to 0x57e602 (58 bytes)\n; \n; 7 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x57e994\n; > CustomizeObjectLayer::colorSetupClosed @ 0x57eb00\n; > CustomizeObjectLayer::onNextColorChannel @ 0x57eb6e\n; > CustomizeObjectLayer::onPaste @ 0x57ebe6\n; > CustomizeObjectLayer::onSelectMode @ 0x57ee0e\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee94\n; > CustomizeObjectLayer::textChanged @ 0x57f31e\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; \nCMP.W           R1, #0x3E8                                             ; +0x0, 0x57e5c8\nPUSH            {R4,LR}                                                ; +0x4, 0x57e5cc\nMOV             R4, R0                                                 ; +0x6, 0x57e5ce\nMOV             R0, R1; this                                           ; +0x8, 0x57e5d0\nBLT             loc_57E5DA                                             ; +0xa, 0x57e5d2\nBL              _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0xc, 0x57e5d4\nB               loc_57E5EA                                             ; +0x10, 0x57e5d8\nCMP             R1, #0                                                 ; +0x12, 0x57e5da\nBLE             loc_57E5EE                                             ; +0x14, 0x57e5dc\nLDR             R0, =(aI - 0x57E5E4); \"%i\"                             ; +0x16, 0x57e5de\nADD             R0, PC; \"%i\"                                           ; +0x18, 0x57e5e0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1a, 0x57e5e2\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1e, 0x57e5e6\nMOV             R1, R0                                                 ; +0x22, 0x57e5ea\nB               loc_57E5F2                                             ; +0x24, 0x57e5ec\nLDR             R1, =(asc_B7533B - 0x57E5F4); \" \"                      ; +0x26, 0x57e5ee\nADD             R1, PC; \" \"                                            ; +0x28, 0x57e5f0\nLDR.W           R0, [R4,#0x254]                                        ; +0x2a, 0x57e5f2\nPOP.W           {R4,LR}                                                ; +0x2e, 0x57e5f6\nLDR             R3, [R0]                                               ; +0x32, 0x57e5fa\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x34, 0x57e5fc\nBX              R3                                                     ; +0x38, 0x57e600", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x57e994", "CustomizeObjectLayer::colorSetupClosed @ 0x57eb00", "CustomizeObjectLayer::onNextColorChannel @ 0x57eb6e", "CustomizeObjectLayer::onPaste @ 0x57ebe6", "CustomizeObjectLayer::onSelectMode @ 0x57ee0e", "CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee94", "CustomizeObjectLayer::textChanged @ 0x57f31e"], "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"}