//
// sub_140110C50 from 0x140110c50 to 0x140110f26 (726 bytes)
//
// 4 xrefs:
// > DeathHistogram::setData @ 0x140112020
// > DeathHistogram::setSurvival @ 0x140112a6d
// > DeathHistogram::setSurvival @ 0x140112be3
// > ??> @ 0x140915dd0
//
// 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
//
__int64 __fastcall sub_140110C50(__int64 a1, float a2, int a3)
{
struct cocos2d::CCSprite *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rbx
__int64 v9; // rdx
__int64 v10; // rbx
__int64 v11; // rax
struct cocos2d::CCSprite *v12; // rdi
__int64 v13; // rbx
__int64 v14; // rax
__int64 v15; // rbx
void (__fastcall **v16)(__int64, __int16 *); // rax
__int64 v17; // rdx
__int64 v18; // rbx
__int64 v19; // rax
__int64 result; // rax
cocos2d::CCString *v21; // rax
const char *CString; // rax
struct cocos2d::CCLabelBMFont *v23; // rdi
__int64 v24; // rdx
void (__fastcall *v25)(char *, __int64); // r8
__int64 v26; // rbx
__int64 v27; // rax
char v28; // [rsp+70h] [rbp+8h] BYREF
__int16 v29; // [rsp+80h] [rbp+18h] BYREF
char v30; // [rsp+82h] [rbp+1Ah]
v5 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
v6 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 0.5, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v6 + 288))(v5, v7);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v5 + 320LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v5 + 120LL))(v5);
v8 = *(_QWORD *)v5;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v5 + 320LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v8 + 136))(v5);
(**((void (__fastcall ***)(__int64, void *))v5 + 40))((__int64)v5 + 320, &unk_140702EF4);
LOBYTE(v9) = 110;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v5 + 40) + 40LL))((__int64)v5 + 320, v9);
v10 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, a2, 33.5);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v10 + 184))(v5, v11);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v5);
v12 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
v13 = *(_QWORD *)v12;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 0.5, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v13 + 288))(v12, v14);
(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 320LL))(v12);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 120LL))(v12);
v15 = *(_QWORD *)v12;
(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 320LL))(v12);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v15 + 136))(v12);
v16 = *((void (__fastcall ***)(__int64, __int16 *))v12 + 40);
v29 = 12371;
v30 = 23;
(*v16)((__int64)v12 + 320, &v29);
LOBYTE(v17) = -126;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v12 + 40) + 40LL))((__int64)v12 + 320, v17);
v18 = *(_QWORD *)v12;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, a2, 35.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v18 + 184))(v12, v19);
result = (*(__int64 (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v12);
if ( a3 > 0 )
{
result = (unsigned int)(-858993459 * a3);
if ( a3 == 5 * (a3 / 5u) )
{
v21 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a3);
CString = cocos2d::CCString::getCString(v21);
v23 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 160LL))(v23);
(**((void (__fastcall ***)(__int64, void *))v23 + 46))((__int64)v23 + 368, &unk_140702EF4);
v24 = *((_QWORD *)v23 + 46);
v25 = *(void (__fastcall **)(char *, __int64))(v24 + 40);
LOBYTE(v24) = -56;
v25((char *)v23 + 368, v24);
v26 = *(_QWORD *)v23;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, a2, 25.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v26 + 184))(v23, v27);
return (*(__int64 (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v23);
}
}
return result;
}