//
// sub_825E8 from 0x825e8 to 0x82668 (128 bytes)
//
// 2 xrefs:
// > sub_81310 @ 0x8164c
// > sub_81310 @ 0x81654
//
// 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_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;
}