//
// DashRingObject::create from 0x100382b64 to 0x100382c20 (188 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x100254334
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
DashRingObject *__fastcall DashRingObject::create(const char *a1)
{
DashRingObject *v2; // x19
v2 = (DashRingObject *)operator new(0x740u);
EffectGameObject::EffectGameObject(v2);
*(_WORD *)&v2->m_claimTouch = 0;
v2->RingObject::EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (DashRingObject_vtbl *)&off_1007FE9E8;
v2->RingObject::EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1007FF130;
v2->RingObject::EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_1007FF1B0;
__asm { FMOV V0.2S, #1.0 }
*(_QWORD *)&v2->m_dashSpeed = _D0;
v2->m_maxDuration = 0.0;
*(_WORD *)&v2->m_allowCollide = 0;
if ( EnhancedGameObject::init(v2, a1) )
{
v2->m_classType = Effect;
v2->m_triggerTargetColor.b = -1;
*(_WORD *)&v2->m_triggerTargetColor.r = -1;
v2->m_duration = 0.5;
v2->m_legacyHSV = 1;
v2->m_customGlowColor = 1;
v2->m_isTouchTriggered = 1;
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(DashRingObject *))v2->~DashRingObject_0)(v2);
return nullptr;
}
return v2;
}