//
// sub_56CBE4 from 0x56cbe4 to 0x56cc20 (60 bytes)
//
// 2 xrefs:
// > optionsStrCompare @ 0x56cc40
// > optionsStrCompare @ 0x56cc4a
//
// 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:52:33 +0000
//
int *__fastcall sub_56CBE4(int *a1, int a2)
{
int v3; // r3
int v4; // r2
unsigned __int8 *v5; // r6
int v6; // r3
unsigned __int8 *v7; // r4
char *v8; // r7
char *v9; // r7
int v10; // t1
std::string::basic_string(a1, a2);
v3 = *(unsigned __int8 *)a1;
v4 = v3 & 1;
if ( (v3 & 1) != 0 )
{
v5 = (unsigned __int8 *)a1[2];
v6 = a1[1];
}
else
{
v5 = (unsigned __int8 *)a1 + 1;
v6 = v3 >> 1;
}
v7 = &v5[v6];
if ( v4 )
v8 = (char *)a1[2];
else
v8 = (char *)a1 + 1;
v9 = v8 - 1;
while ( v5 != v7 )
{
v10 = *v5++;
*++v9 = tolower(v10);
}
return a1;
}