{"type": "func", "start": 11830800, "end": 11831044, "name": "DS_Dictionary::cleanStringWhiteSpace", "pseudocode": "// \n// DS_Dictionary::cleanStringWhiteSpace from 0xb48610 to 0xb48704 (244 bytes)\n// \n// 3 xrefs:\n// > DS_Dictionary::rectFromString @ 0xb48748\n// > DS_Dictionary::vec2FromString @ 0xb49104\n// > <???> @ 0x3c288\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\nunsigned __int8 **__usercall DS_Dictionary::cleanStringWhiteSpace@<X0>(unsigned __int8 **a1@<X8>)\n{\n  unsigned __int8 *v2; // x19\n  unsigned __int8 *v3; // x21\n  __int64 v4; // x21\n  unsigned __int8 *v5; // x0\n  unsigned __int8 *v6; // x22\n  unsigned __int8 *v7; // x19\n  bool v8; // zf\n  int v9; // w20\n  int v10; // w0\n  unsigned __int8 *v11; // x2\n\n  sub_D18D28(a1);\n  v2 = *a1;\n  v3 = *a1;\n  if ( (*((_DWORD *)*a1 - 2) & 0x80000000) == 0 )\n  {\n    sub_D176A8(a1);\n    v2 = *a1;\n    if ( (*((_DWORD *)*a1 - 2) & 0x80000000) == 0 )\n      sub_D176A8(a1);\n    v3 = *a1;\n  }\n  v4 = (__int64)&v3[*((_QWORD *)v3 - 3)];\n  v5 = std::__find_if<__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__ops::_Iter_pred<int (*)(int)>>(\n         v2,\n         v4,\n         (unsigned int (__fastcall *)(_QWORD))&isspace);\n  v6 = v5;\n  if ( (unsigned __int8 *)v4 != v5 )\n  {\n    v7 = v5 + 1;\n    v8 = v4 == (_QWORD)(v5 + 1);\n    while ( !v8 )\n    {\n      while ( 1 )\n      {\n        v9 = *v7++;\n        v10 = isspace(v9);\n        v8 = v7 == (unsigned __int8 *)v4;\n        if ( v10 )\n          break;\n        *v6++ = v9;\n        if ( v7 == (unsigned __int8 *)v4 )\n          goto LABEL_10;\n      }\n    }\n  }\nLABEL_10:\n  v11 = *a1;\n  if ( (*((_DWORD *)*a1 - 2) & 0x80000000) == 0 )\n  {\n    sub_D176A8(a1);\n    v11 = *a1;\n  }\n  sub_D17818(a1, v6, &v11[*((_QWORD *)v11 - 3)]);\n  return a1;\n}", "assembly": "; \n; DS_Dictionary::cleanStringWhiteSpace from 0xb48610 to 0xb48704 (244 bytes)\n; \n; 3 xrefs:\n; > DS_Dictionary::rectFromString @ 0xb48748\n; > DS_Dictionary::vec2FromString @ 0xb49104\n; > <???> @ 0x3c288\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xb48610\nMOV             X0, X8                                                 ; +0x4, 0xb48614\nMOV             X29, SP                                                ; +0x8, 0xb48618\nSTR             X23, [SP,#0x40+var_10]                                 ; +0xc, 0xb4861c\nMOV             X23, X8                                                ; +0x10, 0xb48620\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0xb48624\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x18, 0xb48628\nBL              sub_D18D28                                             ; +0x1c, 0xb4862c\nLDR             X19, [X23]                                             ; +0x20, 0xb48630\nMOV             X21, X19                                               ; +0x24, 0xb48634\nLDUR            W0, [X19,#-8]                                          ; +0x28, 0xb48638\nTBNZ            W0, #0x1F, loc_B48660                                  ; +0x2c, 0xb4863c\nMOV             X0, X23                                                ; +0x30, 0xb48640\nBL              sub_D176A8                                             ; +0x34, 0xb48644\nLDR             X19, [X23]                                             ; +0x38, 0xb48648\nLDUR            W0, [X19,#-8]                                          ; +0x3c, 0xb4864c\nTBNZ            W0, #0x1F, loc_B486FC                                  ; +0x40, 0xb48650\nMOV             X0, X23                                                ; +0x44, 0xb48654\nBL              sub_D176A8                                             ; +0x48, 0xb48658\nLDR             X21, [X23]                                             ; +0x4c, 0xb4865c\nADRP            X2, #isspace_ptr_0@PAGE                                ; +0x50, 0xb48660\nLDUR            X1, [X21,#-0x18]                                       ; +0x54, 0xb48664\nMOV             X0, X19                                                ; +0x58, 0xb48668\nMOV             W3, #0                                                 ; +0x5c, 0xb4866c\nADD             X21, X21, X1                                           ; +0x60, 0xb48670\nLDR             X2, [X2,#isspace_ptr_0@PAGEOFF]; isspace               ; +0x64, 0xb48674\nMOV             X1, X21                                                ; +0x68, 0xb48678\nBL              _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPcSsEENS0_5__ops10_Iter_predIPFiiEEEET_S9_S9_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__ops::_Iter_pred<int (*)(int)>>(__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__normal_iterator<char *,std::string>,__gnu_cxx::__ops::_Iter_pred<int (*)(int)>,std::random_access_iterator_tag) ; +0x6c, 0xb4867c\nCMP             X21, X0                                                ; +0x70, 0xb48680\nMOV             X22, X0                                                ; +0x74, 0xb48684\nB.EQ            loc_B486B8                                             ; +0x78, 0xb48688\nADD             X19, X0, #1                                            ; +0x7c, 0xb4868c\nCMP             X21, X19                                               ; +0x80, 0xb48690\nB.EQ            loc_B486B8                                             ; +0x84, 0xb48694\nLDRB            W20, [X19]                                             ; +0x88, 0xb48698\nADD             X19, X19, #1                                           ; +0x8c, 0xb4869c\nMOV             W0, W20; int                                           ; +0x90, 0xb486a0\nBL              .isspace                                               ; +0x94, 0xb486a4\nCMP             X19, X21                                               ; +0x98, 0xb486a8\nCBNZ            W0, loc_B48694                                         ; +0x9c, 0xb486ac\nSTRB            W20, [X22],#1                                          ; +0xa0, 0xb486b0\nB.NE            loc_B48698                                             ; +0xa4, 0xb486b4\nLDR             X2, [X23]                                              ; +0xa8, 0xb486b8\nLDUR            W0, [X2,#-8]                                           ; +0xac, 0xb486bc\nTBNZ            W0, #0x1F, loc_B486D0                                  ; +0xb0, 0xb486c0\nMOV             X0, X23                                                ; +0xb4, 0xb486c4\nBL              sub_D176A8                                             ; +0xb8, 0xb486c8\nLDR             X2, [X23]                                              ; +0xbc, 0xb486cc\nLDUR            X3, [X2,#-0x18]                                        ; +0xc0, 0xb486d0\nMOV             X1, X22                                                ; +0xc4, 0xb486d4\nMOV             X0, X23                                                ; +0xc8, 0xb486d8\nADD             X2, X2, X3                                             ; +0xcc, 0xb486dc\nBL              sub_D17818                                             ; +0xd0, 0xb486e0\nMOV             X0, X23                                                ; +0xd4, 0xb486e4\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xd8, 0xb486e8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xdc, 0xb486ec\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xe0, 0xb486f0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xe4, 0xb486f4\nRET                                                                    ; +0xe8, 0xb486f8\nMOV             X21, X19                                               ; +0xec, 0xb486fc\nB               loc_B48660                                             ; +0xf0, 0xb48700", "xrefs": ["DS_Dictionary::rectFromString @ 0xb48748", "DS_Dictionary::vec2FromString @ 0xb49104", "<???> @ 0x3c288"], "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"}