//
// sub_180005B70 from 0x180005b70 to 0x180005bcf (95 bytes)
//
// 329 xrefs:
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x180068205
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800682b9
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800685c9
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800685ec
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x18006868e
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebf1
// > cocos2d::ZipUtils::base64DecodeEnc @ 0x1800a2c9a
// > cocos2d::ZipUtils::base64EncodeEnc @ 0x1800a2eb4
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0824
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0a47
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1105
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b11de
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1543
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1bac
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b203a
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b205a
// > cocos2d::CCDirector::removeStatsLabel @ 0x1800bf119
// > cocos2d::CCDirector::toggleShowFPS @ 0x1800c005b
// > sub_1800E0730 @ 0x1800e0737
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e07f7
// > sub_1800E0830 @ 0x1800e083b
// > sub_1800E0840 @ 0x1800e084b
// > sub_1800E0860 @ 0x1800e0867
// > sub_1800E0880 @ 0x1800e088b
// > sub_1800E0890 @ 0x1800e089b
// > sub_1800E08B0 @ 0x1800e08b7
// > sub_1800E08D0 @ 0x1800e08db
// > sub_1800E08E0 @ 0x1800e08eb
// > int `_wcrtomb_s_l @ 0x1800e0907
// > sub_1800E0920 @ 0x1800e092b
// > sub_1800E0930 @ 0x1800e093b
// > sub_1800E09A0 @ 0x1800e09bb
// > sub_1800E09D0 @ 0x1800e09d7
// > sub_1800E0A30 @ 0x1800e0a37
// > sub_1800E0A40 @ 0x1800e0a47
// > sub_1800E0A50 @ 0x1800e0a57
// > sub_1800E0A80 @ 0x1800e0a87
// > sub_1800E0A90 @ 0x1800e0a97
// > unknown_libname_2 @ 0x1800e0e37
// > int `_wcstombs_l_helper @ 0x1800e0e47
// > int `Concurrency::details::SchedulerBase::GetBitSet @ 0x1800e0e6b
// > sub_1800E0E80 @ 0x1800e0e87
// > sub_1800E0E90 @ 0x1800e0e97
// > sub_1800E0EA0 @ 0x1800e0ea7
// > sub_1800E0F00 @ 0x1800e0f07
// > sub_1800E0F10 @ 0x1800e0f17
// > unknown_libname_4 @ 0x1800e0f27
// > sub_1800E0F70 @ 0x1800e0f8b
// > unknown_libname_19 @ 0x1800e0fe7
// > int `std::time_put>>::do_put @ 0x1800e0ff7
// > sub_1800E1000 @ 0x1800e1007
// > int `std::money_put>>::do_put @ 0x1800e1027
// > sub_1800E1050 @ 0x1800e1057
// > sub_1800E1060 @ 0x1800e1067
// > sub_1800E1070 @ 0x1800e1077
// > sub_1800E1080 @ 0x1800e1087
// > sub_1800E1090 @ 0x1800e1097
// > sub_1800E10A0 @ 0x1800e10a7
// > sub_1800E10D0 @ 0x1800e10d7
// > sub_1800E1110 @ 0x1800e1117
// > sub_1800E1170 @ 0x1800e118e
// > sub_1800E11B0 @ 0x1800e11b7
// > sub_1800E1210 @ 0x1800e122b
// > sub_1800E1B10 @ 0x1800e1b2b
// > unknown_libname_23 @ 0x1800e1c07
// > sub_1800E1DB0 @ 0x1800e1dbe
// > sub_1800E1DD0 @ 0x1800e1dde
// > sub_1800E1E90 @ 0x1800e1e97
// > sub_1800E1EA0 @ 0x1800e1ea7
// > sub_1800E1EC0 @ 0x1800e1ec7
// > sub_1800E1F10 @ 0x1800e1f1e
// > int `std::basic_stringbuf,std::allocator>::str @ 0x1800e1f4b
// > int `std::locale::name @ 0x1800e201b
// > sub_1800E2670 @ 0x1800e267e
// > sub_1800E27C0 @ 0x1800e27cb
// > sub_1800E27D0 @ 0x1800e27db
// > sub_1800E2820 @ 0x1800e282b
// > sub_1800E2830 @ 0x1800e2837
// > sub_1800E2840 @ 0x1800e2847
// > sub_1800E2870 @ 0x1800e2877
// > sub_1800E2880 @ 0x1800e2887
// > sub_1800E2890 @ 0x1800e2897
// > int `std::money_get>>::_Getmfld @ 0x1800e28a7
// > int `Concurrency::details::UMSThreadScheduler::VirtualProcessorActiveNotification @ 0x1800e28b7
// > int `std::locale::_Locimp::_Makeloc @ 0x1800e28c7
// > unknown_libname_27 @ 0x1800e28e7
// > int `std::collate::do_transform @ 0x1800e290b
// > sub_1800E2920 @ 0x1800e293b
// > sub_1800E2970 @ 0x1800e298b
// > sub_1800E2A00 @ 0x1800e2a0b
// > int `std::_Locinfo::_Locinfo @ 0x1800e2a1b
// > int `Concurrency::details::FairScheduleGroup::AllocateSegment @ 0x1800e2bf7
// > int `Concurrency::details::SchedulerProxy::~SchedulerProxy @ 0x1800e2c7b
// > sub_1800E2CA0 @ 0x1800e2cbe
// > sub_1800E2CD0 @ 0x1800e2cd7
// > sub_1800E2CE0 @ 0x1800e2ce7
// > sub_1800E2CF0 @ 0x1800e2cf7
// > unknown_libname_12 @ 0x1800e2f17
// > sub_1800E3030 @ 0x1800e304b
// > sub_1800E3090 @ 0x1800e30ab
// > sub_1800E30C0 @ 0x1800e30db
// > sub_1800E3170 @ 0x1800e3177
// > sub_1800E3250 @ 0x1800e326e
// > sub_1800E32E0 @ 0x1800e32fb
// > int `std::_Locinfo::_Locinfo @ 0x1800e352b
// > sub_1800E3590 @ 0x1800e3597
// > sub_1800E35C0 @ 0x1800e35c7
// > sub_1800E3700 @ 0x1800e3707
// > sub_1800E38D0 @ 0x1800e38d7
// > sub_1800E3920 @ 0x1800e392e
// > sub_1800E3940 @ 0x1800e394e
// > unknown_libname_14 @ 0x1800e3967
// > ??> @ 0x180131487
// > ??> @ 0x1801315f3
// > ??> @ 0x1801319b9
// > ??> @ 0x180131a19
// > ??> @ 0x180131a81
// > ??> @ 0x180131c23
// > ??> @ 0x180131da0
// > ??> @ 0x180131f1b
// > ??> @ 0x180131f21
// > ??> @ 0x180131f28
// > ??> @ 0x18013209f
// > ??> @ 0x1801320a5
// > ??> @ 0x1801320ef
// > ??> @ 0x1801320f5
// > ??> @ 0x180132473
// > ??> @ 0x180132c5c
// > ??> @ 0x180132c62
// > ??> @ 0x180132d73
// > ??> @ 0x180132db7
// > ??> @ 0x180132e07
// > ??> @ 0x180132e0d
// > ??> @ 0x180132e14
// > ??> @ 0x180132e71
// > ??> @ 0x180132ee3
// > ??> @ 0x180132eea
// > ??> @ 0x180132f2f
// > ??> @ 0x180132f36
// > ??> @ 0x180132f3c
// > ??> @ 0x180132f97
// > ??> @ 0x180132f9e
// > ??> @ 0x180132fa5
// > ??> @ 0x180132fac
// > ??> @ 0x18013300b
// > ??> @ 0x180133012
// > ??> @ 0x180133019
// > ??> @ 0x180133020
// > ??> @ 0x180133027
// > ??> @ 0x18013302e
// > ??> @ 0x1801330e4
// > ??> @ 0x1801331af
// > ??> @ 0x1801331f5
// > ??> @ 0x1801333eb
// > ??> @ 0x1801334a0
// > ??> @ 0x1801335fb
// > ??> @ 0x180133601
// > ??> @ 0x180133607
// > ??> @ 0x180133647
// > ??> @ 0x18013375b
// > ??> @ 0x180133762
// > ??> @ 0x180133769
// > ??> @ 0x180136c99
// > ??> @ 0x18013740f
// > ??> @ 0x180137416
// > ??> @ 0x18013741c
// > ??> @ 0x180137423
// > ??> @ 0x18013742a
// > ??> @ 0x180137430
// > ??> @ 0x180137437
// > ??> @ 0x18013743e
// > ??> @ 0x18013756b
// > ??> @ 0x180137577
// > ??> @ 0x18013757e
// > ??> @ 0x1801375d3
// > ??> @ 0x1801375d9
// > ??> @ 0x18013761b
// > ??> @ 0x180137cbf
// > ??> @ 0x180137e1d
// > ??> @ 0x180139618
// > ??> @ 0x180139663
// > ??> @ 0x1801396d3
// > ??> @ 0x1801396d9
// > ??> @ 0x1801396df
// > ??> @ 0x180139ddf
// > ??> @ 0x180139de5
// > ??> @ 0x180139deb
// > ??> @ 0x180139df2
// > ??> @ 0x180139df9
// > ??> @ 0x180139e00
// > ??> @ 0x180139e06
// > ??> @ 0x180139e0d
// > ??> @ 0x18013a4bb
// > ??> @ 0x18013a4c1
// > ??> @ 0x18013a54b
// > ??> @ 0x18013a552
// > ??> @ 0x18013a559
// > ??> @ 0x18013a560
// > ??> @ 0x18013a567
// > ??> @ 0x18013a56e
// > ??> @ 0x18013a575
// > ??> @ 0x18013a57c
// > ??> @ 0x18013a58b
// > ??> @ 0x18013a67b
// > ??> @ 0x18013a681
// > ??> @ 0x18013a687
// > ??> @ 0x18013a6cb
// > ??> @ 0x18013a6d1
// > ??> @ 0x18013a6d7
// > ??> @ 0x18013a723
// > ??> @ 0x18013a729
// > ??> @ 0x18013a797
// > ??> @ 0x18013a79e
// > ??> @ 0x18013a7e3
// > ??> @ 0x18013a7e9
// > ??> @ 0x18013a907
// > ??> @ 0x18013a90d
// > ??> @ 0x18013a913
// > ??> @ 0x18013a960
// > ??> @ 0x18013a967
// > ??> @ 0x18013a9c3
// > ??> @ 0x18013ac37
// > ??> @ 0x18013ac42
// > ??> @ 0x18013ac97
// > ??> @ 0x18013aca2
// > ??> @ 0x18013bcd9
// > ??> @ 0x18013bdf7
// > ??> @ 0x18013bdfd
// > ??> @ 0x18013bed3
// > ??> @ 0x18013beda
// > ??> @ 0x18013bee0
// > ??> @ 0x18013bfb7
// > ??> @ 0x18013bfbe
// > ??> @ 0x18013c197
// > ??> @ 0x18013c19d
// > ??> @ 0x18013c1a4
// > ??> @ 0x18013c1aa
// > ??> @ 0x18013cbb3
// > ??> @ 0x18013cbb9
// > ??> @ 0x18013cdec
// > ??> @ 0x18013d10b
// > ??> @ 0x18013d111
// > ??> @ 0x18013d117
// > ??> @ 0x18013d1b3
// > ??> @ 0x18013d1b9
// > ??> @ 0x18013d20f
// > ??> @ 0x18013d215
// > ??> @ 0x18013dc0b
// > ??> @ 0x18013dc12
// > ??> @ 0x18013dc19
// > ??> @ 0x18013dc20
// > ??> @ 0x18013dcdf
// > ??> @ 0x18013dce5
// > ??> @ 0x18013dcec
// > ??> @ 0x18013dd5f
// > ??> @ 0x18013dd65
// > ??> @ 0x18013de2b
// > ??> @ 0x18013de31
// > ??> @ 0x18013de37
// > ??> @ 0x18013e221
// > ??> @ 0x18013e2e8
// > ??> @ 0x18013e4b3
// > ??> @ 0x18013e4f5
// > ??> @ 0x18013f1fb
// > ??> @ 0x18013f201
// > ??> @ 0x18013f6fb
// > ??> @ 0x18013f701
// > ??> @ 0x18013f7ec
// > ??> @ 0x18013f823
// > ??> @ 0x18013f829
// > ??> @ 0x18013f867
// > ??> @ 0x18013f86d
// > ??> @ 0x18013f873
// > ??> @ 0x18013f8f3
// > ??> @ 0x18013fd84
// > ??> @ 0x18013fe6f
// > ??> @ 0x18013fe75
// > ??> @ 0x18013fe7b
// > ??> @ 0x18013fe8b
// > ??> @ 0x18013fef3
// > ??> @ 0x18013fef9
// > ??> @ 0x18013ff00
// > ??> @ 0x18013ff63
// > ??> @ 0x18013ff73
// > ??> @ 0x18013ffdf
// > ??> @ 0x1801400af
// > ??> @ 0x1801400b5
// > ??> @ 0x1801400bb
// > ??> @ 0x1801400c6
// > ??> @ 0x18014040c
// > ??> @ 0x180140a45
// > ??> @ 0x180140abb
// > ??> @ 0x180140ac7
// > ??> @ 0x180140ace
// > ??> @ 0x180140ad5
// > ??> @ 0x180140aeb
// > ??> @ 0x180140af2
// > ??> @ 0x180140afa
// > ??> @ 0x180140b01
// > ??> @ 0x180140b08
// > ??> @ 0x180140b21
// > ??> @ 0x180140b28
// > ??> @ 0x180140b36
// > ??> @ 0x180140b3d
// > ??> @ 0x180140b75
// > ??> @ 0x180140b98
// > ??> @ 0x180140ba6
// > ??> @ 0x180140bad
// > ??> @ 0x180140bbe
// > ??> @ 0x180140bcb
// > ??> @ 0x180140cf3
// > ??> @ 0x180140cf9
// > ??> @ 0x180140d37
// > ??> @ 0x180140d3d
// > ??> @ 0x180140d43
// > ??> @ 0x180140d49
// > ??> @ 0x18014140f
// > ??> @ 0x180141b3b
// > ??> @ 0x180141b41
// > ??> @ 0x180141b47
// > ??> @ 0x180141c6f
// > ??> @ 0x180141c75
// > ??> @ 0x180141c90
// > ??> @ 0x180141d07
// > ??> @ 0x180141d0d
// > ??> @ 0x180141ff3
// > ??> @ 0x180141ff9
// > ??> @ 0x180142393
// > ??> @ 0x1801ad828
//
// 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
//
void __fastcall sub_180005B70(__int64 a1)
{
unsigned __int64 v1; // rdx
_QWORD *v3; // rcx
v1 = *(_QWORD *)(a1 + 24);
if ( v1 > 0xF )
{
v3 = *(_QWORD **)a1;
if ( v1 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free_0(v3);
}
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 15;
*(_BYTE *)a1 = 0;
}