//
// sub_9986BA from 0x9986ba to 0x998716 (92 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:06:42 +0000
//
__int64 __fastcall sub_9986BA(__int64 *a1, __int64 a2, __int64 a3)
{
int v4; // r10
__int64 v7; // r0
__int64 v8; // r2
__int64 v9; // kr00_8
__int64 result; // r0
v4 = HIDWORD(a2);
v8 = a2 % a3;
v7 = a2 / a3;
v9 = v7 + 1;
if ( v8 >= 0 || v4 <= -1 )
v9 = v7;
result = v8 - a3;
if ( v8 >= 0 || v4 <= -1 )
result = v8;
*a1 = v9;
a1[1] = result;
return result;
}