//
// sub_100195920 from 0x100195920 to 0x100195b20 (512 bytes)
//
// 1 xrefs:
// > processGJGameStateFields @ 0x10019d948
//
// 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_100195920(std::string *a1, __int64 a2)
{
signed int v4; // w8
const char *v5; // x0
int v6; // w20
signed int v7; // w8
__int64 v8; // x22
signed int v9; // w27
signed int v10; // w28
const char *v11; // x0
__int64 v12; // x26
const char *v13; // x0
__int64 v14; // x23
const char *v15; // x0
int v16; // w22
__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)) )
{
v6 = 0;
}
else
{
++v19;
v5 = (const char *)(v17 + 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 = v19;
v8 = v17;
v9 = -1431655765 * ((unsigned __int64)(v18 - v17) >> 3);
if ( v19 >= v9 )
{
v12 = 0;
v10 = v19;
}
else
{
v10 = ++v19;
v11 = (const char *)(v17 + 24LL * v7);
if ( v11[23] < 0 )
v11 = *(const char **)v11;
v12 = (unsigned int)atoi(v11);
}
if ( v10 >= v9 )
{
v14 = 0;
}
else
{
v19 = v10 + 1;
v13 = (const char *)(v8 + 24LL * v10);
if ( v13[23] < 0 )
v13 = *(const char **)v13;
v14 = (__int64)atoi(v13) << 32;
++v10;
}
if ( v10 >= v9 )
{
v16 = 0;
}
else
{
v19 = v10 + 1;
v15 = (const char *)(v8 + 24LL * v10);
if ( v15[23] < 0 )
v15 = *(const char **)v15;
v16 = atoi(v15);
}
v22 = (void **)(v14 | v12);
v21 = &v22;
*((_DWORD *)sub_100076CD8((__int64 **)a2, (int *)&v22, (__int64)&unk_10075EF86, &v21) + 9) = 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_);
}