//
// RingObject::spawnCircle from 0x872668 to 0x872758 (240 bytes)
//
// 2 xrefs:
// > RingObject::powerOnObject @ 0x8727b0
// > ??> @ 0xbd418
//
// 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 12:55:46 +0000
//
__int64 __fastcall RingObject::spawnCircle(RingObject *this)
{
__int64 result; // x0
_QWORD *v3; // x20
__int64 (__fastcall *v4)(_QWORD *, __int64); // x21
__int64 v5; // x0
GameManager *v6; // x0
__int64 v7; // x0
GameManager *v8; // x0
GameManager *v9; // x0
__int64 v10; // x0
result = *(_QWORD *)(GameManager::sharedState(this) + 544);
if ( result )
{
result = *((unsigned __int8 *)this + 1044);
if ( !*((_BYTE *)this + 1044) )
{
result = *((unsigned int *)this + 257);
if ( (_DWORD)result != 3643 )
{
v3 = (_QWORD *)CCCircleWave::create(nullptr, 5.0, 55.0, 0.25);
v4 = *(__int64 (__fastcall **)(_QWORD *, __int64))(*v3 + 184LL);
v5 = (*(__int64 (__fastcall **)(RingObject *))(*(_QWORD *)this + 192LL))(this);
v6 = (GameManager *)v4(v3, v5);
v7 = GameManager::sharedState(v6);
(*(void (__fastcall **)(_QWORD, _QWORD *, _QWORD))(**(_QWORD **)(*(_QWORD *)(v7 + 544) + 3920LL) + 464LL))(
*(_QWORD *)(*(_QWORD *)(v7 + 544) + 3920LL),
v3,
0);
*((_DWORD *)v3 + 88) = 1;
v8 = (GameManager *)CCCircleWave::followObject((CCCircleWave *)v3, this, 0);
v9 = *(GameManager **)(GameManager::sharedState(v8) + 544);
if ( v9 )
v9 = (GameManager *)((char *)v9 + 13992);
v3[46] = v9;
v10 = GameManager::sharedState(v9);
return PlayLayer::addCircle(*(cocos2d::CCArray ***)(v10 + 544), (CCCircleWave *)v3);
}
}
}
return result;
}