//
// sub_69B14 from 0x69b14 to 0x69c2c (280 bytes)
//
// 4 xrefs:
// > ??> @ 0x10cae0
// > ??> @ 0x10cc88
// > ??> @ 0x10ce30
// > ??> @ 0x10cfc0
//
// 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_69B14(__int64 a1, unsigned int *a2, unsigned int a3, unsigned int *a4, unsigned int a5)
{
__int64 result; // x0
unsigned int v9; // w8
unsigned int v10; // w8
unsigned int v11; // w0
_DWORD *v12; // x1
int v13; // w2
unsigned int v14; // w3
int v15; // w2
unsigned int v16; // w3
unsigned int v17; // w8
result = 19;
if ( a3 <= 4 && ((1 << a3) & 0x16) != 0 )
{
result = 19;
if ( a5 <= 4 && ((1 << a5) & 0x16) != 0 )
{
if ( !a2 )
goto LABEL_12;
switch ( a3 )
{
case 1u:
v9 = (unsigned int)sub_69DD0(*(float *)(a1 + 76));
break;
case 4u:
v11 = sub_69E44(*(unsigned int *)(a1 + 76));
result = sub_5C280(v11, v12, v13, v14);
if ( a4 )
goto LABEL_13;
return 0;
case 2u:
v9 = *(_DWORD *)(a1 + 76);
break;
default:
LABEL_12:
if ( a4 )
{
LABEL_13:
v10 = *(_DWORD *)(a1 + 76) + *(_DWORD *)(a1 + 80) - 1;
switch ( a5 )
{
case 1u:
result = 0;
v10 = (unsigned int)(float)((float)((float)v10 * 1000.0) / *(float *)(a1 + 108));
goto LABEL_20;
case 4u:
sub_69E44(result);
sub_5C280(v17, a4, v15, v16);
break;
case 2u:
result = 0;
LABEL_20:
*a4 = v10;
return result;
}
}
return 0;
}
*a2 = v9;
goto LABEL_12;
}
}
return result;
}