//
// sub_10020974C from 0x10020974c to 0x1002097bc (112 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1001da92c
//
// 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_10020974C(void ***a1)
{
void **v1; // x20
void *v2; // x21
__int64 v4; // x0
void *v5; // x8
v1 = *a1;
v2 = **a1;
if ( v2 )
{
v4 = (__int64)v1[1];
v5 = v2;
if ( (void *)v4 != v2 )
{
do
v4 = sub_100017A98(v4 - 40);
while ( (void *)v4 != v2 );
v5 = **a1;
}
v1[1] = v2;
operator delete(v5);
}
}