//
// sub_100019268 from 0x100019268 to 0x10001931c (180 bytes)
//
// 341 xrefs:
// > sub_10000F350 @ 0x10000f3ec
// > sub_100010604 @ 0x100010654
// > sub_100010870 @ 0x1000108c8
// > sub_100012E34 @ 0x100012e64
// > sub_100012F04 @ 0x100012f1c
// > GJEffectManager::prepareMoveActions @ 0x100013384
// > GJEffectManager::prepareMoveActions @ 0x1000134b4
// > sub_100014578 @ 0x100014590
// > sub_1000145AC @ 0x1000145fc
// > sub_1000146B0 @ 0x1000146d8
// > sub_100014BD0 @ 0x100014c30
// > sub_1000154F4 @ 0x100015590
// > sub_100015640 @ 0x100015668
// > sub_1000156F4 @ 0x10001573c
// > sub_1000156F4 @ 0x100015798
// > sub_1000156F4 @ 0x1000157cc
// > sub_1000159EC @ 0x100015a9c
// > sub_1000159EC @ 0x100015bc0
// > sub_100016188 @ 0x100016218
// > sub_1000163C8 @ 0x1000163f4
// > sub_1000164B8 @ 0x10001651c
// > sub_1000166B0 @ 0x1000166c8
// > sub_1000166E0 @ 0x100016704
// > sub_100016740 @ 0x100016764
// > sub_1000168A4 @ 0x100016900
// > sub_10001698C @ 0x100016a14
// > sub_10001698C @ 0x100016afc
// > sub_100016D2C @ 0x100016d54
// > sub_100016F48 @ 0x100016f68
// > sub_100017780 @ 0x100017af8
// > sub_100017780 @ 0x100017b3c
// > sub_10001BB58 @ 0x10001bb68
// > sub_10001BFF8 @ 0x10001c008
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x100032a98
// > sub_1000A7734 @ 0x1000a77a0
// > sub_1000B3478 @ 0x1000b3498
// > sub_1000B3ACC @ 0x1000b3b04
// > sub_1000B3ACC @ 0x1000b3b14
// > sub_1000B4234 @ 0x1000b424c
// > sub_1000B4264 @ 0x1000b427c
// > sub_1000D65AC @ 0x1000d6678
// > sub_1000D9454 @ 0x1000d9464
// > sub_10014136C @ 0x1001414b4
// > PlayLayer::updateVisibility @ 0x1001458f8
// > PlayLayer::updateVisibility @ 0x10014591c
// > GameSettingsLayer::getValue @ 0x1001667fc
// > GameSettingsLayer::valueDidChange @ 0x1001668f4
// > sub_100189294 @ 0x100189328
// > EditorUI::toggleViewOption @ 0x100189434
// > EditorUI::pasteObjects @ 0x10018a360
// > EditorUI::pasteObjects @ 0x10018a3dc
// > EditorUI::pasteObjects @ 0x10018a43c
// > EditorUI::pasteObjects @ 0x10018a498
// > EditorUI::pasteObjects @ 0x10018a4d4
// > EditorUI::pasteObjects @ 0x10018a514
// > EditorUI::pasteObjects @ 0x10018a550
// > GJKeybindManager::actionsForKey @ 0x10018b964
// > GJKeybindManager::actionsForKey @ 0x10018b99c
// > GJKeybindManager::chordsForAction @ 0x10018ba98
// > GJKeybindManager::actionsForChord @ 0x10018bb58
// > GJKeybindManager::unbindChord @ 0x10018c61c
// > GJKeybindManager::unbindChord @ 0x10018c650
// > GJKeybindManager::applyNewDefaults @ 0x10018d8fc
// > sub_10018EDD0 @ 0x10018ede0
// > FMODAudioEngine::channelForChannelID @ 0x1001b57f0
// > sub_1001B65BC @ 0x1001b660c
// > FMODAudioEngine::loadAudioState @ 0x1001b6c04
// > FMODAudioEngine::loadAudioState @ 0x1001b6c34
// > FMODAudioEngine::loadAudioState @ 0x1001b6c64
// > FMODAudioEngine::loadAudioState @ 0x1001b6d30
// > FMODAudioEngine::loadAudioState @ 0x1001b6d60
// > FMODAudioEngine::loadAudioState @ 0x1001b6d90
// > FMODAudioEngine::loadMusic @ 0x1001b708c
// > FMODAudioEngine::getActiveMusicChannel @ 0x1001b7330
// > FMODAudioEngine::playEffectAdvanced @ 0x1001b7478
// > FMODAudioEngine::playEffectAdvanced @ 0x1001b751c
// > FMODAudioEngine::triggerQueuedMusic @ 0x1001b7c30
// > FMODAudioEngine::triggerQueuedMusic @ 0x1001b7c6c
// > FMODAudioEngine::triggerQueuedMusic @ 0x1001b7ca8
// > FMODAudioEngine::triggerQueuedMusic @ 0x1001b7ce4
// > sub_1001B82D0 @ 0x1001b832c
// > sub_1001B82D0 @ 0x1001b8358
// > sub_1001B82D0 @ 0x1001b83a8
// > sub_1001B82D0 @ 0x1001b83e4
// > sub_1001B82D0 @ 0x1001b8420
// > sub_1001B8828 @ 0x1001b884c
// > sub_1001B8A54 @ 0x1001b8a78
// > sub_1001B8EC0 @ 0x1001b8f08
// > sub_1001B8F6C @ 0x1001b8f90
// > sub_1001B906C @ 0x1001b9104
// > sub_1001B919C @ 0x1001b9214
// > FMODAudioEngine::getActiveMusic @ 0x1001b9e38
// > sub_1001BACDC @ 0x1001bad0c
// > sub_1001BACDC @ 0x1001bad1c
// > sub_1001BACDC @ 0x1001bad2c
// > sub_1001BACDC @ 0x1001bad68
// > sub_1001BACDC @ 0x1001bada4
// > sub_1001BACDC @ 0x1001bade0
// > sub_1001BACDC @ 0x1001bae1c
// > sub_1001BACDC @ 0x1001bae58
// > sub_1001BB274 @ 0x1001bb298
// > sub_1001BB274 @ 0x1001bb2e8
// > sub_1001BB548 @ 0x1001bb5b0
// > FMODAudioEngine::stopAndRemoveMusic @ 0x1001bb624
// > sub_1001BDE70 @ 0x1001bde80
// > MusicDownloadManager::isSongDownloaded @ 0x1001d4954
// > MusicDownloadManager::pathForSongFolder @ 0x1001d5698
// > MusicDownloadManager::isSFXDownloaded @ 0x1001d57a4
// > MusicDownloadManager::pathForSFXFolder @ 0x1001d5974
// > sub_1001D5B1C @ 0x1001d5b34
// > sub_1001D5B9C @ 0x1001d5bb4
// > sub_1001D5C1C @ 0x1001d5c34
// > sub_1001E2D18 @ 0x1001e2f4c
// > sub_1001E308C @ 0x1001e30b4
// > sub_1001E3FCC @ 0x1001e4040
// > sub_1001E4100 @ 0x1001e4200
// > LocalLevelManager::tryLoadMainLevelString @ 0x10025e36c
// > LocalLevelManager::getMainLevelString @ 0x10025e504
// > sub_1002743C0 @ 0x1002743ec
// > GJBaseGameLayer::addRemapTargets @ 0x10027a100
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027aaf8
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027ab2c
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027ab70
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027ab90
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027abb0
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027ac14
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027ac2c
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027adb0
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027ade8
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x10027afc0
// > GJBaseGameLayer::generateTargetGroups @ 0x10027b55c
// > GJBaseGameLayer::generateTargetGroups @ 0x10027b598
// > GJBaseGameLayer::generateTargetGroups @ 0x10027b8bc
// > GJBaseGameLayer::generateTargetGroups @ 0x10027ba10
// > GJBaseGameLayer::generateTargetGroups @ 0x10027bb44
// > GJBaseGameLayer::generateVisibilityGroups @ 0x10027c4ec
// > GJBaseGameLayer::addCustomEnterEffect @ 0x10027cef0
// > GJBaseGameLayer::generateEnterEasingBuffer @ 0x10027d35c
// > GJBaseGameLayer::updateCounters @ 0x100285f84
// > GJBaseGameLayer::playKeyframeAnimation @ 0x1002862d0
// > GJBaseGameLayer::getSavedPosition @ 0x1002871a8
// > GJBaseGameLayer::applyRemap @ 0x100288198
// > GJBaseGameLayer::applyRemap @ 0x1002881b4
// > GJBaseGameLayer::applyRemap @ 0x100288208
// > GJBaseGameLayer::applyRemap @ 0x100288224
// > GJBaseGameLayer::applyRemap @ 0x100288278
// > GJBaseGameLayer::applyRemap @ 0x100288294
// > GJBaseGameLayer::applyRemap @ 0x1002882e0
// > GJBaseGameLayer::applyRemap @ 0x1002882fc
// > GJBaseGameLayer::applyRemap @ 0x100288348
// > GJBaseGameLayer::applyRemap @ 0x100288364
// > GJBaseGameLayer::applyRemap @ 0x1002883b0
// > GJBaseGameLayer::applyRemap @ 0x1002883cc
// > GJBaseGameLayer::applyRemap @ 0x100288450
// > GJBaseGameLayer::applyRemap @ 0x10028846c
// > GJBaseGameLayer::applyRemap @ 0x1002884c0
// > GJBaseGameLayer::applyRemap @ 0x1002884dc
// > GJBaseGameLayer::applyRemap @ 0x100288538
// > GJBaseGameLayer::applyRemap @ 0x100288554
// > GJBaseGameLayer::applyRemap @ 0x1002885e4
// > GJBaseGameLayer::applyRemap @ 0x100288600
// > GJBaseGameLayer::applyRemap @ 0x100288654
// > GJBaseGameLayer::applyRemap @ 0x100288670
// > GJBaseGameLayer::applyRemap @ 0x1002886c4
// > GJBaseGameLayer::applyRemap @ 0x1002886e0
// > GJBaseGameLayer::applyRemap @ 0x100288734
// > GJBaseGameLayer::applyRemap @ 0x100288750
// > GJBaseGameLayer::applyRemap @ 0x1002887a4
// > GJBaseGameLayer::applyRemap @ 0x1002887c0
// > GJBaseGameLayer::applyRemap @ 0x100288820
// > GJBaseGameLayer::applyRemap @ 0x10028883c
// > GJBaseGameLayer::applyRemap @ 0x100288890
// > GJBaseGameLayer::applyRemap @ 0x1002888ac
// > GJBaseGameLayer::applyRemap @ 0x100288900
// > GJBaseGameLayer::applyRemap @ 0x10028891c
// > GJBaseGameLayer::applyRemap @ 0x100288970
// > GJBaseGameLayer::applyRemap @ 0x10028898c
// > GJBaseGameLayer::applyRemap @ 0x1002889e0
// > GJBaseGameLayer::applyRemap @ 0x1002889fc
// > GJBaseGameLayer::applyRemap @ 0x100288a50
// > GJBaseGameLayer::applyRemap @ 0x100288a6c
// > GJBaseGameLayer::applyRemap @ 0x100288ac0
// > GJBaseGameLayer::applyRemap @ 0x100288adc
// > GJBaseGameLayer::applyRemap @ 0x100288b30
// > GJBaseGameLayer::applyRemap @ 0x100288b4c
// > GJBaseGameLayer::applyRemap @ 0x100288ba0
// > GJBaseGameLayer::applyRemap @ 0x100288bbc
// > GJBaseGameLayer::applyRemap @ 0x100288c10
// > GJBaseGameLayer::applyRemap @ 0x100288c2c
// > GJBaseGameLayer::applyRemap @ 0x100288c88
// > GJBaseGameLayer::applyRemap @ 0x100288ca4
// > GJBaseGameLayer::applyRemap @ 0x100288cf8
// > GJBaseGameLayer::applyRemap @ 0x100288d14
// > GJBaseGameLayer::applyRemap @ 0x100288d70
// > GJBaseGameLayer::applyRemap @ 0x100288d8c
// > GJBaseGameLayer::applyRemap @ 0x100288de0
// > GJBaseGameLayer::applyRemap @ 0x100288dfc
// > GJBaseGameLayer::applyRemap @ 0x100288e50
// > GJBaseGameLayer::applyRemap @ 0x100288e6c
// > GJBaseGameLayer::applyRemap @ 0x100288ed0
// > GJBaseGameLayer::applyRemap @ 0x100288eec
// > GJBaseGameLayer::applyRemap @ 0x100288f40
// > GJBaseGameLayer::applyRemap @ 0x100288f5c
// > GJBaseGameLayer::applyRemap @ 0x100288fb0
// > GJBaseGameLayer::applyRemap @ 0x100288fcc
// > GJBaseGameLayer::applyRemap @ 0x100289020
// > GJBaseGameLayer::applyRemap @ 0x10028903c
// > GJBaseGameLayer::applyRemap @ 0x100289090
// > GJBaseGameLayer::applyRemap @ 0x1002890ac
// > GJBaseGameLayer::restoreRemap @ 0x100289164
// > GJBaseGameLayer::restoreRemap @ 0x100289184
// > GJBaseGameLayer::restoreRemap @ 0x1002891a4
// > GJBaseGameLayer::restoreRemap @ 0x1002891c4
// > GJBaseGameLayer::restoreRemap @ 0x1002891e4
// > GJBaseGameLayer::restoreRemap @ 0x100289204
// > GJBaseGameLayer::restoreRemap @ 0x10028925c
// > GJBaseGameLayer::restoreRemap @ 0x10028927c
// > GJBaseGameLayer::restoreRemap @ 0x10028929c
// > GJBaseGameLayer::restoreRemap @ 0x100289300
// > GJBaseGameLayer::restoreRemap @ 0x100289320
// > GJBaseGameLayer::restoreRemap @ 0x100289340
// > GJBaseGameLayer::restoreRemap @ 0x100289360
// > GJBaseGameLayer::restoreRemap @ 0x100289380
// > GJBaseGameLayer::restoreRemap @ 0x1002893b0
// > GJBaseGameLayer::restoreRemap @ 0x1002893d0
// > GJBaseGameLayer::restoreRemap @ 0x1002893f0
// > GJBaseGameLayer::restoreRemap @ 0x100289410
// > GJBaseGameLayer::restoreRemap @ 0x100289434
// > GJBaseGameLayer::restoreRemap @ 0x100289458
// > GJBaseGameLayer::restoreRemap @ 0x100289478
// > GJBaseGameLayer::restoreRemap @ 0x100289498
// > GJBaseGameLayer::restoreRemap @ 0x1002894b8
// > GJBaseGameLayer::restoreRemap @ 0x1002894d8
// > GJBaseGameLayer::restoreRemap @ 0x100289504
// > GJBaseGameLayer::restoreRemap @ 0x100289524
// > GJBaseGameLayer::restoreRemap @ 0x100289550
// > GJBaseGameLayer::restoreRemap @ 0x100289570
// > GJBaseGameLayer::restoreRemap @ 0x100289590
// > GJBaseGameLayer::restoreRemap @ 0x1002895c4
// > GJBaseGameLayer::restoreRemap @ 0x1002895e4
// > GJBaseGameLayer::restoreRemap @ 0x100289604
// > GJBaseGameLayer::restoreRemap @ 0x100289624
// > GJBaseGameLayer::restoreRemap @ 0x100289644
// > sub_10028E6D8 @ 0x10028e788
// > GJBaseGameLayer::addToGroupParents @ 0x10028e8d4
// > GJBaseGameLayer::addToGroupParents @ 0x10028e918
// > GJBaseGameLayer::loadGroupParentsFromString @ 0x10028ec88
// > GJBaseGameLayer::reAddToStickyGroup @ 0x10028f114
// > GJBaseGameLayer::addAreaEffect @ 0x10029017c
// > GJBaseGameLayer::processAreaEffects @ 0x1002905c0
// > GJBaseGameLayer::claimMoveAction @ 0x100294f94
// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1002957a0
// > GJBaseGameLayer::modifyGroupPhysics @ 0x1002959c4
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x100295b74
// > GJBaseGameLayer::updateSpecialLabels @ 0x10029cf80
// > GJBaseGameLayer::updateSpecialLabels @ 0x10029d0bc
// > GJBaseGameLayer::updatePlatformerTime @ 0x10029d3a0
// > GJBaseGameLayer::getRecordString @ 0x10029e714
// > GJBaseGameLayer::canProcessSFX @ 0x1002a30e4
// > GJBaseGameLayer::canProcessSFX @ 0x1002a3140
// > sub_1002A35AC @ 0x1002a35d8
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1002a3804
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1002a3904
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1002a3b9c
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1002a3c2c
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x1002a3cc0
// > sub_1002A61FC @ 0x1002a621c
// > sub_1002A74D0 @ 0x1002a74e0
// > sub_1002A954C @ 0x1002a955c
// > PlayerObject::rotateGameplayObject @ 0x1002bd198
// > PlayerObject::collidedWithSlopeInternal @ 0x1002bdb54
// > PlayerObject::unrotateGameplayObject @ 0x1002bfd64
// > PlayerObject::resetTouchedRings @ 0x1002c3c28
// > PlayerObject::ringJump @ 0x1002c4ddc
// > sub_10030B714 @ 0x10030b738
// > GameLevelOptionsLayer::didToggle @ 0x10037fb30
// > GameLevelOptionsLayer::didToggle @ 0x10037fb60
// > sub_10037FC80 @ 0x10037fcb0
// > GameManager::recountUserStats @ 0x1003b6fec
// > sub_1003F5FBC @ 0x1003f5ff4
// > sub_1003F5FBC @ 0x1003f6018
// > sub_100400EBC @ 0x100400ee4
// > sub_100400F18 @ 0x100401028
// > sub_100401088 @ 0x100401174
// > sub_1004011CC @ 0x1004012c0
// > sub_100401318 @ 0x100401400
// > sub_100401458 @ 0x100401530
// > sub_10040158C @ 0x10040164c
// > sub_1004016A8 @ 0x1004017a4
// > sub_100401804 @ 0x1004018e4
// > sub_10040193C @ 0x1004019f4
// > sub_100401A48 @ 0x100401b00
// > sub_100401B54 @ 0x100401c34
// > LevelEditorLayer::getNextColorChannel @ 0x100401da0
// > LevelEditorLayer::resetUnusedColorChannels @ 0x100401f74
// > sub_1004066B4 @ 0x10040674c
// > sub_100406930 @ 0x100406b40
// > sub_100406930 @ 0x100406d90
// > sub_100406930 @ 0x100406dbc
// > sub_100406930 @ 0x100406df4
// > sub_100406930 @ 0x100406e04
// > sub_1004072F8 @ 0x100407348
// > sub_1004072F8 @ 0x1004073b4
// > sub_1004072F8 @ 0x10040742c
// > sub_1004072F8 @ 0x10040750c
// > sub_1004072F8 @ 0x100407580
// > sub_100407958 @ 0x100407ab0
// > sub_100407958 @ 0x100407bd4
// > sub_100407958 @ 0x100407ce8
// > sub_100407958 @ 0x100407d1c
// > sub_100407958 @ 0x100408588
// > sub_100407958 @ 0x100408870
// > sub_100407958 @ 0x100408880
// > sub_10040908C @ 0x100409190
// > sub_10040DDB8 @ 0x10040ddd8
// > sub_10040DDB8 @ 0x10040dde8
// > sub_10040DE3C @ 0x10040ded8
// > sub_10040DF38 @ 0x10040df5c
// > sub_10040E10C @ 0x10040e134
// > LevelSettingsObject::objectFromDict @ 0x10040f5f8
// > sub_10042FD04 @ 0x10042fd30
// > SequenceTriggerGameObject::triggerObject @ 0x1004308cc
// > EditorUI::toggleWindow @ 0x100473618
// > EditorUI::refreshGridWindow @ 0x100475410
// > EditorUI::dynamicGroupUpdate @ 0x10047a264
// > EditorUI::dynamicGroupUpdate @ 0x10047a4f4
// > EditorSFXManager::deserializeAll @ 0x1004c7b34
// > sub_1004C7E84 @ 0x1004c7ea8
// > EditorSFXManager::hasSoundsForAction @ 0x1004c7fdc
// > EditorSFXManager::playAction_1 @ 0x1004c8048
// > EditorSFXManager::playAction_1 @ 0x1004c8088
// > EditorSFXManager::playAction_1 @ 0x1004c80b0
// > EditorSFXManager::soundsForAction @ 0x1004c82f4
// > sub_1004C831C @ 0x1004c8330
// > sub_1004C8360 @ 0x1004c8374
// > sub_1004C8404 @ 0x1004c8428
// > sub_1004C852C @ 0x1004c8544
// > sub_1004C97AC @ 0x1004c9944
// > sub_1004C9C38 @ 0x1004ca154
// > sub_1004E6B5C @ 0x1004e6b78
// > sub_1004E6B5C @ 0x1004e6b88
//
// This function is hookable on this platform (idp: arm, 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 10:57:20 +0000
//
__int64 *__fastcall sub_100019268(_QWORD *a1, int *a2)
{
int8x8_t v2; // x8
unsigned __int64 v3; // x9
uint8x8_t v4; // d0
unsigned __int64 v5; // x11
__int64 **v6; // x12
__int64 *result; // x0
unsigned __int64 v8; // x13
v2 = (int8x8_t)a1[1];
if ( !*(_QWORD *)&v2 )
return nullptr;
v3 = *a2;
v4 = (uint8x8_t)vcnt_s8(v2);
v4.i16[0] = vaddlv_u8(v4);
if ( v4.u32[0] > 1uLL )
{
v5 = *a2;
if ( *(_QWORD *)&v2 <= v3 )
v5 = v3 % *(_QWORD *)&v2;
}
else
{
v5 = (*(_QWORD *)&v2 - 1LL) & v3;
}
v6 = *(__int64 ***)(*a1 + 8 * v5);
if ( !v6 )
return nullptr;
for ( result = *v6; result; result = (__int64 *)*result )
{
v8 = result[1];
if ( v8 == v3 )
{
if ( *((_DWORD *)result + 4) == (_DWORD)v3 )
return result;
}
else
{
if ( v4.u32[0] > 1uLL )
{
if ( v8 >= *(_QWORD *)&v2 )
v8 %= *(_QWORD *)&v2;
}
else
{
v8 &= *(_QWORD *)&v2 - 1LL;
}
if ( v8 != v5 )
return nullptr;
}
}
return result;
}