//
// sub_77441C from 0x77441c to 0x774486 (106 bytes)
//
// 116 xrefs:
// > PlatformToolbox::spriteFromSavedFile @ 0x2be620
// > GameToolbox::saveStringToFile @ 0x2eddc6
// > sub_2EDF90 @ 0x2edfc6
// > GameToolbox::pointsToString @ 0x2efeda
// > LevelCell::loadCustomLevelCell @ 0x3322b4
// > OptionsCell::loadFromObject @ 0x335784
// > LevelEditorLayer::getLevelString @ 0x3749a8
// > LevelEditorLayer::getLevelString @ 0x374ae0
// > EditorUI::copyObjectsDetailed @ 0x381de6
// > EditorUI::copyObjects @ 0x3a654e
// > LevelSearchLayer::onPasteClipboard @ 0x3aca70
// > GameLevelManager::getNextLevelName @ 0x3bf0e2
// > GameLevelManager::getNextLevelName @ 0x3bf10e
// > GameLevelManager::writeSpecialFilters @ 0x3c0ade
// > GameLevelManager::writeSpecialFilters @ 0x3c0b42
// > GameLevelManager::writeSpecialFilters @ 0x3c0bb0
// > GameLevelManager::onGetGauntletsCompleted @ 0x3ca30e
// > GJLevelList::showListInfo @ 0x3cdd6e
// > GJLevelList::showListInfo @ 0x3cddd8
// > GJLevelList::showListInfo @ 0x3cde10
// > GJLevelList::showListInfo @ 0x3cde4c
// > GameLevelManager::createNewLevelList @ 0x3ce538
// > GameLevelManager::downloadLevel @ 0x3d01e2
// > GameLevelManager::rateStars @ 0x3d05ae
// > GameLevelManager::getLevelLeaderboard @ 0x3d11d0
// > GameLevelManager::getLevelLeaderboard @ 0x3d123c
// > GameLevelManager::uploadComment @ 0x3d2316
// > GameLevelManager::likeItem @ 0x3d3948
// > GameLevelManager::uploadLevelList @ 0x3d5026
// > GameLevelManager::updateUserScore @ 0x3d5edc
// > GameLevelManager::updateUserScore @ 0x3d5f1e
// > GameLevelManager::updateUserScore @ 0x3d5f44
// > GameLevelManager::updateUserScore @ 0x3d5f68
// > GameLevelManager::updateUserScore @ 0x3d5fc0
// > GameLevelManager::updateUserScore @ 0x3d6004
// > GameLevelManager::updateUserScore @ 0x3d602c
// > GameLevelManager::updateUserScore @ 0x3d6050
// > GameLevelManager::updateUserScore @ 0x3d62e4
// > ColorSelectPopup::colorToHex @ 0x3dc95c
// > CustomSongWidget::updateSongInfo @ 0x3de464
// > CustomSongWidget::updateMultiAssetInfo @ 0x3dfc18
// > CustomSongWidget::updateMultiAssetInfo @ 0x3dfc48
// > CustomSongWidget::updateMultiAssetInfo @ 0x3dfcac
// > CustomSongWidget::updateMultiAssetInfo @ 0x3dfce0
// > StartPosObject::getSaveString @ 0x3f2da0
// > InfoLayer::onLevelInfo @ 0x42f136
// > ShareCommentLayer::init @ 0x431ea6
// > MusicDownloadManager::pathForSFX @ 0x4595c4
// > MusicDownloadManager::pathForSong @ 0x459882
// > MusicDownloadManager::downloadCustomSong @ 0x459c6e
// > MusicDownloadManager::downloadSFX @ 0x45a02e
// > SongInfoObject::getArtistNames @ 0x45b786
// > SongInfoObject::getTagsString @ 0x45ba46
// > CustomizeObjectLayer::updateKerningLabel @ 0x4614f4
// > GJBaseGameLayer::getRecordString @ 0x48eeb0
// > FriendRequestPopup::init @ 0x4ad51e
// > GJMessagePopup::init @ 0x4adeb0
// > GJWriteMessagePopup::init @ 0x4aeaa6
// > GJMessagePopup::onReply @ 0x4af3a2
// > ProfilePage::onSocialPage @ 0x4c4df2
// > ProfilePage::onSocialPage @ 0x4c4e16
// > ProfilePage::onSocialPage @ 0x4c4e3a
// > ProfilePage::onSocialPage @ 0x4c4e5e
// > ProfilePage::onSocialPage @ 0x4c4eae
// > GJMultiplayerManager::uploadComment @ 0x510c9c
// > prefabKeyFromBinary @ 0x53975a
// > getItemVarName @ 0x57a27c
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a636
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a69c
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a6c2
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a6da
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a7a2
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a7c2
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a7e0
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a80a
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a834
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x57a8ac
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57b9c2
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57b9ee
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57ba0a
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57ba40
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57baa8
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57badc
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57bb04
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57bb22
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x57bb52
// > SFXBrowser::setupList @ 0x583310
// > UploadListPopup::listUploadFailed @ 0x58f948
// > AudioAssetsBrowser::onInfo @ 0x59b2f6
// > AudioAssetsBrowser::onInfo @ 0x59b31e
// > AudioAssetsBrowser::onInfo @ 0x59b37e
// > AudioAssetsBrowser::onInfo @ 0x59b3a6
// > AudioAssetsBrowser::onInfo @ 0x59b3e2
// > AudioAssetsBrowser::onInfo @ 0x59b400
// > AudioAssetsBrowser::onInfo @ 0x59b424
// > AudioAssetsBrowser::onInfo @ 0x59b448
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcb7a
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcce0
// > cocos2d::CCFileUtils::addSuffix @ 0x5de7ec
// > cocos2d::CCFileUtils::getFullPathForDirectoryAndFilename @ 0x5ded22
// > cocos2d::CCFileUtils::removeSearchPath @ 0x5dee62
// > cocos2d::CCFileUtils::setSearchPaths @ 0x5dff8a
// > cocos2d::CCFileUtils::addSearchPath @ 0x5e0066
// > cocos2d::CCFileUtilsAndroid::getWritablePath @ 0x5e1516
// > cocos2d::CCTextFieldTTF::insertText @ 0x5f2ffa
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9300
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f931c
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9702
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f972c
// > FileOperation::getFilePath @ 0x5fc51a
// > sub_74E068 @ 0x74e264
// > sub_74E484 @ 0x74e682
// > sub_77448C @ 0x77448c
// > sub_775DF8 @ 0x775e22
// > sub_775E48 @ 0x775e6c
// > sub_77673C @ 0x776796
//
// 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_77441C(int **a1, _BYTE **a2)
{
_BYTE *v3; // r1
size_t v5; // r5
int *v6; // r3
int v7; // r2
int v8; // r7
int *v9; // r2
v3 = *a2;
v5 = *((_DWORD *)v3 - 3);
if ( v5 )
{
v6 = *a1;
v7 = *(*a1 - 3);
v8 = v7 + v5;
if ( v7 + v5 > *(*a1 - 2) || *(v6 - 1) > 0 )
{
sub_7740F8((_BYTE **)a1, v7 + v5);
v6 = *a1;
v3 = *a2;
v7 = *(*a1 - 3);
}
if ( v5 == 1 )
*((_BYTE *)v6 + v7) = *v3;
else
memcpy((char *)v6 + v7, v3, v5);
v9 = *a1;
if ( *a1 - 3 != &dword_ACDD9C )
{
*(v9 - 3) = v8;
*(v9 - 1) = 0;
*((_BYTE *)v9 + v8) = 0;
}
}
return a1;
}