//
// sub_D7968 from 0xd7968 to 0xd7998 (48 bytes)
//
// 2 xrefs:
// > sub_D6B90 @ 0xd6b98
// > sub_D7870 @ 0xd794c
//
// 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 12:14:53 +0000
//
_DWORD *__fastcall sub_D7968(_DWORD *result, int a2)
{
int v2; // w8
int v3; // w9
int v4; // w8
v2 = a2 / result[6];
v3 = result[8] + v2;
v4 = result[10] + v2;
result[8] = v3 % result[4];
result[10] = v4;
return result;
}