//
// GJWriteMessagePopup::init from 0xa32068 to 0xa32ec0 (3672 bytes)
//
// 2 xrefs:
// > GJWriteMessagePopup::create @ 0xa33088
// > ??> @ 0x52fd8
//
// 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:59:48 +0000
//
__int64 __fastcall GJWriteMessagePopup::init(GJWriteMessagePopup *this, int a2, int a3)
{
unsigned __int8 v6; // w0
unsigned int v7; // w25
GameLevelManager *StoredUserMessageReply; // x0
cocos2d::CCDictionary **v10; // x0
cocos2d::CCDirector *v11; // x0
cocos2d::CCLayer *WinSize; // x0
__int64 v13; // x0
__int64 v14; // x23
void (__fastcall *v15)(__int64, __int64 *); // x26
const char *v16; // x2
char *v17; // x0
__int64 v18; // x26
void (__fastcall *v19)(__int64, __int64 *); // x27
GameLevelManager *v20; // x0
cocos2d::CCDictionary **v21; // x0
char *v22; // x1
size_t v23; // x2
const char *v24; // x2
cocos2d::CCLabelBMFont *v25; // x0
__int64 v26; // x23
__int64 v27; // x27
__int64 v28; // x0
__int64 v29; // x3
cocos2d::CCArray *v30; // x0
const char *v31; // x6
cocos2d::CCArray *v32; // x23
char *v33; // x0
__int64 v34; // x0
cocos2d::CCObject *v35; // x27
const char *v36; // x6
__int64 v37; // x0
cocos2d::CCObject *v38; // x27
cocos2d::CCNode *v39; // x27
float v40; // s11
float v41; // s8
__int64 v42; // x0
__int64 v43; // x23
void (__fastcall *v44)(__int64, __int64 *); // x2
const char *v45; // x4
__int64 v46; // x0
__int64 v47; // x27
TextArea *v48; // x1
cocos2d::CCString *v49; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v51; // x2
__int64 v52; // x0
__int64 v53; // x3
__int64 v54; // x27
void (__fastcall *v55)(__int64, __int64 *); // x23
__int64 v56; // x23
__int64 v57; // x23
void (__fastcall *v58)(__int64, __int64 *); // x2
const char *v59; // x4
__int64 v60; // x0
__int64 v61; // x26
__int64 v62; // x23
void (__fastcall *v63)(__int64, __int64 *); // x26
TextArea *v64; // x1
cocos2d::CCString *v65; // x0
cocos2d::CCLabelBMFont *v66; // x0
const char *v67; // x2
__int64 v68; // x0
__int64 v69; // x3
__int64 v70; // x23
void (__fastcall *v71)(__int64, __int64 *); // x26
const char *v72; // x1
__int64 v73; // x0
__int64 v74; // x22
cocos2d::CCNode *v75; // x24
void (__fastcall *v76)(__int64, __int64 *); // x23
char v77; // w0
_QWORD *v78; // x22
__int64 v79; // x0
__int64 v80; // x1
char v81; // w0
_QWORD *v82; // x19
__int64 v83; // x0
__int64 v84; // x1
void (__fastcall *v85)(__int64, __int64 *); // [xsp+88h] [xbp+88h]
TextArea *v86; // [xsp+88h] [xbp+88h]
void (__fastcall *v87)(__int64, __int64 *); // [xsp+90h] [xbp+90h]
TextArea *v88; // [xsp+90h] [xbp+90h]
GameLevelManager *v89; // [xsp+98h] [xbp+98h]
__int64 v90; // [xsp+A0h] [xbp+A0h] BYREF
float v91; // [xsp+A8h] [xbp+A8h] BYREF
float v92; // [xsp+ACh] [xbp+ACh]
_BYTE v93[8]; // [xsp+B0h] [xbp+B0h] BYREF
_BYTE v94[8]; // [xsp+B8h] [xbp+B8h] BYREF
_BYTE v95[8]; // [xsp+C0h] [xbp+C0h] BYREF
_BYTE v96[8]; // [xsp+C8h] [xbp+C8h] BYREF
_BYTE v97[8]; // [xsp+D0h] [xbp+D0h] BYREF
_BYTE v98[16]; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v99[2]; // [xsp+E8h] [xbp+E8h] BYREF
__int64 v100[2]; // [xsp+F8h] [xbp+F8h] BYREF
cocos2d::CCLabelBMFont *v101; // [xsp+108h] [xbp+108h]
__int64 v102[2]; // [xsp+110h] [xbp+110h] BYREF
void *v103; // [xsp+120h] [xbp+120h]
__int64 v104[2]; // [xsp+128h] [xbp+128h] BYREF
void *v105; // [xsp+138h] [xbp+138h]
__int64 v106[2]; // [xsp+140h] [xbp+140h] BYREF
void *v107; // [xsp+150h] [xbp+150h]
__int64 v108[2]; // [xsp+158h] [xbp+158h] BYREF
void *v109; // [xsp+168h] [xbp+168h]
__int64 v110[2]; // [xsp+170h] [xbp+170h] BYREF
void *v111; // [xsp+180h] [xbp+180h]
__int64 v112[2]; // [xsp+188h] [xbp+188h] BYREF
void *v113; // [xsp+198h] [xbp+198h]
__int64 v114[2]; // [xsp+1A0h] [xbp+1A0h] BYREF
void *v115; // [xsp+1B0h] [xbp+1B0h]
__int64 v116; // [xsp+1B8h] [xbp+1B8h] BYREF
__int64 v117; // [xsp+1C0h] [xbp+1C0h]
void *v118; // [xsp+1C8h] [xbp+1C8h]
__int64 v119; // [xsp+1D0h] [xbp+1D0h] BYREF
__int64 v120; // [xsp+1D8h] [xbp+1D8h]
void *v121; // [xsp+1E0h] [xbp+1E0h]
LODWORD(v99[0]) = -1778384896;
v6 = cocos2d::CCLayerColor::initWithColor(this, v99);
v7 = v6;
if ( v6 )
{
v89 = nullptr;
FLAlertLayer::incrementForcePrio(this);
(*(void (__fastcall **)(GJWriteMessagePopup *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);
StoredUserMessageReply = (GameLevelManager *)(*(__int64 (__fastcall **)(GJWriteMessagePopup *, __int64))(*(_QWORD *)this + 1072LL))(
this,
1);
*((_DWORD *)this + 173) = a2;
*((_DWORD *)this + 174) = a3;
if ( a3 > 0 )
{
v10 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(StoredUserMessageReply);
StoredUserMessageReply = (GameLevelManager *)GameLevelManager::getStoredUserMessageReply(
v10,
*((_DWORD *)this + 174));
v89 = StoredUserMessageReply;
}
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(StoredUserMessageReply);
WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v90, v11);
v13 = cocos2d::CCLayer::create(WinSize);
*((_QWORD *)this + 73) = v13;
(*(void (__fastcall **)(GJWriteMessagePopup *, __int64))(*(_QWORD *)this + 456LL))(this, v13);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v99, 0.0, 0.0, 80.0, 80.0);
v14 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v99);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 912LL))(v14, 0xFFFFFFFFLL);
v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v99, 420.0, 240.0);
v15(v14, v99);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v14,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v91, *(float *)&v90 * 0.5, *((float *)&v90 + 1) * 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v14 + 184LL))(v14, &v91);
if ( *((_DWORD *)this + 174) )
v17 = "Send Reply";
else
v17 = "Send Message";
v18 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v17, "bigFont.fnt", v16);
v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v99,
*(float *)&v90 * 0.5,
(float)((float)(*((float *)&v90 + 1) * 0.5) + 120.0) - 16.0);
v19(v18, v99);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v18);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.6);
v100[0] = 0;
v100[1] = 0;
v101 = nullptr;
v20 = (GameLevelManager *)std::string::__init(v100, "To: ", 4u);
v21 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v20);
GameLevelManager::tryGetUsername(v102, v21, *((_DWORD *)this + 173));
if ( (v102[0] & 1) != 0 )
{
v22 = (char *)v103;
v23 = v102[1];
}
else
{
v23 = LOBYTE(v102[0]) >> 1;
v22 = (char *)v102 + 1;
}
std::string::append((__int64)v100, v22, v23);
v25 = (cocos2d::CCLabelBMFont *)((char *)v100 + 1);
if ( (v100[0] & 1) != 0 )
v25 = v101;
v26 = cocos2d::CCLabelBMFont::create(v25, "goldFont.fnt", v24);
v87 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL);
v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 192LL))(v18);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 0.0, -20.0);
cocos2d::CCPoint::operator+(v99, v27);
v87(v26, v99);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v26);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.6);
*((_DWORD *)this + 160) = -1;
v28 = cocos2d::CCMenu::create((cocos2d::CCMenu *)0xFFFFFFFFLL);
v29 = *((_QWORD *)this + 73);
*((_QWORD *)this + 69) = v28;
v30 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v29 + 464LL))(
v29,
v28,
10);
v32 = (cocos2d::CCArray *)cocos2d::CCArray::create(v30);
if ( *((_DWORD *)this + 174) )
v33 = "Back";
else
v33 = "Cancel";
v34 = ButtonSprite::create(
(ButtonSprite *)v33,
(const char *)&dword_40 + 1,
0,
1,
0.55,
"bigFont.fnt",
"GJ_button_05.png",
v31,
26.0);
v35 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v34,
0,
(__int64)this,
(__int64)GJWriteMessagePopup::onClose,
0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
v35);
cocos2d::CCArray::addObject(v32, v35);
v37 = ButtonSprite::create(
(ButtonSprite *)"Send",
(const char *)&dword_40 + 1,
0,
1,
0.55,
"bigFont.fnt",
"GJ_button_01.png",
v36,
26.0);
v38 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v37,
0,
(__int64)this,
(__int64)GJWriteMessagePopup::onSend,
0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
v38);
cocos2d::CCArray::addObject(v32, v38);
v39 = *((cocos2d::CCNode **)this + 69);
v40 = v91;
v41 = (float)(v92 - 120.0) + 22.0;
v42 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 73) + 192LL))(*((_QWORD *)this + 73));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v40, v41 + *(float *)(v42 + 4));
cocos2d::CCNode::convertToNodeSpace(v99, v39, (const cocos2d::CCPoint *)v98);
GameToolbox::alignItemsHorisontally((__int64)v32, (__int64)v99, 0, 15.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v98, 0.0, 0.0, 80.0, 80.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v93, v91, v92 + 53.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v99, 0.0, 0.0, 40.0, 40.0);
v43 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v99);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v43 + 912LL))(v43, 100);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v43 + 960LL))(v43, &unk_116D890);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v94, 370.0, 28.0);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v43 + 320LL))(v43, v94);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v43,
1);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v43 + 184LL))(v43, v93);
v44 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v43 + 960LL);
LOWORD(v99[0]) = 0;
BYTE2(v99[0]) = 0;
v44(v43, v99);
v46 = CCTextInputNode::create(
(CCTextInputNode *)"Subject",
370.0,
50.0,
"Thonburi",
(const char *)&off_18,
nullptr,
v45);
*((_QWORD *)this + 89) = v46;
*(_BYTE *)(v46 + 608) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 89),
20);
*(_QWORD *)(*((_QWORD *)this + 89) + 584LL) = (char *)this + 544;
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 89) + 184LL))(*((_QWORD *)this + 89), v93);
v47 = *((_QWORD *)this + 89);
v104[0] = 0;
v104[1] = 0;
v105 = nullptr;
std::string::__init(
v104,
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~",
0x61u);
CCTextInputNode::setAllowedChars(v47, (__int64)v104);
if ( (v104[0] & 1) != 0 )
operator delete(v105);
*(_DWORD *)(*((_QWORD *)this + 89) + 592LL) = 35;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 89) + 576LL) + 344LL))(
*(_QWORD *)(*((_QWORD *)this + 89) + 576LL),
0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 89) + 72LL))(*((_QWORD *)this + 89), 0);
v106[0] = 0;
v106[1] = 0;
v107 = nullptr;
std::string::__init(v106, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.5, 0.5);
v48 = (TextArea *)TextArea::create(
(char *)v106,
"chatFont.fnt",
(const cocos2d::CCPoint *)v99,
1,
0,
1.0,
305.0,
20.0);
if ( (v106[0] & 1) != 0 )
{
v86 = v48;
operator delete(v107);
v48 = v86;
}
CCTextInputNode::addTextArea(*((CCTextInputNode **)this + 89), v48);
v49 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&qword_C8);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v49);
v52 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v51);
v53 = *((_QWORD *)this + 73);
*((_QWORD *)this + 97) = v52;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v53 + 464LL))(v53, v52, 2);
v54 = *((_QWORD *)this + 97);
v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 1.0, 0.5);
v55(v54, v99);
v56 = *((_QWORD *)this + 97);
v85 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v56 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, 175.0, 0.0);
cocos2d::CCPoint::operator+(v99, v93);
v85(v56, v99);
v108[0] = 0;
v108[1] = 0;
v109 = nullptr;
std::string::__init(v108, &byte_11B8890, 0);
GJWriteMessagePopup::updateSubject((__int64 *)this, (char *)v108);
if ( (v108[0] & 1) != 0 )
operator delete(v109);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, v91, v92 - 25.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v99, (const cocos2d::CCRect *)v98);
v57 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v99);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v57 + 912LL))(v57, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v96, 370.0, 106.0);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v57 + 320LL))(v57, v96);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v57,
1);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v57 + 184LL))(v57, v95);
v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v57 + 960LL);
LOWORD(v99[0]) = 0;
BYTE2(v99[0]) = 0;
v58(v57, v99);
v60 = CCTextInputNode::create(
(CCTextInputNode *)"Message",
370.0,
50.0,
"Thonburi",
(const char *)&off_18,
nullptr,
v59);
*((_QWORD *)this + 88) = v60;
*(_BYTE *)(v60 + 608) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 88),
20);
*(_QWORD *)(*((_QWORD *)this + 88) + 584LL) = (char *)this + 544;
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 88) + 184LL))(*((_QWORD *)this + 88), v95);
v61 = *((_QWORD *)this + 88);
v110[0] = 0;
v110[1] = 0;
v111 = nullptr;
std::string::__init(
v110,
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~",
0x61u);
CCTextInputNode::setAllowedChars(v61, (__int64)v110);
if ( (v110[0] & 1) != 0 )
operator delete(v111);
*(_DWORD *)(*((_QWORD *)this + 88) + 592LL) = 200;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 88) + 576LL) + 344LL))(
*(_QWORD *)(*((_QWORD *)this + 88) + 576LL),
0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 88) + 72LL))(*((_QWORD *)this + 88), 1);
v62 = *((_QWORD *)this + 88);
v63 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v62 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v99, 370.0, 96.0);
v63(v62, v99);
*(_BYTE *)(*((_QWORD *)this + 88) + 610LL) = 1;
v112[0] = 0;
v112[1] = 0;
v113 = nullptr;
std::string::__init(v112, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.5, 0.5);
v64 = (TextArea *)TextArea::create(
(char *)v112,
"chatFont.fnt",
(const cocos2d::CCPoint *)v99,
1,
0,
1.0,
305.0,
20.0);
if ( (v112[0] & 1) != 0 )
{
v88 = v64;
operator delete(v113);
v64 = v88;
}
CCTextInputNode::addTextArea(*((CCTextInputNode **)this + 88), v64);
v65 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&qword_C8);
v66 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v65);
v68 = cocos2d::CCLabelBMFont::create(v66, "chatFont.fnt", v67);
v69 = *((_QWORD *)this + 73);
*((_QWORD *)this + 96) = v68;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v69 + 464LL))(v69, v68, 2);
v70 = *((_QWORD *)this + 96);
v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 1.0, 0.5);
v71(v70, v99);
(*(void (__fastcall **)(_QWORD, float, float))(**((_QWORD **)this + 96) + 200LL))(
*((_QWORD *)this + 96),
(float)(v91 + 210.0) - 10.0,
(float)(v92 + 120.0) - 14.0);
v114[0] = 0;
v114[1] = 0;
v115 = nullptr;
std::string::__init(v114, &byte_11B8890, 0);
GJWriteMessagePopup::updateBody((__int64 *)this, (char *)v114);
if ( (v114[0] & 1) != 0 )
operator delete(v115);
v73 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_resetBtn_001.png", v72);
v74 = CCMenuItemSpriteExtra::create(v73, 0, (__int64)this, (__int64)GJWriteMessagePopup::onClearBody, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v74);
v75 = *((cocos2d::CCNode **)this + 69);
v76 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v74 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v97,
(float)((float)(*(float *)&v90 * 0.5) + 210.0) - 18.0,
(float)((float)(*((float *)&v90 + 1) * 0.5) + -120.0) + 20.0);
cocos2d::CCNode::convertToNodeSpace(v99, v75, (const cocos2d::CCPoint *)v97);
v76(v74, v99);
if ( v89 )
{
v77 = *((_BYTE *)v89 + 328);
v116 = 0;
v117 = 0;
v118 = nullptr;
v78 = *((_QWORD **)this + 89);
if ( (v77 & 1) != 0 )
{
std::string::__init(&v116, *((void **)v89 + 43), *((_QWORD *)v89 + 42));
}
else
{
v79 = *((_QWORD *)v89 + 41);
v80 = *((_QWORD *)v89 + 42);
v118 = *((void **)v89 + 43);
v116 = v79;
v117 = v80;
}
CCTextInputNode::setString(v78, (char *)&v116);
if ( (v116 & 1) != 0 )
operator delete(v118);
v119 = 0;
v120 = 0;
v81 = *((_BYTE *)v89 + 352);
v121 = nullptr;
v82 = *((_QWORD **)this + 88);
if ( (v81 & 1) != 0 )
{
std::string::__init(&v119, *((void **)v89 + 46), *((_QWORD *)v89 + 45));
}
else
{
v83 = *((_QWORD *)v89 + 44);
v84 = *((_QWORD *)v89 + 45);
v121 = *((void **)v89 + 46);
v119 = v83;
v120 = v84;
}
CCTextInputNode::setString(v82, (char *)&v119);
if ( (v119 & 1) != 0 )
operator delete(v121);
}
if ( (v102[0] & 1) != 0 )
operator delete(v103);
if ( (v100[0] & 1) != 0 )
operator delete(v101);
}
return v7;
}