//
// sub_100196E74 from 0x100196e74 to 0x100196efc (136 bytes)
//
// 2 xrefs:
// > sub_100196C4C @ 0x100196dac
// > sub_100197150 @ 0x1001971ec
//
// 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:59:57 +0000
//
void __fastcall sub_100196E74(_QWORD *a1, unsigned __int64 a2)
{
__int64 v3; // x20
unsigned __int64 v4; // x8
bool v5; // cf
unsigned __int64 v6; // x8
__int64 v7; // x21
v3 = a1[1];
v4 = 0xEEEEEEEEEEEEEEEFLL * ((v3 - *a1) >> 4);
v5 = a2 >= v4;
v6 = a2 - v4;
if ( v6 != 0 && v5 )
{
sub_1001A24F0(a1, v6);
}
else if ( !v5 )
{
v7 = *a1 + 240 * a2;
while ( v3 != v7 )
{
v3 -= 240;
sub_10014DDE0((__int64)a1, v3);
}
a1[1] = v7;
}
}