//
// sub_100198FC8 from 0x100198fc8 to 0x10019915c (404 bytes)
//
// 1 xrefs:
// > processEffectManagerState @ 0x10019f2e4
//
// 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_100198FC8(std::string *a1, _QWORD *a2)
{
signed int v4; // w8
const char *v5; // x0
int v6; // w20
signed int v7; // w8
const char *v8; // x0
void **v9; // d8
double v10; // d9
double *v11; // x0
double v12; // [xsp+8h] [xbp-A8h] BYREF
int v13; // [xsp+14h] [xbp-9Ch] BYREF
__int64 v14; // [xsp+18h] [xbp-98h] BYREF
__int64 v15; // [xsp+20h] [xbp-90h]
signed int v16; // [xsp+30h] [xbp-80h]
std::string __p; // [xsp+40h] [xbp-70h] BYREF
int *v18; // [xsp+60h] [xbp-50h] BYREF
void **v19; // [xsp+68h] [xbp-48h] BYREF
memset(&__p, 0, sizeof(__p));
sub_100194F54(a1, &__p);
sub_100194880((__int64)&v14, &__p, "|", a1[1].__r_.__value_.__l.__size_);
v4 = v16;
if ( v16 >= (int)(-1431655765 * ((unsigned __int64)(v15 - v14) >> 3)) )
{
sub_100018AA8(a2);
}
else
{
++v16;
v5 = (const char *)(v14 + 24LL * v4);
if ( v5[23] < 0 )
v5 = *(const char **)v5;
v6 = atoi(v5);
sub_100018AA8(a2);
if ( v6 >= 1 )
{
do
{
v13 = 0;
v19 = nullptr;
v12 = 0.0;
v7 = v16;
if ( v16 < (int)(-1431655765 * ((unsigned __int64)(v15 - v14) >> 3)) )
{
++v16;
v8 = (const char *)(v14 + 24LL * v7);
if ( v8[23] < 0 )
v8 = *(const char **)v8;
v13 = atoi(v8);
}
sub_100194ADC(&v14, (double *)&v19);
sub_100194ADC(&v14, &v12);
v9 = v19;
v10 = v12;
v18 = &v13;
v11 = (double *)sub_10001AFAC((unsigned __int64)a2, &v13, (__int64)&unk_10075EF86, &v18);
*((_QWORD *)v11 + 3) = v9;
v11[4] = v10;
--v6;
}
while ( v6 );
}
}
v19 = (void **)&v14;
sub_100018250(&v19);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}