//
// sub_BAE62C from 0xbae62c to 0xbae6e8 (188 bytes)
//
// 1 xrefs:
// > sub_BB3E44 @ 0xbb40b4
//
// 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_BAE62C(__int64 a1, _QWORD *a2, __int64 a3, _QWORD *a4)
{
__int64 *v6; // x0
unsigned int v7; // w2
__int64 *v8; // x22
__int64 v9; // x1
_QWORD v11[2]; // [xsp+58h] [xbp+58h] BYREF
v6 = sub_BABAD4((__int64)&off_121C6A0, a1, 16);
v7 = 27;
v8 = v6;
if ( v6 )
{
sub_BABC6C(v6);
sub_BABC90(v8, (__int64)v11);
v9 = v11[1];
*a4 = v11[0];
a4[1] = v9;
v7 = 0;
a4[2] = *a2;
}
return v7;
}