//
// sub_D13C5C from 0xd13c5c to 0xd13db0 (340 bytes)
//
// 203 xrefs:
// > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x573fa4
// > GameToolbox::stringSetupToDict @ 0x5816f4
// > sub_583398 @ 0x5835ac
// > GameToolbox::stringSetupToMap @ 0x584b5c
// > MultilineBitmapFont::stringWithMaxWidth @ 0x589f38
// > MultilineBitmapFont::stringWithMaxWidth @ 0x589f94
// > MultilineBitmapFont::stringWithMaxWidth @ 0x589fa8
// > MultilineBitmapFont::stringWithMaxWidth @ 0x589fdc
// > MultilineBitmapFont::stringWithMaxWidth @ 0x589ff4
// > MultilineBitmapFont::readColorInfo @ 0x58a9ec
// > MultilineBitmapFont::readColorInfo @ 0x58aa48
// > SpriteAnimationManager::createAnimations @ 0x58f270
// > sub_5BFAA8 @ 0x5bfd04
// > PlayLayer::prepareCreateObjectsFromSetup @ 0x5d5fdc
// > PlayLayer::processCreateObjectsFromSetup @ 0x5dd9c0
// > PlayLayer::processCreateObjectsFromSetup @ 0x5dda74
// > GameManager::getUnlockForAchievement @ 0x5e9a68
// > sub_5EE82C @ 0x5eea40
// > LevelTools::createStarPackDict @ 0x6062d4
// > AchievementCell::loadFromDict @ 0x60e7f8
// > GameObject::loadGroupsFromString @ 0x64750c
// > sub_66B910 @ 0x66bb24
// > LevelEditorLayer::createObjectsFromSetup @ 0x67128c
// > LevelEditorLayer::createObjectsFromSetup @ 0x67135c
// > LevelEditorLayer::createObjectsFromString @ 0x671bb0
// > LevelEditorLayer::createObjectsFromString @ 0x671bf8
// > LevelEditorLayer::breakApartTextObject @ 0x672438
// > LevelEditorLayer::breakApartTextObject @ 0x67247c
// > LevelEditorLayer::init @ 0x67d2f0
// > sub_6B6FCC @ 0x6b71e0
// > EditorUI::createPrefab @ 0x6c09ac
// > LevelBrowserLayer::setupPageInfo @ 0x6e92a4
// > sub_6F004C @ 0x6f02b4
// > GameLevelManager::getNextLevelName @ 0x6f0e2c
// > GameLevelManager::getNextLevelName @ 0x6f0e40
// > GameLevelManager::onGetGJSecretRewardCompleted @ 0x6fd0cc
// > GameLevelManager::onGetGJRewardsCompleted @ 0x6fdc0c
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x6ff448
// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x70b874
// > parseLevelLeaderboardKey @ 0x719ed4
// > GameLevelManager::getGJRewards @ 0x72a47c
// > GJLevelList::parseListLevels @ 0x72ef6c
// > sub_74769C @ 0x7478a0
// > sub_752D7C @ 0x752fa0
// > EventLinkTrigger::customObjectSetup @ 0x771ca8
// > compareStrings @ 0x78c0b0
// > AudioEffectsLayer::init @ 0x78f22c
// > sub_7A19E8 @ 0x7a1c50
// > sub_7AEA8C @ 0x7aeca0
// > AchievementBar::init @ 0x7d85bc
// > formatTags @ 0x7deccc
// > InfoLayer::setupPageInfo @ 0x7e3b28
// > sub_82052C @ 0x820794
// > sub_827328 @ 0x827588
// > sub_830154 @ 0x830368
// > sub_844C0C @ 0x844e74
// > GJAccountManager::onSyncAccountCompleted @ 0x84902c
// > GJAccountManager::onSyncAccountCompleted @ 0x8490e0
// > GJBaseGameLayer::loadGroupParentsFromString @ 0x8605c4
// > GJBaseGameLayer::updateLayerCapacity @ 0x86df20
// > GJBaseGameLayer::updateLayerCapacity @ 0x86df70
// > sub_8A7F28 @ 0x8a8104
// > GJEffectManager::setupFromString @ 0x8c0a1c
// > SetupSpawnPopup::onSelectRemap @ 0x8ea570
// > MessagesProfilePage::setupPageInfo @ 0x8f4258
// > FRequestProfilePage::setupPageInfo @ 0x8f6744
// > ProfilePage::setupPageInfo @ 0x8ff714
// > sub_900FBC @ 0x9011c0
// > SecretNumberLayer::playNumberEffect @ 0x94196c
// > TopArtistsLayer::setupPageInfo @ 0x966998
// > sub_980C40 @ 0x980ea8
// > GJSmartTemplate::getVerySimplifiedKey @ 0x9d0bc4
// > GJSmartTemplate::getSimplifiedKey @ 0x9d2068
// > GJSmartTemplate::getSimplifiedKey @ 0x9d2588
// > GJSmartTemplate::getSimplifiedKey @ 0x9d2598
// > GJSmartTemplate::getSimplifiedKey @ 0x9d25a8
// > GJSmartTemplate::getSimplifiedKey @ 0x9d25b8
// > GJSmartTemplate::getSimplifiedKey @ 0x9d25cc
// > GJSmartTemplate::getSimplifiedKey @ 0x9d25e0
// > GJSmartTemplate::getSimplifiedKey @ 0x9d25f0
// > GJSmartTemplate::getSimplifiedKey @ 0x9d2600
// > GJSmartTemplate::rotateKey @ 0x9d4e78
// > GJSmartTemplate::rotateKey @ 0x9d4f10
// > GJSmartTemplate::rotateKey @ 0x9d4f20
// > GJSmartTemplate::rotateKey @ 0x9d4f30
// > GJSmartTemplate::rotateKey @ 0x9d4f44
// > GJSmartTemplate::rotateKey @ 0x9d4f54
// > GJSmartTemplate::rotateKey @ 0x9d4f64
// > GJSmartTemplate::rotateKey @ 0x9d4f74
// > GJSmartTemplate::rotateKey @ 0x9d4f84
// > GJSmartTemplate::flipKey @ 0x9d52ac
// > GJSmartTemplate::flipKey @ 0x9d5334
// > GJSmartTemplate::flipKey @ 0x9d5344
// > GJSmartTemplate::flipKey @ 0x9d5354
// > GJSmartTemplate::flipKey @ 0x9d5364
// > GJSmartTemplate::flipKey @ 0x9d5374
// > GJSmartTemplate::flipKey @ 0x9d5384
// > GJSmartTemplate::flipKey @ 0x9d5394
// > GJSmartTemplate::flipKey @ 0x9d53a8
// > GJSmartTemplate::isUnrequired @ 0x9d5610
// > GJSmartTemplate::isUnrequired @ 0x9d5620
// > GJSmartTemplate::isUnrequired @ 0x9d5630
// > GJSmartTemplate::isUnrequired @ 0x9d5640
// > GJSmartTemplate::isUnrequired @ 0x9d5650
// > GJSmartTemplate::isUnrequired @ 0x9d5660
// > GJSmartTemplate::isUnrequired @ 0x9d5670
// > GJSmartTemplate::isUnrequired @ 0x9d5680
// > GJSmartBlockPreview::addPreview @ 0x9d6264
// > GJSmartBlockPreview::addTemplateGuide @ 0x9d6c84
// > GJSmartBlockPreview::addTemplateGuide @ 0x9d6cc0
// > GJSmartBlockPreview::addTemplateGuide @ 0x9d6cd0
// > GJSmartTemplate::generateRemapDict @ 0x9db860
// > GJSmartTemplate::generateRemapDict @ 0x9db980
// > GJSmartTemplate::generateRemapDict @ 0x9db990
// > GJSmartTemplate::generateRemapDict @ 0x9db9a0
// > GJSmartTemplate::generateRemapDict @ 0x9db9b0
// > GJSmartTemplate::generateRemapDict @ 0x9db9c0
// > GJSmartTemplate::generateRemapDict @ 0x9db9d0
// > GJSmartTemplate::generateRemapDict @ 0x9db9e0
// > cocos2d::extension::WebSocket::init @ 0xaae2e4
// > cocos2d::extension::WebSocket::init @ 0xaae330
// > cocos2d::extension::WebSocket::init @ 0xaae35c
// > localStorageInit @ 0xaaedb8
// > cocos2d::CCPointArray::getControlPointAtIndex @ 0xab4fb4
// > cocos2d::CCPointArray::replaceControlPoint @ 0xab500c
// > cocos2d::CCPointArray::reverseInline @ 0xab51dc
// > cocos2d::CCAnimate::update @ 0xac0abc
// > sub_AD18EC @ 0xad1e2c
// > sub_AD18EC @ 0xad1e44
// > cocos2d::CCRectFromString @ 0xad2914
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0xae3330
// > cocos2d::CCBMFontConfiguration::parseInfoArguments @ 0xae3478
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xae3808
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xae3828
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xae3844
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3f3c
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3f5c
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3f78
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0xae45bc
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0xae45e0
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0xae5a5c
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb018fc
// > cocos2d::CCFileUtils::getPathForFilename @ 0xb055bc
// > cocos2d::CCImage::initWithString @ 0xb0d744
// > cocos2d::CCImage::initWithStringShadowStroke @ 0xb0dbc8
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0xb1bed0
// > cocos2d::ZipUtils::urlDecode @ 0xb29f10
// > cocos2d::ZipUtils::urlDecode @ 0xb29f24
// > cocos2d::CCTextFieldTTF::insertText @ 0xb30294
// > cocos2d::CCTextFieldTTF::deleteBackward @ 0xb30adc
// > cocos2d::CCTextFieldTTF::deleteBackward @ 0xb30b24
// > DS_Dictionary::split @ 0xb47284
// > DS_Dictionary::split @ 0xb472a0
// > DS_Dictionary::splitWithForm @ 0xb47400
// > DS_Dictionary::rectFromString @ 0xb48c00
// > sub_CDE33C @ 0xcde8cc
// > sub_CDE8E0 @ 0xcdee70
// > sub_D004F0 @ 0xd00ba4
// > sub_D00C0C @ 0xd012c0
// > sub_D14DAC @ 0xd14de0
// > sub_D14F84 @ 0xd150f0
// > sub_D15100 @ 0xd1526c
// > sub_D15CC0 @ 0xd15cec
// > sub_D15ED8 @ 0xd15fd0
// > sub_D16348 @ 0xd163d0
// > sub_D16FB0 @ 0xd17010
// > sub_D1707C @ 0xd17114
// > sub_D17118 @ 0xd171c0
// > sub_D17118 @ 0xd171dc
// > sub_D1725C @ 0xd1730c
// > sub_D17310 @ 0xd173a8
// > sub_D17774 @ 0xd177d0
// > sub_D17AD8 @ 0xd17b20
// > sub_D17B90 @ 0xd17d68
// > sub_D17D78 @ 0xd17dc0
// > sub_D17E0C @ 0xd17e4c
// > sub_D1818C @ 0xd18204
// > sub_D18354 @ 0xd18410
// > sub_D184B8 @ 0xd18580
// > sub_D1861C @ 0xd188dc
// > sub_D18910 @ 0xd18958
// > sub_D1A0A8 @ 0xd1a0dc
// > sub_D1A3F8 @ 0xd1a424
// > sub_D1A474 @ 0xd1a4fc
// > sub_D1B074 @ 0xd1b10c
// > sub_D1B110 @ 0xd1b1b8
// > sub_D1B110 @ 0xd1b1d4
// > sub_D1B258 @ 0xd1b310
// > sub_D1B314 @ 0xd1b3ac
// > sub_D1B784 @ 0xd1b7e0
// > sub_D1BAE4 @ 0xd1bb2c
// > sub_D1BB9C @ 0xd1bd84
// > sub_D1BD98 @ 0xd1bde0
// > sub_D1BE2C @ 0xd1be6c
// > sub_D1C140 @ 0xd1c1b8
// > sub_D1C2FC @ 0xd1c3b4
// > sub_D1C460 @ 0xd1c528
// > sub_D1C660 @ 0xd1c780
// > sub_D1C784 @ 0xd1c7e4
// > sub_D1C8C4 @ 0xd1cba0
// > sub_D1CBD4 @ 0xd1cc1c
// > sub_D1CF48 @ 0xd1d068
// > sub_D1D3A4 @ 0xd1d49c
//
// 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
//
void __noreturn sub_D13C5C(const char *a1, ...)
{
size_t v2; // x0
_QWORD *exception; // x19
char v4[16]; // [xsp+0h] [xbp+0h] BYREF
gcc_va_list va; // [xsp+30h] [xbp+30h] BYREF
__int64 v6; // [xsp+68h] [xbp+68h] BYREF
gcc_va_list va1; // [xsp+70h] [xbp+70h] BYREF
va_start(va, a1);
va_start(va1, a1);
v2 = strlen(a1);
sub_D14BA0(v4, v2 + 512, a1, va);
exception = _cxa_allocate_exception(0x10u);
sub_D153B8((int)&v6, v4);
sub_CF8FB0(exception);
if ( (__int64 *)(v6 - 24) != &qword_124B6B0 )
sub_D137C8((void *)(v6 - 24));
_cxa_throw(exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))sub_CF88CC);
}