//
// sub_D3AB4 from 0xd3ab4 to 0xd3b14 (96 bytes)
//
// 10 xrefs:
// > sub_D3478 @ 0xd3582
// > sub_D3478 @ 0xd3888
// > sub_D3478 @ 0xd3892
// > sub_D3478 @ 0xd389c
// > sub_D3478 @ 0xd38a6
// > sub_D3478 @ 0xd38b0
// > sub_D3478 @ 0xd38ba
// > sub_D3478 @ 0xd38c4
// > sub_D3478 @ 0xd38ce
// > sub_D3478 @ 0xd38d8
//
// 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
//
int __fastcall sub_D3AB4(unsigned __int8 *j, char *s)
{
size_t v4; // r0
int v5; // r4
size_t v6; // r5
unsigned __int8 *i; // r0
int v8; // t1
bool v9; // zf
int v10; // t1
bool v11; // zf
v4 = strlen(s);
if ( j )
{
v5 = *j;
v6 = v4;
while ( v5 << 24 )
{
for ( i = j; ; ++i )
{
v9 = (unsigned __int8)v5 == 9;
if ( (unsigned __int8)v5 != 9 )
v9 = (unsigned __int8)v5 == 32;
if ( !v9 )
break;
v8 = i[1];
v5 = v8;
}
for ( j = i; (_BYTE)v5; ++j )
{
v11 = (unsigned __int8)v5 == 9;
if ( (unsigned __int8)v5 != 9 )
v11 = (unsigned __int8)v5 == 32;
if ( v11 )
break;
v10 = j[1];
v5 = v10;
}
if ( v6 == j - i && !memcmp(i, s, v6) )
return 1;
}
}
return 0;
}