//
// sub_10069DA78 from 0x10069da78 to 0x10069dafc (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009b1c88
//
// 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 11:11:38 +0000
//
size_t __fastcall sub_10069DA78(__int64 a1, const char **a2)
{
const char *i; // x20
int v4; // w8
size_t result; // x0
unsigned __int64 v6; // x11
for ( i = (const char *)(a1 + 2); ; ++i )
{
v4 = *(unsigned __int8 *)i;
if ( v4 != 9 && v4 != 32 )
break;
}
result = strlen(i);
if ( result )
{
while ( 1 )
{
v6 = (unsigned __int8)i[result - 1];
if ( v6 > 0x20 || ((1LL << v6) & 0x100002600LL) == 0 )
break;
if ( !--result )
goto LABEL_13;
}
i[result] = 0;
}
LABEL_13:
*a2 = i;
return result;
}