//
// sub_38BB84 from 0x38bb84 to 0x38bbc0 (60 bytes)
//
// 3 xrefs:
// > sub_83168C @ 0x83219e
// > sub_83168C @ 0x832610
// > sub_83168C @ 0x833444
//
// 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 11:46:14 +0000
//
size_t __fastcall sub_38BB84(int a1, const char **a2, const char **a3)
{
const char *v4; // r4
size_t result; // r0
int v7; // r3
char v8; // r2
int v9; // t1
v4 = *a2;
*a3 = *a2;
result = strlen(v4);
if ( result )
{
if ( v4[result - 1] == 46 )
v4[result - 1] = 0;
}
v7 = (int)(*a2 - 1);
while ( 1 )
{
v9 = *(unsigned __int8 *)++v7;
v8 = v9;
if ( !v9 )
break;
if ( v8 < 0 )
return sub_8280FC(a1, "IDN support not present, can't parse Unicode domains\n");
}
return result;
}