// // DS_Dictionary::cleanStringWhiteSpace from 0xb48610 to 0xb48704 (244 bytes) // // 3 xrefs: // > DS_Dictionary::rectFromString @ 0xb48748 // > DS_Dictionary::vec2FromString @ 0xb49104 // > @ 0x3c288 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // unsigned __int8 **__usercall DS_Dictionary::cleanStringWhiteSpace@(unsigned __int8 **a1@) { unsigned __int8 *v2; // x19 unsigned __int8 *v3; // x21 __int64 v4; // x21 unsigned __int8 *v5; // x0 unsigned __int8 *v6; // x22 unsigned __int8 *v7; // x19 bool v8; // zf int v9; // w20 int v10; // w0 unsigned __int8 *v11; // x2 sub_D18D28(a1); v2 = *a1; v3 = *a1; if ( (*((_DWORD *)*a1 - 2) & 0x80000000) == 0 ) { sub_D176A8(a1); v2 = *a1; if ( (*((_DWORD *)*a1 - 2) & 0x80000000) == 0 ) sub_D176A8(a1); v3 = *a1; } v4 = (__int64)&v3[*((_QWORD *)v3 - 3)]; v5 = std::__find_if<__gnu_cxx::__normal_iterator,__gnu_cxx::__ops::_Iter_pred>( v2, v4, (unsigned int (__fastcall *)(_QWORD))&isspace); v6 = v5; if ( (unsigned __int8 *)v4 != v5 ) { v7 = v5 + 1; v8 = v4 == (_QWORD)(v5 + 1); while ( !v8 ) { while ( 1 ) { v9 = *v7++; v10 = isspace(v9); v8 = v7 == (unsigned __int8 *)v4; if ( v10 ) break; *v6++ = v9; if ( v7 == (unsigned __int8 *)v4 ) goto LABEL_10; } } } LABEL_10: v11 = *a1; if ( (*((_DWORD *)*a1 - 2) & 0x80000000) == 0 ) { sub_D176A8(a1); v11 = *a1; } sub_D17818(a1, v6, &v11[*((_QWORD *)v11 - 3)]); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source