// // RenameThreadPopup::init from 0xc6ee2c to 0xc6f354 (1320 bytes) // // 2 xrefs: // > RenameThreadPopup::create @ 0xc6f5c0 // > @ 0x6f0e8 // // 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 13:05:29 +0000 // __int64 __fastcall RenameThreadPopup::init(RenameThreadPopup *this, GJMessageThread *a2, ThreadViewPopup *a3) { FLAlertLayer *v5; // x0 float v6; // s0 float v7; // s8 unsigned __int8 v8; // w0 unsigned int v9; // w22 cocos2d::CCDirector *v11; // x0 cocos2d::CCDirector *v12; // x0 float v13; // s8 float v14; // s9 float v15; // s11 const char *v16; // x1 __int64 v17; // x23 __int64 v18; // x23 cocos2d::CCNode *v19; // x27 void (__fastcall *v20)(__int64, __int64 *); // x26 const char *v21; // x2 __int64 v22; // x23 void (__fastcall *v23)(__int64, __int64 *); // x26 __int64 v24; // x23 void (__fastcall *v25)(__int64, __int64 *); // x26 void (__fastcall *v26)(__int64, __int64 *); // x2 void (__fastcall *v27)(__int64, __int64 *); // x26 int v28; // w2 __int64 v29; // x3 const char *v30; // x4 __int64 InputNode; // x0 __int64 v32; // x26 __int64 v33; // x0 __int64 (__fastcall *v34)(__int64); // x1 void (__fastcall *v35)(__int64, __int64); // x23 __int64 v36; // x0 __int64 v37; // x23 __int64 v38; // x0 _QWORD *v39; // x23 const char *v40; // x1 size_t v41; // x0 const char *v42; // x6 __int64 v43; // x0 __int64 v44; // x23 cocos2d::CCNode *v45; // x24 void (__fastcall *v46)(__int64, __int64 *); // x19 char *v47; // [xsp+88h] [xbp+88h] __int64 v48; // [xsp+90h] [xbp+90h] BYREF _BYTE v49[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v50[2]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v51; // [xsp+B0h] [xbp+B0h] BYREF __int64 v52; // [xsp+B8h] [xbp+B8h] void *v53; // [xsp+C0h] [xbp+C0h] v5 = (FLAlertLayer *)_stack_chk_guard; if ( a2 && (*((_QWORD *)this + 129) = a3, FLAlertLayer::keyboardRaise(v5, 140.0, 60.0), v7 = v6, v8 = SetupTriggerPopup::init(this, nullptr, nullptr, 300.0, 140.0, 1u, v6), (v9 = v8) != 0) ) { *((_QWORD *)this + 128) = a2; v11 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2); v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize(&v48, v12); v51 = 0; v13 = v7 + (float)(*((float *)&v48 + 1) * 0.5); v52 = 0; v53 = nullptr; v14 = *(float *)&v48 * 0.5; std::string::__init(&v51, "Rename Group Chat", 0x11u); v15 = v13 + 70.0; SetupTriggerPopup::addTitle((__int64)this, (__int64)&v51); if ( (v51 & 1) != 0 ) operator delete(v53); v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v16); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.8); v18 = CCMenuItemSpriteExtra::create(v17, 0, (__int64)this, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v18, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v18); v19 = *((cocos2d::CCNode **)this + 69); v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, (float)(v14 - 150.0) + 8.0, v15 - 12.0); cocos2d::CCNode::convertToNodeSpace(v50, v19, (const cocos2d::CCPoint *)v49); v20(v18, v50); v22 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Everyone sees this name", "chatFont.fnt", v21); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 968LL))(v22, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 1024LL))(v22, 4294967200LL); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v14, v15 - 38.0); v23(v22, v50); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v22, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v50, 0.0, 0.0, 40.0, 40.0); v24 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v50); v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v50, 250.0, 26.0); v25(v24, v50); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 960LL); LOWORD(v50[0]) = 13405; BYTE2(v50[0]) = 31; v26(v24, v50); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v14, v13 + 2.0); v27(v24, v50); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v24, 0); InputNode = GameToolbox::createInputNode( (GameToolbox *)"Group name", 238.0, 26.0, (const char *)&dword_14, v28, v29, v30); *((_QWORD *)this + 130) = InputNode; v32 = InputNode; v33 = v24; v34 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 192LL); v35 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v32 + 184LL); v36 = v34(v33); v35(v32, v36); v37 = *((_QWORD *)this + 130); v51 = 0; v52 = 0; v53 = nullptr; std::string::__init( &v51, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~", 0x61u); CCTextInputNode::setAllowedChars(v37, (__int64)&v51); if ( (v51 & 1) != 0 ) operator delete(v53); v38 = *((_QWORD *)this + 128); v39 = *((_QWORD **)this + 130); v40 = (const char *)(v38 + 89); if ( (*(_BYTE *)(v38 + 88) & 1) != 0 ) v40 = *(const char **)(v38 + 104); v47 = (char *)v40; v51 = 0; v52 = 0; v53 = nullptr; v41 = strlen(v40); std::string::__init(&v51, v47, v41); CCTextInputNode::setString(v39, (char *)&v51); if ( (v51 & 1) != 0 ) operator delete(v53); *(_QWORD *)(*((_QWORD *)this + 130) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 130), 5); v43 = ButtonSprite::create( (ButtonSprite *)"Save", (const char *)&dword_44 + 2, 0, 1, 0.6, "bigFont.fnt", "GJ_button_01.png", v42, 28.0); v44 = CCMenuItemSpriteExtra::create(v43, 0, (__int64)this, (__int64)RenameThreadPopup::onSave, 0); CCMenuItemSpriteExtra::setSizeMult(v44, 1.1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v44); v45 = *((cocos2d::CCNode **)this + 69); v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, v14, (float)(v13 - 70.0) + 22.0); cocos2d::CCNode::convertToNodeSpace(v50, v45, (const cocos2d::CCPoint *)v49); v46(v44, v50); } else { return 0; } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source