//
// sub_1005844C0 from 0x1005844c0 to 0x10058460d (333 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:32:21 +0000
//
__int64 __fastcall sub_1005844C0(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
{
int v8; // eax
unsigned int v9; // esi
v8 = -a2;
if ( a2 > 0 )
v8 = a2;
v9 = 967 * ((v8 + 3456) % 0x13435u) + 601 * ((a1 + 7890) % 34567);
return (unsigned int)(829
* (((int)(v9
+ 63 * (374 * (a6 + a3) % 18477)
+ 27 * (125 * (a7 + a4) % 28452)
+ 87 * (7284 * (a8 + a5) % 62374)
+ 94819)
% 94433)
^ (((int)(v9
+ 63 * (374 * (a6 + a3) % 18477)
+ 27 * (125 * (a7 + a4) % 28452)
+ 87 * (7284 * (a8 + a5) % 62374)
+ 94819)
% 94433) >> 16))
% 77849);
}