//
// sub_1003AF690 from 0x1003af690 to 0x1003af75c (204 bytes)
//
// 2 xrefs:
// > sub_1003AC600 @ 0x1003ac744
// > sub_1003AC600 @ 0x1003ac840
//
// 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_1003AF690(__int64 result, __int64 a2)
{
_QWORD *v2; // x22
__int64 v3; // x20
__int64 v4; // x1
const char *v5; // x8
char *v6; // x21
size_t v7; // x0
char *v8; // x1
if ( *(_QWORD *)a2 )
{
v2 = *(_QWORD **)(*(_QWORD *)a2 + 56LL);
if ( v2 )
{
v3 = result;
do
{
sub_1003AD088(v3, 32);
v5 = (const char *)v2[1];
if ( !v5 )
v5 = "";
if ( *v5 )
v6 = (char *)v5;
else
v6 = ":anonymous";
v7 = sub_1003ACE0C(v6, v4);
sub_1003B0158(v3, v6, v7);
sub_1003AD01C(v3, 61, 34);
if ( v2[2] )
v8 = (char *)v2[2];
else
v8 = "";
sub_1003AF7F0(v3, v8);
result = sub_1003AD088(v3, 34);
v2 = (_QWORD *)v2[4];
}
while ( v2 );
}
}
return result;
}