//
// sub_100017C70 from 0x100017c70 to 0x100017cac (60 bytes)
//
// 33 xrefs:
// > sub_10000CE6C @ 0x10000cf54
// > sub_10004A628 @ 0x10004a710
// > sub_10004E838 @ 0x10004ea34
// > sub_1000AF778 @ 0x1000af938
// > sub_1000B0164 @ 0x1000b029c
// > sub_1000B32AC @ 0x1000b3394
// > sub_1001220DC @ 0x100122198
// > PlayLayer::prepareCreateObjectsFromSetup @ 0x10013ee38
// > sub_10018AD70 @ 0x10018ae58
// > sub_100194880 @ 0x100194978
// > cocos2d::CCFileUtils::init @ 0x1001cf708
// > cocos2d::CCFileUtils::setSearchResolutionsOrder @ 0x1001d081c
// > cocos2d::CCFileUtils::setSearchPaths @ 0x1001d0a9c
// > cocos2d::CCFileUtils::setSearchPaths @ 0x1001d0adc
// > cocos2d::CCFileUtils::addSearchPath @ 0x1001d0bf8
// > sub_1001D45F0 @ 0x1001d46d8
// > sub_10023136C @ 0x100231428
// > LocalLevelManager::tryRecoverAutoSaves @ 0x1002601f4
// > LocalLevelManager::exportLevelsToFile @ 0x100260f8c
// > LocalLevelManager::filesPicked @ 0x100261914
// > sub_100279C18 @ 0x100279cd4
// > sub_1003B6B24 @ 0x1003b6c0c
// > sub_1003D0278 @ 0x1003d0360
// > sub_1003F76E8 @ 0x1003f77d0
// > EventLinkTrigger::customObjectSetup @ 0x1004350dc
// > SongInfoLayer::init @ 0x10044eb58
// > sub_10044F560 @ 0x10044f6b4
// > sub_1004BCA94 @ 0x1004bcb04
// > EmotePickerPopup::onBuildWindowContent @ 0x1004db540
// > sub_1004F0B6C @ 0x1004f0c54
// > MusicChangelogPopup::buildContent @ 0x100517260
// > sub_100518264 @ 0x100518abc
// > sub_100523800 @ 0x10052411c
//
// 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 10:57:19 +0000
//
__int64 __fastcall sub_100017C70(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_100017D08();
}
else
{
sub_100017CAC();
result = v2 + 24;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}