//
// cocos2d::unzStringFileNameCompare from 0x1800a6090 to 0x1800a60fc (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:15 +0000
//
int __fastcall cocos2d::unzStringFileNameCompare(cocos2d *this, const char *a2, const char *a3)
{
int v3; // eax
const char *v4; // r9
char v5; // al
char v6; // r10
char v7; // r8
v3 = 2;
v4 = a2;
if ( (_DWORD)a3 )
v3 = (int)a3;
if ( v3 == 1 )
return strcmp((const char *)this, a2);
while ( 1 )
{
v5 = v4[this - (cocos2d *)a2];
v6 = *v4++;
if ( v5 >= 97 && v5 <= 122 )
v5 -= 32;
v7 = v6 - 32;
if ( (unsigned __int8)(v6 - 97) > 0x19u )
v7 = v6;
if ( !v5 )
break;
if ( !v7 )
return 1;
if ( v5 < v7 )
return -1;
if ( v5 > v7 )
return 1;
}
return -(v7 != 0);
}