//
// sub_69348 from 0x69348 to 0x693e8 (160 bytes)
//
// 4 xrefs:
// > ??> @ 0x10ca90
// > ??> @ 0x10cc38
// > ??> @ 0x10cde0
// > ??> @ 0x10cf70
//
// 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_69348(__int64 a1, int a2, __int64 **a3)
{
__int64 result; // x0
__int64 *v7; // x8
int i; // w10
int v9; // [xsp+Ch] [xbp-14h] BYREF
result = (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 232LL))(a1, &v9);
if ( !(_DWORD)result )
{
result = 31;
if ( (a2 & 0x80000000) == 0 && a3 && v9 > a2 )
{
v7 = *(__int64 **)(a1 + 240);
for ( i = 0; ; ++i )
{
do
{
v7 = (__int64 *)*v7;
if ( v7 == *(__int64 **)(a1 + 248) )
return 0;
}
while ( *(_QWORD *)(a1 + 168) && *(_DWORD *)(a1 + 192) != *((unsigned __int16 *)v7 + 24) );
if ( i >= a2 )
break;
}
*a3 = v7;
return 0;
}
}
return result;
}