//
// sub_10057258C from 0x10057258c to 0x100572614 (136 bytes)
//
// 1 xrefs:
// > sub_100570DE0 @ 0x100571178
//
// 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 11:08:19 +0000
//
__int64 __fastcall sub_10057258C(__int64 a1, int a2, _DWORD *a3, __int64 a4, int a5, int a6, int a7, int a8)
{
unsigned __int64 v8; // t2
_DWORD *v9; // x8
HIDWORD(v8) = a2;
LODWORD(v8) = a2;
v9 = *(_DWORD **)(a1 + 8);
switch ( (unsigned int)(v8 >> 2) )
{
case 0u:
goto LABEL_6;
case 1u:
v9 += 5;
goto LABEL_6;
case 2u:
v9 += 10;
goto LABEL_6;
case 3u:
v9 += 15;
goto LABEL_6;
case 4u:
v9 += 20;
LABEL_6:
*a3 = *v9;
break;
default:
break;
}
if ( a4 )
sub_1005ED57C(a4, 0x20u, (int)"%d", a4, a5, a6, a7, a8, *a3);
return 0;
}