//
// GJBaseGameLayer::getRecordExtra from 0x9a8ccc to 0x9a8dc4 (248 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::getRecordString @ 0x9ef11c
// > ??> @ 0xe9278
//
// 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 12:58:11 +0000
//
__int64 *__usercall GJBaseGameLayer::getRecordExtra@(GJBaseGameLayer *this@, __int64 *a2@)
{
char *v2; // x6
cocos2d::CCString *v4; // x0
const char *CString; // x0
const char *v6; // x22
size_t v7; // x0
size_t v8; // x20
unsigned __int64 v9; // x0
__int64 v10; // x21
__int64 v11; // x0
_BYTE *v12; // x3
v2 = (char *)this + 13065;
if ( (*((_BYTE *)this + 13064) & 1) != 0 )
v2 = *((char **)this + 1635);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"#%llu,%i,%i,%i,%i,%s",
*((const char **)this + 1600),
*((unsigned int *)this + 3272),
22,
51,
*(unsigned int *)(*((_QWORD *)this + 242) + 788LL),
v2,
(char *)this + 13064);
CString = (const char *)cocos2d::CCString::getCString(v4);
*a2 = 0;
a2[1] = 0;
v6 = CString;
a2[2] = 0;
v7 = strlen(CString);
v8 = v7;
if ( v7 > 0xFFFFFFFFFFFFFFEFLL )
sub_62D81C();
if ( v7 > 0x16 )
{
v9 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v10 = v9 | 1;
v11 = operator new(v9);
*a2 = v10;
v12 = (_BYTE *)v11;
a2[2] = v11;
a2[1] = v8;
LABEL_6:
*((_BYTE *)memcpy(v12, v6, v8) + v8) = 0;
return a2;
}
*(_BYTE *)a2 = 2 * v7;
v12 = (char *)a2 + 1;
if ( v7 )
goto LABEL_6;
*v12 = 0;
return a2;
}