//
// sub_10057BD60 from 0x10057bd60 to 0x10057bde8 (136 bytes)
//
// 4 xrefs:
// > sub_10057DE20 @ 0x10057df04
// > sub_10057DF50 @ 0x10057e070
// > sub_10057E0DC @ 0x10057e150
// > sub_100580780 @ 0x100580cc4
//
// 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_10057BD60(__int64 *a1, __int64 a2)
{
__int64 v2; // x20
__int64 v4; // x21
v2 = a2;
v4 = *a1;
if ( !a2 )
v2 = a1[2] + *(unsigned int *)(v4 + 24);
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v2, a1[1]);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(v4 + 8))(a1[2], v2, *(unsigned int *)(v4 + 32));
(*(void (__fastcall **)(__int64, __int64))(v4 + 16))(v2, a1[2]);
off_10085DEB8(a1);
return 0;
}