// // DeathStatsPopup::init from 0x76f28c to 0x76fa2a (1950 bytes) // // 1 xrefs: // > DeathStatsPopup::create @ 0x76fc38 // // 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:59:14 +0000 // GameManager *__fastcall DeathStatsPopup::init(DeathStatsPopup *this, LevelEditorLayer *a2, float a3) { float v5; // s16 GameManager *v6; // r0 GameManager *v7; // r9 float v8; // s20 float v9; // s16 float v10; // s20 const char *v11; // r1 int v12; // r5 int v13; // r10 void (__fastcall *v14)(int, _DWORD *); // r11 const char *v15; // r2 int v16; // r7 void (__fastcall *v17)(int, _DWORD *); // r10 void (__fastcall *v18)(int, _DWORD *); // r10 int v19; // r7 void (__fastcall *v20)(int, _DWORD *); // r10 void (__fastcall *v21)(int, _DWORD *); // r3 int *v22; // r0 int *v23; // r7 int v24; // r7 int v25; // r3 int v26; // r2 int v27; // r1 int v28; // r7 const char *v29; // r2 int v30; // r7 int v31; // r7 void (__fastcall *v32)(int, _DWORD *); // r11 void (__fastcall *v33)(int, _DWORD *); // r3 int *v34; // r0 int *v35; // r7 int v36; // r5 ButtonSprite *v37; // r6 int v38; // r10 const char *v39; // r2 int v40; // r0 int v41; // r10 void (__fastcall *v42)(int, _DWORD *); // r11 int v43; // r10 void (__fastcall *v44)(int, _DWORD *); // r11 ButtonSprite *v45; // r10 int v46; // r11 float v47; // s16 ButtonSprite *v48; // r6 int v49; // r5 const cocos2d::CCPoint *v50; // r7 void (__fastcall *v51)(int, _BYTE *); // r6 bool v53; // [sp+4h] [bp-68h] bool v54; // [sp+4h] [bp-68h] bool v55; // [sp+4h] [bp-68h] char *v56; // [sp+8h] [bp-64h] char *v57; // [sp+8h] [bp-64h] cocos2d::CCPoint *v58; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v59; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v60; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v61; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v62; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v63; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v64; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v65; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v66; // [sp+10h] [bp-5Ch] cocos2d::CCPoint *v67; // [sp+14h] [bp-58h] cocos2d::CCPoint *v68; // [sp+14h] [bp-58h] float v69[2]; // [sp+18h] [bp-54h] BYREF char v70[8]; // [sp+20h] [bp-4Ch] BYREF _BYTE v71[8]; // [sp+28h] [bp-44h] BYREF int v72; // [sp+30h] [bp-3Ch] int v73; // [sp+34h] [bp-38h] int (__fastcall *v74)(DeathStatsPopup *, cocos2d::CCObject *); // [sp+38h] [bp-34h] int v75; // [sp+3Ch] [bp-30h] _DWORD v76[2]; // [sp+40h] [bp-2Ch] BYREF int v77; // [sp+48h] [bp-24h] BYREF int v78; // [sp+4Ch] [bp-20h] int v79; // [sp+50h] [bp-1Ch] _DWORD v80[4]; // [sp+54h] [bp-18h] BYREF v5 = FLAlertLayer::keyboardRaise((FLAlertLayer *)0x43520000, 60.0, a3); v6 = SetupTriggerPopup::init(this, nullptr, nullptr, 340.0, 210.0, (_BYTE *)&dword_0 + 1, v5); v7 = v6; if ( v6 ) { *((_DWORD *)this + 178) = a2; cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v69); v8 = v69[0]; v77 = 0; v78 = 0; v79 = 0; v9 = (float)(v5 + (float)(v69[1] * 0.5)) + 105.0; std::string::__init(&v77, "Death Stats", 0xBu); v10 = v8 * 0.5; SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v77); std::string::~string((int)&v77); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v11); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 80))(v12, 1061997773); v72 = 684; v73 = 1; v13 = CCMenuItemSpriteExtra::create(v12, 0, (int)this, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v13, 1.5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v13); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); v58 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, (float)(v10 - 170.0) + 8.0, v9 - 12.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v80, v58); v14(v13, v80); v16 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Level ID:", "goldFont.fnt", v15); (*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 80))(v16, 1058642330); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 1.0, 0.5); v17(v16, v80); v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10 - 78.0, v9 - 56.0); v18(v16, v80); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v16, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v80, 0.0, 0.0, 40.0, 40.0); v19 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v80); v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v80, 110.0, 28.0); v20(v19, v80); v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 480); LOWORD(v80[0]) = 0; BYTE2(v80[0]) = 0; v21(v19, v80); (*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 456))(v19, 90); v59 = *(cocos2d::CCPoint **)(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10 - 8.0, v9 - 56.0); ((void (__fastcall *)(int, _DWORD *))v59)(v19, v80); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v19, 0); v22 = CCTextInputNode::create( (CCTextInputNode *)0x42C40000, 28.0, "Level ID", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v56); *((_DWORD *)this + 179) = v22; v23 = v22; v60 = *(cocos2d::CCPoint **)(*v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10 - 8.0, v9 - 56.0); ((void (__fastcall *)(int *, _DWORD *))v60)(v23, v80); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 179), 0.7); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 179), 94.0); *(_DWORD *)(*((_DWORD *)this + 179) + 424) = 12; v24 = *((_DWORD *)this + 179); v77 = 0; v78 = 0; v79 = 0; std::string::__init(&v77, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v24, (unsigned __int8 *)&v77); std::string::~string((int)&v77); v25 = *((_DWORD *)this + 178); if ( v25 ) { v26 = *(_DWORD *)(v25 + 1408); if ( v26 ) { v27 = *(_DWORD *)(v26 + 268) - *(_DWORD *)(v26 + 272); if ( v27 > 0 ) { v28 = *((_DWORD *)this + 179); GameToolbox::intToString((GameToolbox *)&v77, v27); CCTextInputNode::setString(v28, (int)&v77); std::string::~string((int)&v77); } } } *(_DWORD *)(*((_DWORD *)this + 179) + 420) = (char *)this + 440; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 179), 5); v30 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Version:", "goldFont.fnt", v29); (*(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 80))(v30, 1058642330); v61 = *(cocos2d::CCPoint **)(*(_DWORD *)v30 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 1.0, 0.5); ((void (__fastcall *)(int, _DWORD *))v61)(v30, v80); v62 = *(cocos2d::CCPoint **)(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10 - 78.0, v9 - 92.0); ((void (__fastcall *)(int, _DWORD *))v62)(v30, v80); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v30, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v80, 0.0, 0.0, 40.0, 40.0); v31 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v80); v32 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v31 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v80, 60.0, 28.0); v32(v31, v80); v33 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v31 + 480); LOWORD(v80[0]) = 0; BYTE2(v80[0]) = 0; v33(v31, v80); (*(void (__fastcall **)(int, int))(*(_DWORD *)v31 + 456))(v31, 90); v63 = *(cocos2d::CCPoint **)(*(_DWORD *)v31 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10 - 33.0, v9 - 92.0); ((void (__fastcall *)(int, _DWORD *))v63)(v31, v80); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v31, 0); v34 = CCTextInputNode::create( (CCTextInputNode *)0x42400000, 28.0, "Latest", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v57); *((_DWORD *)this + 180) = v34; v35 = v34; v64 = *(cocos2d::CCPoint **)(*v34 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10 - 33.0, v9 - 92.0); ((void (__fastcall *)(int *, _DWORD *))v64)(v35, v80); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 180), 0.7); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 180), 44.0); *(_DWORD *)(*((_DWORD *)this + 180) + 424) = 4; v36 = *((_DWORD *)this + 180); v77 = 0; v78 = 0; v79 = 0; std::string::__init(&v77, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v36, (unsigned __int8 *)&v77); std::string::~string((int)&v77); *(_DWORD *)(*((_DWORD *)this + 180) + 420) = (char *)this + 440; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 180), 5); v37 = ButtonSprite::create((ButtonSprite *)"Fetch", (const char *)off_3C, 0, 1.0, COERCE_FLOAT(1), v53); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v37 + 80))(v37, 1060320051); v74 = DeathStatsPopup::onFetch; v75 = 0; v38 = CCMenuItemSpriteExtra::create((int)v37, 0, (int)this, (int)DeathStatsPopup::onFetch, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v38); v65 = *(cocos2d::CCPoint **)(*(_DWORD *)v38 + 92); v67 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, v10 + 95.0, v9 - 74.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v80, v67); ((void (__fastcall *)(int, _DWORD *))v65)(v38, v80); v40 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Enter a level ID, then Fetch.", "bigFont.fnt", v39); *((_DWORD *)this + 181) = v40; (*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 80))(v40, 1055286886); v41 = *((_DWORD *)this + 181); v42 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v41 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 0.5, 0.5); v42(v41, v80); v43 = *((_DWORD *)this + 181); v44 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, v10, v9 - 128.0); v44(v43, v80); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 181), 310.0, 0.45, 0.0); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 181), 1); v45 = ButtonSprite::create((ButtonSprite *)"Clear Local", (const char *)&dword_6C + 2, 0, 1.0, COERCE_FLOAT(1), v54); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v45 + 80))(v45, 1059481190); v76[0] = DeathStatsPopup::onClearLocal; v76[1] = 0; v46 = CCMenuItemSpriteExtra::create((int)v45, 0, (int)this, (int)DeathStatsPopup::onClearLocal, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v46); v47 = v9 - 168.0; v66 = *(cocos2d::CCPoint **)(*(_DWORD *)v46 + 92); v68 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v10 - 70.0, v47); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v80, v68); ((void (__fastcall *)(int, _DWORD *))v66)(v46, v80); v48 = ButtonSprite::create( (ButtonSprite *)"Clear Fetched", (const char *)&dword_6C + 2, 0, 1.0, COERCE_FLOAT(1), v55); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v48 + 80))(v48, 1059481190); v80[0] = DeathStatsPopup::onClearFetched; v80[1] = 0; v49 = CCMenuItemSpriteExtra::create((int)v48, 0, (int)this, (int)DeathStatsPopup::onClearFetched, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v49); v50 = *((const cocos2d::CCPoint **)this + 111); v51 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v49 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v70, v10 + 70.0, v47); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v71, v50); v51(v49, v71); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source