//
// sub_1000961D0 from 0x1000961d0 to 0x10009625f (143 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b4608
//
// 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
//
char *__fastcall sub_1000961D0(__int64 a1, char *a2)
{
char v2; // cl
char *result; // rax
__int64 v4; // rax
char *v5; // rbx
char *v6; // r12
v2 = *a2;
if ( *a2 )
{
result = a2 + 1;
while ( v2 != 62 )
{
v2 = *result++;
if ( !v2 )
goto LABEL_5;
}
v5 = result - 1;
if ( (*(_BYTE *)(a1 + 25) & 2) != 0 )
{
if ( *(_QWORD *)(a1 + 32) )
{
v6 = result;
operator delete[](*(void **)(a1 + 32));
result = v6;
}
}
*(_QWORD *)(a1 + 32) = a2;
*(_QWORD *)(a1 + 40) = v5;
*(_DWORD *)(a1 + 24) = 258;
}
else
{
LABEL_5:
v4 = *(_QWORD *)(a1 + 8);
*(_DWORD *)(v4 + 92) = 14;
*(_QWORD *)(v4 + 104) = a2;
*(_QWORD *)(v4 + 112) = 0;
return nullptr;
}
return result;
}