{"type": "func", "start": 4295330472, "end": 4295330584, "name": "CustomizeObjectLayer::updateChannelLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateChannelLabel from 0x100058aa8 to 0x100058b18 (112 bytes)\n// \n// 7 xrefs:\n// > CustomizeObjectLayer::onSelectMode @ 0x100057ebc\n// > CustomizeObjectLayer::onSelectColor @ 0x1000582f4\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x10005837c\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1000587d0\n// > CustomizeObjectLayer::onPaste @ 0x100058844\n// > CustomizeObjectLayer::colorSetupClosed @ 0x100058d10\n// > CustomizeObjectLayer::textChanged @ 0x100059458\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:46 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::updateChannelLabel(__int64 a1, __int64 a2)\n{\n  __int64 CString; // x0\n  __int64 v4; // x0\n  const char *v5; // x1\n\n  if ( (int)a2 < 1000 )\n  {\n    if ( (int)a2 < 1 )\n    {\n      v5 = \" \";\n      return (*(__int64 (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 808) + 928LL))(\n               *(_QWORD *)(a1 + 808),\n               v5);\n    }\n    v4 = sub_1003065B0(\"%i\", a2);\n    CString = cocos2d::CCString::getCString(v4);\n  }\n  else\n  {\n    CString = GJSpecialColorSelect::textForColorIdx(a2);\n  }\n  v5 = (const char *)CString;\n  return (*(__int64 (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 808) + 928LL))(*(_QWORD *)(a1 + 808), v5);\n}", "assembly": "; \n; CustomizeObjectLayer::updateChannelLabel from 0x100058aa8 to 0x100058b18 (112 bytes)\n; \n; 7 xrefs:\n; > CustomizeObjectLayer::onSelectMode @ 0x100057ebc\n; > CustomizeObjectLayer::onSelectColor @ 0x1000582f4\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x10005837c\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1000587d0\n; > CustomizeObjectLayer::onPaste @ 0x100058844\n; > CustomizeObjectLayer::colorSetupClosed @ 0x100058d10\n; > CustomizeObjectLayer::textChanged @ 0x100059458\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:57:46 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100058aa8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100058aac\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100058ab0\nADD             X29, SP, #0x20                                         ; +0xc, 0x100058ab4\nMOV             X19, X0                                                ; +0x10, 0x100058ab8\nCMP             W1, #0x3E8                                             ; +0x14, 0x100058abc\nB.LT            loc_100058AD0                                          ; +0x18, 0x100058ac0\nMOV             X0, X1                                                 ; +0x1c, 0x100058ac4\nBL              GJSpecialColorSelect__textForColorIdx                  ; +0x20, 0x100058ac8\nB               loc_100058AEC                                          ; +0x24, 0x100058acc\nCMP             W1, #1                                                 ; +0x28, 0x100058ad0\nB.LT            loc_100058B0C                                          ; +0x2c, 0x100058ad4\nSTR             X1, [SP,#0x20+var_20]                                  ; +0x30, 0x100058ad8\nADRL            X0, aI; \"%i\"                                           ; +0x34, 0x100058adc\nBL              sub_1003065B0                                          ; +0x3c, 0x100058ae4\nBL              cocos2d__CCString__getCString                          ; +0x40, 0x100058ae8\nMOV             X1, X0                                                 ; +0x44, 0x100058aec\nLDR             X0, [X19,#0x328]                                       ; +0x48, 0x100058af0\nLDR             X8, [X0]                                               ; +0x4c, 0x100058af4\nLDR             X2, [X8,#0x3A0]                                        ; +0x50, 0x100058af8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x100058afc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x100058b00\nADD             SP, SP, #0x30 ; '0'                                    ; +0x5c, 0x100058b04\nBR              X2                                                     ; +0x60, 0x100058b08\nADRL            X1, asc_1007E88A7; \" \"                                 ; +0x64, 0x100058b0c\nB               loc_100058AF0                                          ; +0x6c, 0x100058b14", "xrefs": ["CustomizeObjectLayer::onSelectMode @ 0x100057ebc", "CustomizeObjectLayer::onSelectColor @ 0x1000582f4", "CustomizeObjectLayer::onUpdateCustomColor @ 0x10005837c", "CustomizeObjectLayer::onNextColorChannel @ 0x1000587d0", "CustomizeObjectLayer::onPaste @ 0x100058844", "CustomizeObjectLayer::colorSetupClosed @ 0x100058d10", "CustomizeObjectLayer::textChanged @ 0x100059458"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}