//
// sub_100095230 from 0x100095230 to 0x100095314 (228 bytes)
//
// 11 xrefs:
// > sub_100089410 @ 0x100089ae0
// > sub_1002D69C0 @ 0x1002d6a6f
// > sub_1002D6D20 @ 0x1002d6d7f
// > GJEffectManager::saveToState @ 0x1002d965d
// > GJEffectManager::saveToState @ 0x1002d9867
// > GJEffectManager::loadFromState @ 0x1002d9b49
// > GJEffectManager::loadFromState @ 0x1002d9eb4
// > PlayerObject::saveToCheckpoint @ 0x100409051
// > PlayerObject::saveToCheckpoint @ 0x10040925a
// > PlayerObject::loadFromCheckpoint @ 0x100409748
// > PlayerObject::loadFromCheckpoint @ 0x10040995a
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:20:09 +0000
//
void __fastcall sub_100095230(_QWORD *a1, __int64 *a2, __int64 *a3)
{
__int64 v5; // rsi
_DWORD *v6; // r12
_DWORD *v7; // r13
_DWORD *v8; // r13
_DWORD *v9; // r12
__int64 v10; // rax
v5 = a1[1];
if ( v5 )
{
__bzero(*a1, 8 * v5);
v6 = (_DWORD *)a1[2];
*((_OWORD *)a1 + 1) = 0;
if ( v6 )
{
while ( a2 != a3 )
{
v6[4] = *((_DWORD *)a2 + 4);
v7 = *(_DWORD **)v6;
sub_100095370(a1, v6);
a2 = (__int64 *)*a2;
v6 = v7;
if ( !v7 )
goto LABEL_9;
}
do
{
v8 = *(_DWORD **)v6;
operator delete(v6);
v6 = v8;
}
while ( v8 );
}
}
LABEL_9:
while ( a2 != a3 )
{
v9 = operator new(0x18u);
*(_QWORD *)v9 = 0;
v10 = *((int *)a2 + 4);
v9[4] = v10;
*((_QWORD *)v9 + 1) = v10;
sub_100095370(a1, v9);
a2 = (__int64 *)*a2;
}
}