//
// sub_140069B30 from 0x140069b30 to 0x140069c45 (277 bytes)
//
// 204 xrefs:
// > FMODAudioEngine::stopAllMusic @ 0x140062a4f
// > AppDelegate::applicationDidEnterBackground @ 0x140098754
// > AdminActionConfirmPopup::onConfirm @ 0x1400a6415
// > AccountBanPopup::onFreeze @ 0x1400a8868
// > AccountReviewPopup::onDeleteMenu @ 0x1400b8b5a
// > AccountReviewPopup::onDeleteMenu @ 0x1400b8d09
// > AccountReviewPopup::onDeleteMenu @ 0x1400b8ef5
// > AccountReviewPopup::onDeleteMenu @ 0x1400b90a3
// > AccountReviewPopup::onDeleteMenu @ 0x1400b9242
// > ReportPopup::selectedReasons @ 0x1400c1421
// > sub_1400EB320 @ 0x1400eb482
// > sub_1400EB320 @ 0x1400eb6c4
// > DeathTrackerPopup::init @ 0x140105d27
// > DeathTrackerPopup::init @ 0x140105d48
// > DeathTrackerPopup::init @ 0x140105d94
// > DeathTrackerPopup::buildAttemptLine @ 0x140109701
// > DeathHistogram::setAttemptLine @ 0x14011315b
// > DeathHistogram::setAttemptLine @ 0x14011317c
// > DeathHistogram::setAttemptLine @ 0x1401131c6
// > DeathHistogram::setAttemptLine @ 0x1401131e7
// > DeathMarkerLayer::init @ 0x140115ee8
// > DeathMarkerLayer::init @ 0x140115f83
// > DeathMarkerLayer::init @ 0x140116129
// > DeathMarkerLayer::init @ 0x1401162b8
// > DeathMarkerLayer::init @ 0x1401166ed
// > DeathMarkerLayer::init @ 0x140116734
// > CustomSongWidget::onInfo @ 0x14016aed8
// > CustomSongWidget::onInfo @ 0x14016af7a
// > EditorSFXManager::playAction @ 0x140185852
// > EditorSFXManager::allActions @ 0x140186499
// > EditorSFXManager::allActions @ 0x1401864c3
// > EditorSFXManager::allActions @ 0x1401864ed
// > EditorSFXManager::allActions @ 0x140186517
// > EditorSFXManager::allActions @ 0x140186541
// > EditorSFXManager::allActions @ 0x14018656b
// > EditorSFXManager::allActions @ 0x140186595
// > EditorSFXManager::allActions @ 0x1401865bf
// > EditorSFXManager::allActions @ 0x1401865e9
// > EditorSFXManager::allActions @ 0x140186613
// > EditorSFXManager::allActions @ 0x14018663d
// > EditorSFXManager::allActions @ 0x140186667
// > EditorSFXManager::allActions @ 0x140186691
// > EditorSFXManager::allActions @ 0x1401866bb
// > EditorSFXManager::allActions @ 0x1401866e5
// > EditorSFXManager::allActions @ 0x14018670f
// > EditorSFXManager::allActions @ 0x140186739
// > EditorSFXManager::allActions @ 0x140186763
// > EditorSFXManager::allActions @ 0x14018678d
// > EditorSFXManager::allActions @ 0x1401867b7
// > EditorSFXManager::allActions @ 0x1401867e1
// > EditorSFXManager::allActions @ 0x14018680b
// > EditorSFXManager::allActions @ 0x140186835
// > EditorSFXManager::allActions @ 0x14018685f
// > EditorSFXManager::allActions @ 0x140186889
// > EditorSFXManager::allActions @ 0x1401868b3
// > EditorSFXManager::allActions @ 0x1401868dd
// > EditorSFXManager::allActions @ 0x140186907
// > EditorSFXManager::allActions @ 0x140186931
// > EditorSFXManager::allActions @ 0x14018695b
// > EditorSFXManager::allActions @ 0x140186985
// > EditorSFXManager::allActions @ 0x1401869af
// > EditorSFXManager::allActions @ 0x1401869d9
// > EditorSFXManager::allActions @ 0x140186a03
// > EditorSFXManager::allActions @ 0x140186a2d
// > EditorSFXManager::allActions @ 0x140186a57
// > EditorSFXManager::allActions @ 0x140186a81
// > EditorSFXManager::allActions @ 0x140186aab
// > EditorSFXManager::allActions @ 0x140186ad5
// > EditorSFXManager::allActions @ 0x140186aff
// > EditorSFXManager::allActions @ 0x140186b29
// > EditorSFXManager::allActions @ 0x140186b53
// > EditorSFXManager::allActions @ 0x140186b7d
// > EditorSFXManager::allActions @ 0x140186ba7
// > EditorSFXManager::allActions @ 0x140186bd1
// > EditorSFXManager::allActions @ 0x140186bfb
// > EditorSFXManager::allActions @ 0x140186c25
// > EditorSFXManager::allActions @ 0x140186c4f
// > EditorSFXManager::allActions @ 0x140186c79
// > EditorSFXManager::allActions @ 0x140186ca3
// > EditorSFXManager::allActions @ 0x140186ccd
// > EditorSFXManager::allActions @ 0x140186cf7
// > EditorSFXManager::allActions @ 0x140186d21
// > EditorSFXManager::allActions @ 0x140186d4b
// > EditorSFXManager::allActions @ 0x140186d75
// > EditorSFXManager::allActions @ 0x140186d9f
// > EditorSFXManager::allActions @ 0x140186dc9
// > EditorSFXManager::allActions @ 0x140186df3
// > EditorSFXManager::allActions @ 0x140186e1d
// > EditorSFXManager::allActions @ 0x140186e47
// > EditorSFXManager::allActions @ 0x140186e71
// > EditorSFXManager::allActions @ 0x140186e9b
// > EditorSFXManager::allActions @ 0x140186ec5
// > EditorSFXManager::allActions @ 0x140186eef
// > EditorSFXManager::allActions @ 0x140186f19
// > EditorSFXManager::allActions @ 0x140186f43
// > EditorSFXManager::allActions @ 0x140186f6d
// > EditorSFXManager::allActions @ 0x140186f97
// > EditorSFXManager::allActions @ 0x140186fc1
// > EditorSFXManager::allActions @ 0x140186feb
// > EditorSFXManager::allActions @ 0x140187015
// > EditorSFXManager::allActions @ 0x14018703f
// > EditorSFXManager::allActions @ 0x140187069
// > EditorSFXManager::allActions @ 0x140187093
// > EditorSFXManager::allActions @ 0x1401870bd
// > EditorSFXManager::allActions @ 0x1401870e7
// > EditorSFXManager::allActions @ 0x140187111
// > EditorSFXManager::allActions @ 0x14018713b
// > EditorSFXManager::allActions @ 0x140187165
// > EditorSFXManager::allActions @ 0x14018718f
// > EditorSFXManager::allActions @ 0x1401871b9
// > EditorSFXManager::allActions @ 0x1401871e3
// > EditorSFXManager::allActions @ 0x14018720d
// > EditorSFXManager::allActions @ 0x140187237
// > EditorSFXManager::allActions @ 0x140187261
// > EditorSFXManager::allActions @ 0x14018728b
// > EditorSFXManager::allActions @ 0x1401872b5
// > EditorSFXManager::allActions @ 0x1401872df
// > EditorSFXManager::allActions @ 0x140187309
// > EditorSFXManager::allActions @ 0x140187333
// > EditorSFXManager::allActions @ 0x14018735d
// > EditorSFXManager::allActions @ 0x140187393
// > sub_140189D00 @ 0x14018a67d
// > EditorSFXManager::collectAllSFXIDs @ 0x14018c0ef
// > EditorSoundConfigInfoLayer::missingSFXIDs @ 0x14019671c
// > GJGameLevel::storeNewLocalScore @ 0x140264d8f
// > GJGameLevel::scoreStringToVector @ 0x140265033
// > GJGameLevel::dtBumpBucket @ 0x14026525f
// > GJGameLevel::dtBumpBucket @ 0x1402652cc
// > GJGameLevel::dtBumpRun @ 0x1402654d7
// > GJGameLevel::dtBumpRun @ 0x140265506
// > GJGameLevel::dtBumpRun @ 0x140265537
// > GJGameLevel::dtExpandOrder @ 0x14026591b
// > sub_140265BE0 @ 0x140265d2e
// > sub_140265BE0 @ 0x140265d5e
// > GJLevelList::parseListLevels @ 0x1402729f4
// > GJLevelList::addLevelToList @ 0x140272bd2
// > GJLevelList::reorderLevel @ 0x140272dd4
// > GameSettingsLayer::addToggle @ 0x1402c6868
// > GJBaseGameLayer::addRemapTargets @ 0x140313d91
// > GJBaseGameLayer::addRemapTargets @ 0x140313f34
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x14032110f
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x1403212c1
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x1403217a8
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x14032197d
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x14033d9ba
// > GJBaseGameLayer::activateSFXTrigger @ 0x14034bf5f
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x14034e590
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x14034e5fc
// > GJEffectManager::getPersistentStateString @ 0x14036d185
// > GJEffectManager::getPersistentStateString @ 0x14036d3f3
// > GJEffectManager::updateTimers @ 0x14036dc63
// > GJKeybindManager::actionsForKey @ 0x14038871c
// > GJKeybindManager::chordsForAction @ 0x1403888a2
// > GJKeybindManager::actionsForChord @ 0x140388a22
// > KeybindingsLayer::buildContentForTab @ 0x1403d6e98
// > KeybindingsLayer::buildContentForTab @ 0x1403d6eb9
// > KeybindingsLayer::actionsToShow @ 0x1403d8024
// > LevelEditorLayer::rebuildDeathOverlay @ 0x1403f5d94
// > LevelEditorLayer::rebuildDeathOverlay @ 0x1403f5dc5
// > LevelEditorLayer::rebuildDeathOverlay @ 0x1403f5df6
// > sub_140401BD0 @ 0x140401c5b
// > sub_140401BD0 @ 0x140401c92
// > sub_140401BD0 @ 0x140401cc2
// > sub_140401BD0 @ 0x140401cf4
// > sub_140401BD0 @ 0x140401d1d
// > sub_140401DD0 @ 0x14040212a
// > sub_140401DD0 @ 0x1404022e3
// > sub_140401DD0 @ 0x14040230d
// > sub_140401DD0 @ 0x14040233e
// > sub_140401DD0 @ 0x14040236e
// > sub_14040E0F0 @ 0x14040e31b
// > LevelSettingsObject::touchIDUsage @ 0x14040e8cb
// > LevelSettingsObject::objectFromDict @ 0x140412039
// > KeybindSet::actionsForChord @ 0x14044956d
// > MusicBrowser::cellPerformedAction @ 0x14047d416
// > MusicBrowser::onClose @ 0x14047e1ab
// > MusicBrowser::onClose @ 0x14047e243
// > MusicDownloadManager::splitIDString @ 0x140485158
// > MusicDownloadManager::importCustomSFXSetup @ 0x140488a6d
// > MusicDownloadManager::deleteCustomSFXObject @ 0x14048a162
// > MusicSearchResult::applyTagFilters @ 0x140497d97
// > MusicSearchResult::applyArtistFilters @ 0x140498256
// > PlayLayer::dtBumpCell @ 0x14051ec71
// > PlayLayer::dtBumpCell @ 0x14051ec91
// > PlayLayer::dtBumpCell @ 0x14051ecbd
// > PlayLayer::dtBumpCell @ 0x14051ece2
// > PlayLayer::dtLocalCellTriples @ 0x14051ed7f
// > PlayLayer::dtLocalCellTriples @ 0x14051edab
// > PlayLayer::dtLocalCellTriples @ 0x14051edd7
// > PlayLayer::tryShowDeathMarkers @ 0x14051fadf
// > PlayLayer::tryShowDeathMarkers @ 0x14051faff
// > PlayLayer::tryShowDeathMarkers @ 0x14051fe21
// > PlayLayer::tryShowDeathMarkers @ 0x14051fe41
// > PlayLayer::tryShowDeathMarkers @ 0x14051fe73
// > PlayLayer::tryShowDeathMarkers @ 0x14051fe93
// > PlayLayer::tryShowDeathMarkers @ 0x14051feb2
// > SecretRewardsLayer::generateChestItems @ 0x14056b581
// > SFXBrowser::onSelectAll @ 0x14061bfe5
// > SpawnTriggerGameObject::updateRemapKeys @ 0x14065a195
// > SpawnTriggerGameObject::updateRemapKeys @ 0x14065a20b
// > ??> @ 0x140889070
// > ??> @ 0x1408890b8
// > ??> @ 0x1408890d0
// > ??> @ 0x140911258
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:47 +0000
//
char *__fastcall sub_140069B30(const void **a1, _BYTE *a2, _DWORD *a3)
{
__int64 v5; // r14
__int64 v6; // rax
unsigned __int64 v8; // rcx
unsigned __int64 v9; // r15
unsigned __int64 v10; // rdx
unsigned __int64 v11; // rbx
_QWORD *v12; // rsi
void *v13; // rcx
_BYTE *v14; // r8
_BYTE *v15; // rdx
char *v16; // r14
size_t v17; // r8
v5 = (a2 - (_BYTE *)*a1) >> 2;
v6 = ((_BYTE *)a1[1] - (_BYTE *)*a1) >> 2;
if ( v6 == 0x3FFFFFFFFFFFFFFFLL )
sub_14005A170();
v8 = ((_BYTE *)a1[2] - (_BYTE *)*a1) >> 2;
v9 = v6 + 1;
v10 = v8 >> 1;
if ( v8 <= 0x3FFFFFFFFFFFFFFFLL - (v8 >> 1) )
{
v11 = v6 + 1;
if ( v10 + v8 >= v9 )
v11 = v10 + v8;
if ( v11 > 0x3FFFFFFFFFFFFFFFLL )
sub_140009CF0();
}
else
{
v11 = 0x3FFFFFFFFFFFFFFFLL;
}
v12 = sub_14003D460(4 * v11);
*((_DWORD *)v12 + v5) = *a3;
v13 = v12;
v14 = a1[1];
v15 = *a1;
v16 = (char *)v12 + 4 * v5;
if ( a2 == v14 )
{
v17 = v14 - v15;
}
else
{
memmove(v12, v15, a2 - v15);
v13 = v16 + 4;
v17 = (_BYTE *)a1[1] - a2;
v15 = a2;
}
memmove(v13, v15, v17);
sub_14006B840(a1, v12, v9, v11);
return v16;
}