//
// sub_693E8 from 0x693e8 to 0x694a0 (184 bytes)
//
// 4 xrefs:
// > ??> @ 0x10ca98
// > ??> @ 0x10cc40
// > ??> @ 0x10cde8
// > ??> @ 0x10cf78
//
// 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_693E8(__int64 a1, __int64 a2, __int64 a3, unsigned int a4, unsigned int *a5, int a6)
{
__int64 result; // x0
void *v10; // x1
unsigned int v11; // w8
float v12; // s0
unsigned int v13; // w0
int v14; // w2
unsigned int v15; // w3
if ( !a2 || !a3 && !a5 )
return 31;
if ( a3 )
{
v10 = *(void **)(a2 + 28);
if ( !v10 )
v10 = &unk_2DC93;
sub_E3C94(a3, v10, a4);
}
if ( a5 )
{
switch ( a6 )
{
case 1:
v12 = sub_69DD0(*(float *)(a2 + 44));
result = 0;
v11 = (unsigned int)v12;
goto LABEL_15;
case 4:
v13 = sub_69E44(*(unsigned int *)(a2 + 44));
sub_5C280(v13, a5, v14, v15);
break;
case 2:
v11 = *(_DWORD *)(a2 + 44);
result = 0;
LABEL_15:
*a5 = v11;
return result;
}
}
return 0;
}