//
// sub_1001258C4 from 0x1001258c4 to 0x10012592c (104 bytes)
//
// 6 xrefs:
// > sub_100125758 @ 0x1001257b0
// > sub_1001DB07C @ 0x1001db3b4
// > sub_1001DB07C @ 0x1001db3dc
// > sub_1001DB07C @ 0x1001db400
// > sub_1001DB07C @ 0x1001db428
// > sub_1001DB07C @ 0x1001db44c
//
// 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_1001258C4(void **a1)
{
void *v1; // x21
__int64 v3; // x20
void *v4; // x0
v1 = *a1;
if ( *a1 )
{
v3 = (__int64)a1[1];
v4 = *a1;
if ( (void *)v3 != v1 )
{
do
{
v3 -= 240;
sub_100124FA0((__int64)a1, v3);
}
while ( (void *)v3 != v1 );
v4 = *a1;
}
a1[1] = v1;
operator delete(v4);
*a1 = nullptr;
a1[1] = nullptr;
a1[2] = nullptr;
}
}