//
// RingObject::create from 0x140643920 to 0x1406439c2 (162 bytes)
//
// 3 xrefs:
// > GameObject::createWithKey @ 0x1402894e9
// > GameObject::createWithKey @ 0x140289cd5
// > ??> @ 0x14093128c
//
// 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:35:35 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall RingObject::create(__int64 a1)
{
_QWORD *v2; // rdi
v2 = operator new(0x748u);
EffectGameObject::EffectGameObject((__int64)v2);
*v2 = &RingObject::`vftable';
v2[40] = &RingObject::`vftable';
v2[43] = &RingObject::`vftable';
*((_WORD *)v2 + 928) = 0;
if ( (unsigned __int8)EffectGameObject::init(v2, a1) )
{
*((_BYTE *)v2 + 1081) = 1;
*((_BYTE *)v2 + 1488) = 1;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
return nullptr;
}
}