//
// sub_BABC90 from 0xbabc90 to 0xbabd1c (140 bytes)
//
// 5 xrefs:
// > sub_BAE084 @ 0xbae0dc
// > sub_BAE0F8 @ 0xbae424
// > sub_BAE484 @ 0xbae5c0
// > sub_BAE62C @ 0xbae6a0
// > sub_BB2434 @ 0xbb24bc
//
// 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_BABC90(__int64 *a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x21
v3 = a2;
v4 = *a1;
if ( !a2 )
v3 = a1[2] + *(unsigned int *)(v4 + 24);
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v3, a1[1]);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(v4 + 8))(a1[2], v3, *(unsigned int *)(v4 + 32));
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v3, a1[2]);
off_1231008(a1);
return 0;
}