// // SocialLinksPopup::init from 0xa36500 to 0xa36f40 (2624 bytes) // // 2 xrefs: // > SocialLinksPopup::create @ 0xa370b8 // > @ 0xb6d88 // // 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:50 +0000 // __int64 __fastcall SocialLinksPopup::init(SocialLinksPopup *this, GJAccountSettingsLayer *a2) { int v5; // w19 _BYTE *v6; // x27 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 cocos2d::CCLayer *v9; // x0 __int64 v10; // x0 __int64 v11; // x21 void (__fastcall *v12)(__int64, __int64 *); // x25 const char *v13; // x2 __int64 v14; // x21 void (__fastcall *v15)(__int64, __int64 *); // x25 cocos2d::CCMenu *v16; // x0 __int64 v17; // x0 __int64 v18; // x21 __int64 v19; // x21 __int64 (__fastcall *v20)(__int64, __int64 *); // x25 cocos2d::CCArray *v21; // x0 cocos2d::CCObject *v22; // x0 float v23; // s13 float v24; // s0 __int64 v25; // x24 __int64 **v26; // x25 __int64 v27; // x0 int v28; // w1 bool v29; // cc __int64 v30; // x1 int v31; // w1 __int64 v32; // x0 __int64 v33; // x21 __int64 v34; // x1 __int64 *v35; // x1 char v36; // w0 __int64 v37; // x0 size_t v38; // x1 void *v39; // x2 cocos2d::CCLabelBMFont *v40; // x25 __int64 v41; // x21 void (__fastcall *v42)(__int64, __int64 *); // x24 void (__fastcall *v43)(__int64, __int64 *); // x24 size_t v44; // x0 const char *v45; // x1 size_t v46; // x0 __int64 v47; // x28 cocos2d::CCNode *v48; // x24 __int64 v49; // x25 float v50; // s8 float v51; // s0 __int64 v52; // x21 void (__fastcall *v53)(__int64, __int64 *); // x2 void (__fastcall *v54)(__int64, __int64 *); // x24 void (__fastcall *v55)(__int64, __int64 *); // x24 const char *v56; // x4 __int64 v57; // x21 __int64 v58; // x2 const char *v59; // x6 __int64 v60; // x0 __int64 v61; // x19 void (__fastcall *v62)(__int64, __int64 *); // x21 unsigned __int8 v63; // [xsp+A7h] [xbp+A7h] char *v64; // [xsp+B0h] [xbp+B0h] void (__fastcall *v65)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h] int v66; // [xsp+C0h] [xbp+C0h] __int64 v67; // [xsp+C8h] [xbp+C8h] BYREF float v68; // [xsp+D0h] [xbp+D0h] BYREF float v69; // [xsp+D4h] [xbp+D4h] _BYTE v70[8]; // [xsp+D8h] [xbp+D8h] BYREF _BYTE v71[8]; // [xsp+E0h] [xbp+E0h] BYREF __int64 v72; // [xsp+E8h] [xbp+E8h] BYREF __int64 v73[2]; // [xsp+F0h] [xbp+F0h] BYREF __int64 v74; // [xsp+100h] [xbp+100h] BYREF size_t v75; // [xsp+108h] [xbp+108h] void *v76; // [xsp+110h] [xbp+110h] __int64 v77[2]; // [xsp+118h] [xbp+118h] BYREF void *v78; // [xsp+128h] [xbp+128h] __int64 v79[2]; // [xsp+130h] [xbp+130h] BYREF void *v80; // [xsp+140h] [xbp+140h] __int64 v81; // [xsp+148h] [xbp+148h] BYREF size_t v82; // [xsp+150h] [xbp+150h] void *v83; // [xsp+158h] [xbp+158h] __int64 v84[2]; // [xsp+160h] [xbp+160h] BYREF void *v85; // [xsp+170h] [xbp+170h] _BYTE v86[224]; // [xsp+178h] [xbp+178h] BYREF LODWORD(v73[0]) = -1778384896; v63 = cocos2d::CCLayerColor::initWithColor(this, v73); if ( v63 ) { *((_QWORD *)this + 83) = a2; FLAlertLayer::incrementForcePrio(this); *((_BYTE *)this + 596) = 1; v5 = 0; v6 = v86; (*(void (__fastcall **)(SocialLinksPopup *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); v7 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SocialLinksPopup *, __int64))(*(_QWORD *)this + 1072LL))( this, 1); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v67, v8); v9 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v68, *(float *)&v67 * 0.5, *((float *)&v67 + 1) * 0.5); v10 = cocos2d::CCLayer::create(v9); *((_QWORD *)this + 73) = v10; (*(void (__fastcall **)(SocialLinksPopup *, __int64))(*(_QWORD *)this + 456LL))(this, v10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v73, 0.0, 0.0, 80.0, 80.0); v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v73); v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, 420.0, 280.0); v12(v11, v73); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v11 + 184LL))(v11, &v68); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v11, 4294967294LL); v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Social Links", "goldFont.fnt", v13); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.7); v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, v68, (float)(v69 + 140.0) - 18.0); v15(v14, v73); v16 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), v14); v17 = cocos2d::CCMenu::create(v16); *((_QWORD *)this + 69) = v17; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v17, 10); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 184LL))(*((_QWORD *)this + 69), &unk_155D380); *((_DWORD *)this + 160) = -1; v18 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.8); v19 = CCMenuItemSpriteExtra::create(v18, 0, (__int64)this, (__int64)SocialLinksPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v19, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v19); v20 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (float)(v68 - 210.0) + 8.0, (float)(v69 + 140.0) - 8.0); v21 = (cocos2d::CCArray *)v20(v19, v73); v22 = (cocos2d::CCObject *)cocos2d::CCArray::create(v21); *((_QWORD *)this + 84) = v22; cocos2d::CCObject::retain(v22); v23 = v69 + 58.0; memcpy(v86, off_15483C8, sizeof(v86)); while ( 1 ) { v24 = -95.0; if ( (v5 & 1) != 0 ) v24 = 95.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v70, v24 + v68, v23 - (float)(floorf((float)v5 * 0.5) * 46.0)); v25 = *((_QWORD *)this + 83); v26 = (__int64 **)(v25 + 704); v27 = *(_QWORD *)(v25 + 704); if ( !v27 ) { v73[0] = v25 + 704; goto LABEL_14; } v28 = *(_DWORD *)(v27 + 32); v29 = v5 <= v28; if ( v5 < v28 ) break; while ( 1 ) { if ( v29 ) { v33 = v27 + 40; goto LABEL_17; } v30 = *(_QWORD *)(v27 + 8); if ( !v30 ) break; LABEL_9: v27 = v30; v31 = *(_DWORD *)(v30 + 32); v29 = v5 <= v31; if ( v5 < v31 ) goto LABEL_8; } v73[0] = v27; v26 = (__int64 **)(v27 + 8); LABEL_14: v32 = operator new(0x40u); v33 = v32 + 40; *(_DWORD *)(v32 + 32) = v5; *(_QWORD *)(v32 + 40) = 0; *(_QWORD *)(v32 + 48) = 0; *(_QWORD *)(v32 + 56) = 0; *(_QWORD *)(v32 + 16) = v73[0]; *(_QWORD *)v32 = 0; *(_QWORD *)(v32 + 8) = 0; *v26 = (__int64 *)v32; v34 = **(_QWORD **)(v25 + 696); if ( v34 ) { *(_QWORD *)(v25 + 696) = v34; v35 = *v26; } else { v35 = (__int64 *)v32; } std::__tree_balance_after_insert *>(*(__int64 **)(v25 + 704), v35); ++*(_QWORD *)(v25 + 712); LABEL_17: v36 = *(_BYTE *)v33; v74 = 0; v75 = 0; v76 = nullptr; if ( (v36 & 1) != 0 ) { std::string::__init(&v74, *(void **)(v33 + 16), *(_QWORD *)(v33 + 8)); } else { v37 = *(_QWORD *)v33; v38 = *(_QWORD *)(v33 + 8); v39 = *(void **)(v33 + 16); v76 = v39; v74 = v37; v75 = v38; } v40 = *(cocos2d::CCLabelBMFont **)v6; v41 = cocos2d::CCLabelBMFont::create(*(cocos2d::CCLabelBMFont **)v6, "goldFont.fnt", (const char *)v39); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v41); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 160LL))(v41, 0.45); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.5, 0.0); v42(v41, v73); v43 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, 0.0, 12.0); cocos2d::CCPoint::operator+(v73, v70); v43(v41, v73); v77[0] = 0; v77[1] = 0; v78 = nullptr; v44 = strlen((const char *)v40); std::string::__init(v77, v40, v44); v45 = *((const char **)v6 + 3); v79[0] = 0; v79[1] = 0; v80 = nullptr; v64 = (char *)v45; v46 = strlen(v45); std::string::__init(v79, v64, v46); v47 = InfoAlertButton::create(v77, v79, 0.5); if ( (v79[0] & 1) != 0 ) operator delete(v80); if ( (v77[0] & 1) != 0 ) operator delete(v78); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v47); v48 = *((cocos2d::CCNode **)this + 69); v65 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL); v49 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 192LL))(v41); v50 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 328LL))(v41); v51 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v41 + 168LL))(v41); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, (float)((float)(v50 * v51) * 0.5) + 10.0, 5.0); cocos2d::CCPoint::operator+(&v72, v49); cocos2d::CCNode::convertToNodeSpace(v73, v48, (const cocos2d::CCPoint *)&v72); v65(v47, v73); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v73, 0.0, 0.0, 40.0, 40.0); v52 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v73); v53 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 960LL); LOWORD(v73[0]) = 13405; BYTE2(v73[0]) = 31; v53(v52, v73); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, 160.0, 20.0); v54(v52, v73); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v52, 0xFFFFFFFFLL); v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, 0.0, -1.0); cocos2d::CCPoint::operator+(v73, v70); v55(v52, v73); v57 = CCTextInputNode::create( *((CCTextInputNode **)v6 + 1), 160.0, 20.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v56); if ( (v74 & 1) != 0 ) { if ( v75 ) { v81 = 0; v82 = 0; v83 = nullptr; std::string::__init(&v81, v76, v75); goto LABEL_26; } } else if ( (int)(unsigned __int8)v74 >> 1 ) { v83 = v76; v81 = v74; v82 = v75; LABEL_26: CCTextInputNode::setString((_QWORD *)v57, (char *)&v81); if ( (v81 & 1) != 0 ) operator delete(v83); } (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v57, 20); v58 = *(_QWORD *)v57; *(_QWORD *)(v57 + 584) = (char *)this + 544; (*(void (__fastcall **)(__int64, _BYTE *))(v58 + 184))(v57, v70); CCTextInputNode::setMaxLabelScale((CCTextInputNode *)v57, 0.5); CCTextInputNode::setMaxLabelWidth((CCTextInputNode *)v57, 140.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v57 + 576) + 344LL))(*(_QWORD *)(v57 + 576), 0); *(_DWORD *)(v57 + 592) = *((_DWORD *)v6 + 4); v84[0] = 0; v84[1] = 0; v85 = nullptr; std::string::__init(v84, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_'.", 0x43u); CCTextInputNode::setAllowedChars(v57, (__int64)v84); if ( (v84[0] & 1) != 0 ) operator delete(v85); LOWORD(v66) = -21896; BYTE2(v66) = -16; CCTextInputNode::setLabelPlaceholderColor(v57, v66); CCTextInputNode::setLabelPlaceholderScale((CCTextInputNode *)v57, 0.45); CCTextInputNode::forceOffset(v57); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v57 + 72LL))(v57, (unsigned int)v5); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), (cocos2d::CCObject *)v57); if ( (v74 & 1) != 0 ) operator delete(v76); ++v5; v6 += 32; if ( v5 == 7 ) { v60 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&dword_30 + 2, 0, 1, 0.6, "bigFont.fnt", "GJ_button_01.png", v59, 28.0); v61 = CCMenuItemSpriteExtra::create(v60, 0, (__int64)this, (__int64)SocialLinksPopup::onOK, 0); CCMenuItemSpriteExtra::setSizeMult(v61, 1.1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v61); v62 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, v68 + 95.0, (float)(v23 - 138.0) - 1.0); v62(v61, v73); return v63; } } LABEL_8: v30 = *(_QWORD *)v27; if ( !*(_QWORD *)v27 ) { v73[0] = v27; v26 = (__int64 **)v27; goto LABEL_14; } goto LABEL_9; } return v63; }
GD Web Decomp Icon

GD Web Decomp

Raw Source