//
// DeathHistogram::create from 0xc989c0 to 0xc98ac4 (260 bytes)
//
// 3 xrefs:
// > DeathTrackerPopup::init @ 0xcb4b28
// > DeathTrackerPopup::init @ 0xcb4d54
// > ??> @ 0x1034b0
//
// 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 DeathHistogram::create(const cocos2d::CCSize *a1)
{
__int64 v2; // x19
__int64 v3; // x1
__int64 v4; // x0
float v6; // [xsp+30h] [xbp+30h] BYREF
v2 = operator new(0x188u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v2);
*(_QWORD *)v2 = &off_14F69D0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v2 + 316));
*(_QWORD *)(v2 + 328) = 0;
*(_QWORD *)(v2 + 336) = 0;
*(_QWORD *)(v2 + 344) = 0;
*(_DWORD *)(v2 + 352) = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v2 + 356));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v2 + 372));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v6, a1);
if ( (unsigned __int8)DeathHistogram::init((cocos2d::CCNode *)v2, &v6) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
v3 = *(_QWORD *)v2;
v4 = v2;
v2 = 0;
(*(void (__fastcall **)(__int64))(v3 + 16))(v4);
}
return v2;
}