{"type": "func", "start": 4295295628, "end": 4295295740, "name": "CustomizeObjectLayer::updateChannelLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateChannelLabel from 0x10005028c to 0x1000502fc (112 bytes)\n// \n// 7 xrefs:\n// > CustomizeObjectLayer::onSelectMode @ 0x10004f6e8\n// > CustomizeObjectLayer::onSelectColor @ 0x10004fad8\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x10004fb60\n// > CustomizeObjectLayer::onNextColorChannel @ 0x10004ffb4\n// > CustomizeObjectLayer::onPaste @ 0x100050028\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1000504f4\n// > CustomizeObjectLayer::textChanged @ 0x100050c3c\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 __fastcall CustomizeObjectLayer::updateChannelLabel(CustomizeObjectLayer *a1, int a2)\n{\n  const char *CString; // x0\n  cocos2d::CCString *v4; // x0\n  const char *v5; // x1\n\n  if ( a2 < 1000 )\n  {\n    if ( a2 < 1 )\n    {\n      v5 = \" \";\n      goto LABEL_6;\n    }\n    v4 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n    CString = cocos2d::CCString::getCString(v4);\n  }\n  else\n  {\n    CString = GJSpecialColorSelect::textForColorIdx(a2);\n  }\n  v5 = CString;\nLABEL_6:\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_selectedColorLabel->setString)(\n    a1->m_selectedColorLabel,\n    v5);\n}", "assembly": "; \n; CustomizeObjectLayer::updateChannelLabel from 0x10005028c to 0x1000502fc (112 bytes)\n; \n; 7 xrefs:\n; > CustomizeObjectLayer::onSelectMode @ 0x10004f6e8\n; > CustomizeObjectLayer::onSelectColor @ 0x10004fad8\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x10004fb60\n; > CustomizeObjectLayer::onNextColorChannel @ 0x10004ffb4\n; > CustomizeObjectLayer::onPaste @ 0x100050028\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1000504f4\n; > CustomizeObjectLayer::textChanged @ 0x100050c3c\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10005028c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100050290\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100050294\nADD             X29, SP, #0x20                                         ; +0xc, 0x100050298\nMOV             X19, X0                                                ; +0x10, 0x10005029c\nCMP             W1, #0x3E8                                             ; +0x14, 0x1000502a0\nB.LT            loc_1000502B4                                          ; +0x18, 0x1000502a4\nMOV             X0, X1                                                 ; +0x1c, 0x1000502a8\nBL              GJSpecialColorSelect__textForColorIdx                  ; +0x20, 0x1000502ac\nB               loc_1000502D0                                          ; +0x24, 0x1000502b0\nCMP             W1, #1                                                 ; +0x28, 0x1000502b4\nB.LT            loc_1000502F0                                          ; +0x2c, 0x1000502b8\nSTR             X1, [SP,#0x20+var_20]                                  ; +0x30, 0x1000502bc\nADRL            X0, aI; \"%i\"                                           ; +0x34, 0x1000502c0\nBL              sub_100268F4C                                          ; +0x3c, 0x1000502c8\nBL              cocos2d__CCString__getCString                          ; +0x40, 0x1000502cc\nMOV             X1, X0                                                 ; +0x44, 0x1000502d0\nLDR             X0, [X19,#0x310]                                       ; +0x48, 0x1000502d4\nLDR             X8, [X0]                                               ; +0x4c, 0x1000502d8\nLDR             X2, [X8,#0x390]                                        ; +0x50, 0x1000502dc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1000502e0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1000502e4\nADD             SP, SP, #0x30 ; '0'                                    ; +0x5c, 0x1000502e8\nBR              X2                                                     ; +0x60, 0x1000502ec\nADRL            X1, asc_1006B11F7; \" \"                                 ; +0x64, 0x1000502f0\nB               loc_1000502D4                                          ; +0x6c, 0x1000502f8", "xrefs": ["CustomizeObjectLayer::onSelectMode @ 0x10004f6e8", "CustomizeObjectLayer::onSelectColor @ 0x10004fad8", "CustomizeObjectLayer::onUpdateCustomColor @ 0x10004fb60", "CustomizeObjectLayer::onNextColorChannel @ 0x10004ffb4", "CustomizeObjectLayer::onPaste @ 0x100050028", "CustomizeObjectLayer::colorSetupClosed @ 0x1000504f4", "CustomizeObjectLayer::textChanged @ 0x100050c3c"], "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"}