// // TOSPopup::init from 0x5d7c30 to 0x5d808a (1114 bytes) // // 1 xrefs: // > TOSPopup::create @ 0x5d5166 // // 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:54:10 +0000 // GameManager *__fastcall TOSPopup::init(cocos2d::CCPoint **this) { GameManager *v2; // r0 GameManager *v3; // r9 int v4; // r5 void (__fastcall *v5)(int, _DWORD *); // r10 int v6; // r5 void (__fastcall *v7)(int, _DWORD *); // r10 void (__fastcall *v8)(int, _DWORD *); // r10 const char *v9; // r2 int v10; // r5 void (__fastcall *v11)(int, _DWORD *); // r10 int v12; // r5 void (__fastcall *v13)(int, _DWORD *); // r7 cocos2d::CCMenu *v14; // r0 cocos2d::CCPoint *v15; // r0 cocos2d::CCArray *v16; // r0 cocos2d::CCArray *v17; // r10 const char *v18; // r1 ButtonSprite *v19; // r0 cocos2d::CCObject *v20; // r7 int v21; // r7 void (__fastcall *v22)(int, _DWORD *); // r10 const char *v23; // r1 int v24; // r7 int v25; // r11 float v26; // s15 int v27; // r3 const char *v28; // r1 int v29; // r6 _BYTE *v30; // r6 float v31; // s15 const cocos2d::CCPoint *v32; // r10 void (__fastcall *v33)(_BYTE *, _BYTE *); // r5 void (__fastcall *v35)(int, _DWORD *); // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v36; // [sp+14h] [bp-58h] float v37; // [sp+18h] [bp-54h] BYREF float v38; // [sp+1Ch] [bp-50h] float v39[2]; // [sp+20h] [bp-4Ch] BYREF char v40[8]; // [sp+28h] [bp-44h] BYREF _BYTE v41[8]; // [sp+30h] [bp-3Ch] BYREF int (__fastcall *v42)(TOSPopup *, cocos2d::CCObject *); // [sp+38h] [bp-34h] int v43; // [sp+3Ch] [bp-30h] int (__fastcall *v44)(TOSPopup *, cocos2d::CCObject *); // [sp+40h] [bp-2Ch] int v45; // [sp+44h] [bp-28h] int v46[3]; // [sp+48h] [bp-24h] BYREF _DWORD v47[4]; // [sp+54h] [bp-18h] BYREF v2 = FLAlertLayer::init((FLAlertLayer *)this, 150); v3 = v2; if ( v2 ) { *((_BYTE *)this + 468) = 1; cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v37); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v47, 0.0, 0.0, 80.0, 80.0); v4 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v47); v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v47, 350.0, 200.0); v5(v4, v47); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v4, -2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39, v37 * 0.5, v38 * 0.5); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v4 + 92))(v4, v39); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v47, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v47); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v6 + 480))(v6, &unk_BEE20E); (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 456))(v6, 60); v7 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v47, 320.0, 100.0); v7(v6, v47); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v6, -1); v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v37 * 0.5, (float)(v38 * 0.5) + 6.0); v8(v6, v47); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Notice", "goldFont.fnt", v9); v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v39[0], (float)(v39[1] + 100.0) - 16.0); v11(v10, v47); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v10); (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1061997773); memset(v46, 0, sizeof(v46)); std::string::__init( v46, "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 *)v47, 0.5, 1.0); v12 = TextArea::create( (int)v46, "bigFont.fnt", 1065353216, 1148846080, (const cocos2d::CCPoint *)v47, 1109917696, 0, 0); std::string::~string((int)v46); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v12, 10); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v37 * 0.5, (float)(v38 * 0.5) + 15.0); v13(v12, v47); v14 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, float))(*(_DWORD *)v12 + 80))(v12, 0.5); v15 = (cocos2d::CCPoint *)cocos2d::CCMenu::create(v14); *(this + 111) = v15; v16 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))( *(this + 115), v15, 10); v17 = (cocos2d::CCArray *)cocos2d::CCArray::create(v16); v19 = ButtonSprite::create((ButtonSprite *)"OK", v18); v42 = TOSPopup::onClose; v43 = 0; v20 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v19, 0, (int)this, (int)TOSPopup::onClose, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v20); cocos2d::CCArray::addObject(v17, v20); v21 = (int)*(this + 111); v22 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v37 * 0.5, (float)((float)(v38 * 0.5) - 100.0) + 25.0); v22(v21, v47); v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v23); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v24 + 456))(v24, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 64))(v24, 1082130432); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 72))(v24, 1067030938); v44 = TOSPopup::onTOS; v45 = 0; v25 = CCMenuItemSpriteExtra::create(v24, 0, (int)this, (int)TOSPopup::onTOS, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v25); v26 = v37; v27 = *(_DWORD *)v25; *(_BYTE *)(v25 + 320) = 0; v35 = *(void (__fastcall **)(int, _DWORD *))(v27 + 92); v36 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, (float)(v26 * 0.5) - 80.0, (float)(v38 * 0.5) + 6.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v47, v36); v35(v25, v47); v29 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v28); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v29 + 456))(v29, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 64))(v29, 1082130432); (*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 72))(v29, 1067030938); v47[0] = TOSPopup::onPrivacy; v47[1] = 0; v30 = (_BYTE *)CCMenuItemSpriteExtra::create(v29, 0, (int)this, (int)TOSPopup::onPrivacy, 0); (*(void (__fastcall **)(_DWORD, _BYTE *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v30); v31 = v37; v30[320] = 0; v32 = *(this + 111); v33 = *(void (__fastcall **)(_BYTE *, _BYTE *))(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, (float)(v31 * 0.5) + 80.0, (float)(v38 * 0.5) - 14.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v41, v32); v33(v30, v41); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source