//
// sub_100099680 from 0x100099680 to 0x100099753 (211 bytes)
//
// 0 xrefs:
//
// 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_100099680(__int64 a1, int a2, char a3)
{
__int64 result; // rax
int v5; // r15d
if ( a2 )
result = sub_1000992C0(a1, "%s", byte_100815A0B);
if ( a3 )
{
if ( *(_BYTE *)(a1 + 8) == 1 )
{
*(_BYTE *)(a1 + 8) = 0;
sub_1000992C0(a1, ">");
}
if ( *(int *)(a1 + 28) < 0 && !*(_BYTE *)(a1 + 9) && !*(_BYTE *)(a1 + 33) )
{
sub_1000992C0(a1, "\n");
v5 = *(_DWORD *)(a1 + 24);
if ( v5 > 0 )
{
do
{
sub_1000992C0(a1, " ");
--v5;
}
while ( v5 );
}
}
*(_BYTE *)(a1 + 9) = 0;
return sub_1000992C0(a1, "%s?>", "xml version=\"1.0\"");
}
return result;
}