//
// cocos2d::unzStringFileNameCompare from 0xb2cd0c to 0xb2cd98 (140 bytes)
//
// 2 xrefs:
// > cocos2d::unzLocateFile @ 0xb2dac0
// > ??> @ 0x87378
//
// 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 cocos2d::unzStringFileNameCompare(cocos2d *this, const char *a2, const char *a3)
{
__int64 v6; // x2
unsigned int v7; // w1
unsigned int v8; // w0
if ( (_DWORD)a3 == 1 )
return strcmp((const char *)this, a2);
v6 = 0;
while ( 1 )
{
v8 = *((unsigned __int8 *)this + v6);
v7 = (unsigned __int8)a2[v6++];
if ( (unsigned __int8)(v8 - 97) <= 0x19u )
v8 = (unsigned __int8)(v8 - 32);
if ( (unsigned __int8)(v7 - 97) <= 0x19u )
{
v7 = (unsigned __int8)(v7 - 32);
if ( !v8 )
break;
goto LABEL_5;
}
if ( !v8 )
break;
if ( !v7 )
return 1;
LABEL_5:
if ( v8 < v7 )
return 0xFFFFFFFFLL;
if ( v8 > v7 )
return 1;
}
if ( v7 )
return 0xFFFFFFFFLL;
else
return 0;
}