// // TOSPopup::init from 0xa24f2c to 0xa25500 (1492 bytes) // // 3 xrefs: // > TOSPopup::create @ 0xa25650 // > @ 0x100b10 // > @ 0x14823c0 // // 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:42 +0000 // __int64 __fastcall TOSPopup::init(cocos2d::CCNode **this) { unsigned __int8 v2; // w0 unsigned int v3; // w23 cocos2d::CCDirector *v5; // x0 __int64 v6; // x22 void (__fastcall *v7)(__int64, __int64 *); // x27 __int64 v8; // x22 void (__fastcall *v9)(__int64, __int64 *); // x25 void (__fastcall *v10)(__int64, __int64 *); // x25 const char *v11; // x2 __int64 v12; // x22 void (__fastcall *v13)(__int64, __int64 *); // x25 __int64 v14; // x24 void (__fastcall *v15)(__int64, __int64 *); // x25 cocos2d::CCMenu *v16; // x0 __int64 v17; // x0 cocos2d::CCArray *v18; // x0 cocos2d::CCArray *v19; // x25 const char *v20; // x1 __int64 v21; // x2 __int64 v22; // x3 bool v23; // w4 __int64 v24; // x5 const char *v25; // x6 __int64 v26; // x0 cocos2d::CCObject *v27; // x24 __int64 v28; // x24 void (__fastcall *v29)(__int64, __int64 *); // x25 const char *v30; // x1 __int64 v31; // x24 _BYTE *v32; // x24 cocos2d::CCNode *v33; // x27 void (__fastcall *v34)(_BYTE *, __int64 *); // x26 const char *v35; // x1 __int64 v36; // x24 _BYTE *v37; // x24 cocos2d::CCNode *v38; // x25 void (__fastcall *v39)(_BYTE *, __int64 *); // x20 __int64 v40; // [xsp+88h] [xbp+88h] BYREF float v41[2]; // [xsp+90h] [xbp+90h] BYREF _BYTE v42[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v43[2]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v44[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v45; // [xsp+C0h] [xbp+C0h] v2 = FLAlertLayer::init((FLAlertLayer *)this, 150); v3 = v2; if ( v2 ) { *((_BYTE *)this + 596) = (unsigned __int8)&dword_0 + 1; v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1)); cocos2d::CCDirector::getWinSize(&v40, v5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v43, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v43); v7 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v43, 350.0, 200.0); v7(v6, v43); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v6, 4294967294LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, *(float *)&v40 * 0.5, *((float *)&v40 + 1) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, v41); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v43, 0.0, 0.0, 80.0, 80.0); v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v43); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v8 + 960LL))(v8, &unk_116D890); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 912LL))(v8, 60); v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v43, 320.0, 100.0); v9(v8, v43); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v8, 0xFFFFFFFFLL); v10 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, *(float *)&v40 * 0.5, (float)(*((float *)&v40 + 1) * 0.5) + 6.0); v10(v8, v43); v12 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Notice", "goldFont.fnt", v11); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, v41[0], (float)(v41[1] + 100.0) - 16.0); v13(v12, v43); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v12); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.8); v44[0] = 0; v44[1] = 0; v45 = nullptr; std::string::__init( v44, "By tapping \"OK\", you accept the\n" "Terms of Use and confirm that\n" "you have read the Privacy Policy.", 0x6Fu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 0.5, 1.0); v14 = TextArea::create((char *)v44, "bigFont.fnt", (const cocos2d::CCPoint *)v43, 0, 0, 1.0, 1000.0, 42.0); if ( (v44[0] & 1) != 0 ) operator delete(v45); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v14, 10); v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, *(float *)&v40 * 0.5, (float)(*((float *)&v40 + 1) * 0.5) + 15.0); v15(v14, v43); v16 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.5); v17 = cocos2d::CCMenu::create(v16); *(this + 69) = (cocos2d::CCNode *)v17; v18 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v17, 10); v19 = (cocos2d::CCArray *)cocos2d::CCArray::create(v18); v26 = ButtonSprite::create((ButtonSprite *)"OK", v20, v21, v22, v23, v24, v25); v27 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v26, 0, (__int64)this, (__int64)TOSPopup::onClose, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v27); cocos2d::CCArray::addObject(v19, v27); v28 = (__int64)*(this + 69); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v43, *(float *)&v40 * 0.5, (float)((float)(*((float *)&v40 + 1) * 0.5) + -100.0) + 25.0); v29(v28, v43); v31 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v30); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v31 + 912LL))(v31, 0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 128LL))(v31, 4.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 144LL))(v31, 1.2); v32 = (_BYTE *)CCMenuItemSpriteExtra::create(v31, 0, (__int64)this, (__int64)TOSPopup::onTOS, 0); (*(void (__fastcall **)(_QWORD, _BYTE *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v32); v32[408] = 0; v33 = *(this + 69); v34 = *(void (__fastcall **)(_BYTE *, __int64 *))(*(_QWORD *)v32 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v42, (float)(*(float *)&v40 * 0.5) + -80.0, (float)(*((float *)&v40 + 1) * 0.5) + 6.0); cocos2d::CCNode::convertToNodeSpace(v43, v33, (const cocos2d::CCPoint *)v42); v34(v32, v43); v36 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v35); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v36 + 912LL))(v36, 0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 128LL))(v36, 4.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 144LL))(v36, 1.2); v37 = (_BYTE *)CCMenuItemSpriteExtra::create(v36, 0, (__int64)this, (__int64)TOSPopup::onPrivacy, 0); (*(void (__fastcall **)(_QWORD, _BYTE *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v37); v37[408] = 0; v38 = *(this + 69); v39 = *(void (__fastcall **)(_BYTE *, __int64 *))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v42, (float)(*(float *)&v40 * 0.5) + 80.0, (float)(*((float *)&v40 + 1) * 0.5) + -14.0); cocos2d::CCNode::convertToNodeSpace(v43, v38, (const cocos2d::CCPoint *)v42); v39(v37, v43); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source