//
// sub_100061060 from 0x100061060 to 0x10006113d (221 bytes)
//
// 1 xrefs:
// > sub_1000616F0 @ 0x1000616f4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:19:41 +0000
//
__int64 __fastcall sub_100061060(__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_1000606D0(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_1000606D0(a1, "\n");
v5 = *(_DWORD *)(a1 + 24);
if ( v5 > 0 )
{
do
{
sub_1000606D0(a1, " ");
--v5;
}
while ( v5 );
}
}
sub_1000606D0(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_1000606D0(a1, "\n");
*(_BYTE *)(a1 + 8) = 0;
return result;
}