//
// sub_7749B0 from 0x7749b0 to 0x7749fa (74 bytes)
//
// 1 xrefs:
// > ProfilePage::onSocialPage @ 0x4c4dba
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
size_t __fastcall sub_7749B0(int *a1, char *a2, size_t a3)
{
size_t v6; // r0
int v7; // r7
size_t v8; // r4
size_t v9; // r6
size_t v11; // r4
v6 = strlen(a2);
v7 = *a1;
v8 = *(_DWORD *)(*a1 - 12);
v9 = v6;
if ( v6 > v8 )
return -1;
v11 = v8 - v6;
if ( v11 >= a3 )
v11 = a3;
while ( memcmp((const void *)(v7 + v11), a2, v9) )
{
if ( !v11 )
return -1;
--v11;
}
return v11;
}