//
// sub_1000BE9B0 from 0x1000be9b0 to 0x1000bea50 (160 bytes)
//
// 1 xrefs:
// > sub_100099D7C @ 0x100099e64
//
// 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:58:46 +0000
//
void __fastcall sub_1000BE9B0(_QWORD *a1, __int64 a2)
{
__int64 v3; // x2
int v5; // w20
int v6; // w22
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v8; // [xsp+10h] [xbp-30h]
if ( a2 )
{
v3 = *(unsigned int *)(a2 + 376);
if ( (int)v3 >= 1 )
{
cocos2d::CCDictionary::setObject_1(a1[140], a2, v3);
v5 = *(_DWORD *)(a2 + 372);
v6 = *(_DWORD *)(a2 + 376);
if ( *(char *)(a2 + 343) < 0 )
{
sub_1000097D0(__p, *(void **)(a2 + 320), *(_QWORD *)(a2 + 328));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(a2 + 320);
v8 = *(_QWORD *)(a2 + 336);
}
GameLevelManager::storeUserName(a1, v5, v6, (char *)__p);
if ( SHIBYTE(v8) < 0 )
operator delete(__p[0]);
}
}
}