//
// sub_CFAD74 from 0xcfad74 to 0xcfaf34 (448 bytes)
//
// 351 xrefs:
// > GameToolbox::stringSetupToMap @ 0x5849dc
// > FMODAudioEngine::updateChannel @ 0x5b4338
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0x5d8194
// > GameManager::isIconLoaded @ 0x5f1b18
// > GameManager::logLoadedIconInfo @ 0x5f1c34
// > GameManager::calculateBaseKeyForIcons @ 0x5f1da4
// > GameManager::addIconDelegate @ 0x5f21c0
// > GameManager::unloadIcon @ 0x5fc408
// > GameManager::unloadIcon @ 0x5fc534
// > GameManager::unloadIcon @ 0x5fc660
// > GameManager::unloadIcon @ 0x5fc76c
// > GameManager::unloadIcon @ 0x5fc7f4
// > GameManager::unloadIcon @ 0x5fc8a8
// > GameManager::unloadIcons @ 0x5fcf8c
// > GameManager::unloadIcons @ 0x5fd034
// > GameManager::loadIcon @ 0x5fd3d8
// > GameManager::loadIcon @ 0x5fd528
// > GameManager::loadIcon @ 0x5fd694
// > GameManager::loadIcon @ 0x5fd720
// > GameManager::loadIcon @ 0x5fd838
// > GameManager::loadIcon @ 0x5fd90c
// > GameManager::finishedLoadingIconAsync @ 0x5fdebc
// > GameManager::finishedLoadingIconAsync @ 0x5fdfac
// > GameManager::finishedLoadingIconAsync @ 0x5fe2b8
// > GameManager::finishedLoadingIconAsync @ 0x5fe34c
// > GameManager::loadIconAsync @ 0x5fe760
// > GameManager::loadIconAsync @ 0x5fe92c
// > LevelTools::timeForPos @ 0x606db8
// > LevelTools::timeForPos @ 0x60711c
// > LevelTools::timeForPos @ 0x607350
// > LevelTools::timeForPos @ 0x607488
// > PlayerObject::touchedObject @ 0x63ab40
// > PlayerObject::touchedObject @ 0x63abec
// > PlayerObject::releaseButton @ 0x63ae78
// > PlayerObject::switchedDirTo @ 0x63ba00
// > PlayerObject::switchedDirTo @ 0x63bb10
// > PlayerObject::pushButton @ 0x63c910
// > PlayerObject::enablePlayerControls @ 0x63cc20
// > PlayerObject::enablePlayerControls @ 0x63cd0c
// > PlayerObject::enablePlayerControls @ 0x63cdfc
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0x66cd68
// > LevelEditorLayer::getSongIDs @ 0x679458
// > EditorUI::updateObjectInfoLabel @ 0x6bae90
// > EditorUI::updateObjectInfoLabel @ 0x6bb3d8
// > GJLevelList::hasMatchingLevels @ 0x71a99c
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0x71abcc
// > ColorSelectPopup::hexToColor @ 0x740bc8
// > ColorSelectPopup::hexToColor @ 0x740ff8
// > ColorSelectPopup::hexToColor @ 0x7411b8
// > ColorSelectPopup::hexToColor @ 0x741238
// > ColorSelectPopup::hexToColor @ 0x7412b8
// > ColorSelectPopup::hexToColor @ 0x741338
// > ColorSelectPopup::hexToColor @ 0x7413b8
// > ColorSelectPopup::hexToColor @ 0x741438
// > ColorSelectPopup::hexToColor @ 0x7414b8
// > ColorSelectPopup::hexToColor @ 0x741538
// > ColorSelectPopup::hexToColor @ 0x7415b8
// > ColorSelectPopup::hexToColor @ 0x741638
// > ColorSelectPopup::hexToColor @ 0x7416b8
// > ColorSelectPopup::hexToColor @ 0x741738
// > ColorSelectPopup::hexToColor @ 0x7417b8
// > ColorSelectPopup::hexToColor @ 0x741838
// > ColorSelectPopup::hexToColor @ 0x74194c
// > ColorSelectPopup::hexToColor @ 0x741a40
// > ColorSelectPopup::hexToColor @ 0x741b04
// > ColorSelectPopup::hexToColor @ 0x741bc8
// > ColorSelectPopup::hexToColor @ 0x741c8c
// > ColorSelectPopup::hexToColor @ 0x741d88
// > CustomSongWidget::updateWithMultiAssets @ 0x748884
// > CustomSongWidget::updateWithMultiAssets @ 0x7489dc
// > CustomSongWidget::downloadAssetFinished @ 0x749010
// > CustomSongWidget::downloadAssetFinished @ 0x749108
// > SpawnTriggerGameObject::changeRemap @ 0x7716c4
// > GJGarageLayer::getItems @ 0x796de0
// > GJGarageLayer::setupPage @ 0x797b00
// > GJGarageLayer::onArrow @ 0x797dd4
// > GJGarageLayer::selectTab @ 0x7980c4
// > GJGarageLayer::setupIconSelect @ 0x7989f8
// > std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique> @ 0x7af8a0
// > std::map,std::allocator>>::operator[] @ 0x7ef710
// > ObjectToolbox::intKeyToFrame @ 0x7ef8a0
// > sub_7EF958 @ 0x7efaa0
// > sub_7EF958 @ 0x7efb74
// > sub_7EF958 @ 0x7efc48
// > sub_7EF958 @ 0x7efd18
// > sub_7EF958 @ 0x7efde8
// > sub_7EF958 @ 0x7efebc
// > sub_7EF958 @ 0x7eff8c
// > sub_7EF958 @ 0x7f005c
// > sub_7EF958 @ 0x7f012c
// > sub_7EF958 @ 0x7f0200
// > sub_7EF958 @ 0x7f02d0
// > sub_7EF958 @ 0x7f03a4
// > sub_7EF958 @ 0x7f0478
// > sub_7EF958 @ 0x7f054c
// > sub_7EF958 @ 0x7f061c
// > sub_7EF958 @ 0x7f06ec
// > sub_7EF958 @ 0x7f07c0
// > sub_7EF958 @ 0x7f0890
// > sub_7EF958 @ 0x7f0960
// > sub_7EF958 @ 0x7f0a30
// > sub_7EF958 @ 0x7f0b04
// > sub_7EF958 @ 0x7f0bd4
// > sub_7EF958 @ 0x7f0ca8
// > sub_7EF958 @ 0x7f0d78
// > sub_7EF958 @ 0x7f0e4c
// > sub_7EF958 @ 0x7f0f1c
// > sub_7EF958 @ 0x7f0fec
// > sub_7EF958 @ 0x7f10c0
// > sub_7EF958 @ 0x7f1190
// > sub_7EF958 @ 0x7f1260
// > sub_7EF958 @ 0x7f1330
// > sub_7EF958 @ 0x7f1404
// > sub_7EF958 @ 0x7f14d4
// > sub_7EF958 @ 0x7f15a8
// > sub_7EF958 @ 0x7f167c
// > sub_7EF958 @ 0x7f1750
// > sub_7EF958 @ 0x7f1820
// > sub_7EF958 @ 0x7f18f0
// > sub_7EF958 @ 0x7f19c4
// > sub_7EF958 @ 0x7f1a94
// > sub_7EF958 @ 0x7f1b64
// > sub_7EF958 @ 0x7f1c34
// > sub_7EF958 @ 0x7f1d08
// > sub_7EF958 @ 0x7f1dd8
// > sub_7EF958 @ 0x7f1eac
// > sub_7EF958 @ 0x7f1f80
// > sub_7EF958 @ 0x7f2054
// > sub_7EF958 @ 0x7f2124
// > sub_7EF958 @ 0x7f21f4
// > sub_7EF958 @ 0x7f22c8
// > sub_7EF958 @ 0x7f2398
// > sub_7EF958 @ 0x7f2468
// > sub_7EF958 @ 0x7f2538
// > sub_7EF958 @ 0x7f260c
// > sub_7EF958 @ 0x7f26dc
// > sub_7EF958 @ 0x7f27b0
// > sub_7EF958 @ 0x7f2884
// > sub_7EF958 @ 0x7f2958
// > sub_7EF958 @ 0x7f2a28
// > sub_7EF958 @ 0x7f2af8
// > sub_7EF958 @ 0x7f2bcc
// > sub_7EF958 @ 0x7f2c9c
// > sub_7EF958 @ 0x7f2d6c
// > sub_7EF958 @ 0x7f2e3c
// > sub_7EF958 @ 0x7f2f10
// > sub_7EF958 @ 0x7f2fe0
// > sub_7EF958 @ 0x7f30b4
// > sub_7EF958 @ 0x7f3188
// > sub_7EF958 @ 0x7f325c
// > sub_7EF958 @ 0x7f332c
// > sub_7EF958 @ 0x7f33fc
// > sub_7EF958 @ 0x7f34d0
// > sub_7EF958 @ 0x7f35a0
// > sub_7EF958 @ 0x7f3670
// > sub_7EF958 @ 0x7f3740
// > sub_7EF958 @ 0x7f3814
// > sub_7EF958 @ 0x7f38e4
// > sub_7EF958 @ 0x7f39b4
// > sub_7EF958 @ 0x7f3a88
// > sub_7EF958 @ 0x7f3b5c
// > sub_7EF958 @ 0x7f3c2c
// > sub_7EF958 @ 0x7f3cfc
// > sub_7EF958 @ 0x7f3dd0
// > sub_7EF958 @ 0x7f3ea0
// > sub_7EF958 @ 0x7f3f6c
// > sub_7EF958 @ 0x7f4038
// > sub_7EF958 @ 0x7f4108
// > sub_7EF958 @ 0x7f41d4
// > sub_7EF958 @ 0x7f42a4
// > sub_7EF958 @ 0x7f4374
// > sub_7EF958 @ 0x7f4448
// > sub_7EF958 @ 0x7f4518
// > sub_7EF958 @ 0x7f45e8
// > sub_7EF958 @ 0x7f46bc
// > sub_7EF958 @ 0x7f478c
// > sub_7EF958 @ 0x7f485c
// > sub_7EF958 @ 0x7f492c
// > sub_7EF958 @ 0x7f4a00
// > sub_7EF958 @ 0x7f4ad0
// > sub_7EF958 @ 0x7f4ba4
// > sub_7EF958 @ 0x7f4c78
// > sub_7EF958 @ 0x7f4d4c
// > sub_7EF958 @ 0x7f4e1c
// > sub_7EF958 @ 0x7f4eec
// > sub_7EF958 @ 0x7f4fc0
// > sub_7EF958 @ 0x7f5090
// > sub_7EF958 @ 0x7f5160
// > sub_7EF958 @ 0x7f5230
// > sub_7EF958 @ 0x7f5304
// > sub_7EF958 @ 0x7f53d4
// > sub_7EF958 @ 0x7f54a8
// > sub_7EF958 @ 0x7f557c
// > sub_7EF958 @ 0x7f5650
// > sub_7EF958 @ 0x7f5720
// > sub_7EF958 @ 0x7f57f0
// > sub_7EF958 @ 0x7f68e8
// > sub_7EF958 @ 0x7f69b8
// > sub_7EF958 @ 0x7f6a88
// > sub_7EF958 @ 0x7f6b58
// > sub_7EF958 @ 0x7f6c2c
// > sub_7EF958 @ 0x7f6cfc
// > sub_7EF958 @ 0x7f6dd0
// > sub_7EF958 @ 0x7f6ea4
// > sub_7EF958 @ 0x7f6f78
// > sub_7EF958 @ 0x7f7048
// > sub_7EF958 @ 0x7f7118
// > sub_7EF958 @ 0x7f71ec
// > sub_7EF958 @ 0x7f72bc
// > sub_7EF958 @ 0x8189c4
// > sub_7EF958 @ 0x818a94
// > sub_7EF958 @ 0x818b68
// > sub_7EF958 @ 0x818c38
// > sub_7EF958 @ 0x818d0c
// > sub_7EF958 @ 0x818de0
// > sub_7EF958 @ 0x818eb4
// > sub_7EF958 @ 0x818f84
// > sub_7EF958 @ 0x819054
// > sub_7EF958 @ 0x819124
// > MusicDownloadManager::nameForTagID @ 0x833c18
// > MusicDownloadManager::parseMusicLibrary @ 0x8388a4
// > std::_Rb_tree,std::tuple,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique const&> @ 0x8748c0
// > GJBaseGameLayer::generatePickupAnimRandVal @ 0x886fc4
// > GJBaseGameLayer::generatePickupAnimRandVal @ 0x887050
// > GJBaseGameLayer::generatePickupAnimRandVal @ 0x8870f4
// > GJBaseGameLayer::playerTouchedTrigger @ 0x887664
// > GJBaseGameLayer::playerTouchedObject @ 0x8878cc
// > GJBaseGameLayer::activateEventTrigger @ 0x8892a8
// > GJBaseGameLayer::activateEventTrigger @ 0x889400
// > GJBaseGameLayer::gameEventTriggered @ 0x889718
// > GJBaseGameLayer::gameEventTriggered @ 0x8899d0
// > GJBaseGameLayer::gameEventTriggered @ 0x889a7c
// > GJBaseGameLayer::addProximityVolumeEffect @ 0x88cdd0
// > GJEffectManager::storeTriggeredID @ 0x8a528c
// > std::map,std::allocator>>::operator[] @ 0x8b3728
// > GJEffectManager::registerRotationCommand @ 0x8b4c84
// > GJEffectManager::registerRotationCommand @ 0x8b4e54
// > GJAccountSettingsLayer::closeAccInputNodes @ 0x8dc65c
// > GJAccountSettingsLayer::onUpdate @ 0x8dcc0c
// > GJAccountSettingsLayer::onUpdate @ 0x8dcc94
// > GJAccountSettingsLayer::onUpdate @ 0x8dcd1c
// > GJAccountSettingsLayer::onUpdate @ 0x8dcd9c
// > GJAccountSettingsLayer::onUpdate @ 0x8dce18
// > GJAccountSettingsLayer::onUpdate @ 0x8dce94
// > GJAccountSettingsLayer::onUpdate @ 0x8dcf10
// > GJAccountSettingsLayer::updateScoreValues @ 0x8dd6f4
// > GJAccountSettingsLayer::updateScoreValues @ 0x8dd7d0
// > GJAccountSettingsLayer::updateScoreValues @ 0x8dd8ac
// > GJAccountSettingsLayer::updateScoreValues @ 0x8dd988
// > GJAccountSettingsLayer::updateScoreValues @ 0x8dda64
// > GJAccountSettingsLayer::updateScoreValues @ 0x8ddb40
// > GJAccountSettingsLayer::updateScoreValues @ 0x8ddc24
// > GJAccountSettingsLayer::init @ 0x8df1ec
// > GJAccountSettingsLayer::init @ 0x8df690
// > GJAccountSettingsLayer::init @ 0x8df710
// > GJAccountSettingsLayer::init @ 0x8df794
// > GJAccountSettingsLayer::init @ 0x8df814
// > GJAccountSettingsLayer::init @ 0x8df894
// > GJAccountSettingsLayer::init @ 0x8df914
// > GJAccountSettingsLayer::init @ 0x8df994
// > SetupSpawnPopup::updateRemapButtons @ 0x8ea7d0
// > SetupSpawnPopup::updateRemapButtons @ 0x8eab28
// > GJSmartTemplate::scanForPrefab @ 0x9d81e0
// > GJSmartTemplate::scanForPrefab @ 0x9d83a4
// > GJSmartTemplate::scanForPrefab @ 0x9d9130
// > GJSmartTemplate::scanForPrefab @ 0x9d92ec
// > GJSmartTemplate::scanForPrefab @ 0x9d95ac
// > GJSmartTemplate::scanForPrefab @ 0x9d96e4
// > SetupTriggerPopup::shouldLimitValue @ 0x9eb55c
// > SetupTriggerPopup::toggleLimitValue @ 0x9edb0c
// > SelectEventLayer::addToggle @ 0xa54728
// > SelectEventLayer::onInfo @ 0xa58288
// > SecretRewardsLayer::generateChestItems @ 0xa6a25c
// > SecretRewardsLayer::generateChestItems @ 0xa6a3e4
// > EnterEffectInstance::animateValue @ 0xa6c2bc
// > std::map,int,std::less>,std::allocator const,int>>>::operator[] @ 0xa815f4
// > GameStatsManager::setupIconCredits @ 0xa81844
// > GameStatsManager::setupIconCredits @ 0xa818d8
// > GameStatsManager::setupIconCredits @ 0xa8196c
// > GameStatsManager::setupIconCredits @ 0xa81a00
// > GameStatsManager::setupIconCredits @ 0xa81a94
// > GameStatsManager::setupIconCredits @ 0xa81b40
// > GameStatsManager::setupIconCredits @ 0xa82dc0
// > GameStatsManager::setupIconCredits @ 0xa82e68
// > GameStatsManager::setupIconCredits @ 0xa892a0
// > GameStatsManager::setupIconCredits @ 0xa8940c
// > GameStatsManager::setupIconCredits @ 0xa895a0
// > GameStatsManager::setupIconCredits @ 0xa897d0
// > GameStatsManager::setupIconCredits @ 0xa89a00
// > GameStatsManager::setupIconCredits @ 0xa89c30
// > GameStatsManager::setupIconCredits @ 0xa89e60
// > GameStatsManager::setupIconCredits @ 0xa8a06c
// > GameStatsManager::setupIconCredits @ 0xa8a188
// > GameStatsManager::setupIconCredits @ 0xa8a4d4
// > GameStatsManager::setupIconCredits @ 0xa8a5d4
// > GameStatsManager::setupIconCredits @ 0xa8a764
// > GameStatsManager::setupIconCredits @ 0xa8a8f8
// > GameStatsManager::setupIconCredits @ 0xa8ab28
// > GameStatsManager::setupIconCredits @ 0xa8ac20
// > GameStatsManager::setupIconCredits @ 0xa8ad14
// > GameStatsManager::setupIconCredits @ 0xa8ae0c
// > GameStatsManager::setupIconCredits @ 0xa8af04
// > GameStatsManager::setupIconCredits @ 0xa8b1e0
// > GameStatsManager::setupIconCredits @ 0xa8b274
// > GameStatsManager::setupIconCredits @ 0xa8b308
// > GameStatsManager::setupIconCredits @ 0xa8b398
// > GameStatsManager::setupIconCredits @ 0xa8b428
// > GameStatsManager::setupIconCredits @ 0xa8b4bc
// > GameStatsManager::setupIconCredits @ 0xa8b550
// > GameStatsManager::setupIconCredits @ 0xa8b5e4
// > GameStatsManager::setupIconCredits @ 0xa8b678
// > GameStatsManager::setupIconCredits @ 0xa8b70c
// > GameStatsManager::setupIconCredits @ 0xa8b79c
// > GameStatsManager::setupIconCredits @ 0xa8b82c
// > GameStatsManager::setupIconCredits @ 0xa8b8bc
// > GameStatsManager::setupIconCredits @ 0xa8b950
// > GameStatsManager::setupIconCredits @ 0xa8b9e4
// > GameStatsManager::setupIconCredits @ 0xa8ba78
// > GameStatsManager::setupIconCredits @ 0xa8bb08
// > GameStatsManager::setupIconCredits @ 0xa8bb98
// > GameStatsManager::setupIconCredits @ 0xa8bc2c
// > GameStatsManager::setupIconCredits @ 0xa8bcbc
// > GameStatsManager::setupIconCredits @ 0xa8bd50
// > GameStatsManager::setupIconCredits @ 0xa8bde4
// > GameStatsManager::setupIconCredits @ 0xa8be78
// > GameStatsManager::setupIconCredits @ 0xa8bf08
// > GameStatsManager::setupIconCredits @ 0xa8bf9c
// > GameStatsManager::setupIconCredits @ 0xa8c030
// > GameStatsManager::setupIconCredits @ 0xa8c0c4
// > GameStatsManager::setupIconCredits @ 0xa8c158
// > GameStatsManager::setupIconCredits @ 0xa8c1ec
// > GameStatsManager::setupIconCredits @ 0xa8c280
// > GameStatsManager::setupIconCredits @ 0xa8c314
// > GameStatsManager::setupIconCredits @ 0xa8c3a8
// > GameStatsManager::setupIconCredits @ 0xa8c438
// > GameStatsManager::setupIconCredits @ 0xa8c4cc
// > GameStatsManager::setupIconCredits @ 0xa8c560
// > GameStatsManager::setupIconCredits @ 0xa8c5f4
// > GameStatsManager::setupIconCredits @ 0xa8c688
// > GameStatsManager::setupIconCredits @ 0xa8c71c
// > GameStatsManager::setupIconCredits @ 0xa8c7ac
// > cocos2d::extension::CCControl::addHandleOfControlEvent @ 0xa9a364
// > cocos2d::extension::CCScrollView::registerScriptHandler @ 0xaa6d60
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0xaa7e58
// > cocos2d::CCSet::addObject @ 0xad2cf4
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0xae4de4
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_insert_unique> @ 0xb06e80
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0xb1ba9c
// > cocos2d::ZipFile::setFilter @ 0xb2bcb0
// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xb49c60
// > DS_Dictionary::addBoolValuesToMapForKey @ 0xb49f2c
//
// 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_CFAD74(char a1, __int64 a2, _QWORD *a3, _QWORD *a4)
{
__int64 v4; // x21
_QWORD *v6; // x23
_DWORD *v7; // x1
__int64 v8; // x20
__int64 v9; // x19
_DWORD *v10; // x0
_DWORD *v12; // x0
__int64 v13; // x1
__int64 v14; // x0
__int64 v15; // x0
_DWORD *v16; // x0
*(_QWORD *)(a2 + 8) = a3;
v4 = a2;
*(_QWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 24) = 0;
v6 = a4 + 1;
*(_DWORD *)a2 = 0;
if ( a1 )
{
a3[2] = a2;
if ( a3 == a4 )
{
a4[1] = a2;
a4[3] = a2;
}
else if ( (_QWORD *)a4[2] == a3 )
{
a4[2] = a2;
}
}
else
{
a3[3] = a2;
if ( (_QWORD *)a4[3] == a3 )
a4[3] = a2;
}
v7 = (_DWORD *)a4[1];
LABEL_6:
if ( (_DWORD *)v4 != v7 )
{
do
{
v8 = *(_QWORD *)(v4 + 8);
if ( *(_DWORD *)v8 )
break;
v9 = *(_QWORD *)(v8 + 8);
v10 = *(_DWORD **)(v9 + 16);
if ( (_DWORD *)v8 == v10 )
{
v10 = *(_DWORD **)(v9 + 24);
if ( !v10 || *v10 )
{
v16 = *(_DWORD **)(v4 + 8);
if ( *(_QWORD *)(v8 + 24) == v4 )
{
v4 = *(_QWORD *)(v4 + 8);
sub_CFAA54((__int64)v16, v6);
v16 = *(_DWORD **)(v8 + 8);
}
*v16 = 1;
*(_DWORD *)v9 = 0;
sub_CFAAB4(v9, v6);
v7 = (_DWORD *)a4[1];
goto LABEL_6;
}
}
else if ( !v10 || *v10 )
{
v12 = *(_DWORD **)(v4 + 8);
if ( *(_QWORD *)(v8 + 16) == v4 )
{
v4 = *(_QWORD *)(v4 + 8);
sub_CFAAB4((__int64)v12, v6);
v12 = *(_DWORD **)(v8 + 8);
}
v13 = *(_QWORD *)(v9 + 24);
*v12 = 1;
*(_DWORD *)v9 = 0;
v14 = *(_QWORD *)(v13 + 16);
*(_QWORD *)(v9 + 24) = v14;
if ( v14 )
*(_QWORD *)(v14 + 8) = v9;
*(_QWORD *)(v13 + 8) = *(_QWORD *)(v9 + 8);
if ( v9 == a4[1] )
{
a4[1] = v13;
}
else
{
v15 = *(_QWORD *)(v9 + 8);
if ( v9 == *(_QWORD *)(v15 + 16) )
*(_QWORD *)(v15 + 16) = v13;
else
*(_QWORD *)(v15 + 24) = v13;
}
*(_QWORD *)(v13 + 16) = v9;
*(_QWORD *)(v9 + 8) = v13;
v7 = (_DWORD *)a4[1];
goto LABEL_6;
}
*(_DWORD *)v8 = 1;
v4 = v9;
*v10 = 1;
*(_DWORD *)v9 = 0;
}
while ( (_DWORD *)v9 != v7 );
}
*v7 = 1;
return 1;
}