// // cocos2d::unzStringFileNameCompare from 0x1800a2570 to 0x1800a25f9 (137 bytes) // // 1 xrefs: // > @ 0x1801438a8 // // 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, cocos2d *a2, const char *a3) { int v3; // eax cocos2d *v4; // r11 __int64 v5; // r11 unsigned __int8 v6; // al __int64 v8; // rcx char v9; // r8 char v10; // r9 char v11; // r10 char v12; // r8 v3 = 2; v4 = a2; if ( (_DWORD)a3 ) v3 = (int)a3; if ( v3 == 1 ) { v5 = a2 - this; while ( 1 ) { v6 = *(_BYTE *)this; if ( *(_BYTE *)this != *((_BYTE *)this + v5) ) break; this = (cocos2d *)((char *)this + 1); if ( !v6 ) return 0; } return v6 < *((_BYTE *)this + v5) ? -1 : 1; } else { v8 = this - a2; while ( 1 ) { v9 = *((_BYTE *)v4 + v8); v10 = *(_BYTE *)v4; v4 = (cocos2d *)((char *)v4 + 1); v11 = v9 - 32; if ( (unsigned __int8)(v9 - 97) > 0x19u ) v11 = v9; v12 = v10 - 32; if ( (unsigned __int8)(v10 - 97) > 0x19u ) v12 = v10; if ( !v11 ) break; if ( !v12 ) return 1; if ( v11 < v12 ) return 0xFFFFFFFFLL; if ( v11 > v12 ) return 1; } return (unsigned int)-(v12 != 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source