//
// sub_631F58 from 0x631f58 to 0x631fd0 (120 bytes)
//
// 3 xrefs:
// > sub_DFDF6C @ 0xdff544
// > sub_DFDF6C @ 0xdffc9c
// > sub_DFDF6C @ 0xe0086c
//
// 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 12:50:12 +0000
//
size_t __fastcall sub_631F58(__int64 a1, const char **a2, const char **a3)
{
const char *v3; // x19
size_t result; // x0
size_t v6; // x2
const char *v7; // x1
int v8; // w2
v3 = *a2;
*a3 = *a2;
result = strlen(v3);
if ( result )
{
v6 = result - 1;
result = (unsigned __int8)v3[result - 1];
if ( (_DWORD)result == 46 )
v3[v6] = 0;
}
v7 = *a2;
while ( 1 )
{
v8 = *(unsigned __int8 *)v7++;
if ( !v8 )
break;
if ( (v8 & 0x80) != 0 )
return sub_DF16E0(a1, "IDN support not present, can't parse Unicode domains\n");
}
return result;
}