// // DtLabelPlacer::place from 0x76789c to 0x767a68 (460 bytes) // // 2 xrefs: // > DeathHistogram::setData @ 0x767d6a // > DeathHistogram::setSurvival @ 0x7682c8 // // 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:08 +0000 // int __fastcall DtLabelPlacer::place(DtLabelPlacer *this, cocos2d::CCNode *a2, const char *a3, float a4, float a5) { cocos2d::CCString *v8; // r0 char *CString; // r0 const char *v10; // r2 cocos2d::CCLabelBMFont *v11; // r0 int v12; // r0 int v13; // r0 int v14; // r5 float v15; // s16 unsigned int v16; // r3 void (__fastcall *v17)(int, int *); // r11 float *v18; // r4 float *v19; // r2 int i; // r3 float v21; // r1 float v22; // r2 float v23; // r3 int v25; // [sp+Ch] [bp+0h] BYREF unsigned int v26; // [sp+10h] [bp+4h] cocos2d::CCLabelBMFont *v27; // [sp+14h] [bp+8h] float v28[2]; // [sp+18h] [bp+Ch] BYREF float v29; // [sp+20h] [bp+14h] float v30; // [sp+24h] [bp+18h] int v31; // [sp+28h] [bp+1Ch] BYREF float v32; // [sp+2Ch] [bp+20h] float v33; // [sp+30h] [bp+24h] float v34; // [sp+34h] [bp+28h] float v35; // [sp+38h] [bp+2Ch] v25 = 0; v26 = 0; v27 = nullptr; if ( (int)a3 <= 9999 ) { if ( (int)a3 < 1000 ) { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3); } else { v12 = (int)(a3 + 50) / 100; if ( v12 == 100 ) v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%ik", &byte_9[1]); else v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i.%ik", (const char *)(v12 / 10), (int)(a3 + 50) / 100 % 10); } } else { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%ik", (const char *)((int)(a3 + 500) / 1000)); } CString = (char *)cocos2d::CCString::getCString(v8); std::string::assign(&v25, CString); if ( (v25 & 1) != 0 ) v11 = v27; else v11 = (cocos2d::CCLabelBMFont *)((char *)&v25 + 1); v13 = cocos2d::CCLabelBMFont::create(v11, "bigFont.fnt", v10); v14 = v13; v15 = 0.26; if ( (v25 & 1) != 0 ) v16 = v26; else v16 = (int)(unsigned __int8)v25 >> 1; if ( v16 < 3 ) v15 = 0.32; (*(void (__fastcall **)(int, float, int))(*(_DWORD *)v13 + 80))( v13, COERCE_FLOAT(LODWORD(v15)), (unsigned __int8)v25 << 31); v17 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, a4, a5); v17(v14, &v31); (*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)a2 + 232))(a2, v14, 1); DtLabelPlacer::boxFor(v28, v14, a4, a5, v15); v18 = *((float **)this + 1); v19 = v18; for ( i = -858993459 * (((int)v18 - *(_DWORD *)this) >> 2) - 1; i >= 0 && *(v19 - 3) > v28[0]; --i ) { if ( *(v19 - 2) < v30 && v29 < *(v19 - 1) ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v14 + 172))(v14, 0); return std::string::~string((int)&v25); } v19 -= 5; } v31 = v14; v32 = v28[0]; v33 = v28[1]; v34 = v29; v35 = v30; if ( v18 == *((float **)this + 2) ) { std::vector::__push_back_slow_path((void **)this, &v31); } else { if ( v18 ) { v21 = v32; v22 = v33; v23 = v34; *(_DWORD *)v18 = v31; v18[1] = v21; v18[2] = v22; v18[3] = v23; v18[4] = v35; } *((_DWORD *)this + 1) += 20; } return std::string::~string((int)&v25); }
GD Web Decomp Icon

GD Web Decomp

Raw Source