//
// sub_100194E20 from 0x100194e20 to 0x100194f18 (248 bytes)
//
// 2 xrefs:
// > PlayerCheckpoint::processState @ 0x10019c644
// > sub_10019F530 @ 0x10019f574
//
// 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:56 +0000
//
void __fastcall sub_100194E20(__int64 a1, _QWORD *a2)
{
signed int v4; // w8
__int64 v5; // x0
int v6; // w20
_QWORD v7[3]; // [xsp+8h] [xbp-58h] BYREF
signed int v8; // [xsp+20h] [xbp-40h]
std::string __p; // [xsp+30h] [xbp-30h] BYREF
void **v10; // [xsp+48h] [xbp-18h] BYREF
memset(&__p, 0, sizeof(__p));
sub_100194F54(a1, &__p);
sub_100194880((__int64)v7, &__p, "|", *(_QWORD *)(a1 + 32));
v4 = v8;
if ( v8 >= (int)(-1431655765 * ((v7[1] - v7[0]) >> 3)) )
{
v6 = 0;
}
else
{
++v8;
v5 = v7[0] + 24LL * v4;
if ( *(char *)(v5 + 23) < 0 )
v5 = *(_QWORD *)v5;
v6 = atoi((const char *)v5);
}
sub_1002E7674(*a2);
if ( v6 >= 1 )
{
do
{
v10 = nullptr;
sub_100194DCC((__int64)v7, (__int64 *)&v10);
if ( v10 )
sub_1002E74E0(*a2, v10);
--v6;
}
while ( v6 );
}
v10 = (void **)v7;
sub_100018250(&v10);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}