//
// sub_100273C38 from 0x100273c38 to 0x100273cbc (132 bytes)
//
// 2 xrefs:
// > sub_100273230 @ 0x100273298
// > sub_100273230 @ 0x10027330c
//
// 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:01:48 +0000
//
void *__usercall sub_100273C38@(void *result@, unsigned __int8 *a2@)
{
__int64 v3; // x8
int v4; // w9
unsigned __int8 *v5; // x8
unsigned __int8 *v6; // x20
unsigned __int8 *v7; // x21
if ( *((char *)result + 23) < 0 )
{
result = sub_1000097D0(a2, *(void **)result, *((_QWORD *)result + 1));
}
else
{
*(_OWORD *)a2 = *(_OWORD *)result;
*((_QWORD *)a2 + 2) = *((_QWORD *)result + 2);
}
v3 = a2[23];
v4 = (char)v3;
v5 = &a2[v3];
if ( v4 >= 0 )
v6 = v5;
else
v6 = (unsigned __int8 *)(*(_QWORD *)a2 + *((_QWORD *)a2 + 1));
if ( v4 >= 0 )
v7 = a2;
else
v7 = *(unsigned __int8 **)a2;
while ( v7 != v6 )
{
result = (void *)__tolower(*v7);
*v7++ = (unsigned __int8)result;
}
return result;
}