//
// sub_1005DE860 from 0x1005de860 to 0x1005de894 (52 bytes)
//
// 3 xrefs:
// > sub_10056C99C @ 0x10056c9cc
// > sub_1005E0724 @ 0x1005e0774
// > sub_1005E07E8 @ 0x1005e0838
//
// 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:09:38 +0000
//
__int64 __fastcall sub_1005DE860(__int64 a1)
{
int v1; // w8
__int64 v2; // x9
__int64 v3; // x10
v1 = *(_DWORD *)(a1 + 8);
v3 = *(int *)(a1 + 24);
v2 = *(int *)(a1 + 28);
*(_DWORD *)(a1 + 28) = (v1 + (int)v2) % *(_DWORD *)(a1 + 16);
*(_DWORD *)(a1 + 44) += v1;
return *(_QWORD *)a1 + v3 * v2;
}