//
// sub_1005FE6BC from 0x1005fe6bc to 0x1005fe744 (136 bytes)
//
// 1 xrefs:
// > sub_1005FE964 @ 0x1005fea10
//
// 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
//
__int64 __fastcall sub_1005FE6BC(const char *a1, const char *a2)
{
int v4; // w21
int v5; // w0
__int64 v6; // x21
v4 = strlen(a1);
v5 = strlen(a2);
if ( v5 + 1 >= v4 )
return 0;
v6 = v4 - (__int64)v5;
if ( strcmp(&a1[v6], a2) )
return 0;
if ( a1[v6 - 1] == 32 )
return (unsigned int)(v6 - 1);
return 0;
}