//
// sub_825E8 from 0x825e8 to 0x82668 (128 bytes)
//
// 2 xrefs:
// > sub_81310 @ 0x8164c
// > sub_81310 @ 0x81654
//
// 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_825E8(__int64 a1, int a2, _DWORD *a3, __int64 a4)
{
unsigned __int64 v4; // t2
_DWORD *v5; // x8
HIDWORD(v4) = a2;
LODWORD(v4) = a2;
v5 = *(_DWORD **)(a1 + 8);
switch ( (unsigned int)(v4 >> 2) )
{
case 0u:
goto LABEL_6;
case 1u:
v5 += 5;
goto LABEL_6;
case 2u:
v5 += 10;
goto LABEL_6;
case 3u:
v5 += 15;
goto LABEL_6;
case 4u:
v5 += 20;
LABEL_6:
*a3 = *v5;
break;
default:
break;
}
if ( a4 )
sub_E3FC8(a4, 32, "%d", *a3);
return 0;
}