{"type": "func", "start": 6442553088, "end": 6442553343, "name": "DS_Dictionary::cleanStringWhiteSpace", "pseudocode": "// \n// DS_Dictionary::cleanStringWhiteSpace from 0x180018f00 to 0x180018fff (255 bytes)\n// \n// 4 xrefs:\n// > DS_Dictionary::rectFromString @ 0x18001c87c\n// > DS_Dictionary::vec2FromString @ 0x1800220a2\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b89c8\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:21:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall DS_Dictionary::cleanStringWhiteSpace(__int64 a1, char *a2, __int64 a3)\n{\n  char *v4; // rbx\n  char *v5; // rsi\n  char *i; // rdi\n  unsigned __int64 v7; // rbp\n  char *v8; // rbx\n  char *v9; // rcx\n  unsigned __int64 v10; // rdi\n\n  sub_180016870((__int64)a2, a3);\n  if ( *((_QWORD *)a2 + 3) <= 0xFu )\n  {\n    v5 = &a2[*((_QWORD *)a2 + 2)];\n    v4 = a2;\n  }\n  else\n  {\n    v4 = *(char **)a2;\n    v5 = (char *)(*((_QWORD *)a2 + 2) + *(_QWORD *)a2);\n  }\n  if ( v4 != v5 )\n  {\n    do\n    {\n      if ( isspace(*v4) )\n        break;\n      ++v4;\n    }\n    while ( v4 != v5 );\n    if ( v4 != v5 )\n    {\n      for ( i = v4 + 1; i != v5; ++i )\n      {\n        if ( !isspace(*i) )\n          *v4++ = *i;\n      }\n    }\n  }\n  v7 = v5 - v4;\n  if ( *((_QWORD *)a2 + 3) <= 0xFu )\n  {\n    v8 = (char *)(v4 - a2);\n    v9 = a2;\n  }\n  else\n  {\n    v8 = &v4[-*(_QWORD *)a2];\n    v9 = *(char **)a2;\n  }\n  if ( *((_QWORD *)a2 + 2) - (_QWORD)v8 < v7 )\n    v7 = *((_QWORD *)a2 + 2) - (_QWORD)v8;\n  v10 = *((_QWORD *)a2 + 2) - v7;\n  memmove(&v9[(_QWORD)v8], &v9[(_QWORD)v8 + v7], v10 - (_QWORD)v8 + 1);\n  *((_QWORD *)a2 + 2) = v10;\n  return a2;\n}", "assembly": "; \n; DS_Dictionary::cleanStringWhiteSpace from 0x180018f00 to 0x180018fff (255 bytes)\n; \n; 4 xrefs:\n; > DS_Dictionary::rectFromString @ 0x18001c87c\n; > DS_Dictionary::vec2FromString @ 0x1800220a2\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b89c8\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:21:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180018f00\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180018f05\nmov     [rsp+arg_8], rdx                                               ; +0xa, 0x180018f0a\npush    rsi                                                            ; +0xf, 0x180018f0f\npush    rdi                                                            ; +0x10, 0x180018f10\npush    r14                                                            ; +0x11, 0x180018f11\nsub     rsp, 30h                                                       ; +0x13, 0x180018f13\nmov     r14, rdx                                                       ; +0x17, 0x180018f17\nmov     [rsp+48h+var_28], 0                                            ; +0x1a, 0x180018f1a\nmov     rdx, r8                                                        ; +0x22, 0x180018f22\nmov     rcx, r14                                                       ; +0x25, 0x180018f25\ncall    sub_180016870                                                  ; +0x28, 0x180018f28\nmov     [rsp+48h+var_28], 1                                            ; +0x2d, 0x180018f2d\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x35, 0x180018f35\njbe     short loc_180018F4F                                            ; +0x3a, 0x180018f3a\nmov     rbx, [r14]                                                     ; +0x3c, 0x180018f3c\nmov     rsi, rbx                                                       ; +0x3f, 0x180018f3f\nadd     rsi, [r14+10h]                                                 ; +0x42, 0x180018f42\nmov     rbp, rbx                                                       ; +0x46, 0x180018f46\nadd     rbp, [r14+10h]                                                 ; +0x49, 0x180018f49\njmp     short loc_180018F5E                                            ; +0x4d, 0x180018f4d\nmov     rax, [r14+10h]                                                 ; +0x4f, 0x180018f4f\nlea     rsi, [rax+r14]                                                 ; +0x53, 0x180018f53\nmov     rbx, r14                                                       ; +0x57, 0x180018f57\nlea     rbp, [rax+r14]                                                 ; +0x5a, 0x180018f5a\ncmp     rbx, rsi                                                       ; +0x5e, 0x180018f5e\njz      short loc_180018FA3                                            ; +0x61, 0x180018f61\nmovsx   ecx, byte ptr [rbx]; C                                         ; +0x63, 0x180018f63\ncall    cs:isspace                                                     ; +0x66, 0x180018f66\ntest    eax, eax                                                       ; +0x6c, 0x180018f6c\njnz     short loc_180018F78                                            ; +0x6e, 0x180018f6e\ninc     rbx                                                            ; +0x70, 0x180018f70\ncmp     rbx, rsi                                                       ; +0x73, 0x180018f73\njnz     short loc_180018F63                                            ; +0x76, 0x180018f76\ncmp     rbx, rsi                                                       ; +0x78, 0x180018f78\njz      short loc_180018FA3                                            ; +0x7b, 0x180018f7b\nlea     rdi, [rbx+1]                                                   ; +0x7d, 0x180018f7d\ncmp     rdi, rsi                                                       ; +0x81, 0x180018f81\njz      short loc_180018FA3                                            ; +0x84, 0x180018f84\nmovsx   ecx, byte ptr [rdi]; C                                         ; +0x86, 0x180018f86\ncall    cs:isspace                                                     ; +0x89, 0x180018f89\ntest    eax, eax                                                       ; +0x8f, 0x180018f8f\njnz     short loc_180018F9B                                            ; +0x91, 0x180018f91\nmovzx   eax, byte ptr [rdi]                                            ; +0x93, 0x180018f93\nmov     [rbx], al                                                      ; +0x96, 0x180018f96\ninc     rbx                                                            ; +0x98, 0x180018f98\ninc     rdi                                                            ; +0x9b, 0x180018f9b\ncmp     rdi, rsi                                                       ; +0x9e, 0x180018f9e\njnz     short loc_180018F86                                            ; +0xa1, 0x180018fa1\nsub     rbp, rbx                                                       ; +0xa3, 0x180018fa3\nmov     rdi, [r14+10h]                                                 ; +0xa6, 0x180018fa6\nmov     rax, rdi                                                       ; +0xaa, 0x180018faa\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0xad, 0x180018fad\njbe     short loc_180018FBC                                            ; +0xb2, 0x180018fb2\nsub     rbx, [r14]                                                     ; +0xb4, 0x180018fb4\nmov     rcx, [r14]                                                     ; +0xb7, 0x180018fb7\njmp     short loc_180018FC2                                            ; +0xba, 0x180018fba\nsub     rbx, r14                                                       ; +0xbc, 0x180018fbc\nmov     rcx, r14                                                       ; +0xbf, 0x180018fbf\nsub     rax, rbx                                                       ; +0xc2, 0x180018fc2\ncmp     rax, rbp                                                       ; +0xc5, 0x180018fc5\ncmovb   rbp, rax                                                       ; +0xc8, 0x180018fc8\nadd     rcx, rbx; void *                                               ; +0xcc, 0x180018fcc\nsub     rdi, rbp                                                       ; +0xcf, 0x180018fcf\nmov     r8, rdi                                                        ; +0xd2, 0x180018fd2\nsub     r8, rbx                                                        ; +0xd5, 0x180018fd5\ninc     r8; Size                                                       ; +0xd8, 0x180018fd8\nlea     rdx, [rcx+rbp]; Src                                            ; +0xdb, 0x180018fdb\ncall    memmove                                                        ; +0xdf, 0x180018fdf\nmov     [r14+10h], rdi                                                 ; +0xe4, 0x180018fe4\nmov     rax, r14                                                       ; +0xe8, 0x180018fe8\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xeb, 0x180018feb\nmov     rbp, [rsp+48h+arg_10]                                          ; +0xf0, 0x180018ff0\nadd     rsp, 30h                                                       ; +0xf5, 0x180018ff5\npop     r14                                                            ; +0xf9, 0x180018ff9\npop     rdi                                                            ; +0xfb, 0x180018ffb\npop     rsi                                                            ; +0xfc, 0x180018ffc\nretn                                                                   ; +0xfd, 0x180018ffd\ndb 0CCh                                                                ; +0xfe, 0x180018ffe", "xrefs": ["DS_Dictionary::rectFromString @ 0x18001c87c", "DS_Dictionary::vec2FromString @ 0x1800220a2", "<???> @ 0x18014cf68", "<???> @ 0x1801b89c8"], "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"}