//
// StatsObject::init from 0x427dd8 to 0x427e3a (98 bytes)
//
// 1 xrefs:
// > StatsObject::create @ 0x427e6c
//
// 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::init(StatsObject *this, const char *a2, int a3, int a4)
{
size_t v7; // r0
cocos2d::CCString *v8; // r0
int v10[4]; // [sp+0h] [bp-10h] BYREF
v10[3] = a4;
memset(v10, 0, 12);
v7 = strlen(a2);
std::string::__init(v10, a2, v7);
v8 = (cocos2d::CCString *)cocos2d::CCString::create(v10);
*((_DWORD *)this + 13) = cocos2d::CCString::getCString(v8);
std::string::~string((int)v10);
*((_DWORD *)this + 14) = a3;
return 1;
}