//
// GJFriendRequest::create from 0x4b46cc to 0x4b48c0 (500 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetGJUserInfoCompleted @ 0x4d25b8
// > GameLevelManager::onGetFriendRequestsCompleted @ 0x4d4d9a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:07 +0000
//
cocos2d::CCNode *__fastcall GJFriendRequest::create(GJFriendRequest *this, cocos2d::CCDictionary *a2)
{
cocos2d::CCString *v3; // r0
cocos2d::CCString *v4; // r0
cocos2d::CCString *v5; // r0
cocos2d::CCString *v6; // r0
const char *CString; // r8
size_t v8; // r0
cocos2d::CCString *v9; // r0
size_t v10; // r0
cocos2d::CCString *v11; // r0
int v12; // r0
char v13; // r7
GJFriendRequest *v14; // r0
cocos2d::CCNode *v15; // r6
int v17; // [sp+0h] [bp-64h]
int v18; // [sp+4h] [bp-60h]
int v19; // [sp+8h] [bp-5Ch]
const char *v20; // [sp+Ch] [bp-58h]
_DWORD v21[3]; // [sp+14h] [bp-50h] BYREF
int v22[3]; // [sp+20h] [bp-44h] BYREF
int v23[3]; // [sp+2Ch] [bp-38h] BYREF
int v24[3]; // [sp+38h] [bp-2Ch] BYREF
int v25[3]; // [sp+44h] [bp-20h] BYREF
int v26; // [sp+50h] [bp-14h] BYREF
int v27; // [sp+54h] [bp-10h]
int v28; // [sp+58h] [bp-Ch]
v26 = 0;
v27 = 0;
v28 = 0;
std::string::__init(&v26, "32", 2u);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v26);
v17 = cocos2d::CCString::intValue(v3);
std::string::~string((int)&v26);
v26 = 0;
v27 = 0;
v28 = 0;
std::string::__init(&v26, "33", 2u);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v26);
v18 = cocos2d::CCString::intValue(v4);
std::string::~string((int)&v26);
v26 = 0;
v27 = 0;
v28 = 0;
std::string::__init(&v26, "34", 2u);
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v26);
v19 = cocos2d::CCString::intValue(v5);
std::string::~string((int)&v26);
memset(v25, 0, sizeof(v25));
std::string::__init(v25, "35", 2u);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v25);
CString = (const char *)cocos2d::CCString::getCString(v6);
v26 = 0;
v27 = 0;
v28 = 0;
v8 = strlen(CString);
std::string::__init(&v26, CString, v8);
LevelTools::base64DecodeString(v21, &v26);
std::string::~string((int)&v26);
std::string::~string((int)v25);
memset(v23, 0, sizeof(v23));
std::string::__init(v23, "37", 2u);
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v23);
v20 = (const char *)cocos2d::CCString::getCString(v9);
memset(v22, 0, sizeof(v22));
v10 = strlen(v20);
std::string::__init(v22, v20, v10);
std::string::~string((int)v23);
memset(v24, 0, sizeof(v24));
std::string::__init(v24, "36", 2u);
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v24);
v12 = cocos2d::CCString::getCString(v11);
v13 = v12;
if ( v12 )
v13 = 1;
v14 = (GJFriendRequest *)std::string::~string((int)v24);
v15 = GJFriendRequest::create(v14);
*((_DWORD *)v15 + 66) = v17;
*((_DWORD *)v15 + 67) = v18;
*((_DWORD *)v15 + 68) = v19;
std::string::basic_string(v25, (int)v21);
std::string::operator=((unsigned __int8 *)v15 + 276, (unsigned __int8 *)v25);
std::string::~string((int)v25);
std::string::basic_string(&v26, (int)v22);
std::string::operator=((unsigned __int8 *)v15 + 288, (unsigned __int8 *)&v26);
std::string::~string((int)&v26);
*((_BYTE *)v15 + 300) = v13;
std::string::~string((int)v22);
std::string::~string((int)v21);
return v15;
}