//
// sub_100090750 from 0x100090750 to 0x1000907cd (125 bytes)
//
// 12 xrefs:
// > sub_100090010 @ 0x10009041b
// > sub_100090750 @ 0x100090768
// > sub_100090750 @ 0x100090774
// > sub_100093170 @ 0x1000933ce
// > sub_100093170 @ 0x1000933e0
// > sub_100093170 @ 0x100093412
// > sub_100093540 @ 0x100093550
// > sub_100093540 @ 0x100093589
// > sub_1000EC8E0 @ 0x1000ecdaf
// > GJBaseGameLayer::unlinkAllEvents @ 0x10012983f
// > GJBaseGameLayer::resetLevelVariables @ 0x1001385b7
// > sub_1005C9BC0 @ 0x1005c9c8e
//
// 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:08 +0000
//
void __fastcall sub_100090750(__int64 a1, _QWORD *a2)
{
__int64 v2; // r14
__int64 v3; // r15
void *v4; // rdi
void *v5; // rdi
if ( a2 )
{
sub_100090750(a1, *a2);
sub_100090750(a1, a2[1]);
v2 = a2[5];
if ( v2 )
{
v3 = a2[6];
v4 = (void *)a2[5];
if ( v3 != v2 )
{
do
{
v5 = *(void **)(v3 - 24);
if ( v5 )
{
*(_QWORD *)(v3 - 16) = v5;
operator delete(v5);
}
v3 -= 40;
}
while ( v3 != v2 );
v4 = (void *)a2[5];
}
a2[6] = v2;
operator delete(v4);
}
operator delete(a2);
}
}