//
// GJComment::create from 0x1000c094c to 0x1000c0e50 (1284 bytes)
//
// 3 xrefs:
// > sub_1000C05B0 @ 0x1000c06f8
// > sub_1000C05B0 @ 0x1000c0734
// > sub_100267408 @ 0x10026748c
//
// 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:47 +0000
//
__int64 __fastcall GJComment::create(__int64 a1)
{
__int64 v2; // x0
char *CString; // x0
__int64 v4; // x0
int v5; // w20
__int64 v6; // x0
int v7; // w21
__int64 v8; // x0
const char *v9; // x0
int v10; // w22
__int64 v11; // x0
char v12; // w23
__int64 v13; // x0
int v14; // w25
__int64 v15; // x0
char *v16; // x0
__int64 v17; // x0
int v18; // w27
__int64 v19; // x0
int v20; // w26
__int64 v21; // x0
char v22; // w20
__int64 v23; // x0
int v24; // w28
__int64 v25; // x0
int v26; // w21
__int64 v27; // x24
__int64 v28; // x0
int v29; // w20
__int64 v30; // x0
char *v31; // x0
char *v32; // x1
__int64 v33; // x19
__int64 v34; // x0
unsigned __int8 v35; // w20
__int64 v36; // x0
__int16 v37; // w21
__int64 v38; // x0
int v40; // [xsp+0h] [xbp-110h]
int v41; // [xsp+4h] [xbp-10Ch]
std::string v42; // [xsp+8h] [xbp-108h] BYREF
std::string __dst; // [xsp+20h] [xbp-F0h] BYREF
std::string __str; // [xsp+40h] [xbp-D0h] BYREF
void *v45[2]; // [xsp+58h] [xbp-B8h] BYREF
char v46; // [xsp+6Fh] [xbp-A1h]
std::string v47; // [xsp+70h] [xbp-A0h] BYREF
void *__p[2]; // [xsp+88h] [xbp-88h] BYREF
char v49; // [xsp+9Fh] [xbp-71h]
std::string v50; // [xsp+A0h] [xbp-70h] BYREF
sub_100009900(&v47, "2");
v2 = cocos2d::CCDictionary::valueForKey(a1, &v47);
CString = (char *)cocos2d::CCString::getCString(v2);
sub_100009900(__p, CString);
LevelTools::base64DecodeString(&v50, __p);
if ( v49 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
sub_100009900(&v47, "3");
v4 = cocos2d::CCDictionary::valueForKey(a1, &v47);
v5 = cocos2d::CCString::intValue(v4);
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
sub_100009900(&v47, "4");
v6 = cocos2d::CCDictionary::valueForKey(a1, &v47);
v7 = cocos2d::CCString::intValue(v6);
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
sub_100009900(&v47, "6");
v40 = v7;
v41 = v5;
v8 = cocos2d::CCDictionary::valueForKey(a1, &v47);
v9 = (const char *)cocos2d::CCString::getCString(v8);
v10 = atoi(v9);
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
sub_100009900(&v47, "7");
v11 = cocos2d::CCDictionary::valueForKey(a1, &v47);
v12 = cocos2d::CCString::boolValue(v11);
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
sub_100009900(&v47, "8");
v13 = cocos2d::CCDictionary::valueForKey(a1, &v47);
v14 = cocos2d::CCString::intValue(v13);
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
sub_100009900(v45, "9");
v15 = cocos2d::CCDictionary::valueForKey(a1, v45);
v16 = (char *)cocos2d::CCString::getCString(v15);
sub_100009900(&v47, v16);
if ( v46 < 0 )
operator delete(v45[0]);
sub_100009900(v45, "10");
v17 = cocos2d::CCDictionary::valueForKey(a1, v45);
v18 = cocos2d::CCString::intValue(v17);
if ( v46 < 0 )
operator delete(v45[0]);
sub_100009900(v45, "11");
v19 = cocos2d::CCDictionary::valueForKey(a1, v45);
v20 = cocos2d::CCString::intValue(v19);
if ( v46 < 0 )
operator delete(v45[0]);
sub_100009900(v45, "13");
v21 = cocos2d::CCDictionary::valueForKey(a1, v45);
v22 = cocos2d::CCString::boolValue(v21);
if ( v46 < 0 )
operator delete(v45[0]);
sub_100009900(v45, "1");
v23 = cocos2d::CCDictionary::valueForKey(a1, v45);
v24 = cocos2d::CCString::intValue(v23);
if ( v46 < 0 )
operator delete(v45[0]);
sub_100009900(v45, "15");
v25 = cocos2d::CCDictionary::valueForKey(a1, v45);
v26 = cocos2d::CCString::intValue(v25);
if ( v46 < 0 )
operator delete(v45[0]);
v27 = GJComment::create_1();
if ( SHIBYTE(v50.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__str, v50.__r_.__value_.__l.__data_, v50.__r_.__value_.__l.__size_);
else
__str = v50;
std::string::operator=((std::string *)(v27 + 320), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
*(_DWORD *)(v27 + 372) = v41;
*(_DWORD *)(v27 + 376) = v40;
*(_DWORD *)(v27 + 368) = v10;
*(_BYTE *)(v27 + 384) = v12;
*(_DWORD *)(v27 + 388) = v14;
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__dst, v47.__r_.__value_.__l.__data_, v47.__r_.__value_.__l.__size_);
else
__dst = v47;
std::string::operator=((std::string *)(v27 + 392), &__dst);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
*(_DWORD *)(v27 + 420) = v18;
*(_DWORD *)(v27 + 424) = v20;
*(_BYTE *)(v27 + 428) = v22;
*(_DWORD *)(v27 + 380) = v24;
*(_DWORD *)(v27 + 444) = v26;
sub_100009900(v45, "14");
v28 = cocos2d::CCDictionary::valueForKey(a1, v45);
v29 = cocos2d::CCString::intValue(v28);
if ( v46 < 0 )
operator delete(v45[0]);
if ( v29 == 6 )
*(_DWORD *)(v27 + 436) = 3;
if ( v24 )
*(_BYTE *)(v27 + 432) = 1;
if ( v20 >= 1 )
{
sub_100009900(&v42, "12");
v30 = cocos2d::CCDictionary::valueForKey(a1, &v42);
v31 = (char *)cocos2d::CCString::getCString(v30);
sub_100009900(v45, v31);
if ( SHIBYTE(v42.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v42.__r_.__value_.__l.__data_);
if ( v46 >= 0 )
v32 = (char *)v45;
else
v32 = (char *)v45[0];
sub_100009900(&v42, v32);
v33 = sub_1000A72B8(&v42, ",");
if ( SHIBYTE(v42.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v42.__r_.__value_.__l.__data_);
if ( (unsigned int)sub_1002E757C(v33) >= 3 )
{
v34 = cocos2d::CCArray::stringAtIndex(v33, 0);
v35 = cocos2d::CCString::intValue(v34);
v36 = cocos2d::CCArray::stringAtIndex(v33, 1);
v37 = cocos2d::CCString::intValue(v36);
v38 = cocos2d::CCArray::stringAtIndex(v33, 2);
*(_BYTE *)(v27 + 431) = cocos2d::CCString::intValue(v38);
*(_WORD *)(v27 + 429) = v35 | (unsigned __int16)(v37 << 8);
}
if ( v46 < 0 )
operator delete(v45[0]);
}
if ( SHIBYTE(v47.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v47.__r_.__value_.__l.__data_);
if ( SHIBYTE(v50.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v50.__r_.__value_.__l.__data_);
return v27;
}