{"type": "func", "start": 5369404320, "end": 5369404456, "name": "CustomizeObjectLayer::updateCustomColorLabels", "pseudocode": "// \n// CustomizeObjectLayer::updateCustomColorLabels from 0x1400a9ba0 to 0x1400a9c28 (136 bytes)\n// \n// 7 xrefs:\n// > CustomizeObjectLayer::init @ 0x1400a6aaa\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1400a83e7\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f5d\n// > CustomizeObjectLayer::toggleVisible @ 0x1400a937e\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1400a957b\n// > CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a95fc\n// > <???> @ 0x1406c7884\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 CustomizeObjectLayer::updateCustomColorLabels(CustomizeObjectLayer *a1)\n{\n  cocos2d::CCString *v2; // rax\n  const 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(\"%i\", a1->m_customColorChannel);\n  CString = cocos2d::CCString::getCString(v2);\n  ButtonSprite::setString(a1->m_customColorButtonSprite, CString);\n  v5 = 0;\n  v6 = 0;\n  v4 = -1;\n  v7 = 0;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_14003A930(&v5, CString, v4);\n  CCTextInputNode::setString((__int64)a1->m_customColorInput, &v5);\n}", "assembly": "; \n; CustomizeObjectLayer::updateCustomColorLabels from 0x1400a9ba0 to 0x1400a9c28 (136 bytes)\n; \n; 7 xrefs:\n; > CustomizeObjectLayer::init @ 0x1400a6aaa\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1400a83e7\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f5d\n; > CustomizeObjectLayer::toggleVisible @ 0x1400a937e\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1400a957b\n; > CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a95fc\n; > <???> @ 0x1406c7884\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400a9ba0\npush    rdi                                                            ; +0x5, 0x1400a9ba5\nsub     rsp, 40h                                                       ; +0x6, 0x1400a9ba6\nmov     edx, [rcx+2D4h]                                                ; +0xa, 0x1400a9baa\nmov     rdi, rcx                                                       ; +0x10, 0x1400a9bb0\nlea     rcx, aI_11; \"%i\"                                               ; +0x13, 0x1400a9bb3\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1a, 0x1400a9bba\nmov     rcx, rax                                                       ; +0x20, 0x1400a9bc0\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x23, 0x1400a9bc3\nmov     rcx, [rdi+340h]                                                ; +0x29, 0x1400a9bc9\nmov     rdx, rax                                                       ; +0x30, 0x1400a9bd0\nmov     rbx, rax                                                       ; +0x33, 0x1400a9bd3\ncall    ButtonSprite__setString                                        ; +0x36, 0x1400a9bd6\nxor     eax, eax                                                       ; +0x3b, 0x1400a9bdb\nxorps   xmm0, xmm0                                                     ; +0x3d, 0x1400a9bdd\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x40, 0x1400a9be0\nmov     [rsp+48h+var_18], rax                                          ; +0x45, 0x1400a9be5\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4a, 0x1400a9bea\nmov     [rsp+48h+var_10], rax                                          ; +0x51, 0x1400a9bf1\ninc     r8                                                             ; +0x56, 0x1400a9bf6\ncmp     [rbx+r8], al                                                   ; +0x59, 0x1400a9bf9\njnz     short loc_1400A9BF6                                            ; +0x5d, 0x1400a9bfd\nmov     rdx, rbx                                                       ; +0x5f, 0x1400a9bff\nlea     rcx, [rsp+48h+var_28]                                          ; +0x62, 0x1400a9c02\ncall    sub_14003A930                                                  ; +0x67, 0x1400a9c07\nmov     rcx, [rdi+318h]                                                ; +0x6c, 0x1400a9c0c\nlea     rdx, [rsp+48h+var_28]                                          ; +0x73, 0x1400a9c13\ncall    CCTextInputNode__setString                                     ; +0x78, 0x1400a9c18\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x7d, 0x1400a9c1d\nadd     rsp, 40h                                                       ; +0x82, 0x1400a9c22\npop     rdi                                                            ; +0x86, 0x1400a9c26\nretn                                                                   ; +0x87, 0x1400a9c27", "xrefs": ["CustomizeObjectLayer::init @ 0x1400a6aaa", "CustomizeObjectLayer::colorSetupClosed @ 0x1400a83e7", "CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f5d", "CustomizeObjectLayer::toggleVisible @ 0x1400a937e", "CustomizeObjectLayer::updateCurrentSelection @ 0x1400a957b", "CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a95fc", "<???> @ 0x1406c7884"], "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"}