//
// cocos2d::unzStringFileNameCompare from 0xd9e00c to 0xd9e098 (140 bytes)
//
// 2 xrefs:
// > cocos2d::unzLocateFile @ 0xd9edc0
// > ??> @ 0xb3620
//
// This function is hookable on this platform (idp: arm, 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 13:08:28 +0000
//
__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;
}