//
// sub_100099C50 from 0x100099c50 to 0x100099d2d (221 bytes)
//
// 1 xrefs:
// > sub_10009A2E0 @ 0x10009a2e4
//
// 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_100099C50(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rcx
__int64 result; // rax
const char *v4; // r14
int v5; // r12d
--*(_DWORD *)(a1 + 24);
v1 = *(_QWORD *)(a1 + 168);
v2 = *(int *)(a1 + 260);
*(_DWORD *)(a1 + 260) = v2 - 1;
if ( *(_BYTE *)(a1 + 8) == 1 )
{
sub_1000992C0(a1, "/>");
result = *(unsigned int *)(a1 + 24);
if ( *(_DWORD *)(a1 + 28) != (_DWORD)result )
goto LABEL_10;
goto LABEL_9;
}
v4 = *(const char **)(v1 + 8 * v2 - 8);
if ( *(int *)(a1 + 28) < 0 && !*(_BYTE *)(a1 + 33) )
{
sub_1000992C0(a1, "\n");
v5 = *(_DWORD *)(a1 + 24);
if ( v5 > 0 )
{
do
{
sub_1000992C0(a1, " ");
--v5;
}
while ( v5 );
}
}
sub_1000992C0(a1, "%s>", v4);
result = *(unsigned int *)(a1 + 24);
if ( *(_DWORD *)(a1 + 28) == (_DWORD)result )
LABEL_9:
*(_DWORD *)(a1 + 28) = -1;
LABEL_10:
if ( !(_DWORD)result && !*(_BYTE *)(a1 + 33) )
result = sub_1000992C0(a1, "\n");
*(_BYTE *)(a1 + 8) = 0;
return result;
}