// // SFXChangelogPopup::buildContent from 0x6c97b4 to 0x6c9a5a (678 bytes) // // 0 xrefs: // // 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:56:57 +0000 // float __fastcall SFXChangelogPopup::buildContent(cocos2d::CCArray **this, cocos2d::CCNode *a2, float a3, float a4) { unsigned int v5; // r9 float v7; // s16 int v8; // r8 const char *v9; // r2 float v10; // s15 cocos2d::CCArray *v11; // r0 float v12; // s16 int v13; // r6 void (__fastcall *v14)(int, _BYTE *); // r2 void (__fastcall *v15)(int, _BYTE *); // r5 void (__fastcall *v16)(int, _BYTE *); // r5 float v17; // s16 signed int i; // r10 int v19; // r0 int v20; // r4 int v21; // r5 size_t v22; // r4 const void *v23; // r11 char *v24; // r3 int v25; // r2 const void *v26; // r1 size_t v27; // r2 _DWORD *v28; // r0 int v29; // r1 cocos2d::CCLabelBMFont *v30; // r2 const char *v31; // r2 cocos2d::CCLabelBMFont *v32; // r0 cocos2d::CCLabelBMFont *v33; // r4 void (__fastcall *v34)(cocos2d::CCLabelBMFont *, _BYTE *); // r11 void (__fastcall *v35)(cocos2d::CCLabelBMFont *, _BYTE *); // r11 int v37; // [sp+8h] [bp-4Ch] char *v39; // [sp+24h] [bp-30h] _BYTE v40[8]; // [sp+2Ch] [bp-28h] BYREF _DWORD v41[2]; // [sp+34h] [bp-20h] BYREF cocos2d::CCLabelBMFont *v42; // [sp+3Ch] [bp-18h] unsigned int v43; // [sp+40h] [bp-14h] BYREF size_t v44; // [sp+44h] [bp-10h] char *v45; // [sp+48h] [bp-Ch] v5 = 0; v7 = 0.0; while ( v5 < cocos2d::CCArray::count(*(this + 130)) ) { v8 = cocos2d::CCArray::objectAtIndex(*(this + 130), v5); if ( v8 ) { v10 = COERCE_FLOAT( ScrollViewPopup::addVersionHeader( (ScrollViewPopup *)this, a2, *(_DWORD *)(v8 + 52), *(_DWORD *)(v8 + 56), v7, a3)); v11 = *(cocos2d::CCArray **)(v8 + 64); v12 = v7 - v10; if ( v11 && (v37 = cocos2d::CCArray::count(v11)) != 0 ) { for ( i = 0; i < v37; ++i ) { v19 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v8 + 64), i); v43 = 0; v44 = 0; v45 = nullptr; v20 = *(unsigned __int8 *)(v19 + 52); v21 = v19; if ( (v20 & 1) != 0 ) { v22 = *(_DWORD *)(v19 + 56); v23 = *(const void **)(v19 + 60); } else { v22 = v20 >> 1; v23 = (const void *)(v19 + 53); } if ( v22 + 3 > 0xFFFFFFEF ) sub_389EF8(); if ( v22 + 3 > 0xA ) { v24 = (char *)operator new((v22 + 19) & 0xFFFFFFF0); v45 = v24; v43 = (v22 + 19) & 0xFFFFFFF0 | 1; v44 = v22; } else { LOBYTE(v43) = 2 * v22; v24 = (char *)&v43 + 1; } v39 = v24; std::char_traits::copy(v24, v23, v22); v39[v22] = 0; std::string::append(&v43, ": +", 3u); v25 = *(unsigned __int8 *)(v21 + 64); if ( (v25 & 1) != 0 ) { v26 = *(const void **)(v21 + 72); v27 = *(_DWORD *)(v21 + 68); } else { v26 = (const void *)(v21 + 65); v27 = v25 >> 1; } v28 = std::string::append(&v43, v26, v27); v29 = v28[1]; v30 = (cocos2d::CCLabelBMFont *)v28[2]; v41[0] = *v28; v41[1] = v29; v42 = v30; *v28 = 0; v28[1] = 0; v28[2] = 0; std::string::~string((int)&v43); if ( (v41[0] & 1) != 0 ) v32 = v42; else v32 = (cocos2d::CCLabelBMFont *)((char *)v41 + 1); v33 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v32, "chatFont.fnt", v31); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v33 + 80))(v33, 1058642330); cocos2d::CCLabelBMFont::limitLabelWidth(v33, a3 - 35.0, 0.6, 0.35); v34 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v33 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, 0.5); v34(v33, v40); v35 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 22.0, (float)(v12 - 7.0) - (float)((float)i * 14.0)); v35(v33, v40); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))(*(_DWORD *)a2 + 228))(a2, v33); std::string::~string((int)v41); } v17 = v12 - (float)((float)v37 * 14.0); } else { v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"(no new sounds)", "chatFont.fnt", v9); (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 80))(v13, 1057803469); v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 536); memset(v40, 150, 3); v14(v13, v40); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, 0.5); v15(v13, v40); v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 22.0, v12 - 7.0); v16(v13, v40); (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a2 + 228))(a2, v13); v17 = v12 - 14.0; } v7 = v17 - 10.0; } ++v5; } return -v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source