{"type": "func", "start": 5369696256, "end": 5369696457, "name": "NewThreadPopup::updateCharCount", "pseudocode": "// \n// NewThreadPopup::updateCharCount from 0x1400f1000 to 0x1400f10c9 (201 bytes)\n// \n// 7 xrefs:\n// > NewThreadPopup::init @ 0x1400efe5a\n// > NewThreadPopup::init @ 0x1400f01cf\n// > NewThreadPopup::textChanged @ 0x1400f1196\n// > NewThreadPopup::textChanged @ 0x1400f128f\n// > <???> @ 0x14089413c\n// > <???> @ 0x14089414c\n// > <???> @ 0x1409150c8\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:26:36 +0000\n// \n\nvoid __fastcall NewThreadPopup::updateCharCount(__int64 a1, __int64 a2, int a3, int a4)\n{\n  void (__fastcall ***v6)(_QWORD, __int16 *); // rbx\n  __int64 v7; // rdi\n  __int64 v8; // rcx\n  __int64 v9; // rax\n  __int16 *v10; // rdx\n  __int64 v11; // rdx\n  void (__fastcall ***v12)(_QWORD, const char *); // rdi\n  void (__fastcall **v13)(_QWORD, const char *); // rbx\n  int v14; // esi\n  cocos2d::CCString *v15; // rax\n  const char *CString; // rax\n\n  if ( !a2 )\n    return;\n  v6 = (void (__fastcall ***)(_QWORD, __int16 *))(a2 + 368);\n  v7 = a2;\n  v8 = a2 + 368;\n  v9 = *(_QWORD *)(a2 + 368);\n  if ( (float)((float)a4 * 0.69999999) <= (float)a3 )\n  {\n    LOBYTE(a2) = -1;\n    if ( (float)((float)a4 * 0.89999998) <= (float)a3 )\n    {\n      (*(void (__fastcall **)(__int64, __int64))(v9 + 40))(v8, a2);\n      v10 = (__int16 *)&unk_140702E68;\n      goto LABEL_7;\n    }\n  }\n  else\n  {\n    LOBYTE(a2) = 100;\n  }\n  (*(void (__fastcall **)(__int64, __int64))(v9 + 40))(v8, a2);\n  v10 = &word_140702E70;\nLABEL_7:\n  (**v6)(v6, v10);\n  v11 = 0;\n  v12 = (void (__fastcall ***)(_QWORD, const char *))(v7 + 360);\n  v13 = *v12;\n  v14 = a4 - a3;\n  if ( v14 >= 0 )\n    v11 = (unsigned int)v14;\n  v15 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v11);\n  CString = cocos2d::CCString::getCString(v15);\n  (*v13)(v12, CString);\n}", "assembly": "; \n; NewThreadPopup::updateCharCount from 0x1400f1000 to 0x1400f10c9 (201 bytes)\n; \n; 7 xrefs:\n; > NewThreadPopup::init @ 0x1400efe5a\n; > NewThreadPopup::init @ 0x1400f01cf\n; > NewThreadPopup::textChanged @ 0x1400f1196\n; > NewThreadPopup::textChanged @ 0x1400f128f\n; > <???> @ 0x14089413c\n; > <???> @ 0x14089414c\n; > <???> @ 0x1409150c8\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:26:36 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1400f1000\njz      locret_1400F10C8                                               ; +0x3, 0x1400f1003\nmov     [rsp+arg_8], rbp                                               ; +0x9, 0x1400f1009\nmov     [rsp+arg_10], rsi                                              ; +0xe, 0x1400f100e\npush    rdi                                                            ; +0x13, 0x1400f1013\nsub     rsp, 20h                                                       ; +0x14, 0x1400f1014\nmovd    xmm1, r9d                                                      ; +0x18, 0x1400f1018\nmov     esi, r9d                                                       ; +0x1d, 0x1400f101d\ncvtdq2ps xmm1, xmm1                                                    ; +0x20, 0x1400f1020\nmov     ebp, r8d                                                       ; +0x23, 0x1400f1023\nmov     [rsp+28h+arg_0], rbx                                           ; +0x26, 0x1400f1026\nlea     rbx, [rdx+170h]                                                ; +0x2b, 0x1400f102b\nmov     rdi, rdx                                                       ; +0x32, 0x1400f1032\nmov     rcx, rbx                                                       ; +0x35, 0x1400f1035\nmov     rax, [rbx]                                                     ; +0x38, 0x1400f1038\nmovd    xmm2, r8d                                                      ; +0x3b, 0x1400f103b\nmovaps  xmm0, xmm1                                                     ; +0x40, 0x1400f1040\nmulss   xmm0, cs:dword_140834FAC                                       ; +0x43, 0x1400f1043\ncvtdq2ps xmm2, xmm2                                                    ; +0x4b, 0x1400f104b\ncomiss  xmm0, xmm2                                                     ; +0x4e, 0x1400f104e\njbe     short loc_1400F1061                                            ; +0x51, 0x1400f1051\nmov     dl, 64h ; 'd'                                                  ; +0x53, 0x1400f1053\ncall    qword ptr [rax+28h]                                            ; +0x55, 0x1400f1055\nlea     rdx, word_140702E70                                            ; +0x58, 0x1400f1058\njmp     short loc_1400F107A                                            ; +0x5f, 0x1400f105f\nmulss   xmm1, cs:dword_14083502C                                       ; +0x61, 0x1400f1061\nmov     dl, 0FFh                                                       ; +0x69, 0x1400f1069\ncomiss  xmm1, xmm2                                                     ; +0x6b, 0x1400f106b\nja      short loc_1400F1055                                            ; +0x6e, 0x1400f106e\ncall    qword ptr [rax+28h]                                            ; +0x70, 0x1400f1070\nlea     rdx, unk_140702E68                                             ; +0x73, 0x1400f1073\nmov     rax, [rbx]                                                     ; +0x7a, 0x1400f107a\nmov     rcx, rbx                                                       ; +0x7d, 0x1400f107d\ncall    qword ptr [rax]                                                ; +0x80, 0x1400f1080\nmov     edx, 0                                                         ; +0x82, 0x1400f1082\nlea     rdi, [rdi+168h]                                                ; +0x87, 0x1400f1087\nmov     rbx, [rdi]                                                     ; +0x8e, 0x1400f108e\nlea     rcx, word_1406ED6F8                                            ; +0x91, 0x1400f1091\nsub     esi, ebp                                                       ; +0x98, 0x1400f1098\ncmovns  edx, esi                                                       ; +0x9a, 0x1400f109a\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9d, 0x1400f109d\nmov     rcx, rax                                                       ; +0xa3, 0x1400f10a3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa6, 0x1400f10a6\nmov     rdx, rax                                                       ; +0xac, 0x1400f10ac\nmov     rcx, rdi                                                       ; +0xaf, 0x1400f10af\ncall    qword ptr [rbx]                                                ; +0xb2, 0x1400f10b2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x1400f10b4\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xb9, 0x1400f10b9\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xbe, 0x1400f10be\nadd     rsp, 20h                                                       ; +0xc3, 0x1400f10c3\npop     rdi                                                            ; +0xc7, 0x1400f10c7\nretn                                                                   ; +0xc8, 0x1400f10c8", "xrefs": ["NewThreadPopup::init @ 0x1400efe5a", "NewThreadPopup::init @ 0x1400f01cf", "NewThreadPopup::textChanged @ 0x1400f1196", "NewThreadPopup::textChanged @ 0x1400f128f", "<???> @ 0x14089413c", "<???> @ 0x14089414c", "<???> @ 0x1409150c8"], "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"}