{"type": "func", "start": 5369938672, "end": 5369938929, "name": "ColorSelectPopup::updateTextInputLabel", "pseudocode": "// \n// ColorSelectPopup::updateTextInputLabel from 0x14012c2f0 to 0x14012c3f1 (257 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::init @ 0x140128758\n// > ColorSelectPopup::onUpdateCustomColor @ 0x14012bc53\n// > <???> @ 0x140916c58\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:01 +0000\n// \n\nvoid __fastcall ColorSelectPopup::updateTextInputLabel(__int64 a1)\n{\n  __int64 v1; // rdx\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  const char *v5; // rdx\n  size_t v6; // rbx\n  size_t v7; // r8\n  __int64 v8; // rcx\n  _BYTE *v9; // rax\n  __int128 v10; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v11; // [rsp+30h] [rbp-18h]\n  __int64 v12; // [rsp+38h] [rbp-10h]\n\n  v1 = *(unsigned int *)(a1 + 1152);\n  *(_BYTE *)(a1 + 744) = 1;\n  v3 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v1);\n  CString = cocos2d::CCString::getCString(v3);\n  v5 = \"0\";\n  v6 = -1;\n  if ( *(int *)(a1 + 1152) < 1000 )\n    v5 = CString;\n  v7 = -1;\n  v11 = 0;\n  v12 = 0;\n  v10 = 0;\n  do\n    ++v7;\n  while ( v5[v7] );\n  sub_14003D230(&v10, v5, v7);\n  CCTextInputNode::setString(*(_QWORD **)(a1 + 1136), &v10);\n  v8 = *(unsigned int *)(a1 + 1152);\n  if ( (int)v8 >= 1000 )\n  {\n    v9 = (_BYTE *)GJSpecialColorSelect::textForColorIdx(v8);\n    v11 = 0;\n    v10 = 0;\n    v12 = 0;\n    do\n      ++v6;\n    while ( v9[v6] );\n    sub_14003D230(&v10, v9, v6);\n    CCTextInputNode::updateLabel(*(_QWORD *)(a1 + 1136), (__int64 *)&v10);\n  }\n  *(_BYTE *)(a1 + 744) = 0;\n}", "assembly": "; \n; ColorSelectPopup::updateTextInputLabel from 0x14012c2f0 to 0x14012c3f1 (257 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::init @ 0x140128758\n; > ColorSelectPopup::onUpdateCustomColor @ 0x14012bc53\n; > <???> @ 0x140916c58\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:01 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14012c2f0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14012c2f5\npush    rdi                                                            ; +0xa, 0x14012c2fa\nsub     rsp, 40h                                                       ; +0xb, 0x14012c2fb\nmov     edx, [rcx+480h]                                                ; +0xf, 0x14012c2ff\nmov     rdi, rcx                                                       ; +0x15, 0x14012c305\nmov     byte ptr [rcx+2E8h], 1                                         ; +0x18, 0x14012c308\nlea     rcx, word_1406ED6F8                                            ; +0x1f, 0x14012c30f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x26, 0x14012c316\nmov     rcx, rax                                                       ; +0x2c, 0x14012c31c\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2f, 0x14012c31f\ncmp     dword ptr [rdi+480h], 3E8h                                     ; +0x35, 0x14012c325\nlea     rdx, a0; \"0\"                                                   ; +0x3f, 0x14012c32f\nxorps   xmm0, xmm0                                                     ; +0x46, 0x14012c336\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x49, 0x14012c339\ncmovl   rdx, rax                                                       ; +0x50, 0x14012c340\nmov     r8, rbx                                                        ; +0x54, 0x14012c344\nxor     esi, esi                                                       ; +0x57, 0x14012c347\nmov     [rsp+48h+var_18], rsi                                          ; +0x59, 0x14012c349\nmov     [rsp+48h+var_10], rsi                                          ; +0x5e, 0x14012c34e\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x63, 0x14012c353\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x14012c358\ninc     r8                                                             ; +0x70, 0x14012c360\ncmp     [rdx+r8], sil                                                  ; +0x73, 0x14012c363\njnz     short loc_14012C360                                            ; +0x77, 0x14012c367\nlea     rcx, [rsp+48h+var_28]                                          ; +0x79, 0x14012c369\ncall    sub_14003D230                                                  ; +0x7e, 0x14012c36e\nmov     rcx, [rdi+470h]                                                ; +0x83, 0x14012c373\nlea     rdx, [rsp+48h+var_28]                                          ; +0x8a, 0x14012c37a\ncall    CCTextInputNode__setString                                     ; +0x8f, 0x14012c37f\nmov     ecx, [rdi+480h]                                                ; +0x94, 0x14012c384\ncmp     ecx, 3E8h                                                      ; +0x9a, 0x14012c38a\njl      short loc_14012C3DA                                            ; +0xa0, 0x14012c390\ncall    GJSpecialColorSelect__textForColorIdx                          ; +0xa2, 0x14012c392\nxorps   xmm0, xmm0                                                     ; +0xa7, 0x14012c397\nmov     [rsp+48h+var_18], rsi                                          ; +0xaa, 0x14012c39a\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xaf, 0x14012c39f\nmov     [rsp+48h+var_10], rsi                                          ; +0xb4, 0x14012c3a4\nnop     dword ptr [rax+00000000h]                                      ; +0xb9, 0x14012c3a9\ninc     rbx                                                            ; +0xc0, 0x14012c3b0\ncmp     [rax+rbx], sil                                                 ; +0xc3, 0x14012c3b3\njnz     short loc_14012C3B0                                            ; +0xc7, 0x14012c3b7\nmov     r8, rbx                                                        ; +0xc9, 0x14012c3b9\nlea     rcx, [rsp+48h+var_28]                                          ; +0xcc, 0x14012c3bc\nmov     rdx, rax                                                       ; +0xd1, 0x14012c3c1\ncall    sub_14003D230                                                  ; +0xd4, 0x14012c3c4\nmov     rcx, [rdi+470h]                                                ; +0xd9, 0x14012c3c9\nlea     rdx, [rsp+48h+var_28]                                          ; +0xe0, 0x14012c3d0\ncall    CCTextInputNode__updateLabel                                   ; +0xe5, 0x14012c3d5\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xea, 0x14012c3da\nmov     [rdi+2E8h], sil                                                ; +0xef, 0x14012c3df\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xf6, 0x14012c3e6\nadd     rsp, 40h                                                       ; +0xfb, 0x14012c3eb\npop     rdi                                                            ; +0xff, 0x14012c3ef\nretn                                                                   ; +0x100, 0x14012c3f0", "xrefs": ["ColorSelectPopup::init @ 0x140128758", "ColorSelectPopup::onUpdateCustomColor @ 0x14012bc53", "<???> @ 0x140916c58"], "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"}