//
// sub_692DC from 0x692dc to 0x692e2 (6 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:40:57 +0000
//
int __fastcall sub_692DC(int *a1, int a2, float a3)
{
int v3; // r3
int v4; // r1
float v5; // s0
float v6; // s2
float v7; // s2
float v8; // s0
float v9; // s2
float v10; // s4
float v11; // s2
float v12; // s2
float v13; // s2
int v15; // r0
v15 = *a1;
v3 = a2 - 1;
v4 = 31;
v5 = a3;
switch ( v3 )
{
case 0:
if ( a3 > 4.0 )
v5 = 4.0;
v6 = 0.0;
if ( v5 >= 0.0 )
v6 = v5;
*(_DWORD *)(v15 + 500) = (int)v6;
goto LABEL_39;
case 1:
if ( a3 > 1.0e18 )
v5 = 1.0e18;
v7 = 0.0;
if ( v5 >= 0.0 )
v7 = v5;
*(float *)(v15 + 400) = v7;
if ( *(_BYTE *)(v15 + 481) )
{
v8 = *(float *)(v15 + 404);
if ( v7 < v8 )
v8 = v7;
*(float *)(v15 + 504) = v8;
}
goto LABEL_39;
case 2:
if ( a3 > 1.0e18 )
v5 = 1.0e18;
v9 = 0.0;
if ( v5 >= 0.0 )
v9 = v5;
*(float *)(v15 + 404) = v9;
if ( *(_BYTE *)(v15 + 481) )
{
v10 = v9;
if ( *(float *)(v15 + 400) < v9 )
v10 = *(float *)(v15 + 400);
*(float *)(v15 + 504) = v10;
*(float *)(v15 + 508) = v9;
}
goto LABEL_39;
case 3:
if ( a3 > 2.0 )
v5 = 2.0;
v11 = 0.0;
if ( v5 >= 0.0 )
v11 = v5;
*(_DWORD *)(v15 + 512) = (int)v11;
goto LABEL_39;
case 4:
if ( a3 > 1.0e18 )
v5 = 1.0e18;
v12 = 0.0;
if ( v5 >= 0.0 )
v12 = v5;
*(float *)(v15 + 516) = v12;
goto LABEL_39;
case 5:
if ( a3 > 360.0 )
v5 = 360.0;
v13 = 0.0;
if ( v5 >= 0.0 )
v13 = v5;
*(float *)(v15 + 520) = v13;
goto LABEL_39;
case 7:
*(float *)(v15 + 536) = a3;
LABEL_39:
++*(_DWORD *)(v15 + 472);
v4 = 0;
break;
default:
return v4;
}
return v4;
}