// // tinyxml2::StrPair::CollapseWhitespace from 0xd93f20 to 0xd93ff8 (216 bytes) // // 2 xrefs: // > tinyxml2::StrPair::GetStr @ 0xd943b4 // > @ 0x4ef70 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:20 +0000 // __int64 __fastcall tinyxml2::StrPair::CollapseWhitespace(__int64 this) { __int64 v1; // x20 _BYTE *v2; // x21 int v3; // w19 __int64 v4; // x20 _BYTE *v5; // x21 int v6; // t1 int v7; // t1 v1 = this; v2 = *(_BYTE **)(this + 8); v3 = (unsigned __int8)*v2; LODWORD(this) = v3 & 0xFFFFFF80; if ( (v3 & 0x80) != 0 ) goto LABEL_2; do { if ( !isspace(v3) ) break; v6 = (unsigned __int8)*++v2; v3 = v6; } while ( (v6 & 0x80) == 0 ); *(_QWORD *)(v1 + 8) = v2; v3 = (unsigned __int8)*v2; this = v3 & 0xFFFFFF80; if ( *v2 ) { LABEL_2: v4 = (__int64)v2; if ( (_DWORD)this ) goto LABEL_8; LABEL_3: if ( isspace(v3) ) { while ( 1 ) { this = isspace(v3); if ( !(_DWORD)this ) break; v7 = *(unsigned __int8 *)++v4; v3 = v7; if ( (v7 & 0x80) != 0 ) goto LABEL_6; } if ( !v3 ) goto LABEL_9; LABEL_6: *v2 = 32; v5 = v2 + 1; this = v4++; *v5 = *(_BYTE *)(v4 - 1); v2 = v5 + 1; v3 = *(unsigned __int8 *)(this + 1); if ( *(_BYTE *)(this + 1) ) goto LABEL_7; } else { LABEL_8: while ( 1 ) { this = v4; *v2++ = v3; ++v4; v3 = *(unsigned __int8 *)(this + 1); if ( !*(_BYTE *)(this + 1) ) break; LABEL_7: if ( (v3 & 0xFFFFFF80) == 0 ) goto LABEL_3; } } LABEL_9: *v2 = 0; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source