// // StatsCell::loadFromObject from 0x10022c750 to 0x10022c9f7 (679 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x100228084 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 12:27:07 +0000 // __int64 __fastcall StatsCell::loadFromObject(__int64 a1, __int64 a2) { __int64 v3; // rdi __int64 TitleFromKey; // rax __int64 v5; // r14 __int64 v6; // rax __int64 CString; // rax __int64 v8; // r15 char v10; // [rsp+0h] [rbp-30h] _BYTE v11[40]; // [rsp+8h] [rbp-28h] BYREF (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 528) + 1168LL))(*(_QWORD *)(a1 + 528), 255); v3 = *(_QWORD *)(a1 + 536); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 584LL))(v3, 1); TitleFromKey = StatsCell::getTitleFromKey(v3, *(_QWORD *)(a2 + 56)); v5 = cocos2d::CCLabelBMFont::create_3(TitleFromKey, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v5); if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5) > 200.0 ) { if ( (float)(200.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5)) < 1.0 ) (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5); (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5); } v6 = sub_10088E820("%i", v10); CString = cocos2d::CCString::getCString(v6); v8 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v8); if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8) > 100.0 ) { if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8)) < 1.0 ) (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8); } if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 168LL))(v5) <= 0.69999999 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 168LL))(v5, 0.69999999); (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v5 + 160LL))(v5, COERCE_DOUBLE(1060320051)); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 168LL))(v8) <= 0.69999999 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 168LL))(v8, 0.69999999); (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v8 + 160LL))(v8, COERCE_DOUBLE(1060320051)); sub_100278250(v11, 0.0, 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 296LL))(v5, v11); sub_100278250(v11, 1.0, 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 296LL))(v8, v11); sub_100278250(v11, 20.0, (float)(*(float *)(a1 + 524) * 0.5) + -1.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL))(v5, v11); sub_100278250(v11, 330.0, (float)(0.5 * *(float *)(a1 + 524)) + -1.0); return (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL))(v8, v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source