// // DS_Dictionary::cleanStringWhiteSpace from 0x80ba30 to 0x80bade (174 bytes) // // 2 xrefs: // > DS_Dictionary::rectFromString @ 0x80c2f2 // > DS_Dictionary::vec2FromString @ 0x80c772 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:31 +0000 // int *__fastcall DS_Dictionary::cleanStringWhiteSpace(int *a1, int a2, int a3) { int v4; // r5 unsigned __int8 *v5; // r6 int v6; // r5 unsigned __int8 *v7; // r5 unsigned __int8 *v8; // r8 unsigned __int8 *v9; // r7 int v10; // r0 unsigned __int8 *v11; // r6 unsigned __int8 v12; // r7 int v13; // t1 int v14; // r1 char *v15; // r0 int v16; // r3 char *v17; // r3 int v18; // r0 unsigned int v19; // r6 int v20; // r7 int v21; // r8 unsigned __int8 *v22; // r0 size_t v23; // r2 unsigned int v24; // r6 std::string::basic_string(a1, a3); v4 = *(unsigned __int8 *)a1; if ( (v4 & 1) != 0 ) { v5 = (unsigned __int8 *)a1[2]; v6 = a1[1]; } else { v5 = (unsigned __int8 *)a1 + 1; v6 = v4 >> 1; } v7 = &v5[v6]; v8 = v7; while ( 1 ) { v9 = v5; if ( v5 == v7 ) break; v10 = *v5++; if ( isspace(v10) ) { v11 = v9 + 1; v7 = v9; while ( v11 != v8 ) { v13 = *v11++; v12 = v13; if ( !isspace(v13) ) *v7++ = v12; } break; } } v14 = *(unsigned __int8 *)a1; if ( (v14 & 1) != 0 ) { v15 = (char *)a1[2]; v16 = a1[1]; } else { v15 = (char *)a1 + 1; v16 = v14 >> 1; } v17 = &v15[v16]; if ( (v14 & 1) != 0 ) v18 = a1[2]; else v18 = (int)a1 + 1; v19 = v17 - (char *)v7; if ( (v14 & 1) != 0 ) { v20 = a1[1]; if ( !v19 ) return a1; v21 = a1[2]; } else { if ( !v19 ) return a1; v20 = v14 >> 1; v21 = (int)a1 + 1; } v22 = &v7[-v18]; if ( v19 >= v20 - (int)v22 ) v19 = v20 - (_DWORD)v22; v23 = v20 - (_DWORD)v22 - v19; if ( v23 ) std::char_traits::move(&v22[v21], &v22[v19 + v21], v23); v24 = v20 - v19; if ( (*(_BYTE *)a1 & 1) != 0 ) a1[1] = v24; else *(_BYTE *)a1 = 2 * v24; *(_BYTE *)(v21 + v24) = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source