//
// StatsObject::create from 0x427e40 to 0x427e94 (84 bytes)
//
// 19 xrefs:
// > StatsLayer::customSetup @ 0x538570
// > StatsLayer::customSetup @ 0x53858e
// > StatsLayer::customSetup @ 0x5385ac
// > StatsLayer::customSetup @ 0x5385ca
// > StatsLayer::customSetup @ 0x5385e8
// > StatsLayer::customSetup @ 0x53860a
// > StatsLayer::customSetup @ 0x538624
// > StatsLayer::customSetup @ 0x538642
// > StatsLayer::customSetup @ 0x538660
// > StatsLayer::customSetup @ 0x53867e
// > StatsLayer::customSetup @ 0x53869c
// > StatsLayer::customSetup @ 0x5386ba
// > StatsLayer::customSetup @ 0x5386d8
// > StatsLayer::customSetup @ 0x5386f6
// > StatsLayer::customSetup @ 0x538714
// > StatsLayer::customSetup @ 0x538732
// > StatsLayer::customSetup @ 0x538750
// > StatsLayer::customSetup @ 0x53876e
// > StatsLayer::customSetup @ 0x53879a
//
// 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:48:05 +0000
//
int *__fastcall StatsObject::create(StatsObject *this, const char *a2, int a3)
{
int *v5; // r4
int v6; // r3
int *v7; // r0
v5 = (int *)operator new(0x3Cu);
memset(v5, 0, 0x3Cu);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v5);
*v5 = (int)&off_C8ED88;
if ( StatsObject::init((StatsObject *)v5, (const char *)this, (int)a2, (int)&off_C8ED88) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v6 = *v5;
v7 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}