//
// RingObject::powerOnObject from 0x100428864 to 0x1004288bc (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x100956c48
// > ??> @ 0x100957468
// > ??> @ 0x100957ca0
//
// This function is hookable on this platform (idp: arm, 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:05:02 +0000
//
__int64 __fastcall RingObject::powerOnObject(__int64 a1, int a2)
{
char v3; // w20
__int64 result; // x0
v3 = *(_BYTE *)(a1 + 760);
result = EnhancedGameObject::powerOnObject(a1, a2);
if ( (v3 & 1) == 0 )
{
result = GameManager::sharedState();
if ( (*(_BYTE *)(result + 925) & 1) == 0 )
{
result = GameManager::sharedState();
if ( (*(_BYTE *)(result + 706) & 1) == 0 && (*(_BYTE *)(a1 + 1044) & 1) == 0 )
return RingObject::spawnCircle(a1);
}
}
return result;
}