// // DeathTrackerPopup::mountVirtualRow from 0x771298 to 0x771780 (1256 bytes) // // 1 xrefs: // > `non-virtual thunk to'DeathTrackerPopup::mountVirtualRow @ 0x7717bc // // 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:16 +0000 // int __fastcall DeathTrackerPopup::mountVirtualRow( DeathTrackerPopup *this, int a2, cocos2d::CCNode *a3, cocos2d::CCMenu *a4) { float v6; // s0 int v7; // r3 int v8; // r4 float v9; // s16 int result; // r0 float v11; // s16 float v12; // s17 cocos2d::CCLabelBMFont *v13; // r0 int v14; // r4 void (__fastcall *v15)(int, __int16 *); // r8 void (__fastcall *v16)(int, __int16 *); // r8 cocos2d::CCLabelBMFont *v17; // r0 int v18; // r6 void (__fastcall *v19)(int, __int16 *); // r9 void (__fastcall *v20)(int, __int16 *); // r9 cocos2d::CCString *v21; // r0 const char *CString; // r8 size_t v23; // r0 cocos2d::CCString *v24; // r0 cocos2d::CCLabelBMFont *v25; // r0 const char *v26; // r2 int v27; // r8 void (__fastcall *v28)(int, __int16 *); // r11 int v29; // r0 void (__fastcall *v30)(int, __int16 *); // r11 int v31; // r4 _BOOL4 v32; // r4 const char *v33; // r8 size_t v34; // r0 char v35; // r3 cocos2d::CCString *v36; // r0 const char *v37; // r8 size_t v38; // r0 cocos2d::CCString *v39; // r0 const char *v40; // r0 const char *v41; // r8 size_t v42; // r0 const char *v43; // r1 int v44; // r6 void (__fastcall *v45)(int, __int16 *); // r9 cocos2d::CCString *v46; // r0 cocos2d::CCLabelBMFont *v47; // r0 const char *v48; // r2 void (__fastcall *v49)(int, __int16 *); // r9 void (__fastcall *v50)(int, __int16 *); // r9 int v51; // r0 void (__fastcall *v52)(int, __int16 *); // r4 _BYTE v53[4]; // [sp+Ch] [bp-28h] BYREF int v54; // [sp+10h] [bp-24h] BYREF int v55; // [sp+14h] [bp-20h] __int16 v56; // [sp+18h] [bp-1Ch] BYREF char v57; // [sp+1Ah] [bp-1Ah] int v58; // [sp+20h] [bp-14h] BYREF int v59; // [sp+24h] [bp-10h] int v60; // [sp+28h] [bp-Ch] v6 = *((float *)this + 134); v7 = *((_DWORD *)this + 177); v53[0] = -1; v8 = v7 + 36 * a2; v53[1] = -56; LOWORD(v54) = -29536; v9 = *(float *)(v8 + 4); result = 140; v53[2] = (unsigned __int8)&dword_78; BYTE2(v54) = (unsigned __int8)&dword_78; v11 = v9 - 8.0; v12 = v6 * 0.5; switch ( *(_DWORD *)v8 ) { case 0: if ( (*(_BYTE *)(v8 + 24) & 1) != 0 ) v13 = *(cocos2d::CCLabelBMFont **)(v8 + 32); else v13 = (cocos2d::CCLabelBMFont *)(v8 + 25); v14 = cocos2d::CCLabelBMFont::create(v13, "goldFont.fnt", (const char *)&dword_78); v15 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v14 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, 0.0, 0.5); v15(v14, &v56); (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1051931443); v16 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, 10.0, v11); v16(v14, &v56); result = (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a3 + 228))(a3, v14); break; case 1: if ( (*(_BYTE *)(v8 + 24) & 1) != 0 ) v17 = *(cocos2d::CCLabelBMFont **)(v8 + 32); else v17 = (cocos2d::CCLabelBMFont *)(v8 + 25); v18 = cocos2d::CCLabelBMFont::create(v17, "goldFont.fnt", (const char *)&dword_78); v19 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v18 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, 0.0, 0.5); v19(v18, &v56); (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 80))(v18, 1050924810); (*(void (__fastcall **)(int, int *))(*(_DWORD *)v18 + 536))(v18, &v54); v20 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, (float)*(int *)(v8 + 8), v11); v20(v18, &v56); goto LABEL_23; case 2: if ( (*(_DWORD *)(v8 + 20) & 1) == 0 ) sub_770BAC((int)a3); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", *(const char **)(v8 + 8)); v58 = 0; v59 = 0; v60 = 0; CString = (const char *)cocos2d::CCString::getCString(v21); v23 = strlen(CString); std::string::__init(&v58, CString, v23); sub_77087C((int)a3, (int)&v58, v54, "chatFont.fnt"); std::string::~string((int)&v58); v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", *(const char **)(v8 + 12)); v25 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v24); v27 = cocos2d::CCLabelBMFont::create(v25, "bigFont.fnt", v26); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 80))(v27, 1050253722); v28 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v27 + 536); v29 = sub_770744(); v56 = v29; v57 = BYTE2(v29); v28(v27, &v56); v30 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v27 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, v12, v11); v30(v27, &v56); result = (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a3 + 228))(a3, v27); v31 = *(_DWORD *)(v8 + 16); if ( v31 > 0 ) { v32 = v31 == 2; if ( v32 ) v33 = "New Best!"; else v33 = "Session Best"; v58 = 0; v59 = 0; v60 = 0; v34 = strlen(v33); std::string::__init(&v58, v33, v34); if ( v32 ) { v35 = -1; LOWORD(v55) = -1; } else { LOWORD(v55) = -24396; v35 = -126; } BYTE2(v55) = v35; sub_77087C((int)a3, (int)&v58, v55, "goldFont.fnt"); result = std::string::~string((int)&v58); } break; case 3: if ( (*(_DWORD *)(v8 + 20) & 1) == 0 ) sub_770BAC((int)a3); v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", *(const char **)(v8 + 8)); v58 = 0; v59 = 0; v60 = 0; v37 = (const char *)cocos2d::CCString::getCString(v36); v38 = strlen(v37); std::string::__init(&v58, v37, v38); sub_77087C((int)a3, (int)&v58, v54, "chatFont.fnt"); std::string::~string((int)&v58); v39 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", *(const char **)(v8 + 12)); v40 = (const char *)cocos2d::CCString::getCString(v39); v58 = 0; v59 = 0; v60 = 0; v41 = v40; v42 = strlen(v40); std::string::__init(&v58, v41, v42); sub_77087C((int)a3, (int)&v58, v54, "bigFont.fnt"); std::string::~string((int)&v58); v44 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v43); (*(void (__fastcall **)(int, int))(*(_DWORD *)v44 + 64))(v44, 1050253722); (*(void (__fastcall **)(int, int))(*(_DWORD *)v44 + 72))(v44, 1045891646); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v44 + 480))(v44, v53); (*(void (__fastcall **)(int, int))(*(_DWORD *)v44 + 456))(v44, 120); v45 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v44 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, v12, v11); v45(v44, &v56); (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a3 + 228))(a3, v44); v46 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", *(const char **)(v8 + 16)); v47 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v46); v18 = cocos2d::CCLabelBMFont::create(v47, "bigFont.fnt", v48); (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 80))(v18, 1050253722); v49 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v18 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, 0.0, 0.5); v49(v18, &v56); v50 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v18 + 536); v51 = sub_770744(); v56 = v51; v57 = BYTE2(v51); v50(v18, &v56); v52 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v56, v12 + 12.0, v11); v52(v18, &v56); LABEL_23: result = (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a3 + 228))(a3, v18); break; case 4: result = DeathTrackerPopup::addRow((int)this, (int)a3, v8 + 24, v11, 150, 1058642330); break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source