//
// sub_D163D4 from 0xd163d4 to 0xd16404 (48 bytes)
//
// 244 xrefs:
// > PlatformToolbox::spriteFromSavedFile @ 0x4ecf24
// > GameToolbox::pointsToString @ 0x5879b4
// > GameToolbox::pointsToString @ 0x587a3c
// > GameToolbox::pointsToString @ 0x587b68
// > MultilineBitmapFont::stringWithMaxWidth @ 0x589d58
// > MultilineBitmapFont::initWithFont @ 0x58b24c
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x5a3f70
// > CCTextInputNode::onTextFieldDetachWithIME @ 0x5a4044
// > CCTextInputNode::onTextFieldInsertText @ 0x5a4654
// > FMODAudioEngine::queuedEffectFinishedLoading @ 0x5b8f28
// > PlayLayer::levelComplete @ 0x5d0fb4
// > PlayLayer::processCreateObjectsFromSetup @ 0x5dd4ac
// > GameManager::playSFXTrigger @ 0x5e90f0
// > GameManager::firstLoad @ 0x5f0ac8
// > GameManager::dataLoaded @ 0x5fa92c
// > GameManager::dataLoaded @ 0x5fa968
// > GameManager::dataLoaded @ 0x5fb084
// > GameManager::dataLoaded @ 0x5fb830
// > GameManager::dataLoaded @ 0x5fb864
// > GameManager::dataLoaded @ 0x5fb898
// > GameManager::dataLoaded @ 0x5fb8cc
// > GameManager::dataLoaded @ 0x5fb900
// > GameManager::dataLoaded @ 0x5fb934
// > CommentCell::loadFromComment @ 0x617a58
// > GJLocalLevelScoreCell::loadFromScore @ 0x61a4e0
// > GJLocalLevelScoreCell::loadFromScore @ 0x61a680
// > GJLevelScoreCell::loadFromScore @ 0x61ae10
// > GJLevelScoreCell::loadFromScore @ 0x61b264
// > PlayerObject::createRobot @ 0x6221ec
// > PlayerObject::createSpider @ 0x62257c
// > GameObject::createAndAddParticle @ 0x644824
// > LevelEditorLayer::updateObjectLabel @ 0x65f07c
// > LevelEditorLayer::createObjectsFromSetup @ 0x671008
// > LevelEditorLayer::createObjectsFromString @ 0x67190c
// > LevelEditorLayer::init @ 0x67c8f0
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4094
// > EditorUI::setIDPopupClosed @ 0x6be754
// > EditorUI::doCopyObjects @ 0x6c4cbc
// > EditLevelLayer::init @ 0x6e03f4
// > LevelBrowserLayer::getSearchTitle @ 0x6e85dc
// > GameLevelManager::tryGetUsername @ 0x6f7020
// > GameLevelManager::onGetGJSecretRewardCompleted @ 0x6fca84
// > GameLevelManager::onGetGJRewardsCompleted @ 0x6fd454
// > GameLevelManager::onGetGJChallengesCompleted @ 0x6fdff8
// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x6fee58
// > GJGameLevel::getSongName @ 0x70216c
// > GJGameLevel::create @ 0x7034dc
// > GJGameLevel::dataLoaded @ 0x70a27c
// > GJGameLevel::dataLoaded @ 0x70a300
// > GJGameLevel::dataLoaded @ 0x70a370
// > GJGameLevel::dataLoaded @ 0x70a3a4
// > GJGameLevel::dataLoaded @ 0x70a460
// > GJGameLevel::dataLoaded @ 0x70a494
// > GJGameLevel::dataLoaded @ 0x70a4c8
// > GJGameLevel::dataLoaded @ 0x70a4fc
// > GJGameLevel::dataLoaded @ 0x70a544
// > GJGameLevel::dataLoaded @ 0x70a578
// > GJGameLevel::dataLoaded @ 0x70a930
// > GJGameLevel::dataLoaded @ 0x70aa18
// > GJGameLevel::dataLoaded @ 0x70aa4c
// > GJGameLevel::dataLoaded @ 0x70ac4c
// > GJGameLevel::dataLoaded @ 0x70ad30
// > GJGameLevel::dataLoaded @ 0x70af2c
// > GJUserMessage::create @ 0x713d6c
// > GameLevelManager::uploadUserMessage @ 0x722cb0
// > GameLevelManager::uploadUserMessage @ 0x722d10
// > GameLevelManager::uploadComment @ 0x724120
// > GameLevelManager::uploadFriendRequest @ 0x725fcc
// > GJLevelList::dataLoaded @ 0x73064c
// > GJLevelList::dataLoaded @ 0x730684
// > GJLevelList::dataLoaded @ 0x7306b8
// > GJGameLevel::storeNewLocalScore @ 0x739178
// > ColorSelectPopup::colorToHex @ 0x740234
// > ColorSelectPopup::colorToHex @ 0x740300
// > ColorSelectPopup::colorToHex @ 0x740370
// > CustomSongWidget::onMore @ 0x742ec4
// > CustomSongWidget::onMore @ 0x742f18
// > AnimatedGameObject::deactivateObject @ 0x750a84
// > ParticleGameObject::customObjectSetup @ 0x754af8
// > EditorPauseLayer::saveLevel @ 0x78e47c
// > EditorPauseLayer::saveLevel @ 0x78e4ac
// > ItemInfoPopup::init @ 0x795290
// > GJChallengeItem::dataLoaded @ 0x7ae114
// > InfoLayer::loadPage @ 0x7e3384
// > NumberInputLayer::deleteLast @ 0x8240dc
// > MusicDownloadManager::pathForSFXFolder @ 0x82efe4
// > MusicDownloadManager::pathForSFXFolder @ 0x82f034
// > MusicDownloadManager::pathForSongFolder @ 0x82f7f0
// > MusicDownloadManager::pathForSongFolder @ 0x82f840
// > MusicDownloadManager::parseSFXLibrary @ 0x8308e8
// > MusicDownloadManager::downloadSong @ 0x831c48
// > SongInfoObject::create @ 0x8355a0
// > SongInfoObject::create @ 0x8355e0
// > MusicDownloadManager::parseMusicLibrary @ 0x838274
// > MusicDownloadManager::parseMusicLibrary @ 0x838d0c
// > MusicDownloadManager::parseMusicLibrary @ 0x838d4c
// > MusicDownloadManager::parseMusicLibrary @ 0x8390a4
// > MusicDownloadManager::parseMusicLibrary @ 0x8390e4
// > GJAccountManager::dataLoaded @ 0x848270
// > GJAccountManager::dataLoaded @ 0x8482c0
// > GJAccountManager::dataLoaded @ 0x8482f8
// > GJAccountManager::dataLoaded @ 0x84834c
// > GJAccountManager::onSyncAccountCompleted @ 0x848a24
// > GJAccountManager::onSyncAccountCompleted @ 0x848b0c
// > AccountLoginLayer::onSubmit @ 0x851dd0
// > AccountLoginLayer::onSubmit @ 0x851e04
// > AccountLoginLayer::onSubmit @ 0x851e6c
// > GJBaseGameLayer::updateSpecialLabels @ 0x87a90c
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x8ccb3c
// > GJMessagePopup::loadFromGJMessage @ 0x8ce1ec
// > GJAccountSettingsLayer::closeAccInputNodes @ 0x8dc680
// > GJAccountSettingsLayer::init @ 0x8de3ac
// > GJAccountSettingsLayer::init @ 0x8de414
// > GJAccountSettingsLayer::init @ 0x8de47c
// > GJAccountSettingsLayer::init @ 0x8de4e4
// > GJAccountSettingsLayer::init @ 0x8de54c
// > GJAccountSettingsLayer::init @ 0x8de5b4
// > GJAccountSettingsLayer::init @ 0x8de61c
// > ProfilePage::onInfo @ 0x8f93ac
// > ProfilePage::onCopyName @ 0x8f9da4
// > ProfilePage::loadPageFromUserInfo @ 0x8fb23c
// > ProfilePage::loadPageFromUserInfo @ 0x8fb4d4
// > ProfilePage::loadPageFromUserInfo @ 0x8fb658
// > ProfilePage::loadPageFromUserInfo @ 0x8fb6a4
// > ProfilePage::loadPageFromUserInfo @ 0x8fbf60
// > GJRotateCommandLayer::updateEasingLabel @ 0x925d50
// > GJRotateCommandLayer::updateDegreesLabel @ 0x926098
// > PurchaseItemPopup::init @ 0x9302b8
// > GJShopLayer::showCantAffordMessage @ 0x930bd8
// > GJShopLayer::showCantAffordMessage @ 0x930c64
// > SetupCameraOffsetTrigger::updateEasingLabel @ 0x96778c
// > GJMultiplayerManager::uploadComment @ 0x983a4c
// > GameObject::setupCustomSprites @ 0x9908c4
// > GameObject::setupCustomSprites @ 0x990de0
// > GameObject::setupCustomSprites @ 0x990e20
// > GameObject::setupCustomSprites @ 0x99613c
// > GameObject::setupCustomSprites @ 0x99c374
// > GameObject::setupCustomSprites @ 0x99c3dc
// > GameObject::setupCustomSprites @ 0x99c41c
// > SetupCameraRotatePopup::updateEasingLabel @ 0x9abfb8
// > CreateParticlePopup::init @ 0x9c54bc
// > CreateParticlePopup::init @ 0x9c89e0
// > GJSmartTemplate::getPrefab @ 0x9d392c
// > GJSmartTemplate::getPrefab @ 0x9d39dc
// > GJSmartTemplate::getPrefab @ 0x9d3a78
// > GJSmartTemplate::getPrefab @ 0x9d3b04
// > GJSmartTemplate::getPrefab @ 0x9d3b7c
// > GJSmartTemplate::getPrefab @ 0x9d3c18
// > GJSmartTemplate::dataLoaded @ 0x9d56ec
// > GJSmartPrefab::dataLoaded @ 0x9d5d58
// > GJSmartTemplate::scanForPrefab @ 0x9d86c4
// > GJSmartTemplate::scanForPrefab @ 0x9d8824
// > GJSmartTemplate::scanForPrefab @ 0x9d88e0
// > GJSmartTemplate::getTemplateState @ 0x9dada8
// > GJSmartTemplate::getTemplateState @ 0x9dadb4
// > SetupTriggerPopup::updateEaseLabel @ 0x9e9b58
// > SetupTriggerPopup::updateCustomEaseLabel @ 0x9ea65c
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0xa096a8
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0xa097b8
// > SetupMGTrigger::updateEasingLabel @ 0xa1f878
// > SetupItemEditTriggerPopup::updateOpButton @ 0xa49388
// > SetupItemEditTriggerPopup::updateOpButton @ 0xa4947c
// > SetupItemEditTriggerPopup::updateOpButton @ 0xa494e4
// > SetupItemCompareTriggerPopup::updateOpButton @ 0xa4bd78
// > SetupItemCompareTriggerPopup::updateOpButton @ 0xa4bdf8
// > SetupItemCompareTriggerPopup::updateOpButton @ 0xa4be90
// > SetupItemCompareTriggerPopup::updateOpButton @ 0xa4bee8
// > SFXBrowser::setupList @ 0xa5d6fc
// > GJPathPage::showCantAffordMessage @ 0xa71a10
// > GJPathPage::showCantAffordMessage @ 0xa71a9c
// > LevelListLayer::init @ 0xa75c00
// > cocos2d::extension::AssetsManager::update @ 0xa976f4
// > std::vector>::_M_insert_aux @ 0xa98570
// > std::vector>::_M_insert_aux @ 0xa98598
// > std::vector>::_M_insert_aux @ 0xa988c0
// > std::vector>::_M_insert_aux @ 0xa988e4
// > localStorageInit @ 0xaaebf4
// > cocos2d::CCRectFromString @ 0xad2324
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0xae3208
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xae3588
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xae3608
// > cocos2d::CCBMFontConfiguration::parseCommonArguments @ 0xae3688
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3950
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae39dc
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3a68
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3af4
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3b80
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3c0c
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0xae3c98
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0xae4084
// > cocos2d::CCBMFontConfiguration::parseKerningEntry @ 0xae4110
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0xae4f34
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0xae4f7c
// > cocos2d::CCLabelTTF::getTextDefinition @ 0xae9844
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb008fc
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb00950
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb015ac
// > cocos2d::CCParticleSystem::initWithFile @ 0xb01990
// > cocos2d::CCParticleSystem::initWithFile @ 0xb01a14
// > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0xb050c4
// > cocos2d::CCFileUtils::getPathForFilename @ 0xb0532c
// > cocos2d::CCFileUtils::getPathForFilename @ 0xb05374
// > cocos2d::CCFileUtils::getPathForFilename @ 0xb053d4
// > cocos2d::CCFileUtils::setSearchPaths @ 0xb0651c
// > cocos2d::CCFileUtils::addSearchPath @ 0xb06858
// > cocos2d::CCFileUtils::fullPathForFilename @ 0xb07250
// > cocos2d::CCFileUtils::fullPathForFilename @ 0xb07664
// > cocos2d::CCFileUtils::removeSearchPath @ 0xb098b0
// > cocos2d::CCFileUtils::removeSearchPath @ 0xb0994c
// > cocos2d::CCImage::initWithString @ 0xb0d510
// > cocos2d::CCImage::initWithStringShadowStroke @ 0xb0d948
// > Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath @ 0xb0e144
// > getPackageNameJNI @ 0xb0e6d8
// > getFileDirectoryJNI @ 0xb0e82c
// > getCurrentLanguageJNI @ 0xb0e980
// > getStringForKeyJNI @ 0xb0f034
// > cocos2d::ZipUtils::urlDecode @ 0xb29ca8
// > cocos2d::ZipUtils::urlDecode @ 0xb29dcc
// > cocos2d::ZipUtils::compressString @ 0xb2a868
// > cocos2d::CCTexture2D::initWithString @ 0xb32ba0
// > cocos2d::CCTextureCache::addImage @ 0xb34f48
// > cocos2d::CCTextureCache::addUIImage @ 0xb3562c
// > cocos2d::CCTextureCache::addImageAsync @ 0xb3672c
// > cocos2d::CCTMXMapInfo::internalInit @ 0xb3bc3c
// > cocos2d::CCTMXMapInfo::startElement @ 0xb3c6a8
// > cocos2d::CCTMXMapInfo::startElement @ 0xb3c6f8
// > cocos2d::CCTMXMapInfo::startElement @ 0xb3cc54
// > cocos2d::CCTMXMapInfo::startElement @ 0xb3ce8c
// > cocos2d::CCTMXMapInfo::startElement @ 0xb3d32c
// > DS_Dictionary::setVec2ForKey @ 0xb441a0
// > DS_Dictionary::setVec2ForKey @ 0xb44258
// > DS_Dictionary::setRectForKey @ 0xb44898
// > DS_Dictionary::setRectForKey @ 0xb44950
// > DS_Dictionary::setVec2ArrayForKey @ 0xb45250
// > DS_Dictionary::setVec2ArrayForKey @ 0xb453c8
// > DS_Dictionary::setRectArrayForKey @ 0xb45a84
// > DS_Dictionary::setRectArrayForKey @ 0xb45bf8
// > DS_Dictionary::rectFromString @ 0xb487f8
// > pugi::xml_node::path @ 0xb55fd8
// > sub_CE2BCC @ 0xce3700
// > sub_CE3958 @ 0xce448c
// > sub_CF42A4 @ 0xcf43d0
// > sub_D04EC0 @ 0xd05a00
// > sub_D05C8C @ 0xd067cc
//
// 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
//
__int64 *__fastcall sub_D163D4(__int64 *result, __int64 *a2)
{
__int64 v2; // x3
__int64 v3; // x2
v2 = *result;
if ( (*(_DWORD *)(*result - 8) & 0x80000000) != 0 )
*(_DWORD *)(v2 - 8) = 0;
v3 = *a2;
if ( (*(_DWORD *)(*a2 - 8) & 0x80000000) != 0 )
*(_DWORD *)(v3 - 8) = 0;
*result = v3;
*a2 = v2;
return result;
}