//
// sub_1000A70C4 from 0x1000a70c4 to 0x1000a725c (408 bytes)
//
// 4 xrefs:
// > sub_100096B48 @ 0x100096d9c
// > sub_10009E1B0 @ 0x10009e334
// > sub_10009E7C0 @ 0x10009e91c
// > sub_1000B9B2C @ 0x1000b9e1c
//
// 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:34 +0000
//
__int64 __fastcall sub_1000A70C4(__int64 result, __int64 *a2)
{
int v2; // w19
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x0
char *CString; // x0
char *v7; // x1
__int64 v8; // x24
__int64 v9; // x0
int v10; // w23
__int64 v11; // x25
__int64 v12; // x0
int v13; // w24
char *v14; // x0
void *v15[2]; // [xsp+8h] [xbp-88h] BYREF
char v16; // [xsp+1Fh] [xbp-71h]
void *v17[2]; // [xsp+20h] [xbp-70h] BYREF
char v18; // [xsp+37h] [xbp-59h]
void *__p[2]; // [xsp+38h] [xbp-58h] BYREF
char v20; // [xsp+4Fh] [xbp-41h]
v2 = result;
if ( *((char *)a2 + 23) < 0 )
{
if ( !a2[1] )
return result;
a2 = (__int64 *)*a2;
}
else if ( !*((_BYTE *)a2 + 23) )
{
return result;
}
sub_100009900(__p, (char *)a2);
v3 = sub_1000A72B8(__p, "|");
if ( v20 < 0 )
operator delete(__p[0]);
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(v3, v4);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
if ( v20 >= 0 )
v7 = (char *)__p;
else
v7 = (char *)__p[0];
sub_100009900(v17, v7);
v8 = sub_1000A72B8(v17, ":");
if ( v18 < 0 )
operator delete(v17[0]);
if ( (unsigned int)sub_1002E757C(v8) >= 3 )
{
v9 = cocos2d::CCArray::stringAtIndex(v8, 0);
v10 = cocos2d::CCString::intValue(v9);
v11 = cocos2d::CCArray::stringAtIndex(v8, 1);
v12 = cocos2d::CCArray::stringAtIndex(v8, 2);
v13 = cocos2d::CCString::intValue(v12);
v14 = (char *)cocos2d::CCString::getCString(v11);
sub_100009900(v15, v14);
GameLevelManager::storeUserName(v2, v10, v13, (char *)v15);
if ( v16 < 0 )
operator delete(v15[0]);
}
if ( v20 < 0 )
operator delete(__p[0]);
v4 = (unsigned int)(v4 + 1);
result = sub_1002E757C(v3);
}
while ( (unsigned int)v4 < (unsigned int)result );
}
return result;
}