//
// sub_774D3C from 0x774d3c to 0x774d80 (68 bytes)
//
// 1 xrefs:
// > formatTags @ 0x42da14
//
// 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
//
unsigned int __fastcall sub_774D3C(int *a1, char *a2, unsigned int a3)
{
size_t v6; // r0
int v7; // r5
int v8; // r3
unsigned int v10; // r3
size_t v11; // r7
unsigned __int8 *v12; // r5
int v14; // t1
v6 = strlen(a2);
v7 = *a1;
v8 = *(_DWORD *)(v7 - 12);
if ( !v8 )
return -1;
v10 = v8 - 1;
v11 = v6;
if ( a3 >= v10 )
a3 = v10;
v12 = (unsigned __int8 *)(v7 + a3);
do
{
v14 = *v12--;
if ( !memchr(a2, v14, v11) )
break;
}
while ( a3-- != 0 );
return a3;
}