//
// sub_1000CF35C from 0x1000cf35c to 0x1000cf4c0 (356 bytes)
//
// 2 xrefs:
// > sub_1000CF4C0 @ 0x1000cf538
// > sub_1000CF4C0 @ 0x1000cf5a4
//
// 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 10:58:53 +0000
//
__int64 __fastcall sub_1000CF35C(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
{
int v8; // w8
int v9; // w8
if ( a2 >= 0 )
v8 = a2;
else
v8 = -a2;
v9 = (int)(967 * ((v8 + 3456) % 0x13435u)
+ 601 * ((a1 + 7890) % 34567)
- 374 * (a6 + a3) % 18477
+ ((374 * (a6 + a3) % 18477) << 6)
+ 27 * (125 * (a7 + a4) % 28452)
+ 87 * (7284 * (a8 + a5) % 62374)
+ 94819)
% 94433;
return (unsigned int)(829 * (v9 ^ (v9 >> 16)) % 77849);
}