// // StatsCell::loadFromObject from 0x10012a0c4 to 0x10012a3bc (760 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x10012614c // // This function is hookable on this platform (idp: arm, 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 10:59:19 +0000 // __int64 __fastcall StatsCell::loadFromObject(__int64 a1, __int64 a2) { __int64 v4; // x0 int v5; // w21 __int64 TitleFromKey; // x0 __int64 v7; // x20 float v8; // s0 float *v9; // x0 __n128 v10; // q0 __int64 v11; // x0 __int64 CString; // x0 __int64 v13; // x21 __n128 v14; // q0 float *v15; // x0 __n128 v16; // q0 float v17; // s8 bool v18; // cc __n128 v19; // q0 float v21; // [xsp+8h] [xbp-38h] BYREF (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 528) + 1168LL))(*(_QWORD *)(a1 + 528), 255); v4 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1); v5 = *(_DWORD *)(a2 + 64); TitleFromKey = StatsCell::getTitleFromKey(v4, *(_QWORD *)(a2 + 56)); v7 = cocos2d::CCLabelBMFont::create_1(TitleFromKey, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v7); v8 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); if ( v8 > 200.0 ) { v9 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 328LL))(v7, v8); v10.n128_u32[0] = 1.0; if ( (float)(200.0 / *v9) < 1.0 ) v10.n128_f32[0] = 200.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v7 + 160LL))(v7, v10); } v11 = sub_1003065B0("%i", v5); CString = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v13); v14.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13); if ( v14.n128_f32[0] > 100.0 ) { v15 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 328LL))(v13, v14.n128_f32[0]); v16.n128_u32[0] = 1.0; if ( (float)(100.0 / *v15) < 1.0 ) v16.n128_f32[0] = 100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13); (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v13 + 160LL))(v13, v16); } v17 = 0.7; v18 = (*(float (__fastcall **)(__int64, __n128))(*(_QWORD *)v7 + 168LL))(v7, v14) <= 0.7; v19.n128_u32[0] = 1060320051; if ( v18 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 168LL))(v7, 0.7); (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v7 + 160LL))(v7, v19); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 168LL))(v13) <= 0.7 ) v17 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 168LL))(v13); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, v17); sub_1000262BC(&v21, 0.0, 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 296LL))(v7, &v21); sub_1000262BC(&v21, 1.0, 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v13 + 296LL))(v13, &v21); sub_1000262BC(&v21, 20.0, (float)(*(float *)(a1 + 524) * 0.5) + -1.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v21); sub_1000262BC(&v21, 330.0, (float)(*(float *)(a1 + 524) * 0.5) + -1.0); return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v13 + 184LL))(v13, &v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source