// // sub_C97EB0 from 0xc97eb0 to 0xc981dc (812 bytes) // // 3 xrefs: // > DeathHistogram::setSurvival @ 0xc9a3ac // > DeathHistogram::setSurvival @ 0xc9a748 // > DeathHistogram::setData @ 0xc9b0ec // // 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 13:05:54 +0000 // __int64 __fastcall sub_C97EB0(__int64 a1, int a2, float a3, float a4) { __int64 v8; // x19 void (__fastcall *v9)(__int64, _BYTE *); // x21 void (__fastcall *v10)(__int64, float); // x21 float *v11; // x0 void (__fastcall *v12)(__int64, float); // x21 __int64 v13; // x0 void (__fastcall *v14)(__int64, _BYTE *); // x26 const char *v15; // x1 __int64 v16; // x19 void (__fastcall *v17)(__int64, _BYTE *); // x24 void (__fastcall *v18)(__int64, float); // x24 float *v19; // x0 void (__fastcall *v20)(__int64, float); // x24 __int64 v21; // x0 void (__fastcall *v22)(__int64, _BYTE *); // x2 void (__fastcall *v23)(__int64, _BYTE *); // x24 cocos2d::CCString *v25; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v27; // x2 __int64 v28; // x19 void (__fastcall *v29)(__int64, _BYTE *); // x21 _BYTE v30[8]; // [xsp+70h] [xbp+70h] BYREF v8 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", _stack_chk_guard); v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, 0.5, 0.0); v9(v8, v30); v10 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 128LL); v11 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8); v10(v8, (float)(a4 - 2.0) / *v11); v12 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 144LL); v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8); v12(v8, 8.0 / *(float *)(v13 + 4)); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v8 + 960LL))(v8, &unk_11A1C70); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 912LL))(v8, 110); v14 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, a3, 33.5); v14(v8, v30); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8); v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v15); v17 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v16 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, 0.5, 0.0); v17(v16, v30); v18 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 128LL); v19 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 328LL))(v16); v18(v16, (float)(a4 - 5.0) / *v19); v20 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 144LL); v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 328LL))(v16); v20(v16, 5.0 / *(float *)(v21 + 4)); v22 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v16 + 960LL); qmemcpy(v30, "S0", 2); v30[2] = 23; v22(v16, v30); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 912LL))(v16, 4294967170LL); v23 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, a3, 35.0); v23(v16, v30); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v16); if ( a2 > 0 && a2 == 5 * (a2 / 5) ) { v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a2); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v25); v28 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v27); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v28 + 160LL))(v28, 0.495); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v28 + 1072LL))(v28, &unk_11A1C70); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 1024LL))(v28, 4294967240LL); v29 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, a3, 25.0); v29(v28, v30); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v28); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source