//
// sub_100017A98 from 0x100017a98 to 0x100017ae0 (72 bytes)
//
// 294 xrefs:
// > sub_10000E6D0 @ 0x10000e8e0
// > sub_10000E6D0 @ 0x10000e8e8
// > sub_10000E6D0 @ 0x10000e8f0
// > sub_10000E6D0 @ 0x10000e920
// > sub_10000E6D0 @ 0x10000e978
// > sub_10000E6D0 @ 0x10000e98c
// > sub_10000E6D0 @ 0x10000e9b0
// > sub_10000E6D0 @ 0x10000e9b8
// > sub_10000E6D0 @ 0x10000e9c0
// > sub_10000E6D0 @ 0x10000e9c8
// > sub_10000E6D0 @ 0x10000e9d0
// > sub_10000E6D0 @ 0x10000ea04
// > sub_10000E6D0 @ 0x10000ea54
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x10002f104
// > sub_10002F418 @ 0x10002f47c
// > SetupAreaMoveTriggerPopup::onNextFreeEffectID @ 0x100035da8
// > sub_100035DCC @ 0x100035dd4
// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x10003cdd8
// > sub_10003CDFC @ 0x10003ce04
// > SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x10003ce4c
// > sub_10003CE70 @ 0x10003ce78
// > SetGroupIDLayer::onNextGroupID1 @ 0x10003d4ac
// > sub_10003D4C8 @ 0x10003d4d0
// > SetGroupIDLayer::onNextFreeOrderChannel @ 0x10003db94
// > sub_10003DBB8 @ 0x10003dbc0
// > SetupObjectOptions2Popup::onPlusButton @ 0x100041ad8
// > sub_100041AFC @ 0x100041b04
// > SetupPickupTriggerPopup::onPlusButton @ 0x100043950
// > sub_100043974 @ 0x10004397c
// > CollisionBlockPopup::onNextItemID @ 0x100085670
// > sub_10008569C @ 0x1000856a4
// > GameLevelManager::getStarLevelsString @ 0x1000983a4
// > GameLevelManager::getStarLevelsString @ 0x1000983ac
// > sub_1000983EC @ 0x100098498
// > sub_1000983EC @ 0x1000984a0
// > GJLevelList::getListLevelsArray @ 0x1000b13e0
// > sub_1000B1408 @ 0x1000b145c
// > PlayLayer::dPlayLayer @ 0x100115660
// > PlayLayer::loadDefaultColors @ 0x1001187fc
// > sub_100118818 @ 0x100118848
// > PlayLayer::processLoadedMoveActions @ 0x10011c41c
// > sub_10011C43C @ 0x10011c450
// > sub_100122C58 @ 0x100122c90
// > sub_100122C58 @ 0x100122c98
// > CheckpointObject::dCheckpointObject @ 0x100122da8
// > CheckpointObject::dCheckpointObject @ 0x100122db0
// > sub_1001231FC @ 0x100123254
// > sub_100123A74 @ 0x100123ab0
// > sub_100123A74 @ 0x100123ab8
// > sub_100123A74 @ 0x100123ac0
// > sub_100123A74 @ 0x100123ac8
// > sub_1001272D0 @ 0x1001272f8
// > sub_1001272D0 @ 0x100127300
// > sub_1001272D0 @ 0x100127318
// > sub_1001272D0 @ 0x100127320
// > sub_1001272D0 @ 0x100127368
// > sub_1001272D0 @ 0x10012737c
// > sub_1001274B0 @ 0x1001274b8
// > sub_1001274B0 @ 0x1001274d0
// > sub_1001274F4 @ 0x100127520
// > sub_1001274F4 @ 0x100127528
// > sub_1001274F4 @ 0x100127530
// > sub_1001274F4 @ 0x100127538
// > sub_1001274F4 @ 0x100127540
// > sub_1001274F4 @ 0x100127548
// > sub_1001274F4 @ 0x100127550
// > sub_1001274F4 @ 0x100127558
// > sub_1001274F4 @ 0x100127560
// > sub_1001274F4 @ 0x100127568
// > sub_10012761C @ 0x10012764c
// > sub_10012761C @ 0x100127698
// > sub_10012761C @ 0x100127738
// > sub_10012761C @ 0x10012775c
// > sub_10012761C @ 0x100127764
// > sub_10012761C @ 0x10012776c
// > sub_10012761C @ 0x100127774
// > sub_100127AEC @ 0x100127af4
// > sub_100127AEC @ 0x100127afc
// > sub_100127BF4 @ 0x100127c10
// > sub_100127BF4 @ 0x100127c18
// > sub_1001282AC @ 0x1001282cc
// > sub_1001282AC @ 0x1001282d4
// > FMODAudioEngine::dFMODAudioEngine @ 0x100138008
// > FMODAudioEngine::dFMODAudioEngine @ 0x100138010
// > FMODAudioEngine::dFMODAudioEngine @ 0x100138038
// > FMODAudioEngine::dFMODAudioEngine @ 0x100138040
// > FMODAudioEngine::dFMODAudioEngine @ 0x100138048
// > FMODAudioEngine::dFMODAudioEngine @ 0x100138050
// > FMODAudioEngine::dFMODAudioEngine @ 0x100138058
// > FMODAudioEngine::stopMusicNotInSet @ 0x10013e728
// > sub_10013E740 @ 0x10013e74c
// > sub_100153D0C @ 0x100153d9c
// > sub_100153D0C @ 0x100153da4
// > sub_10015B06C @ 0x10015b0b8
// > SetupSFXPopup::onPlusButton @ 0x100181038
// > SetupSFXPopup::onPlusButton @ 0x100181074
// > sub_1001810BC @ 0x1001810c8
// > SetupRotateGameplayPopup::onPlusButton @ 0x10019ef10
// > sub_10019EF34 @ 0x10019ef3c
// > sub_1001A9DA0 @ 0x1001a9da8
// > SetupKeyframePopup::onCustomButton @ 0x1001b5bc4
// > sub_1001B5D0C @ 0x1001b5d3c
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da638
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da6f8
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da704
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da808
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da820
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da864
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da914
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da91c
// > GJBaseGameLayer::generateSpawnRemap @ 0x1001dfc54
// > GJBaseGameLayer::generateSpawnRemap @ 0x1001dfc80
// > sub_1001DFD00 @ 0x1001dfd08
// > GJBaseGameLayer::sortGroups @ 0x1001dfec8
// > sub_1001DFEE4 @ 0x1001dfef8
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x1001e0a34
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x1001e0a3c
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x1001e0a6c
// > sub_1001E0A9C @ 0x1001e0afc
// > sub_1001E0A9C @ 0x1001e0b04
// > sub_1001E0A9C @ 0x1001e0b44
// > GJBaseGameLayer::generateTargetGroups @ 0x1001e1634
// > GJBaseGameLayer::generateTargetGroups @ 0x1001e1664
// > GJBaseGameLayer::generateTargetGroups @ 0x1001e1674
// > GJBaseGameLayer::generateTargetGroups @ 0x1001e167c
// > sub_1001E16A0 @ 0x1001e1764
// > sub_1001E16A0 @ 0x1001e176c
// > sub_1001E16A0 @ 0x1001e177c
// > sub_1001E16A0 @ 0x1001e1784
// > GJBaseGameLayer::generateVisibilityGroups @ 0x1001e1d94
// > GJBaseGameLayer::generateVisibilityGroups @ 0x1001e1ea4
// > GJBaseGameLayer::generateVisibilityGroups @ 0x1001e1eb4
// > sub_1001E1ED8 @ 0x1001e1f0c
// > sub_1001E1ED8 @ 0x1001e1f1c
// > GJBaseGameLayer::processSFXObjects @ 0x1001e2238
// > sub_1001E2250 @ 0x1001e228c
// > GJBaseGameLayer::playKeyframeAnimation @ 0x1001ea75c
// > sub_1001EA77C @ 0x1001ea790
// > GJBaseGameLayer::spawnObject @ 0x1001ec524
// > sub_1001EC5B0 @ 0x1001ec5b8
// > GJBaseGameLayer::registerSpawnRemap @ 0x1001edc28
// > sub_1001EDCAC @ 0x1001edcb4
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x1001fc1f8
// > sub_1001FC35C @ 0x1001fc368
// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fe338
// > sub_1001FE36C @ 0x1001fe3e8
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206c44
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206f18
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206f20
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206f28
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206f30
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206f38
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206f50
// > sub_100206F7C @ 0x100207020
// > sub_100206F7C @ 0x100207030
// > sub_100206F7C @ 0x100207038
// > sub_100206F7C @ 0x100207040
// > sub_100206F7C @ 0x100207048
// > sub_100206F7C @ 0x100207050
// > sub_100206F7C @ 0x100207068
// > sub_10020974C @ 0x100209780
// > sub_100209D74 @ 0x100209d90
// > sub_100209FF8 @ 0x10020a020
// > sub_10020C0E0 @ 0x10020c100
// > sub_10020C0E0 @ 0x10020c108
// > sub_10020C0E0 @ 0x10020c110
// > sub_10020C230 @ 0x10020c258
// > sub_10020C230 @ 0x10020c260
// > sub_10020C230 @ 0x10020c268
// > sub_10020C2BC @ 0x10020c2ec
// > sub_10020C2BC @ 0x10020c2f4
// > sub_10020C2BC @ 0x10020c2fc
// > sub_10020C35C @ 0x10020c388
// > sub_10020C35C @ 0x10020c390
// > sub_10020C35C @ 0x10020c398
// > sub_10020C68C @ 0x10020c6d4
// > sub_10020C6F4 @ 0x10020c718
// > sub_10020C774 @ 0x10020c7ac
// > sub_1002122E0 @ 0x1002122ec
// > PlayerObject::dPlayerObject @ 0x100217720
// > PlayerObject::dPlayerObject @ 0x100217728
// > PlayerObject::dPlayerObject @ 0x100217730
// > PlayerObject::dPlayerObject @ 0x100217738
// > sub_10022EE8C @ 0x10022eed0
// > sub_10022EE8C @ 0x10022eee0
// > sub_10022EE8C @ 0x10022eee8
// > sub_10022EE8C @ 0x10022eef0
// > ShaderLayer::dShaderLayer @ 0x10026daf8
// > ShaderLayer::dShaderLayer @ 0x10026db00
// > sub_1002734CC @ 0x1002734dc
// > sub_1002734CC @ 0x1002734e4
// > GJOptionsLayer::dGJOptionsLayer @ 0x1002d2f00
// > GameManager::recountUserStats @ 0x10031a3c4
// > GameManager::recountUserStats @ 0x10031a3ec
// > sub_10031A42C @ 0x10031a514
// > sub_10031A42C @ 0x10031a53c
// > sub_1003254FC @ 0x1003255f0
// > sub_1003254FC @ 0x1003255f8
// > SetupGradientPopup::onPlusButton @ 0x100343784
// > sub_1003437A8 @ 0x1003437b0
// > sub_10035674C @ 0x10035696c
// > LevelEditorLayer::getNextFreeGroupID @ 0x10035f878
// > sub_10035F898 @ 0x10035f8ac
// > LevelEditorLayer::getNextFreeItemID @ 0x10035f9b8
// > sub_10035F9D4 @ 0x10035f9e8
// > LevelEditorLayer::getNextFreeBlockID @ 0x10035fad0
// > sub_10035FAE8 @ 0x10035faf8
// > LevelEditorLayer::getNextFreeOrderChannel @ 0x10035fbfc
// > sub_10035FC18 @ 0x10035fc2c
// > LevelEditorLayer::getNextFreeEditorLayer @ 0x10035fd18
// > sub_10035FD34 @ 0x10035fd48
// > LevelEditorLayer::getNextFreeEnterChannel @ 0x10035fe40
// > sub_10035FE5C @ 0x10035fe70
// > LevelEditorLayer::getNextFreeAreaEffectID @ 0x10035ff4c
// > sub_10035FF64 @ 0x10035ff74
// > LevelEditorLayer::getNextFreeSFXID @ 0x100360058
// > sub_100360070 @ 0x100360080
// > LevelEditorLayer::getNextFreeSFXGroupID @ 0x100360164
// > sub_10036017C @ 0x10036018c
// > LevelEditorLayer::getNextFreeGradientID @ 0x100360268
// > sub_100360280 @ 0x100360290
// > LevelEditorLayer::getNextColorChannel @ 0x100360408
// > sub_100360424 @ 0x10036043c
// > LevelEditorLayer::resetUnusedColorChannels @ 0x1003605a4
// > sub_1003605BC @ 0x1003605d0
// > sub_100364844 @ 0x100364fc0
// > sub_100365088 @ 0x10036512c
// > sub_100365230 @ 0x100365400
// > sub_100365230 @ 0x100365414
// > sub_100365230 @ 0x100365540
// > sub_100365230 @ 0x100365558
// > sub_100365230 @ 0x100365570
// > sub_100365594 @ 0x10036559c
// > sub_100365594 @ 0x1003655c4
// > sub_100365594 @ 0x1003655dc
// > sub_100365594 @ 0x1003655f0
// > sub_100365890 @ 0x100365b68
// > sub_100365890 @ 0x100365da8
// > sub_100365890 @ 0x100366cc8
// > sub_100365890 @ 0x100366cec
// > sub_100365890 @ 0x100366cf4
// > sub_100365890 @ 0x100366cfc
// > sub_100365890 @ 0x100366d04
// > sub_100365890 @ 0x100366d34
// > sub_100365890 @ 0x100366d3c
// > sub_100365890 @ 0x100366d44
// > sub_100365890 @ 0x100366d4c
// > sub_100366DC4 @ 0x100366edc
// > sub_100366DC4 @ 0x100366f34
// > sub_100366DC4 @ 0x100366f58
// > sub_100366DC4 @ 0x100366f60
// > sub_100366DC4 @ 0x100366f68
// > sub_100366DC4 @ 0x100366f70
// > sub_100366DC4 @ 0x100366fa0
// > sub_100366DC4 @ 0x100366fa8
// > sub_100366DC4 @ 0x100366fb0
// > sub_100366DC4 @ 0x100366fb8
// > sub_100366FC4 @ 0x100367998
// > sub_100366FC4 @ 0x1003679b0
// > sub_100366FC4 @ 0x100367a74
// > sub_100367AA8 @ 0x100367b90
// > sub_100367AA8 @ 0x100367ba8
// > sub_100367AA8 @ 0x100367bb8
// > sub_100369500 @ 0x1003695b8
// > sub_100399638 @ 0x100399668
// > sub_100399638 @ 0x100399670
// > sub_1003996B4 @ 0x1003996e4
// > sub_1003996B4 @ 0x1003996ec
// > EditorUI::dEditorUI @ 0x1003c4db0
// > EditorUI::editGroup @ 0x1003e5708
// > sub_1003E5730 @ 0x1003e5738
// > EditorUI::copyObjects @ 0x1003e8a04
// > sub_1003E8A44 @ 0x1003e8aa4
// > EditorUI::pasteObjects @ 0x1003ecdc8
// > sub_1003ECED4 @ 0x1003ecf7c
// > EditorUI::dynamicGroupUpdate @ 0x1003f2d98
// > EditorUI::dynamicGroupUpdate @ 0x1003f309c
// > EditorUI::dynamicGroupUpdate @ 0x1003f30a4
// > EditorUI::dynamicGroupUpdate @ 0x1003f30ac
// > sub_1003F30D0 @ 0x1003f311c
// > sub_1003F30D0 @ 0x1003f3124
// > sub_1003F30D0 @ 0x1003f312c
// > EditorUI::assignNewGroups @ 0x1003f3458
// > sub_1003F34C0 @ 0x1003f34c8
// > EditorUI::createLoop @ 0x1003f38bc
// > EditorUI::createLoop @ 0x1003f3a84
// > sub_1003F3B94 @ 0x1003f3ba0
// > sub_1003FC708 @ 0x1003fc710
// > SetupEnterEffectPopup::onNextFreeEnterChannel @ 0x1004011c4
// > sub_1004011E8 @ 0x1004011f0
// > SetupEnterEffectPopup::onNextFreeEnterEffectID @ 0x100401238
// > sub_10040125C @ 0x100401264
// > SetupInteractObjectPopup::onPlusButton @ 0x100413144
// > sub_100413158 @ 0x100413160
//
// 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_100017A98(__int64 a1)
{
_QWORD *v2; // x0
_QWORD *v3; // x20
void *v4; // x0
v2 = *(_QWORD **)(a1 + 16);
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
v4 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v4 )
operator delete(v4);
return a1;
}