//
// sub_1800182E0 from 0x1800182e0 to 0x18001834d (109 bytes)
//
// 6 xrefs:
// > sub_1800166E0 @ 0x1800167cd
// > sub_18006CA70 @ 0x18006cac5
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebdf
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917ea
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800afffd
// > ??> @ 0x1801ae7d0
//
// 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 sub_1800182E0(__int64 a1, const void **a2, const void **a3)
{
const void *v3; // rax
const void *v4; // rcx
size_t v5; // rdi
size_t v6; // rbx
size_t v7; // r8
unsigned int v8; // eax
v3 = a3;
if ( (unsigned __int64)a3[3] > 0xF )
v3 = *a3;
v4 = a2;
if ( (unsigned __int64)a2[3] > 0xF )
v4 = *a2;
v5 = (size_t)a3[2];
v6 = (size_t)a2[2];
v7 = v6;
if ( v5 < v6 )
v7 = v5;
v8 = memcmp(v4, v3, v7);
if ( !v8 )
{
if ( v6 < v5 )
return 1;
v8 = v6 > v5;
}
return v8 >> 31;
}