//
// sub_74CD4C from 0x74cd4c to 0x74cdfa (174 bytes)
//
// 0 xrefs:
//
// 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:58:47 +0000
//
int __fastcall sub_74CD4C(_DWORD *a1, int *a2)
{
int v2; // r6
char *v3; // r4
char *v4; // r9
unsigned __int8 *v5; // r6
int v6; // r0
int v7; // t1
unsigned __int8 *v8; // r11
int v9; // r10
int v10; // t1
int v11; // r4
int v12; // r0
int v13; // r4
int v14; // r4
int v16[3]; // [sp+4h] [bp+0h] BYREF
int v17[3]; // [sp+10h] [bp+Ch] BYREF
v2 = *a2;
std::string::basic_string(v16, *a1 + 264);
if ( (v16[0] & 1) != 0 )
v3 = (char *)v16[2];
else
v3 = (char *)v16 + 1;
std::string::basic_string(v17, v2 + 264);
v4 = v3 - 1;
if ( (v17[0] & 1) != 0 )
v5 = (unsigned __int8 *)v17[2];
else
v5 = (unsigned __int8 *)v17 + 1;
while ( 1 )
{
v7 = (unsigned __int8)*++v4;
v6 = v7;
v8 = v5;
if ( !v7 )
break;
v10 = *v5++;
v9 = v10;
if ( !v10 )
break;
v11 = tolower(v6);
v12 = v11 - tolower(v9);
if ( v12 )
{
v13 = v12;
goto LABEL_12;
}
}
v14 = tolower(v6);
v13 = v14 - tolower(*v8);
LABEL_12:
std::string::~string((int)v17);
std::string::~string((int)v16);
return v13;
}