//
// sub_100198DF0 from 0x100198df0 to 0x100198f90 (416 bytes)
//
// 1 xrefs:
// > processEffectManagerState @ 0x10019f278
//
// 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_100198DF0(std::string *a1, __int64 a2)
{
signed int v4; // w8
const char *v5; // x0
int v6; // w20
signed int v7; // w8
__int64 v8; // x23
signed int v9; // w25
signed int v10; // w26
const char *v11; // x0
__int64 v12; // x24
const char *v13; // x0
__int64 v14; // x8
__int64 v15; // [xsp+8h] [xbp-88h] BYREF
__int64 v16; // [xsp+10h] [xbp-80h]
signed int v17; // [xsp+20h] [xbp-70h]
std::string __p; // [xsp+30h] [xbp-60h] BYREF
void **v19; // [xsp+48h] [xbp-48h] BYREF
memset(&__p, 0, sizeof(__p));
sub_100194F54(a1, &__p);
sub_100194880((__int64)&v15, &__p, "|", a1[1].__r_.__value_.__l.__size_);
v4 = v17;
if ( v17 >= (int)(-1431655765 * ((unsigned __int64)(v16 - v15) >> 3)) )
{
v6 = 0;
}
else
{
++v17;
v5 = (const char *)(v15 + 24LL * v4);
if ( v5[23] < 0 )
v5 = *(const char **)v5;
v6 = atoi(v5);
}
sub_1000187C4(a2, *(_QWORD **)(a2 + 8));
*(_QWORD *)a2 = a2 + 8;
*(_QWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 8) = 0;
if ( v6 >= 1 )
{
do
{
v7 = v17;
v8 = v15;
v9 = -1431655765 * ((unsigned __int64)(v16 - v15) >> 3);
if ( v17 >= v9 )
{
v12 = 0;
v10 = v17;
}
else
{
v10 = ++v17;
v11 = (const char *)(v15 + 24LL * v7);
if ( v11[23] < 0 )
v11 = *(const char **)v11;
v12 = (unsigned int)atoi(v11);
}
if ( v10 >= v9 )
{
v14 = 0;
}
else
{
v17 = v10 + 1;
v13 = (const char *)(v8 + 24LL * v10);
if ( v13[23] < 0 )
v13 = *(const char **)v13;
v14 = (__int64)atoi(v13) << 32;
}
v19 = (void **)(v14 | v12);
sub_10001C658((__int64 **)a2, (__int64)&v19, &v19);
--v6;
}
while ( v6 );
}
v19 = (void **)&v15;
sub_100018250(&v19);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}