//
// GJEffectManager::saveToState from 0x1000169f4 to 0x100016d14 (800 bytes)
//
// 1 xrefs:
// > PlayLayer::createCheckpoint @ 0x10011fb70
//
// 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 GJEffectManager::saveToState(GJEffectManager *a1, EffectManagerState *a2)
{
unsigned int v4; // w0
cocos2d::CCDictionary *m_unkObject148; // x8
cocos2d::CCDictElement *m_pElements; // x8
__int64 v7; // x21
cocos2d::CCDictElement *next; // x22
if ( &a2->m_unorderedSet_int2 != &a1->m_unkMap4c8 )
{
a2->m_unorderedSet_int2.__table_.__p3_.__value_ = a1->m_unkMap4c8.__table_.__p3_.__value_;
sub_10001F890((_DWORD)a2 + 472);
}
v4 = cocos2d::CCDictionary::count(a1->m_unkObject148);
sub_100016D14(a2, v4);
m_unkObject148 = a1->m_unkObject148;
if ( m_unkObject148 )
{
m_pElements = m_unkObject148->m_pElements;
if ( m_pElements )
{
v7 = 0;
do
{
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
ColorAction::saveToState((ColorAction *)m_pElements->m_pObject, &a2->m_unkVecCAState.__begin_[v7++]);
m_pElements = next;
}
while ( next );
}
}
if ( &a2->m_unkVecPulseEffectAction != &a1->m_pulseEffectVector )
sub_10001FBAC((_DWORD)a2 + 24, a1->m_pulseEffectVector.__begin_);
if ( &a2->m_unorderedMapInt_vectorPulseEffectAction != &a1->m_pulseEffectMap )
{
a2->m_unorderedMapInt_vectorPulseEffectAction.__table_.__p3_.__value_ = a1->m_pulseEffectMap.__table_.__p3_.__value_;
sub_10001FD68((_DWORD)a2 + 48);
}
if ( &a2->m_unorderedMapInt_OpacityEffectAction != &a1->m_opacityEffectMap )
{
a2->m_unorderedMapInt_OpacityEffectAction.__table_.__p3_.__value_ = a1->m_opacityEffectMap.__table_.__p3_.__value_;
sub_100020094((_DWORD)a2 + 192);
}
if ( &a2->m_unorderedSet_int1 != &a1->m_unkMap460 )
{
a2->m_unorderedSet_int1.__table_.__p3_.__value_ = a1->m_unkMap460.__table_.__p3_.__value_;
sub_10001F890((_DWORD)a2 + 128);
}
if ( &a2->m_mapInt_Int != (std::map *)&a1->m_unkMap498 )
sub_100020234(&a2->m_mapInt_Int, a1->m_unkMap498.__tree_.__begin_node_, &a1->m_unkMap498.__tree_.__pair1_);
if ( &a2->m_vectorSpawnTriggerAction != &a1->m_spawnTriggerActions )
sub_100020534();
if ( &a2->m_vectorGroupCommandObject2 != &a1->m_unkVector560 )
sub_100020828();
if ( &a2->m_unorderedMapInt_pair_double_double != &a1->m_unkMap578 )
{
a2->m_unorderedMapInt_pair_double_double.__table_.__p3_.__value_ = a1->m_unkMap578.__table_.__p3_.__value_;
sub_10001AAEC((_DWORD)a2 + 432);
}
if ( &a2->m_vectorTouchToggleAction != &a1->m_unkVector1e0 )
sub_100021038();
if ( &a2->m_unorderedMapInt_vectorCountTriggerAction != &a1->m_countTriggerActions )
{
a2->m_unorderedMapInt_vectorCountTriggerAction.__table_.__p3_.__value_ = a1->m_countTriggerActions.__table_.__p3_.__value_;
sub_100021378(
&a2->m_unorderedMapInt_vectorCountTriggerAction,
a1->m_countTriggerActions.__table_.__p1_.__value_.__next_,
0);
}
if ( &a2->m_vectorToggleTriggerAction != &a1->m_unkVector248 )
sub_100021974();
if ( &a2->m_vectorCollisionTriggerAction != &a1->m_unkVector230 )
sub_100021CA0();
if ( &a2->m_unorderedMapInt_bool != &a1->m_unkMap288 )
{
a2->m_unorderedMapInt_bool.__table_.__p3_.__value_ = a1->m_unkMap288.__table_.__p3_.__value_;
sub_100021F4C((_DWORD)a2 + 368);
}
if ( &a2->m_itemCountMap != &a1->m_itemCountMap )
{
a2->m_itemCountMap.__table_.__p3_.__value_ = a1->m_itemCountMap.__table_.__p3_.__value_;
sub_10001EEF0((_DWORD)a2 + 328);
}
if ( &a2->m_timerItemMap != &a1->m_timerItemMap )
{
a2->m_timerItemMap.__table_.__p3_.__value_ = a1->m_timerItemMap.__table_.__p3_.__value_;
sub_10002205C((_DWORD)a2 + 512);
}
if ( &a2->m_unorderedMapInt_vectorTimerTriggerAction != &a1->m_unkMap3f8 )
{
a2->m_unorderedMapInt_vectorTimerTriggerAction.__table_.__p3_.__value_ = a1->m_unkMap3f8.__table_.__p3_.__value_;
sub_100022340(&a2->m_unorderedMapInt_vectorTimerTriggerAction, a1->m_unkMap3f8.__table_.__p1_.__value_.__next_, 0);
}
}