//
// sub_BA774C from 0xba774c to 0xba787c (304 bytes)
//
// 2 xrefs:
// > sub_BA7D5C @ 0xba7e2c
// > sub_BA80C0 @ 0xba8738
//
// 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_BA774C(__int64 a1)
{
void **v2; // x21
__int64 result; // x0
char *v4; // x20
__int64 v5; // x19
size_t v6; // x0
size_t v7; // x0
int v8; // w3
char *v9; // x0
_BYTE v10[16]; // [xsp+60h] [xbp+60h] BYREF
char v11[40]; // [xsp+70h] [xbp+70h] BYREF
v2 = (void **)sub_B9EE38((__int64)&off_121C680);
result = 27;
if ( v2 )
{
v4 = v11;
v5 = 0;
v6 = strlen(*(const char **)(a1 + 1736));
nullsub_10(v6);
sub_B9EEBC(v2);
v7 = strlen(*(const char **)(a1 + 544));
nullsub_10(v7);
sub_B9EEBC(v2);
sub_B9EEE0(v2, (__int64)v10);
do
{
v8 = (unsigned __int8)v10[v5];
v9 = v4;
++v5;
v4 += 2;
sub_B8C278(v9, 3, "%02x", v8);
}
while ( v5 != 16 );
result = sub_BAA4B0(a1 + 1560, "APOP %s %s", *(const char **)(a1 + 536), v11);
if ( !(_DWORD)result )
*(_DWORD *)(a1 + 1672) = 6;
}
return result;
}