//
// sub_1001A15F0 from 0x1001a15f0 to 0x1001a1670 (128 bytes)
//
// 1 xrefs:
// > sub_10019A6D8 @ 0x10019ab68
//
// 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:00:01 +0000
//
_QWORD *__fastcall sub_1001A15F0(_QWORD *a1, unsigned __int64 a2)
{
_QWORD *result; // x0
unsigned __int64 v4; // x8
bool v5; // cf
unsigned __int64 v6; // x8
__int64 v7; // x20
result = (_QWORD *)a1[1];
v4 = 0x6DB6DB6DB6DB6DB7LL * (((__int64)result - *a1) >> 6);
v5 = a2 >= v4;
v6 = a2 - v4;
if ( v6 != 0 && v5 )
return (_QWORD *)sub_1001A1670(a1, v6);
if ( !v5 )
{
v7 = *a1 + 448 * a2;
while ( result != (_QWORD *)v7 )
result = sub_10000B0B4(result - 56);
a1[1] = v7;
}
return result;
}