// // sub_140111000 from 0x140111000 to 0x1401112b5 (693 bytes) // // 3 xrefs: // > DeathHistogram::setData @ 0x1401120d0 // > DeathHistogram::setSurvival @ 0x140112c99 // > @ 0x140915de8 // // 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 11:26:49 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall sub_140111000(_QWORD *a1, __int64 a2, int a3, float a4, float a5) { cocos2d::CCString *v7; // rax int v8; // r8d char *CString; // rax size_t v10; // r8 const char *v11; // rcx struct cocos2d::CCLabelBMFont *v12; // rax __int64 v13; // rsi float v14; // xmm6_4 __int64 v15; // rbx __int64 v16; // rax float *v17; // r10 __int64 v18; // r9 __int64 v19; // rdx float *v20; // rcx __m128d v21; // xmm1 _BYTE v22[24]; // [rsp+30h] [rbp-A8h] BYREF float v23[4]; // [rsp+48h] [rbp-90h] BYREF __int128 v24; // [rsp+58h] [rbp-80h] BYREF __m128i si128; // [rsp+68h] [rbp-70h] v24 = 0; si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(v24) = 0; if ( a3 < 10000 ) { if ( a3 < 1000 ) { v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a3); } else { v8 = (a3 + 50) / 100; if ( v8 < 100 ) v7 = cocos2d::CCString::createWithFormat("%i.%ik", v8 / 10, v8 % 10); else v7 = cocos2d::CCString::createWithFormat("%ik", (unsigned int)(v8 / 10)); } } else { v7 = cocos2d::CCString::createWithFormat("%ik", (unsigned int)((a3 + 500) / 1000)); } CString = (char *)cocos2d::CCString::getCString(v7); v10 = -1; do ++v10; while ( CString[v10] ); sub_1400405A0((void **)&v24, CString, v10); v11 = (const char *)&v24; if ( si128.m128i_i64[1] > 0xFuLL ) v11 = (const char *)v24; v12 = cocos2d::CCLabelBMFont::create(v11, (const char *)&qword_140704F78); v13 = (__int64)v12; if ( si128.m128i_i64[0] > 2uLL ) v14 = 0.25999999; else v14 = 0.31999999; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v12 + 160LL))(v12); v15 = *(_QWORD *)v13; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, a4, a5); (*(void (__fastcall **)(__int64, __int64))(v15 + 184))(v13, v16); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a2 + 456LL))(a2, v13, 1); v17 = sub_140110F30(v23, v13, a4, a5, v14); *(_OWORD *)v22 = *(_OWORD *)v17; v18 = a1[1]; LODWORD(v19) = (*((_DWORD *)a1 + 2) - *(_DWORD *)a1) / 24 - 1; if ( (int)v19 >= 0 ) { v19 = (int)v19; v20 = (float *)(*a1 + 8 * ((int)v19 + 2 * ((int)v19 + 1LL))); while ( *(float *)v22 < *(v20 - 1) ) { if ( *(float *)&v22[12] > *v20 && v20[1] > *(float *)&v22[8] ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 336LL))(v13, 0); goto LABEL_25; } v20 -= 6; if ( --v19 < 0 ) break; } } *(_QWORD *)v22 = v13; v21 = *(__m128d *)v17; *(_OWORD *)&v22[8] = *(_OWORD *)v17; if ( v18 == a1[2] ) { sub_1400807C0(a1, (_BYTE *)v18, (__int64)v22); } else { *(_OWORD *)v18 = *(_OWORD *)v22; *(double *)(v18 + 16) = _mm_unpackhi_pd(v21, v21).m128d_f64[0]; a1[1] += 24LL; } LABEL_25: sub_14003D310((__int64)&v24); }
GD Web Decomp Icon

GD Web Decomp

Raw Source