//
// sub_18000CE80 from 0x18000ce80 to 0x18000cee6 (102 bytes)
//
// 135 xrefs:
// > sub_18000CEF0 @ 0x18000cf62
// > sub_18000CFB0 @ 0x18000d023
// > cocos2d::CCRectFromString @ 0x18000d645
// > cocos2d::CCRectFromString @ 0x18000d869
// > cocos2d::CCRectFromString @ 0x18000d93e
// > sub_18000E0F0 @ 0x18000e239
// > sub_18000E0F0 @ 0x18000e360
// > sub_18000E450 @ 0x18000e60b
// > sub_18000E450 @ 0x18000e7fc
// > sub_180015D00 @ 0x180015d9d
// > sub_180015F00 @ 0x180015f8f
// > sub_180016100 @ 0x180016178
// > sub_180016870 @ 0x1800168f1
// > sub_180016930 @ 0x1800169b2
// > DS_Dictionary::copyFile @ 0x180019120
// > DS_Dictionary::copyFile @ 0x1800191f6
// > DS_Dictionary::getAllKeys @ 0x180019814
// > DS_Dictionary::getDictForKey @ 0x180019e03
// > DS_Dictionary::getStringArrayForKey @ 0x18001b2b4
// > sub_18001C3F0 @ 0x18001c4a1
// > sub_18001C710 @ 0x18001c79b
// > DS_Dictionary::rectFromString @ 0x18001ca30
// > DS_Dictionary::rectFromString @ 0x18001cbd0
// > DS_Dictionary::rectFromString @ 0x18001cc96
// > DS_Dictionary::setBoolMapForKey @ 0x18001ec9c
// > DS_Dictionary::split @ 0x1800210bb
// > DS_Dictionary::split @ 0x1800211e6
// > DS_Dictionary::splitWithForm @ 0x18002144c
// > DS_Dictionary::stepIntoSubDictWithKey @ 0x1800217ea
// > sub_180021B50 @ 0x180021cd8
// > sub_1800444C0 @ 0x1800445a0
// > fmt::SystemError::init @ 0x1800447e7
// > fmt::WindowsError::init @ 0x180044a77
// > sub_1800455C0 @ 0x18004566e
// > sub_1800457A0 @ 0x1800457f7
// > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x180046145
// > sub_180048300 @ 0x1800483a8
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004a68c
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004a7e6
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004a99d
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004ab54
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004ad0b
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004aebf
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x18004b329
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x18004b47f
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x18004b62d
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x18004b7d0
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004bb57
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004bc79
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004bd86
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004be87
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004bfaa
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004c06d
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004c190
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004c439
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004ca13
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x18004cd22
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x18004ce5b
// > cocos2d::CCBMFontConfiguration::parseInfoArguments @ 0x18004d11d
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x18004d37b
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x18004d4d5
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x18004d686
// > sub_18004DE80 @ 0x18004df03
// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004e82f
// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004e8ba
// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004eab0
// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004ec45
// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004f147
// > sub_18006E650 @ 0x18006e6ed
// > sub_18006E750 @ 0x18006e7de
// > sub_18006E8C0 @ 0x18006e987
// > sub_18006EC00 @ 0x18006ec78
// > sub_18006F4D0 @ 0x18006f554
// > sub_18006F6A0 @ 0x18006f725
// > cocos2d::CCFileUtils::addSearchPath @ 0x18006f9c0
// > cocos2d::CCFileUtils::addSuffix @ 0x18006fd84
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x180070dbd
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x180070f59
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x1800710ae
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x1800713a8
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x180071547
// > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x180071910
// > cocos2d::CCFileUtils::getFileData @ 0x180072026
// > cocos2d::CCFileUtils::getPathForFilename @ 0x1800725b0
// > cocos2d::CCFileUtils::getPathForFilename @ 0x18007268b
// > cocos2d::CCFileUtils::removeSearchPath @ 0x180073173
// > cocos2d::CCFileUtils::setSearchPaths @ 0x180073651
// > cocos2d::CCFileUtils::setSearchResolutionsOrder @ 0x1800739c4
// > sub_180074280 @ 0x18007439d
// > sub_1800751E0 @ 0x180075287
// > sub_180075910 @ 0x1800759b7
// > cocos2d::CCApplication::setResourceRootPath @ 0x1800764e0
// > cocos2d::CCApplication::setResourceRootPath @ 0x1800766ae
// > sub_1800789D0 @ 0x180078a51
// > sub_180078E30 @ 0x180078ee3
// > sub_18007C950 @ 0x18007ca14
// > sub_18007CD00 @ 0x18007cd4b
// > cocos2d::CCFileUtilsWin32::getWritablePath2 @ 0x18007d65a
// > cocos2d::CCFileUtilsWin32::getWritablePath @ 0x18007d891
// > cocos2d::CCFileUtilsWin32::getWritablePath @ 0x18007d9b8
// > cocos2d::CCFileUtilsWin32::getWritablePath @ 0x18007db5c
// > cocos2d::CCFileUtilsWin32::getWritablePath @ 0x18007dc62
// > cocos2d::CCFileUtilsWin32::isFileExist @ 0x18007dfd8
// > sub_180088340 @ 0x18008841e
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180093b95
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0x180095387
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0x18009547c
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x1800958f2
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x18009599d
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x180095aaf
// > cocos2d::CCSpriteFrameCache::spriteFrameByName @ 0x180095e79
// > cocos2d::cc_utf16_to_utf8 @ 0x1800985a8
// > cocos2d::cc_utf16_vec_from_utf16_str @ 0x180098895
// > sub_1800A63E0 @ 0x1800a64c1
// > sub_1800A7F40 @ 0x1800a80ce
// > cocos2d::ZipUtils::urlDecode @ 0x1800a8334
// > cocos2d::ZipUtils::urlDecode @ 0x1800a842d
// > sub_1800AAC20 @ 0x1800aacbb
// > cocos2d::CCTextureCache::addImage @ 0x1800ab150
// > cocos2d::CCTextureCache::addImage @ 0x1800ab35f
// > cocos2d::CCTextureCache::addImage @ 0x1800ab3ed
// > cocos2d::CCTextureCache::addImageAsync @ 0x1800abb63
// > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x1800ac009
// > cocos2d::CCTextureCache::addUIImage @ 0x1800ac5ab
// > cocos2d::CCTextureCache::addUIImage @ 0x1800ac717
// > cocos2d::CCTextureCache::snapshotTextures @ 0x1800ad3ed
// > sub_1800B21E0 @ 0x1800b2257
// > sub_1800B22B0 @ 0x1800b23b5
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b3944
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b39f4
// > cocos2d::CCTMXMapInfo::textHandler @ 0x1800b5cab
// > sub_1800C6850 @ 0x1800c697e
// > sub_1800C6D30 @ 0x1800c6d89
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x1800ca363
// > ??> @ 0x1801b7ed0
//
// 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:20 +0000
//
unsigned __int64 __fastcall sub_18000CE80(size_t a1)
{
unsigned __int64 result; // rax
__int64 v2; // rax
__int64 v3; // rcx
if ( !a1 )
return 0;
if ( a1 < 0x1000 )
return sub_1800E4AC0(a1);
if ( a1 + 39 < a1 )
Concurrency::cancel_current_task();
v2 = sub_1800E4AC0(a1 + 39);
v3 = v2;
if ( !v2 )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
result = (v2 + 39) & 0xFFFFFFFFFFFFFFE0uLL;
*(_QWORD *)(result - 8) = v3;
return result;
}