//
// sub_100653080 from 0x100653080 to 0x10065318c (268 bytes)
//
// 2 xrefs:
// > sub_1006513B0 @ 0x1006515ef
// > sub_1006513B0 @ 0x100651f8f
//
// 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
//
const char *__fastcall sub_100653080(__int64 *a1)
{
__int64 v1; // rax
__int64 v2; // r14
char *v3; // r15
const char *v4; // rbx
char *v5; // rax
signed __int64 v6; // r12
__int64 v7; // rax
__int64 v8; // r14
char *v9; // r15
char *v10; // rax
signed __int64 v11; // r12
__int64 v12; // rax
v1 = a1[1];
if ( v1 )
{
v2 = *a1;
v3 = *(char **)(v1 + 8);
v4 = "";
if ( !v3 )
v3 = "";
v5 = strchr(v3, 58);
v6 = v5 - v3;
if ( !v5 )
{
v3 = nullptr;
v6 = 0;
}
if ( v5 != nullptr && v2 != 0 )
{
while ( 1 )
{
v7 = sub_100653490(v2, v3, v6);
if ( v7 )
break;
v2 = *(_QWORD *)(v2 + 8);
if ( !v2 )
return v4;
}
LABEL_19:
v12 = *(_QWORD *)(v7 + 16);
v4 = "";
if ( v12 )
return (const char *)v12;
}
}
else
{
v8 = *a1;
v4 = "";
v9 = "";
if ( *a1 )
{
v9 = "";
if ( *(_QWORD *)(v8 + 16) )
v9 = *(char **)(v8 + 16);
}
v10 = strchr(v9, 58);
v11 = v10 - v9;
if ( !v10 )
{
v9 = nullptr;
v11 = 0;
}
if ( v8 )
{
while ( 1 )
{
v7 = sub_100653490(v8, v9, v11);
if ( v7 )
break;
v8 = *(_QWORD *)(v8 + 8);
if ( !v8 )
return v4;
}
goto LABEL_19;
}
}
return v4;
}