//
// DeathHistogram::create from 0x766c9c to 0x766d3e (162 bytes)
//
// 2 xrefs:
// > DeathTrackerPopup::init @ 0x776356
// > DeathTrackerPopup::init @ 0x7764e4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:08 +0000
//
_DWORD *__fastcall DeathHistogram::create(const cocos2d::CCSize *a1)
{
_DWORD *v2; // r4
int v3; // r3
_DWORD *v4; // r0
float v6[2]; // [sp+4h] [bp-10h] BYREF
v2 = (_DWORD *)operator new(0x140u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v2);
*v2 = &off_CF5278;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v2 + 66));
v2[68] = 0;
v2[69] = 0;
v2[70] = 0;
v2[71] = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v2 + 72));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v2 + 76));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v6, a1);
if ( DeathHistogram::init((cocos2d::CCNode *)v2, v6) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
v3 = *v2;
v4 = v2;
v2 = nullptr;
(*(void (__fastcall **)(_DWORD *))(v3 + 8))(v4);
}
return v2;
}