//
// sub_9AFCC0 from 0x9afcc0 to 0x9afdc4 (260 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::resetActiveEnterEffects @ 0x9afee8
// > GJBaseGameLayer::resetActiveEnterEffects @ 0x9aff0c
// > std::__ndk1::__hash_table>>,std::__ndk1::__unordered_map_hasher>>,std::__ndk1::hash,true>,std::__ndk1::__unordered_map_equal>>,std::__ndk1::equal_to,true>,std::__ndk1::allocator>>>>::__move_assign @ 0x9bb464
//
// This function is hookable on this platform (idp: arm, 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:58:14 +0000
//
__int64 __fastcall sub_9AFCC0(_QWORD *a1)
{
_QWORD *v2; // x20
_QWORD *v3; // x21
_QWORD *v4; // x23
_QWORD *v5; // x19
__int64 v6; // x25
char *v7; // x0
char *v8; // x2
_QWORD **v9; // x19
void *v10; // x0
__int64 v11; // x2
__int64 result; // x0
v2 = (_QWORD *)a1[2];
if ( v2 )
{
do
{
v3 = (_QWORD *)v2[3];
v4 = (_QWORD *)*v2;
if ( v3 )
{
v5 = (_QWORD *)v2[4];
if ( v3 != v5 )
{
do
{
v6 = (__int64)(v5 - 30);
v2[4] = v5 - 30;
v7 = (char *)*(v5 - 4);
if ( v7 )
{
v8 = (char *)*(v5 - 3);
if ( v7 != v8 )
*(v5 - 3) = &v8[4 * ~((unsigned __int64)(v8 - 4 - v7) >> 2)];
operator delete(v7);
}
v9 = (_QWORD **)*(v5 - 29);
if ( v9 )
{
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
v6,
*v9);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
v6,
v9[1]);
operator delete(v9);
}
v5 = (_QWORD *)v2[4];
}
while ( v3 != v5 );
v5 = (_QWORD *)v2[3];
}
operator delete(v5);
}
v10 = v2;
v2 = v4;
operator delete(v10);
}
while ( v4 );
}
v11 = a1[1];
result = 0;
a1[2] = 0;
if ( v11 )
{
do
*(_QWORD *)(*a1 + 8 * result++) = 0;
while ( result != v11 );
}
a1[3] = 0;
return result;
}