//
// sub_140184A80 from 0x140184a80 to 0x140184bb7 (311 bytes)
//
// 3 xrefs:
// > GameManager::recountUserStats @ 0x140184e20
// > GameManager::recountUserStats @ 0x140184e36
// > ??> @ 0x1406cb610
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void __fastcall sub_140184A80(float *a1, __int64 *a2)
{
void *v3; // r14
char *v4; // rbp
signed __int64 v5; // r15
int v6; // edi
char *v7; // rbx
const char *v8; // rcx
const char *v9; // rcx
int v10; // esi
__int64 i; // rbx
char *v12; // rax
char v13[16]; // [rsp+20h] [rbp-58h] BYREF
void *Block[2]; // [rsp+30h] [rbp-48h] BYREF
__int64 v15; // [rsp+40h] [rbp-38h]
int v16; // [rsp+90h] [rbp+18h] BYREF
*(_OWORD *)Block = 0;
v15 = 0;
sub_1400DE660(a2, ",", (__int64 *)Block);
v3 = Block[1];
v4 = (char *)Block[0];
v5 = ((char *)Block[1] - (char *)Block[0]) >> 5;
if ( (int)v5 > 1 )
{
v6 = 1;
v7 = (char *)Block[0] + 32;
do
{
v8 = v7 - 32;
if ( *((_QWORD *)v7 - 1) > 0xFu )
v8 = *(const char **)v8;
v16 = atoi(v8);
v9 = v7;
if ( *((_QWORD *)v7 + 3) > 0xFu )
v9 = *(const char **)v7;
v10 = atoi(v9);
if ( (unsigned int)(v10 - 1) <= 9 )
*(_DWORD *)(*(_QWORD *)sub_140060B20(a1, (__int64)v13, (unsigned __int8 *)&v16) + 20LL) = v10;
v6 += 2;
v7 += 64;
}
while ( v6 < (int)v5 );
}
if ( v4 )
{
for ( i = (__int64)v4; (void *)i != v3; i += 32 )
sub_14003A830(i);
v12 = v4;
if ( ((v15 - (_QWORD)v4) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )
{
v4 = *((char **)v4 - 1);
if ( (unsigned __int64)(v12 - v4 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v4);
}
}