//
// sub_1001E3974 from 0x1001e3974 to 0x1001e3a20 (172 bytes)
//
// 2 xrefs:
// > sub_1001D6D7C @ 0x1001d6e24
// > sub_1001E3A74 @ 0x1001e3ad4
//
// 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:00:31 +0000
//
__int64 __fastcall sub_1001E3974(__int64 a1, int a2, std::string *__str, int a4, int a5, int a6)
{
__int64 *v10; // x20
__int64 v11; // x21
__int64 i; // x22
__int64 v13; // x8
char v14; // w0
__int64 v15; // x8
*(_DWORD *)(a1 + 56) = a2;
std::string::operator=((std::string *)(a1 + 80), __str);
*(_DWORD *)(a1 + 60) = a4;
*(_DWORD *)(a1 + 64) = a5;
*(_DWORD *)(a1 + 68) = a6;
v10 = (__int64 *)(a1 + 104);
*(_BYTE *)(a1 + 72) = 0;
std::string::operator=((std::string *)(a1 + 104), (const std::string *)(a1 + 80));
v11 = *(char *)(a1 + 127);
if ( v11 < 0 )
v11 = *(_QWORD *)(a1 + 112);
if ( v11 )
{
for ( i = 0; i != v11; ++i )
{
v13 = a1 + 104;
if ( *(char *)(a1 + 127) < 0 )
v13 = *v10;
v14 = __tolower(*(unsigned __int8 *)(v13 + i));
v15 = a1 + 104;
if ( *(char *)(a1 + 127) < 0 )
v15 = *v10;
*(_BYTE *)(v15 + i) = v14;
}
}
return 1;
}