//
// RingObject::spawnCircle from 0x1004288bc to 0x1004289a4 (232 bytes)
//
// 1 xrefs:
// > RingObject::powerOnObject @ 0x1004288b8
//
// 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
//
double __fastcall RingObject::spawnCircle(__int64 a1)
{
double result; // d0
_QWORD *v3; // x20
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x8
__int64 v7; // x8
__int64 v8; // x0
if ( *(_QWORD *)(GameManager::sharedState() + 544)
&& (*(_BYTE *)(a1 + 1044) & 1) == 0
&& *(_DWORD *)(a1 + 1028) != 3643 )
{
v3 = (_QWORD *)CCCircleWave::create_1(0);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(_QWORD *, __int64))(*v3 + 184LL))(v3, v4);
v5 = GameManager::sharedState();
(*(void (__fastcall **)(_QWORD, _QWORD *, _QWORD))(**(_QWORD **)(*(_QWORD *)(v5 + 544) + 3920LL) + 464LL))(
*(_QWORD *)(*(_QWORD *)(v5 + 544) + 3920LL),
v3,
0);
*((_DWORD *)v3 + 88) = 1;
CCCircleWave::followObject(v3, a1, 0);
v6 = *(_QWORD *)(GameManager::sharedState() + 544);
if ( v6 )
v7 = v6 + 13992;
else
v7 = 0;
v3[46] = v7;
v8 = GameManager::sharedState();
return PlayLayer::addCircle(*(_QWORD *)(v8 + 544), (__int64)v3);
}
return result;
}