//
// sub_774794 from 0x774794 to 0x7747c0 (44 bytes)
//
// 231 xrefs:
// > PlatformToolbox::spriteFromSavedFile @ 0x2be5e8
// > GameToolbox::pointsToString @ 0x2efee6
// > GameToolbox::pointsToString @ 0x2eff0e
// > GameToolbox::pointsToString @ 0x2eff32
// > MultilineBitmapFont::stringWithMaxWidth @ 0x2f0fc4
// > MultilineBitmapFont::initWithFont @ 0x2f15ac
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x2fac9e
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x2facec
// > CCTextInputNode::onTextFieldInsertText @ 0x2faf20
// > FMODAudioEngine::queuedEffectFinishedLoading @ 0x30611c
// > PlayLayer::levelComplete @ 0x313590
// > PlayLayer::processCreateObjectsFromSetup @ 0x31c634
// > GameManager::playSFXTrigger @ 0x320cd6
// > GameManager::firstLoad @ 0x324290
// > GameManager::dataLoaded @ 0x328668
// > GameManager::dataLoaded @ 0x328686
// > GameManager::dataLoaded @ 0x328c1e
// > GameManager::dataLoaded @ 0x328c3c
// > GameManager::dataLoaded @ 0x328c5a
// > GameManager::dataLoaded @ 0x328c78
// > GameManager::dataLoaded @ 0x328c96
// > GameManager::dataLoaded @ 0x328cb4
// > GameManager::dataLoaded @ 0x328d50
// > CommentCell::loadFromComment @ 0x335dba
// > GJLocalLevelScoreCell::loadFromScore @ 0x3380ee
// > GJLocalLevelScoreCell::loadFromScore @ 0x338102
// > GJLevelScoreCell::loadFromScore @ 0x338654
// > GJLevelScoreCell::loadFromScore @ 0x338668
// > PlayerObject::createRobot @ 0x33cc74
// > PlayerObject::createSpider @ 0x33ce1e
// > GameObject::createAndAddParticle @ 0x355134
// > LevelEditorLayer::updateObjectLabel @ 0x3673e6
// > LevelEditorLayer::createObjectsFromSetup @ 0x370f94
// > LevelEditorLayer::createObjectsFromString @ 0x371252
// > LevelEditorLayer::init @ 0x376a3e
// > EditorUI::addObjectsToSmartTemplate @ 0x39c274
// > EditorUI::setIDPopupClosed @ 0x3a2fa6
// > EditorUI::doCopyObjects @ 0x3a6888
// > EditLevelLayer::init @ 0x3b6b26
// > LevelBrowserLayer::getSearchTitle @ 0x3bafaa
// > GameLevelManager::tryGetUsername @ 0x3c15e4
// > GameLevelManager::onGetGJSecretRewardCompleted @ 0x3c3626
// > GameLevelManager::onGetGJRewardsCompleted @ 0x3c3956
// > GameLevelManager::onGetGJChallengesCompleted @ 0x3c3d68
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x3c42d6
// > GJGameLevel::getSongName @ 0x3c5768
// > GJGameLevel::create @ 0x3c5d6a
// > GJGameLevel::dataLoaded @ 0x3c8af6
// > GJGameLevel::dataLoaded @ 0x3c8b54
// > GJGameLevel::dataLoaded @ 0x3c8ba2
// > GJGameLevel::dataLoaded @ 0x3c8bc0
// > GJGameLevel::dataLoaded @ 0x3c8bf8
// > GJGameLevel::dataLoaded @ 0x3c8c16
// > GJGameLevel::dataLoaded @ 0x3c8c34
// > GJGameLevel::dataLoaded @ 0x3c8c52
// > GJGameLevel::dataLoaded @ 0x3c8c80
// > GJGameLevel::dataLoaded @ 0x3c8c9e
// > GJGameLevel::dataLoaded @ 0x3c8f32
// > GJGameLevel::dataLoaded @ 0x3c8fcc
// > GJGameLevel::dataLoaded @ 0x3c8fe8
// > GJGameLevel::dataLoaded @ 0x3c92fe
// > GJGameLevel::dataLoaded @ 0x3c9358
// > GJGameLevel::dataLoaded @ 0x3c938c
// > GJUserMessage::create @ 0x3cc08c
// > GameLevelManager::uploadUserMessage @ 0x3d1a04
// > GameLevelManager::uploadUserMessage @ 0x3d1a30
// > GameLevelManager::uploadComment @ 0x3d20e0
// > GameLevelManager::uploadFriendRequest @ 0x3d2a3e
// > GJLevelList::dataLoaded @ 0x3d7a6e
// > GJLevelList::dataLoaded @ 0x3d7a8a
// > GJLevelList::dataLoaded @ 0x3d7aa6
// > GJGameLevel::storeNewLocalScore @ 0x3d832e
// > ColorSelectPopup::colorToHex @ 0x3dc968
// > ColorSelectPopup::colorToHex @ 0x3dc98c
// > ColorSelectPopup::colorToHex @ 0x3dc9a2
// > CustomSongWidget::onMore @ 0x3dd35a
// > CustomSongWidget::onMore @ 0x3dd37a
// > AnimatedGameObject::deactivateObject @ 0x3e4750
// > ParticleGameObject::customObjectSetup @ 0x3e70a8
// > EditorPauseLayer::saveLevel @ 0x401514
// > EditorPauseLayer::saveLevel @ 0x401530
// > ItemInfoPopup::init @ 0x4052a4
// > GJChallengeItem::dataLoaded @ 0x412ef4
// > InfoLayer::loadPage @ 0x42fdac
// > NumberInputLayer::deleteLast @ 0x4555a4
// > MusicDownloadManager::pathForSFXFolder @ 0x459528
// > MusicDownloadManager::pathForSFXFolder @ 0x459550
// > MusicDownloadManager::pathForSongFolder @ 0x4597f0
// > MusicDownloadManager::pathForSongFolder @ 0x459818
// > MusicDownloadManager::parseSFXLibrary @ 0x45a910
// > MusicDownloadManager::downloadSong @ 0x45b084
// > SongInfoObject::create @ 0x45c2b8
// > SongInfoObject::create @ 0x45c2e6
// > MusicDownloadManager::parseMusicLibrary @ 0x45cdc4
// > MusicDownloadManager::parseMusicLibrary @ 0x45cf2c
// > MusicDownloadManager::parseMusicLibrary @ 0x45cf58
// > MusicDownloadManager::parseMusicLibrary @ 0x45d136
// > MusicDownloadManager::parseMusicLibrary @ 0x45d164
// > GJAccountManager::onSyncAccountCompleted @ 0x464a86
// > GJAccountManager::onSyncAccountCompleted @ 0x464afe
// > GJAccountManager::dataLoaded @ 0x464f6a
// > GJAccountManager::dataLoaded @ 0x464f96
// > GJAccountManager::dataLoaded @ 0x464fb4
// > GJAccountManager::dataLoaded @ 0x464ff8
// > AccountLoginLayer::onSubmit @ 0x469fe0
// > AccountLoginLayer::onSubmit @ 0x469ffc
// > AccountLoginLayer::onSubmit @ 0x46a054
// > GJBaseGameLayer::updateSpecialLabels @ 0x483a90
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x4acee0
// > GJMessagePopup::loadFromGJMessage @ 0x4ad9a4
// > GJAccountSettingsLayer::closeAccInputNodes @ 0x4b5402
// > GJAccountSettingsLayer::init @ 0x4b587a
// > GJAccountSettingsLayer::init @ 0x4b58a0
// > GJAccountSettingsLayer::init @ 0x4b58c6
// > GJAccountSettingsLayer::init @ 0x4b58ec
// > GJAccountSettingsLayer::init @ 0x4b5912
// > GJAccountSettingsLayer::init @ 0x4b5938
// > GJAccountSettingsLayer::init @ 0x4b595e
// > ProfilePage::onCopyName @ 0x4c4366
// > ProfilePage::onInfo @ 0x4c4488
// > ProfilePage::loadPageFromUserInfo @ 0x4c594a
// > ProfilePage::loadPageFromUserInfo @ 0x4c5978
// > ProfilePage::loadPageFromUserInfo @ 0x4c5998
// > ProfilePage::loadPageFromUserInfo @ 0x4c59b6
// > ProfilePage::loadPageFromUserInfo @ 0x4c59d6
// > GJRotateCommandLayer::updateEasingLabel @ 0x4df08c
// > GJRotateCommandLayer::updateDegreesLabel @ 0x4df1f4
// > PurchaseItemPopup::init @ 0x4e43a2
// > GJShopLayer::showCantAffordMessage @ 0x4e4716
// > GJShopLayer::showCantAffordMessage @ 0x4e4754
// > SetupCameraOffsetTrigger::updateEasingLabel @ 0x501b4c
// > GJMultiplayerManager::uploadComment @ 0x510b66
// > GameObject::setupCustomSprites @ 0x51a346
// > GameObject::setupCustomSprites @ 0x51a364
// > GameObject::setupCustomSprites @ 0x51a388
// > GameObject::setupCustomSprites @ 0x51a3b2
// > GameObject::setupCustomSprites @ 0x51a3cc
// > GameObject::setupCustomSprites @ 0x51a8a4
// > GameObject::setupCustomSprites @ 0x51aa68
// > SetupCameraRotatePopup::updateEasingLabel @ 0x52650c
// > CreateParticlePopup::init @ 0x5326c2
// > CreateParticlePopup::init @ 0x53275c
// > GJSmartTemplate::getPrefab @ 0x53a894
// > GJSmartTemplate::getPrefab @ 0x53a994
// > GJSmartTemplate::getPrefab @ 0x53a9c2
// > GJSmartTemplate::getPrefab @ 0x53a9f2
// > GJSmartTemplate::getPrefab @ 0x53aa22
// > GJSmartTemplate::getPrefab @ 0x53aa5e
// > GJSmartTemplate::dataLoaded @ 0x53b344
// > GJSmartPrefab::dataLoaded @ 0x53b5ee
// > GJSmartTemplate::scanForPrefab @ 0x53c53e
// > GJSmartTemplate::scanForPrefab @ 0x53c59e
// > GJSmartTemplate::scanForPrefab @ 0x53c614
// > GJSmartTemplate::getTemplateState @ 0x53cafe
// > GJSmartTemplate::getTemplateState @ 0x53cb06
// > SetupTriggerPopup::updateEaseLabel @ 0x545554
// > SetupTriggerPopup::updateCustomEaseLabel @ 0x545c44
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0x557f2c
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0x557f42
// > SetupMGTrigger::updateEasingLabel @ 0x5628ac
// > SetupItemEditTriggerPopup::updateOpButton @ 0x57a342
// > SetupItemEditTriggerPopup::updateOpButton @ 0x57a360
// > SetupItemEditTriggerPopup::updateOpButton @ 0x57a374
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x57b75a
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x57b77a
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x57b798
// > SetupItemCompareTriggerPopup::updateOpButton @ 0x57b7ac
// > SFXBrowser::setupList @ 0x583386
// > GJPathPage::showCantAffordMessage @ 0x58e82a
// > GJPathPage::showCantAffordMessage @ 0x58e868
// > LevelListLayer::init @ 0x5907c8
// > cocos2d::extension::AssetsManager::update @ 0x59fc5a
// > std::vector>::_M_insert_aux @ 0x5a0346
// > std::vector>::_M_insert_aux @ 0x5a035a
// > cocos2d::extension::AssetsManager::setSearchPath @ 0x5a0540
// > cocos2d::extension::AssetsManager::setSearchPath @ 0x5a057e
// > localStorageInit @ 0x5ad566
// > cocos2d::CCRectFromString @ 0x5c1336
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc80
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbdb0
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbdee
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0x5cbe2c
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbee0
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf20
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbf62
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbfa4
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cbfe6
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cc028
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x5cc06a
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc158
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0x5cc196
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc4fe
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc51a
// > cocos2d::CCLabelTTF::getTextDefinition @ 0x5ce7cc
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcb90
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dccc8
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dccf6
// > cocos2d::CCParticleSystem::initWithFile @ 0x5dce20
// > cocos2d::CCParticleSystem::initWithFile @ 0x5dce6c
// > cocos2d::CCFileUtils::getPathForFilename @ 0x5de88a
// > cocos2d::CCFileUtils::getPathForFilename @ 0x5de8aa
// > cocos2d::CCFileUtils::getPathForFilename @ 0x5de8e2
// > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x5de976
// > cocos2d::CCFileUtils::removeSearchPath @ 0x5dee6a
// > cocos2d::CCFileUtils::removeSearchPath @ 0x5def5e
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x5df8d8
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x5df91a
// > cocos2d::CCFileUtils::setSearchPaths @ 0x5dff92
// > cocos2d::CCFileUtils::addSearchPath @ 0x5e006e
// > cocos2d::BitmapDC::getBitmapFromJavaShadowStroke @ 0x5e251e
// > Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath @ 0x5e29dc
// > getPackageNameJNI @ 0x5e2c80
// > getFileDirectoryJNI @ 0x5e2d08
// > getCurrentLanguageJNI @ 0x5e2d90
// > getStringForKeyJNI @ 0x5e3120
// > cocos2d::ZipUtils::compressString @ 0x5f0136
// > cocos2d::CCTexture2D::initWithString @ 0x5f4310
// > cocos2d::CCTextureCache::addImage @ 0x5f537e
// > cocos2d::CCTextureCache::addUIImage @ 0x5f5650
// > cocos2d::CCTextureCache::addImageAsync @ 0x5f5f9a
// > cocos2d::CCTMXMapInfo::internalInit @ 0x5f8cc8
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9334
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f935a
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9742
// > DS_Dictionary::rectFromString @ 0x5fe5a8
// > pugi::xml_node::path @ 0x603e5c
// > sub_7512BC @ 0x7519c8
// > sub_751BE0 @ 0x7522ec
// > sub_75D944 @ 0x75da0e
// > sub_768DC8 @ 0x7694a2
// > sub_7696C4 @ 0x769d9e
//
// 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
//
int *__fastcall sub_774794(int *result, int *a2)
{
int v2; // r2
int v3; // r3
v2 = *result;
if ( *(int *)(*result - 4) < 0 )
*(_DWORD *)(v2 - 4) = 0;
v3 = *a2;
if ( *(int *)(*a2 - 4) < 0 )
*(_DWORD *)(v3 - 4) = 0;
*result = v3;
*a2 = v2;
return result;
}