//
// sub_BA4C54 from 0xba4c54 to 0xba4cac (88 bytes)
//
// 15 xrefs:
// > sub_B75E94 @ 0xb75eec
// > sub_B765B0 @ 0xb766f4
// > sub_B765B0 @ 0xb76734
// > sub_B76764 @ 0xb767d8
// > sub_B76764 @ 0xb76ad4
// > sub_B839AC @ 0xb872b0
// > sub_B8FCF4 @ 0xb8fd14
// > sub_B8FD4C @ 0xb8ff44
// > sub_B8FD4C @ 0xb9002c
// > sub_B94FB0 @ 0xb950dc
// > sub_BB8F34 @ 0xbb8f8c
// > sub_BBA910 @ 0xbba948
// > sub_BBA990 @ 0xbbaa10
// > sub_BBAA80 @ 0xbbab84
// > sub_BBAB90 @ 0xbbac98
//
// 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
//
__int64 __fastcall sub_BA4C54(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x21
void (*v3)(void *); // x1
__int64 v4; // x0
v1 = result;
if ( result )
{
do
{
v2 = *(_QWORD *)(v1 + 8);
off_1231008(*(void **)v1);
v3 = off_1231008;
v4 = v1;
*(_QWORD *)v1 = 0;
v1 = v2;
result = ((__int64 (__fastcall *)(__int64))v3)(v4);
}
while ( v2 );
}
return result;
}