//
// sub_80368 from 0x80368 to 0x803ec (132 bytes)
//
// 1 xrefs:
// > sub_80A0C @ 0x80a10
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:07 +0000
//
__int64 __fastcall sub_80368(_DWORD *a1, int a2, float *a3, _BYTE *a4)
{
__int64 result; // x0
unsigned int v6; // s0
int v7; // w8
if ( !a3 )
return 31;
result = 31;
switch ( a2 )
{
case 1:
v6 = a1[169];
goto LABEL_8;
case 2:
v7 = a1[142];
goto LABEL_12;
case 3:
v7 = a1[143];
goto LABEL_12;
case 4:
v6 = a1[172];
LABEL_8:
*a3 = (float)v6;
goto LABEL_13;
case 5:
v7 = a1[173];
goto LABEL_12;
case 6:
v7 = a1[174];
goto LABEL_12;
case 8:
v7 = a1[178];
LABEL_12:
*(_DWORD *)a3 = v7;
LABEL_13:
result = 0;
if ( a4 )
*a4 = 0;
break;
default:
return result;
}
return result;
}