// // GJCompactUserCell::addStat from 0x4276a0 to 0x42785a (442 bytes) // // 4 xrefs: // > GJCompactUserCell::createStatStrip @ 0x427894 // > GJCompactUserCell::createStatStrip @ 0x4278a8 // > GJCompactUserCell::createStatStrip @ 0x4278bc // > GJCompactUserCell::createStatStrip @ 0x4278d4 // // 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:48:05 +0000 // float __fastcall GJCompactUserCell::addStat( GJCompactUserCell *this, cocos2d::CCSprite *a2, const char *a3, cocos2d::CCNode *a4, float *a5, float a6, bool a7) { const char *v10; // r2 cocos2d::CCLabelBMFont *v11; // r0 int v12; // r4 void (__fastcall *v13)(int, _BYTE *); // r5 void (__fastcall *v14)(int, _BYTE *); // r5 const char *v15; // r1 int v16; // r5 int v17; // r11 float v18; // s17 float v19; // s16 float v20; // r2 void (__fastcall *v21)(int, _BYTE *); // r2 float v22; // s16 float v23; // s17 float result; // r0 void (__fastcall *v25)(int, _BYTE *); // [sp+4h] [bp-28h] _BYTE v26[8]; // [sp+8h] [bp-24h] BYREF _BYTE v27[8]; // [sp+10h] [bp-1Ch] BYREF char v28; // [sp+18h] [bp-14h] BYREF char v29; // [sp+19h] [bp-13h] BYREF cocos2d::CCLabelBMFont *v30; // [sp+20h] [bp-Ch] GameToolbox::intToShortString((GameToolbox *)&v28, (int)this, 1); if ( (v28 & 1) != 0 ) v11 = v30; else v11 = (cocos2d::CCLabelBMFont *)&v29; v12 = cocos2d::CCLabelBMFont::create(v11, "bigFont.fnt", v10); std::string::~string((int)&v28); v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, 0.5); v13(v12, v27); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 80))(v12, 1053609165); v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *(float *)a4, *(float *)&a5); v14(v12, v27); (*(void (__fastcall **)(const char *, int, int))(*(_DWORD *)a3 + 232))(a3, v12, 2); v16 = cocos2d::CCSprite::createWithSpriteFrameName(a2, v15); (*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 80))(v16, 1056964608); v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92); v17 = (*(int (__fastcall **)(int))(*(_DWORD *)v12 + 96))(v12); v18 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v12 + 164))(v12); v19 = (float)(v18 * COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v12 + 84))(v12))) + 7.0; if ( !strcmp((const char *)a2, "GJ_starsIcon_001.png") ) v20 = -1.0; else v20 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v19, v20); cocos2d::CCPoint::operator+(v27, v17, v26); v25(v16, v27); (*(void (__fastcall **)(const char *, int, int))(*(_DWORD *)a3 + 232))(a3, v16, 2); if ( LOBYTE(a6) ) { v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 536); memset(v27, 130, 3); v21(v12, v27); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 512))(v12, 150); (*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 456))(v16, 110); } v22 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v16 + 112))(v16)); v23 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v16 + 164))(v16); result = (*(float (__fastcall **)(int))(*(_DWORD *)v16 + 84))(v16); *(float *)a4 = (float)(v22 + (float)((float)(v23 * result) * 0.5)) + 8.0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source