//
// sub_617B8 from 0x617b8 to 0x617e8 (48 bytes)
//
// 13 xrefs:
// > sub_44ED8 @ 0x44f3c
// > sub_45348 @ 0x4544e
// > sub_4B46C @ 0x4b4b4
// > sub_5A318 @ 0x5a35e
// > sub_5A67C @ 0x5a7bc
// > sub_60D44 @ 0x60e02
// > sub_753C4 @ 0x77238
// > sub_753C4 @ 0x7729a
// > sub_79454 @ 0x79a14
// > sub_7AB38 @ 0x7b38c
// > sub_838A4 @ 0x845f0
// > sub_87B50 @ 0x88840
// > sub_89A00 @ 0x89bf8
//
// 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
//
int __fastcall sub_617B8(int a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, int a5)
{
int result; // r0
if ( !a4 )
return 31;
if ( a5 )
*a4 = 0;
if ( !a2 )
return 31;
result = sub_51CA4(*(_DWORD *)(a1 + 68272), a2, a3, a4);
if ( !result )
{
*(_DWORD *)(*a4 + 128) = a1;
return 0;
}
return result;
}