//
// sub_100199D78 from 0x100199d78 to 0x100199f68 (496 bytes)
//
// 1 xrefs:
// > processEffectManagerState @ 0x10019f290
//
// 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:58 +0000
//
void __fastcall sub_100199D78(std::string *a1, __int64 *a2)
{
signed int v4; // w8
std::string::size_type v5; // x0
int v6; // w20
__int64 v7; // x21
__int64 v8; // x22
__int64 v9; // x25
__int64 v10; // x20
signed int v11; // w8
std::string::size_type v12; // x26
signed int v13; // w27
signed int v14; // w28
std::string::size_type v15; // x0
int v16; // w0
std::string::size_type v17; // x0
int v18; // w0
std::string v19; // [xsp+8h] [xbp-98h] BYREF
signed int v20; // [xsp+20h] [xbp-80h]
std::string __p; // [xsp+30h] [xbp-70h] BYREF
std::string *v22; // [xsp+48h] [xbp-58h] BYREF
memset(&__p, 0, sizeof(__p));
sub_100194F54(a1, &__p);
sub_100194880((__int64)&v19, &__p, ":", a1[1].__r_.__value_.__l.__size_);
v4 = v20;
if ( v20 >= (int)(-1431655765 * ((v19.__r_.__value_.__l.__size_ - v19.__r_.__value_.__r.__words[0]) >> 3)) )
{
v6 = 0;
}
else
{
++v20;
v5 = v19.__r_.__value_.__r.__words[0] + 24LL * v4;
if ( *(char *)(v5 + 23) < 0 )
v5 = *(_QWORD *)v5;
v6 = atoi((const char *)v5);
}
sub_100199FA4(a2, v6);
if ( v6 >= 1 )
{
v7 = 0;
v8 = 56LL * (unsigned int)v6;
do
{
v9 = *a2;
v10 = *a2 + v7;
sub_100194BA8((__int64 *)&v19, (bool *)v10);
sub_100194B44((__int64)&v19, (_DWORD *)(v10 + 4));
sub_100194BA8((__int64 *)&v19, (bool *)(v10 + 8));
v11 = v20;
v12 = v19.__r_.__value_.__r.__words[0];
v13 = -1431655765 * ((v19.__r_.__value_.__l.__size_ - v19.__r_.__value_.__r.__words[0]) >> 3);
if ( v20 >= v13 )
{
v16 = 0;
v14 = v20;
}
else
{
v14 = ++v20;
v15 = v19.__r_.__value_.__r.__words[0] + 24LL * v11;
if ( *(char *)(v15 + 23) < 0 )
v15 = *(_QWORD *)v15;
v16 = atoi((const char *)v15);
}
*(_DWORD *)(v10 + 12) = v16;
if ( v14 >= v13 )
{
v18 = 0;
}
else
{
v20 = v14 + 1;
v17 = v12 + 24LL * v14;
if ( *(char *)(v17 + 23) < 0 )
v17 = *(_QWORD *)v17;
v18 = atoi((const char *)v17);
}
*(_DWORD *)(v10 + 16) = v18;
sub_100194B44((__int64)&v19, (_DWORD *)(v9 + v7 + 20));
sub_100194B44((__int64)&v19, (_DWORD *)(v9 + v7 + 24));
sub_100194BA8((__int64 *)&v19, (bool *)(v9 + v7 + 28));
sub_100195250(&v19, (_QWORD *)(v9 + v7 + 32));
v7 += 56;
}
while ( v8 != v7 );
}
v22 = &v19;
sub_100018250((void ***)&v22);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}