//
// sub_180017F50 from 0x180017f50 to 0x180017fbd (109 bytes)
//
// 6 xrefs:
// > sub_1800162A0 @ 0x18001637b
// > sub_18006ED80 @ 0x18006edd5
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x180070beb
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180094cb0
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b3a5e
// > ??> @ 0x1801b883c
//
// 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:21:25 +0000
//
__int64 __fastcall sub_180017F50(__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;
}