//
// sub_9D3D0 from 0x9d3d0 to 0x9d494 (196 bytes)
//
// 1 xrefs:
// > sub_9D010 @ 0x9d23c
//
// 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_9D3D0(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 i; // x23
__int64 j; // x21
__int64 v6; // x22
int v7; // w0
result = sub_FA1B0(a1 + 376, 0xFFFFFFFFLL);
if ( result )
{
v3 = result;
for ( i = 0; i < *(int *)(v3 + 16); ++i )
{
if ( *(_DWORD *)(*(_QWORD *)(v3 + 8) + 4 * i) )
{
for ( j = *(_QWORD *)(*(_QWORD *)v3 + 8 * i) + 1LL; *(_BYTE *)(j - 1); ++j )
{
if ( *(_BYTE *)(j - 1) == 61 )
{
*(_BYTE *)(j - 1) = 0;
v6 = *(_QWORD *)(*(_QWORD *)v3 + 8 * i);
v7 = sub_E3BB0(j);
result = sub_D2D4C(a1, 3, v6, j, (unsigned int)(v7 + 1), 6, 0);
if ( (_DWORD)result )
return result;
break;
}
}
}
}
return 0;
}
return result;
}