//
// RingObject::powerOnObject from 0x1404a1d10 to 0x1404a1da1 (145 bytes)
//
// 4 xrefs:
// > ??> @ 0x1406116f8
// > ??> @ 0x140614180
// > ??> @ 0x14061cc88
// > ??> @ 0x1406dc728
//
// 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
//
// Hidden C++ exception states: #wind=2
void RingObject::powerOnObject(RingObject *a1, int a2)
{
bool m_isRingPoweredOn; // al
__int64 v4; // rax
void *v5; // [rsp+30h] [rbp+8h]
m_isRingPoweredOn = a1->m_isRingPoweredOn;
a1->m_poweredOn = 1;
a1->m_state = a2;
a1->m_isRingPoweredOn = 1;
if ( !m_isRingPoweredOn )
{
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
if ( !*(_BYTE *)(v4 + 917) && !*(_BYTE *)(v4 + 698) && !a1->m_hasNoEffects )
RingObject::spawnCircle(a1);
}
}