//
// sub_100017238 from 0x100017238 to 0x100017274 (60 bytes)
//
// 18 xrefs:
// > sub_100045160 @ 0x100045248
// > sub_1000A3208 @ 0x1000a32ec
// > sub_1000FD800 @ 0x1000fd8bc
// > PlayLayer::prepareCreateObjectsFromSetup @ 0x100116240
// > cocos2d::CCFileUtils::init @ 0x100150a94
// > cocos2d::CCFileUtils::setSearchResolutionsOrder @ 0x100151be8
// > cocos2d::CCFileUtils::setSearchPaths @ 0x100151e68
// > cocos2d::CCFileUtils::setSearchPaths @ 0x100151ea8
// > cocos2d::CCFileUtils::addSearchPath @ 0x10015208c
// > sub_100155A98 @ 0x100155b80
// > sub_10019CD90 @ 0x10019ce4c
// > GJBaseGameLayer::updateLayerCapacity @ 0x1001df758
// > sub_100319AA4 @ 0x100319b8c
// > sub_100332314 @ 0x1003323fc
// > sub_100357AB0 @ 0x100357b98
// > EventLinkTrigger::customObjectSetup @ 0x10038e834
// > sub_1003A6DB0 @ 0x1003a6ed8
// > sub_1003EED9C @ 0x1003eee84
//
// 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_100017238(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_1000172D0();
}
else
{
sub_100017274();
result = v2 + 24;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}