//
// sub_776158 from 0x776158 to 0x77617c (36 bytes)
//
// 127 xrefs:
// > FontObject::parseConfigFile @ 0x2e0a66
// > FontObject::parseConfigFile @ 0x2e0aa0
// > FontObject::parseConfigFile @ 0x2e0b3e
// > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x2e50ec
// > GameToolbox::stringSetupToDict @ 0x2ecd32
// > sub_2EE0A0 @ 0x2ee0d2
// > GameToolbox::stringSetupToMap @ 0x2ee996
// > MultilineBitmapFont::stringWithMaxWidth @ 0x2f0e98
// > MultilineBitmapFont::stringWithMaxWidth @ 0x2f0fbc
// > MultilineBitmapFont::readColorInfo @ 0x2f12d8
// > MultilineBitmapFont::readColorInfo @ 0x2f1380
// > MultilineBitmapFont::readColorInfo @ 0x2f139a
// > MultilineBitmapFont::readColorInfo @ 0x2f1432
// > SpriteAnimationManager::createAnimations @ 0x2f31ae
// > CCTextInputNode::onTextFieldInsertText @ 0x2faf18
// > sub_3088BC @ 0x308902
// > PlayLayer::prepareCreateObjectsFromSetup @ 0x31aaba
// > PlayLayer::processCreateObjectsFromSetup @ 0x31c5fa
// > PlayLayer::processCreateObjectsFromSetup @ 0x31c62c
// > GameManager::getUnlockForAchievement @ 0x32112a
// > sub_323710 @ 0x323742
// > LevelTools::createStarPackDict @ 0x32c68e
// > AchievementCell::loadFromDict @ 0x330b36
// > GameObject::loadGroupsFromString @ 0x3569cc
// > sub_36F6EC @ 0x36f71e
// > LevelEditorLayer::createObjectsFromSetup @ 0x370f5c
// > LevelEditorLayer::createObjectsFromSetup @ 0x370f8c
// > LevelEditorLayer::createObjectsFromString @ 0x37121e
// > LevelEditorLayer::createObjectsFromString @ 0x37124a
// > LevelEditorLayer::breakApartTextObject @ 0x371614
// > LevelEditorLayer::init @ 0x3767d6
// > sub_39DB4C @ 0x39db7e
// > LevelBrowserLayer::setupPageInfo @ 0x3bb4a2
// > sub_3BE530 @ 0x3be570
// > GameLevelManager::getNextLevelName @ 0x3bf05a
// > GameLevelManager::getNextLevelName @ 0x3bf106
// > GameLevelManager::onGetGJSecretRewardCompleted @ 0x3c361e
// > GameLevelManager::onGetGJRewardsCompleted @ 0x3c394e
// > GameLevelManager::onGetGJChallengesCompleted @ 0x3c3d60
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x3c42ce
// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x3c950a
// > parseLevelLeaderboardKey @ 0x3ceaec
// > GameLevelManager::getGJRewards @ 0x3d3dee
// > GameLevelManager::getGJRewards @ 0x3d3e00
// > GJLevelList::parseListLevels @ 0x3d67ea
// > sub_3E033C @ 0x3e0376
// > sub_3E59B8 @ 0x3e59fe
// > EventLinkTrigger::customObjectSetup @ 0x3ed160
// > compareStrings @ 0x3ffc64
// > compareStrings @ 0x3ffc94
// > AudioEffectsLayer::init @ 0x401930
// > sub_40C12C @ 0x40c16c
// > sub_41324C @ 0x41327e
// > AchievementBar::init @ 0x42a41e
// > InfoLayer::setupPageInfo @ 0x430008
// > sub_45313C @ 0x45317c
// > NumberInputLayer::deleteLast @ 0x45559c
// > sub_456F20 @ 0x456f6c
// > sub_45A6C8 @ 0x45a6fa
// > sub_464224 @ 0x464264
// > GJAccountManager::onSyncAccountCompleted @ 0x464a6a
// > GJAccountManager::onSyncAccountCompleted @ 0x464ade
// > GJBaseGameLayer::loadGroupParentsFromString @ 0x472fee
// > GJBaseGameLayer::updateLayerCapacity @ 0x47e3aa
// > GJBaseGameLayer::updateLayerCapacity @ 0x47e4b4
// > sub_49AFF4 @ 0x49b026
// > GJEffectManager::setupFromString @ 0x49dd82
// > GJRobotSprite::init @ 0x4b85f6
// > MessagesProfilePage::setupPageInfo @ 0x4c1d50
// > FRequestProfilePage::setupPageInfo @ 0x4c3292
// > ProfilePage::setupPageInfo @ 0x4c821c
// > sub_4C8F88 @ 0x4c8fc2
// > SecretNumberLayer::playNumberEffect @ 0x4ed320
// > TopArtistsLayer::setupPageInfo @ 0x5012ec
// > sub_50FBC8 @ 0x50fc08
// > GJSmartTemplate::getNoCornerKey @ 0x5399f6
// > cocos2d::extension::WebSocket::init @ 0x5acf74
// > cocos2d::extension::WebSocket::init @ 0x5acfc0
// > localStorageInit @ 0x5ad55e
// > sub_5C0FE8 @ 0x5c105c
// > sub_5C0FE8 @ 0x5c10d6
// > cocos2d::CCRectFromString @ 0x5c132e
// > cocos2d::CCRectFromString @ 0x5c136e
// > cocos2d::CCRectFromString @ 0x5c1386
// > cocos2d::CCLabelAtlas::initWithString @ 0x5cb302
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc50
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc78
// > cocos2d::CCBMFontConfiguration::parseInfoArguments @ 0x5cbcf4
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbd70
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbda8
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbde6
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbe24
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbea4
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbed8
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf18
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf5a
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf9c
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbfde
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cc020
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cc062
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc120
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc150
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc18e
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc4f6
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc512
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc544
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc570
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc59c
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc5ca
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc5ec
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc870
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcb4a
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dccc0
// > cocos2d::CCParticleSystem::initWithFile @ 0x5dce64
// > cocos2d::CCFileUtils::getPathForFilename @ 0x5de882
// > cocos2d::CCFileUtils::getPathForFilename @ 0x5de8a2
// > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x5de96e
// > cocos2d::BitmapDC::getBitmapFromJavaShadowStroke @ 0x5e2516
// > cocos2d::ZipUtils::urlDecode @ 0x5efc58
// > sub_5F05AC @ 0x5f062e
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f92f0
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f96f2
// > DS_Dictionary::split @ 0x5fe12e
// > DS_Dictionary::splitWithForm @ 0x5fe1b0
// > DS_Dictionary::rectFromString @ 0x5fe5a0
// > DS_Dictionary::rectFromString @ 0x5fe5de
// > DS_Dictionary::rectFromString @ 0x5fe5f8
//
// 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 **__fastcall sub_776158(void **a1, int *a2, unsigned int a3, unsigned int a4)
{
if ( a3 > *(_DWORD *)(*a2 - 12) )
sub_7732C4(
"%s: __pos (which is %zu) > this->size() (which is %zu)",
"basic_string::substr",
a3,
*(_DWORD *)(*a2 - 12));
sub_776110(a1, a2, a3, a4);
return a1;
}