{"type": "func", "start": 4296908960, "end": 4296909195, "name": "CustomizeObjectLayer::updateCustomColorLabels", "pseudocode": "// \n// CustomizeObjectLayer::updateCustomColorLabels from 0x1001da0a0 to 0x1001da18b (235 bytes)\n// \n// 5 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001d8715\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x1001da01e\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1001da664\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1001da996\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1001dae18\n// \n// This function is hookable on this platform (idp: pc, 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 12:26:25 +0000\n// \n\nvoid __fastcall CustomizeObjectLayer::updateCustomColorLabels(__int64 a1)\n{\n  __int64 v1; // rax\n  const std::string::value_type *CString; // r14\n  _QWORD *v3; // rbx\n  size_t v4; // rax\n  size_t v5; // r15\n  char *v6; // r12\n  size_t v7; // r13\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  v1 = sub_10088E820(\"%i\", __dst[0]);\n  CString = (const std::string::value_type *)cocos2d::CCString::getCString(v1);\n  ButtonSprite::setString(*(_QWORD *)(a1 + 856), CString);\n  v3 = *(_QWORD **)(a1 + 816);\n  v4 = strlen(CString);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v7 = (v4 | 7) + 1;\n    v6 = (char *)operator new(v7);\n    __p = v6;\n    __dst[0] = v7 + 1;\n    __dst[1] = v5;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v4;\n  v6 = (char *)__dst + 1;\n  if ( v4 )\nLABEL_8:\n    memmove(v6, CString, v5);\n  v6[v5] = 0;\n  CCTextInputNode::setString(v3, (__int64)__dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; CustomizeObjectLayer::updateCustomColorLabels from 0x1001da0a0 to 0x1001da18b (235 bytes)\n; \n; 5 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001d8715\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x1001da01e\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1001da664\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1001da996\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1001dae18\n; \n; This function is hookable on this platform (idp: pc, 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 12:26:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001da0a0\nmov     rbp, rsp                                                       ; +0x1, 0x1001da0a1\npush    r15                                                            ; +0x4, 0x1001da0a4\npush    r14                                                            ; +0x6, 0x1001da0a6\npush    r13                                                            ; +0x8, 0x1001da0a8\npush    r12                                                            ; +0xa, 0x1001da0aa\npush    rbx                                                            ; +0xc, 0x1001da0ac\nsub     rsp, 18h                                                       ; +0xd, 0x1001da0ad\nmov     rbx, rdi                                                       ; +0x11, 0x1001da0b1\nmov     esi, [rdi+2ECh]                                                ; +0x14, 0x1001da0b4\nlea     rdi, aI_14; \"%i\"                                               ; +0x1a, 0x1001da0ba\nxor     eax, eax                                                       ; +0x21, 0x1001da0c1\ncall    sub_10088E820                                                  ; +0x23, 0x1001da0c3\nmov     rdi, rax                                                       ; +0x28, 0x1001da0c8\ncall    cocos2d__CCString__getCString                                  ; +0x2b, 0x1001da0cb\nmov     r14, rax                                                       ; +0x30, 0x1001da0d0\nmov     rdi, [rbx+358h]                                                ; +0x33, 0x1001da0d3\nmov     rsi, rax                                                       ; +0x3a, 0x1001da0da\ncall    ButtonSprite__setString                                        ; +0x3d, 0x1001da0dd\nmov     rbx, [rbx+330h]                                                ; +0x42, 0x1001da0e2\nmov     rdi, r14; __s                                                  ; +0x49, 0x1001da0e9\ncall    _strlen                                                        ; +0x4c, 0x1001da0ec\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x51, 0x1001da0f1\njnb     loc_1001DA186                                                  ; +0x55, 0x1001da0f5\nmov     r15, rax                                                       ; +0x5b, 0x1001da0fb\ncmp     rax, 17h                                                       ; +0x5e, 0x1001da0fe\njnb     short loc_1001DA116                                            ; +0x62, 0x1001da102\nlea     eax, [r15+r15]                                                 ; +0x64, 0x1001da104\nmov     byte ptr [rbp+__dst], al                                       ; +0x68, 0x1001da108\nlea     r12, [rbp+__dst+1]                                             ; +0x6b, 0x1001da10b\ntest    r15, r15                                                       ; +0x6f, 0x1001da10f\njnz     short loc_1001DA149                                            ; +0x72, 0x1001da112\njmp     short loc_1001DA157                                            ; +0x74, 0x1001da114\nmov     rax, r15                                                       ; +0x76, 0x1001da116\nor      rax, 7                                                         ; +0x79, 0x1001da119\nlea     rcx, [rax+1]                                                   ; +0x7d, 0x1001da11d\ncmp     rax, 17h                                                       ; +0x81, 0x1001da121\nmov     r13d, 1Ah                                                      ; +0x85, 0x1001da125\ncmovnz  r13, rcx                                                       ; +0x8b, 0x1001da12b\nmov     rdi, r13; __sz                                                 ; +0x8f, 0x1001da12f\ncall    __Znwm; operator new(ulong)                                    ; +0x92, 0x1001da132\nmov     r12, rax                                                       ; +0x97, 0x1001da137\nmov     [rbp+__p], rax                                                 ; +0x9a, 0x1001da13a\ninc     r13                                                            ; +0x9e, 0x1001da13e\nmov     [rbp+__dst], r13                                               ; +0xa1, 0x1001da141\nmov     [rbp+var_38], r15                                              ; +0xa5, 0x1001da145\nmov     rdi, r12; __dst                                                ; +0xa9, 0x1001da149\nmov     rsi, r14; __src                                                ; +0xac, 0x1001da14c\nmov     rdx, r15; __len                                                ; +0xaf, 0x1001da14f\ncall    _memmove                                                       ; +0xb2, 0x1001da152\nmov     byte ptr [r12+r15], 0                                          ; +0xb7, 0x1001da157\nlea     rsi, [rbp+__dst]                                               ; +0xbc, 0x1001da15c\nmov     rdi, rbx                                                       ; +0xc0, 0x1001da160\ncall    CCTextInputNode__setString                                     ; +0xc3, 0x1001da163\ntest    byte ptr [rbp+__dst], 1                                        ; +0xc8, 0x1001da168\njz      short loc_1001DA177                                            ; +0xcc, 0x1001da16c\nmov     rdi, [rbp+__p]; __p                                            ; +0xce, 0x1001da16e\ncall    __ZdlPv; operator delete(void *)                               ; +0xd2, 0x1001da172\nadd     rsp, 18h                                                       ; +0xd7, 0x1001da177\npop     rbx                                                            ; +0xdb, 0x1001da17b\npop     r12                                                            ; +0xdc, 0x1001da17c\npop     r13                                                            ; +0xde, 0x1001da17e\npop     r14                                                            ; +0xe0, 0x1001da180\npop     r15                                                            ; +0xe2, 0x1001da182\npop     rbp                                                            ; +0xe4, 0x1001da184\nretn                                                                   ; +0xe5, 0x1001da185\ncall    sub_100003630                                                  ; +0xe6, 0x1001da186", "xrefs": ["CustomizeObjectLayer::init @ 0x1001d8715", "CustomizeObjectLayer::onUpdateCustomColor @ 0x1001da01e", "CustomizeObjectLayer::onNextColorChannel @ 0x1001da664", "CustomizeObjectLayer::updateCurrentSelection @ 0x1001da996", "CustomizeObjectLayer::colorSetupClosed @ 0x1001dae18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}