//
// sub_998F98 from 0x998f98 to 0x998ff8 (96 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::clearActivatedAudioTriggers @ 0x9aabfc
// > GJBaseGameLayer::~GJBaseGameLayer @ 0x9b1db4
// > GJBaseGameLayer::init @ 0x9bcab0
//
// 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:03 +0000
//
void __fastcall sub_998F98(_QWORD *a1)
{
_QWORD *v1; // x19
char *v2; // x0
_QWORD *v3; // x20
char *v4; // x2
void *v5; // x0
v1 = a1;
if ( a1 )
{
do
{
v2 = (char *)v1[3];
v3 = (_QWORD *)*v1;
if ( v2 )
{
v4 = (char *)v1[4];
if ( v2 != v4 )
v1[4] = &v4[16 * ~((unsigned __int64)(v4 - 16 - v2) >> 4)];
operator delete(v2);
}
v5 = v1;
v1 = v3;
operator delete(v5);
}
while ( v3 );
}
}