//
// sub_10009A160 from 0x10009a160 to 0x10009a203 (163 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_10009A160(__int64 a1, const char *a2)
{
int v2; // r12d
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");
v2 = *(_DWORD *)(a1 + 24);
if ( v2 > 0 )
{
do
{
sub_1000992C0(a1, " ");
--v2;
}
while ( v2 );
}
}
*(_BYTE *)(a1 + 9) = 0;
return sub_1000992C0(a1, "", a2);
}