//
// sub_B832A0 from 0xb832a0 to 0xb83394 (244 bytes)
//
// 1 xrefs:
// > sub_B94FB0 @ 0xb95008
//
// 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_B832A0(_QWORD *a1, _QWORD *a2)
{
const char **v4; // x21
void **v5; // x19
const char *v6; // x20
char *v7; // x0
unsigned int v8; // w19
__int64 v10; // x0
__int64 v11; // x20
__int64 v12; // x0
memcpy(a1 + 68, a2 + 68, 0x6E8u);
v4 = (const char **)(a2 + 206);
v5 = (void **)(a1 + 206);
memset(a1 + 206, 0, 0x1E8u);
do
{
v6 = *v4;
off_1231008(*v5);
*v5 = nullptr;
if ( v6 )
{
v7 = off_1231018(v6);
if ( !v7 )
return 27;
*v5 = v7;
}
++v5;
++v4;
}
while ( v5 != a1 + 265 );
v10 = a2[84];
v8 = 0;
if ( v10 )
{
v11 = a2[266];
if ( v11 )
{
nullsub_13(v10);
v12 = sub_BA3130(v11);
a1[266] = v12;
if ( !v12 )
return 27;
a1[82] = v12;
}
}
return v8;
}