//
// sub_10019649C from 0x10019649c to 0x100196654 (440 bytes)
//
// 1 xrefs:
// > processGJGameStateFields @ 0x10019da08
//
// 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_10019649C(std::string *a1, _QWORD *a2)
{
signed int v4; // w8
const char *v5; // x0
int v6; // w21
signed int v7; // w8
__int64 v8; // x23
signed int v9; // w27
signed int v10; // w28
const char *v11; // x0
const char *v12; // x0
__int64 v13; // x0
__int64 v14; // x1
std::string::size_type size; // x0
__int64 v16; // x23
__int64 v17; // [xsp+8h] [xbp-A8h] BYREF
__int64 v18; // [xsp+10h] [xbp-A0h]
signed int v19; // [xsp+20h] [xbp-90h]
std::string __p; // [xsp+30h] [xbp-80h] BYREF
void ***v21; // [xsp+50h] [xbp-60h] BYREF
void **v22; // [xsp+58h] [xbp-58h] BYREF
memset(&__p, 0, sizeof(__p));
sub_100194F54(a1, &__p);
sub_100194880((__int64)&v17, &__p, "|", a1[1].__r_.__value_.__l.__size_);
v4 = v19;
if ( v19 >= (int)(-1431655765 * ((unsigned __int64)(v18 - v17) >> 3)) )
{
sub_100018AA8(a2);
}
else
{
++v19;
v5 = (const char *)(v17 + 24LL * v4);
if ( v5[23] < 0 )
v5 = *(const char **)v5;
v6 = atoi(v5);
sub_100018AA8(a2);
if ( v6 >= 1 )
{
do
{
LODWORD(v22) = 0;
v7 = v19;
v8 = v17;
v9 = -1431655765 * ((unsigned __int64)(v18 - v17) >> 3);
if ( v19 < v9 )
{
v10 = ++v19;
v11 = (const char *)(v17 + 24LL * v7);
if ( v11[23] < 0 )
v11 = *(const char **)v11;
LODWORD(v22) = atoi(v11);
v7 = v10;
}
if ( v7 < v9 )
{
v19 = v7 + 1;
v12 = (const char *)(v8 + 24LL * v7);
if ( v12[23] < 0 )
v12 = *(const char **)v12;
v13 = atoi(v12);
if ( (_DWORD)v13 )
{
v14 = v13;
size = a1[1].__r_.__value_.__l.__size_;
if ( size )
{
v16 = sub_1002A61FC(size, v14);
if ( v16 )
{
v21 = &v22;
sub_10001A978((unsigned __int64)a2, (int *)&v22, (__int64)&unk_10075EF86, (_DWORD **)&v21)[3] = v16;
}
}
}
}
--v6;
}
while ( v6 );
}
}
v22 = (void **)&v17;
sub_100018250(&v22);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}