//
// GJUserMessage::create from 0x3cbf80 to 0x3cc26e (750 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetUserMessagesCompleted @ 0x3cc412
// > GameLevelManager::onDownloadUserMessageCompleted @ 0x3cc54e
//
// 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
//
GJUserMessage *GJUserMessage::create()
{
cocos2d::CCDictionary *v0; // r0
cocos2d::CCDictionary *v1; // r6
cocos2d::CCString *v2; // r0
cocos2d::CCString *v3; // r0
cocos2d::CCString *v4; // r0
cocos2d::CCString *v5; // r0
char *CString; // r0
cocos2d::CCString *v7; // r0
char *v8; // r0
cocos2d::CCString *v9; // r0
cocos2d::CCString *v10; // r0
cocos2d::CCString *v11; // r0
char *v12; // r0
cocos2d::CCString *v13; // r0
char *v14; // r0
GJUserMessage *v15; // r0
GJUserMessage *v16; // r4
int v18; // [sp+4h] [bp-58h]
int v19; // [sp+8h] [bp-54h]
int v20; // [sp+Ch] [bp-50h]
bool v21; // [sp+10h] [bp-4Ch]
bool v22; // [sp+14h] [bp-48h]
cocos2d::ZipUtils v23; // [sp+18h] [bp-44h] BYREF
std::string v24; // [sp+1Ch] [bp-40h] BYREF
std::string v25; // [sp+20h] [bp-3Ch] BYREF
_BYTE v26[4]; // [sp+24h] [bp-38h] BYREF
cocos2d::ZipUtils v27; // [sp+28h] [bp-34h] BYREF
std::string v28; // [sp+2Ch] [bp-30h] BYREF
std::string v29; // [sp+30h] [bp-2Ch] BYREF
_BYTE v30[4]; // [sp+34h] [bp-28h] BYREF
std::string v31; // [sp+38h] [bp-24h] BYREF
_BYTE v32[4]; // [sp+3Ch] [bp-20h] BYREF
std::string v33; // [sp+40h] [bp-1Ch] BYREF
_BYTE v34[4]; // [sp+44h] [bp-18h] BYREF
_BYTE v35[4]; // [sp+48h] [bp-14h] BYREF
std::string v36; // [sp+4Ch] [bp-10h] BYREF
std::string v37; // [sp+50h] [bp-Ch] BYREF
v1 = v0;
sub_776584((int)&v37, (char *)&aO1i2r3e45s7t89[1]);
v2 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v37);
v18 = cocos2d::CCString::intValue(v2);
sub_774008(&v37);
sub_776584((int)&v37, (char *)&aO1i2r3e45s7t89[3]);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v37);
v19 = cocos2d::CCString::intValue(v3);
sub_774008(&v37);
sub_776584((int)&v37, (char *)&aO1i2r3e45s7t89[5]);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v37);
v20 = cocos2d::CCString::intValue(v4);
sub_774008(&v37);
sub_776584((int)&v36, (char *)&aO1i2r3e45s7t89[7]);
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v36);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)&v37, CString);
LevelTools::base64DecodeString(&v23, &v37);
sub_774008(&v37);
sub_774008(&v36);
sub_776584((int)&v25, (char *)&aO1i2r3e45s7t89[8]);
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v25);
v8 = (char *)cocos2d::CCString::getCString(v7);
sub_776584((int)&v24, v8);
sub_774008(&v25);
if ( *((_DWORD *)v24.m_data.m_data - 3) )
{
sub_776584((int)v26, "14251");
cocos2d::ZipUtils::base64DecodeEnc(&v27, &v24, (std::string)v26);
sub_774794(&v24, &v27);
sub_774008(&v27);
sub_774008(v26);
}
sub_776584((int)&v28, (char *)&aO1i2r3e45s7t89[12]);
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v28);
v21 = cocos2d::CCString::boolValue(v9);
sub_774008(&v28);
sub_776584((int)&v29, (char *)&aO1i2r3e45s7t89[13]);
v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v29);
v22 = cocos2d::CCString::boolValue(v10);
sub_774008(&v29);
sub_776584((int)&v31, (char *)&aO1i2r3e45s7t89[10]);
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v31);
v12 = (char *)cocos2d::CCString::getCString(v11);
sub_776584((int)v30, v12);
sub_774008(&v31);
sub_776584((int)&v33, "6");
v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v33);
v14 = (char *)cocos2d::CCString::getCString(v13);
sub_776584((int)v32, v14);
v15 = (GJUserMessage *)sub_774008(&v33);
v16 = GJUserMessage::create(v15);
v16->m_messageID = v18;
v16->m_accountID = v19;
v16->m_userID = v20;
sub_775C20(v34, v32);
sub_775D40(&v16->m_username, v34);
sub_774008(v34);
sub_775C20(v35, &v23);
sub_775D40(&v16->m_title, v35);
sub_774008(v35);
sub_775C20(&v36, &v24);
sub_775D40(&v16->m_content, &v36);
sub_774008(&v36);
v16->m_read = v21;
sub_775C20(&v37, v30);
sub_775D40(&v16->m_uploadDate, &v37);
sub_774008(&v37);
v16->m_outgoing = v22;
sub_774008(v32);
sub_774008(v30);
sub_774008(&v24);
sub_774008(&v23);
return v16;
}