//
// sub_10019B0B4 from 0x10019b0b4 to 0x10019b304 (592 bytes)
//
// 1 xrefs:
// > processEffectManagerState @ 0x10019f308
//
// 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_10019B0B4(std::string *a1, unsigned __int64 a2)
{
signed int v4; // w8
std::string::size_type v5; // x0
int v6; // w20
int i; // w24
signed int v8; // w8
std::string::size_type v9; // x22
signed int v10; // w23
signed int v11; // w25
std::string::size_type v12; // x0
std::string::size_type v13; // x0
int v14; // w23
_QWORD *v15; // x22
__int64 v16; // x28
__int64 v17; // x25
__int64 v18; // x23
std::string v19; // [xsp+8h] [xbp-A8h] BYREF
signed int v20; // [xsp+20h] [xbp-90h]
std::string __p; // [xsp+30h] [xbp-80h] BYREF
void ***v22; // [xsp+50h] [xbp-60h] BYREF
std::string *v23; // [xsp+58h] [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)) )
{
sub_100019214(a2);
}
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_100019214(a2);
if ( v6 >= 1 )
{
for ( i = 0; i != v6; ++i )
{
LODWORD(v23) = 0;
v8 = v20;
v9 = v19.__r_.__value_.__r.__words[0];
v10 = -1431655765 * ((v19.__r_.__value_.__l.__size_ - v19.__r_.__value_.__r.__words[0]) >> 3);
if ( v20 < v10 )
{
v11 = ++v20;
v12 = v19.__r_.__value_.__r.__words[0] + 24LL * v8;
if ( *(char *)(v12 + 23) < 0 )
v12 = *(_QWORD *)v12;
LODWORD(v23) = atoi((const char *)v12);
v8 = v11;
}
if ( v8 >= v10 )
{
v14 = 0;
}
else
{
v20 = v8 + 1;
v13 = v9 + 24LL * v8;
if ( *(char *)(v13 + 23) < 0 )
v13 = *(_QWORD *)v13;
v14 = atoi((const char *)v13);
}
v22 = (void ***)&v23;
v15 = sub_10001FEC4(a2, (int *)&v23, (__int64)&unk_10075EF86, (_DWORD **)&v22);
sub_10019B340(v15 + 3, v14);
if ( v14 >= 1 )
{
v16 = 0;
v17 = 56LL * (unsigned int)v14;
do
{
v18 = v15[3] + v16;
sub_100194BA8((__int64 *)&v19, (bool *)v18);
sub_100194A74((__int64 *)&v19, (float *)(v18 + 4));
sub_100194A74((__int64 *)&v19, (float *)(v18 + 8));
sub_100194B44((__int64)&v19, (_DWORD *)(v18 + 12));
sub_100194B44((__int64)&v19, (_DWORD *)(v18 + 16));
sub_100194B44((__int64)&v19, (_DWORD *)(v18 + 20));
sub_100194B44((__int64)&v19, (_DWORD *)(v18 + 24));
sub_100194BA8((__int64 *)&v19, (bool *)(v18 + 28));
sub_100195250(&v19, (_QWORD *)(v18 + 32));
v16 += 56;
}
while ( v17 != v16 );
}
}
}
}
v23 = &v19;
sub_100018250((void ***)&v23);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}