{"type": "func", "start": 4297033184, "end": 4297033273, "name": "CustomizeObjectLayer::updateChannelLabel", "pseudocode": "// \n// CustomizeObjectLayer::updateChannelLabel from 0x1001f85e0 to 0x1001f8639 (89 bytes)\n// \n// 0 xrefs:\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  char v2; // al\n  const char *CString; // rax\n  cocos2d::CCString *v4; // rax\n  const std::string::value_type *v5; // rsi\n\n  if ( a2 < 1000 )\n  {\n    if ( a2 <= 0 )\n    {\n      v5 = \" \";\n      goto LABEL_6;\n    }\n    v4 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v2);\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 std::string::value_type *))a1->m_selectedColorLabel->setString)(\n    a1->m_selectedColorLabel,\n    v5);\n}", "assembly": "; \n; CustomizeObjectLayer::updateChannelLabel from 0x1001f85e0 to 0x1001f8639 (89 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x1001f85e0\nmov     rbp, rsp                                                       ; +0x1, 0x1001f85e1\npush    rbx                                                            ; +0x4, 0x1001f85e4\npush    rax; char                                                      ; +0x5, 0x1001f85e5\nmov     rbx, rdi                                                       ; +0x6, 0x1001f85e6\ncmp     esi, 3E8h                                                      ; +0x9, 0x1001f85e9\njl      short loc_1001F85FA                                            ; +0xf, 0x1001f85ef\nmov     edi, esi                                                       ; +0x11, 0x1001f85f1\ncall    GJSpecialColorSelect__textForColorIdx                          ; +0x13, 0x1001f85f3\njmp     short loc_1001F8614                                            ; +0x18, 0x1001f85f8\ntest    esi, esi                                                       ; +0x1a, 0x1001f85fa\njle     short loc_1001F8630                                            ; +0x1c, 0x1001f85fc\nlea     rdi, aI; \"%i\"                                                  ; +0x1e, 0x1001f85fe\nxor     eax, eax                                                       ; +0x25, 0x1001f8605\ncall    sub_1007AB580                                                  ; +0x27, 0x1001f8607\nmov     rdi, rax                                                       ; +0x2c, 0x1001f860c\ncall    cocos2d__CCString__getCString                                  ; +0x2f, 0x1001f860f\nmov     rsi, rax                                                       ; +0x34, 0x1001f8614\nmov     rdi, [rbx+310h]                                                ; +0x37, 0x1001f8617\nmov     rax, [rdi]                                                     ; +0x3e, 0x1001f861e\nmov     rax, [rax+390h]                                                ; +0x41, 0x1001f8621\nadd     rsp, 8                                                         ; +0x48, 0x1001f8628\npop     rbx                                                            ; +0x4c, 0x1001f862c\npop     rbp                                                            ; +0x4d, 0x1001f862d\njmp     rax                                                            ; +0x4e, 0x1001f862e\nlea     rsi, asc_100823F54; \" \"                                        ; +0x50, 0x1001f8630\njmp     short loc_1001F8617                                            ; +0x57, 0x1001f8637", "xrefs": [], "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"}