//
// sub_10001F890 from 0x10001f890 to 0x10001f964 (212 bytes)
//
// 9 xrefs:
// > GJEffectManager::saveToState @ 0x100016a2c
// > GJEffectManager::saveToState @ 0x100016b14
// > GJEffectManager::loadFromState @ 0x100016d94
// > GJEffectManager::loadFromState @ 0x100016ee8
// > sub_10011FE0C @ 0x1001202cc
// > PlayerObject::saveToCheckpoint @ 0x10022db5c
// > PlayerObject::saveToCheckpoint @ 0x10022dc9c
// > PlayerObject::loadFromCheckpoint @ 0x10022df94
// > PlayerObject::loadFromCheckpoint @ 0x10022e0d4
//
// 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_10001F890(_QWORD *a1, __int64 *a2, __int64 *a3)
{
__int64 v6; // x8
__int64 i; // x9
__int64 *v8; // x22
unsigned __int64 v9; // x1
__int64 *v10; // x23
_QWORD *v11; // x0
__int64 *v12; // x23
v6 = a1[1];
if ( v6 )
{
for ( i = 0; i != v6; ++i )
*(_QWORD *)(*a1 + 8 * i) = 0;
v8 = (__int64 *)a1[2];
a1[2] = 0;
a1[3] = 0;
if ( v8 )
{
while ( a2 != a3 )
{
v9 = *((int *)a2 + 4);
*((_DWORD *)v8 + 4) = v9;
v10 = (__int64 *)*v8;
v8[1] = v9;
v11 = (_QWORD *)sub_10001ABFC((__int64)a1, v9, (_DWORD *)v8 + 4);
sub_10001AD58(a1, v8, v11);
a2 = (__int64 *)*a2;
v8 = v10;
if ( !v10 )
goto LABEL_11;
}
do
{
v12 = (__int64 *)*v8;
operator delete(v8);
v8 = v12;
}
while ( v12 );
}
}
LABEL_11:
while ( a2 != a3 )
{
sub_10001F998(a1, a2 + 2);
a2 = (__int64 *)*a2;
}
}