//
// sub_100095F20 from 0x100095f20 to 0x100095fe2 (194 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b4550
//
// 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
//
_QWORD *__fastcall sub_100095F20(__int64 a1, __int64 a2)
{
__int64 v2; // r14
__int64 v3; // r15
_QWORD *v4; // rbx
const char *v5; // r14
size_t v6; // r15
char *v7; // r13
v2 = a2;
if ( !a2 )
v2 = *(_QWORD *)(a1 + 8);
v3 = sub_100093910((int *)(a1 + 24));
v4 = sub_1000945A0(v2 + 512);
v4[1] = v2;
v4[2] = 0;
*((_OWORD *)v4 + 3) = 0;
*((_OWORD *)v4 + 4) = 0;
*v4 = off_1008B44F0;
v4[10] = v2 + 512;
v5 = "xml version=\"1.0\" encoding=\"UTF-8\"";
if ( v3 )
v5 = (const char *)v3;
*((_DWORD *)v4 + 6) = 0;
*((_OWORD *)v4 + 2) = 0;
v6 = strlen(v5);
v7 = (char *)operator new[](v6 + 1);
v4[4] = v7;
memcpy(v7, v5, v6 + 1);
v4[5] = &v7[v6];
*((_DWORD *)v4 + 6) = 512;
return v4;
}