{"type": "func", "start": 5370035488, "end": 5370035624, "name": "CustomizeObjectLayer::updateCustomColorLabels", "pseudocode": "// \n// CustomizeObjectLayer::updateCustomColorLabels from 0x140143d20 to 0x140143da8 (136 bytes)\n// \n// 7 xrefs:\n// > CustomizeObjectLayer::init @ 0x140140aef\n// > CustomizeObjectLayer::colorSetupClosed @ 0x140142497\n// > CustomizeObjectLayer::onNextColorChannel @ 0x140143070\n// > CustomizeObjectLayer::toggleVisible @ 0x1401434a1\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1401436ab\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x140143730\n// > <???> @ 0x140917444\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 11:27:10 +0000\n// \n\nvoid __fastcall CustomizeObjectLayer::updateCustomColorLabels(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  char *CString; // rbx\n  size_t v4; // r8\n  __int128 v5; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v6; // [rsp+30h] [rbp-18h]\n  __int64 v7; // [rsp+38h] [rbp-10h]\n\n  v2 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 748));\n  CString = (char *)cocos2d::CCString::getCString(v2);\n  ButtonSprite::setString(*(__int64 **)(a1 + 856), CString);\n  v5 = 0;\n  v6 = 0;\n  v4 = -1;\n  v7 = 0;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_14003D230(&v5, CString, v4);\n  CCTextInputNode::setString(*(_QWORD **)(a1 + 816), &v5);\n}", "assembly": "; \n; CustomizeObjectLayer::updateCustomColorLabels from 0x140143d20 to 0x140143da8 (136 bytes)\n; \n; 7 xrefs:\n; > CustomizeObjectLayer::init @ 0x140140aef\n; > CustomizeObjectLayer::colorSetupClosed @ 0x140142497\n; > CustomizeObjectLayer::onNextColorChannel @ 0x140143070\n; > CustomizeObjectLayer::toggleVisible @ 0x1401434a1\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1401436ab\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x140143730\n; > <???> @ 0x140917444\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 11:27:10 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140143d20\npush    rdi                                                            ; +0x5, 0x140143d25\nsub     rsp, 40h                                                       ; +0x6, 0x140143d26\nmov     edx, [rcx+2ECh]                                                ; +0xa, 0x140143d2a\nmov     rdi, rcx                                                       ; +0x10, 0x140143d30\nlea     rcx, word_1406ED6F8                                            ; +0x13, 0x140143d33\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1a, 0x140143d3a\nmov     rcx, rax                                                       ; +0x20, 0x140143d40\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x23, 0x140143d43\nmov     rcx, [rdi+358h]                                                ; +0x29, 0x140143d49\nmov     rdx, rax                                                       ; +0x30, 0x140143d50\nmov     rbx, rax                                                       ; +0x33, 0x140143d53\ncall    ButtonSprite__setString                                        ; +0x36, 0x140143d56\nxor     eax, eax                                                       ; +0x3b, 0x140143d5b\nxorps   xmm0, xmm0                                                     ; +0x3d, 0x140143d5d\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x40, 0x140143d60\nmov     [rsp+48h+var_18], rax                                          ; +0x45, 0x140143d65\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4a, 0x140143d6a\nmov     [rsp+48h+var_10], rax                                          ; +0x51, 0x140143d71\ninc     r8                                                             ; +0x56, 0x140143d76\ncmp     [rbx+r8], al                                                   ; +0x59, 0x140143d79\njnz     short loc_140143D76                                            ; +0x5d, 0x140143d7d\nmov     rdx, rbx                                                       ; +0x5f, 0x140143d7f\nlea     rcx, [rsp+48h+var_28]                                          ; +0x62, 0x140143d82\ncall    sub_14003D230                                                  ; +0x67, 0x140143d87\nmov     rcx, [rdi+330h]                                                ; +0x6c, 0x140143d8c\nlea     rdx, [rsp+48h+var_28]                                          ; +0x73, 0x140143d93\ncall    CCTextInputNode__setString                                     ; +0x78, 0x140143d98\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x7d, 0x140143d9d\nadd     rsp, 40h                                                       ; +0x82, 0x140143da2\npop     rdi                                                            ; +0x86, 0x140143da6\nretn                                                                   ; +0x87, 0x140143da7", "xrefs": ["CustomizeObjectLayer::init @ 0x140140aef", "CustomizeObjectLayer::colorSetupClosed @ 0x140142497", "CustomizeObjectLayer::onNextColorChannel @ 0x140143070", "CustomizeObjectLayer::toggleVisible @ 0x1401434a1", "CustomizeObjectLayer::updateCurrentSelection @ 0x1401436ab", "CustomizeObjectLayer::onUpdateCustomColor @ 0x140143730", "<???> @ 0x140917444"], "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"}