//
// sub_82378 from 0x82378 to 0x82480 (264 bytes)
//
// 2 xrefs:
// > sub_81310 @ 0x8160c
// > sub_81310 @ 0x81628
//
// 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:08 +0000
//
__int64 __fastcall sub_82378(__int64 a1, int a2, float a3)
{
__int64 v3; // x8
int v4; // w9
int v5; // w9
int v6; // w9
int v7; // w9
int v8; // w9
v3 = *(_QWORD *)(a1 + 8);
switch ( a2 )
{
case 1:
v4 = *(_DWORD *)(v3 + 16);
*(float *)(v3 + 4) = a3;
goto LABEL_5;
case 2:
v4 = *(_DWORD *)(v3 + 16);
*(float *)(v3 + 8) = a3;
goto LABEL_5;
case 3:
v4 = *(_DWORD *)(v3 + 16);
*(float *)(v3 + 12) = a3;
LABEL_5:
*(_DWORD *)(v3 + 16) = v4 + 1;
return 0;
case 5:
v5 = *(_DWORD *)(v3 + 36);
*(float *)(v3 + 24) = a3;
goto LABEL_9;
case 6:
v5 = *(_DWORD *)(v3 + 36);
*(float *)(v3 + 28) = a3;
goto LABEL_9;
case 7:
v5 = *(_DWORD *)(v3 + 36);
*(float *)(v3 + 32) = a3;
LABEL_9:
*(_DWORD *)(v3 + 36) = v5 + 1;
return 0;
case 9:
v6 = *(_DWORD *)(v3 + 56);
*(float *)(v3 + 44) = a3;
goto LABEL_21;
case 10:
v6 = *(_DWORD *)(v3 + 56);
*(float *)(v3 + 48) = a3;
goto LABEL_21;
case 11:
v6 = *(_DWORD *)(v3 + 56);
*(float *)(v3 + 52) = a3;
LABEL_21:
*(_DWORD *)(v3 + 56) = v6 + 1;
return 0;
case 13:
v7 = *(_DWORD *)(v3 + 76);
*(float *)(v3 + 64) = a3;
goto LABEL_15;
case 14:
v7 = *(_DWORD *)(v3 + 76);
*(float *)(v3 + 68) = a3;
goto LABEL_15;
case 15:
v7 = *(_DWORD *)(v3 + 76);
*(float *)(v3 + 72) = a3;
LABEL_15:
*(_DWORD *)(v3 + 76) = v7 + 1;
return 0;
case 17:
v8 = *(_DWORD *)(v3 + 96);
*(float *)(v3 + 84) = a3;
goto LABEL_19;
case 18:
v8 = *(_DWORD *)(v3 + 96);
*(float *)(v3 + 88) = a3;
goto LABEL_19;
case 19:
v8 = *(_DWORD *)(v3 + 96);
*(float *)(v3 + 92) = a3;
LABEL_19:
*(_DWORD *)(v3 + 96) = v8 + 1;
break;
default:
return 0;
}
return 0;
}